summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-01-27 20:13:06 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-01-27 20:13:06 +0000
commit45bf87f893f1b299c4c99056680e96cb1d2a9fc3 (patch)
treec0099cac9c5e36724f35d18552f5eb7558f326d7 /app-admin/qpage/qpage-3.3.ebuild
parentdev-php/PEAR-Net_URL stable on ppc. (diff)
downloadhistorical-45bf87f893f1b299c4c99056680e96cb1d2a9fc3.tar.gz
historical-45bf87f893f1b299c4c99056680e96cb1d2a9fc3.tar.bz2
historical-45bf87f893f1b299c4c99056680e96cb1d2a9fc3.zip
Start of moving sys-apps/qpage to app-admin/qpage, add new location and mask.
Diffstat (limited to 'app-admin/qpage/qpage-3.3.ebuild')
-rw-r--r--app-admin/qpage/qpage-3.3.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/app-admin/qpage/qpage-3.3.ebuild b/app-admin/qpage/qpage-3.3.ebuild
new file mode 100644
index 000000000000..bc4a62f2a1b1
--- /dev/null
+++ b/app-admin/qpage/qpage-3.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/qpage/qpage-3.3.ebuild,v 1.1 2006/01/27 20:13:06 chutzpah Exp $
+
+inherit eutils
+
+DESCRIPTION="Sends messages to an alphanumeric pager via TAP protocol."
+HOMEPAGE="http://www.qpage.org/"
+SRC_URI="http://www.qpage.org/download/${P}.tar.Z"
+
+LICENSE="qpage"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 x86"
+IUSE="tcpd"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
+RDEPEND="${DEPEND}
+ virtual/mta"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-gentoo.patch
+ epatch ${FILESDIR}/${P}-fix-warning.patch
+}
+
+src_compile() {
+ econf || die "econf failed"
+
+ # There doesn't seem to be a clean way to disable tcp wrappers in
+ # this package if you have it installed, but don't want to use it.
+ if ! use tcpd ; then
+ sed -i 's/-lwrap//g; s/-DTCP_WRAPPERS//g' Makefile
+ echo '#undef TCP_WRAPPERS' >> config.h
+ fi
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall || die "einstall failed"
+
+ dodir /var/spool/qpage
+ fowners daemon:daemon /var/spool/qpage
+ fperms 770 /var/spool/qpage
+
+ dodir /var/lock/subsys/qpage
+ fowners daemon:daemon /var/lock/subsys/qpage
+ fperms 770 /var/lock/subsys/qpage
+
+ insinto /etc/qpage
+ doins example.cf || die "doins example.cf failed"
+
+ doinitd "${FILESDIR}"/qpage
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Post-installation tasks:"
+ einfo
+ einfo "1. Create /etc/qpage/qpage.cf (see example.cf in that dir)."
+ einfo "2. Insure that the serial port selected in qpage.cf"
+ einfo " is writable by user or group daemon."
+ einfo "3. Set automatic startup with rc-update add qpage default"
+ einfo "4. Send mail to tomiii@qpage.org telling him how"
+ einfo " you like qpage! :-)"
+ einfo
+}