summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2003-08-08 18:05:42 +0000
committerAron Griffis <agriffis@gentoo.org>2003-08-08 18:05:42 +0000
commitd3a2e9ce08cbb6794a2da972bf089fa16eae8462 (patch)
treee668a7d578eff4d7b30b8796805f2f4c3787c6da
parentimport of qpage ebuild; bug 19961 (diff)
downloadgentoo-2-d3a2e9ce08cbb6794a2da972bf089fa16eae8462.tar.gz
gentoo-2-d3a2e9ce08cbb6794a2da972bf089fa16eae8462.tar.bz2
gentoo-2-d3a2e9ce08cbb6794a2da972bf089fa16eae8462.zip
import of qpage ebuild; bug 19961
-rw-r--r--sys-apps/qpage/ChangeLog11
-rw-r--r--sys-apps/qpage/Manifest5
-rw-r--r--sys-apps/qpage/files/digest-qpage-3.31
-rw-r--r--sys-apps/qpage/files/qpage29
-rw-r--r--sys-apps/qpage/files/qpage-3.3-gentoo.patch72
-rw-r--r--sys-apps/qpage/qpage-3.3.ebuild71
6 files changed, 187 insertions, 2 deletions
diff --git a/sys-apps/qpage/ChangeLog b/sys-apps/qpage/ChangeLog
new file mode 100644
index 000000000000..8ec9bff26301
--- /dev/null
+++ b/sys-apps/qpage/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-apps/qpage
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/qpage/ChangeLog,v 1.1 2003/08/08 18:05:35 agriffis Exp $
+
+*qpage-3.3 (08 Aug 2003)
+
+ 08 Aug 2003; Aron Griffis <agriffis@gentoo.org> qpage-3.3.ebuild,
+ files/qpage, files/qpage-3.3-gentoo.patch:
+ Initial import. Ebuild submitted by Mark Wagner <mark@lanfear.net>
+ in bug 19961.
+
diff --git a/sys-apps/qpage/Manifest b/sys-apps/qpage/Manifest
index 09b93b92c729..398b32a1d804 100644
--- a/sys-apps/qpage/Manifest
+++ b/sys-apps/qpage/Manifest
@@ -1,4 +1,5 @@
-MD5 9dace5deda07e8c46730ef4a1192d11a qpage-3.3.ebuild 1456
-MD5 3e996d1790cff929235c0a839e8ec4f3 files/qpage 700
+MD5 3da7505471400b9dee0b42b46a6b7e4f qpage-3.3.ebuild 1901
+MD5 90bab1cc7b2e8bf08379cbac8bb3079c ChangeLog 438
+MD5 ca0b8a14b9c1b9cbf002ece98676b23a files/qpage 690
MD5 e8298db8d15de50d701f0cdcb29c86c7 files/qpage-3.3-gentoo.patch 1764
MD5 55f62becd8c8b17a893657b3f59d4aa5 files/digest-qpage-3.3 60
diff --git a/sys-apps/qpage/files/digest-qpage-3.3 b/sys-apps/qpage/files/digest-qpage-3.3
new file mode 100644
index 000000000000..f2f8a8556c58
--- /dev/null
+++ b/sys-apps/qpage/files/digest-qpage-3.3
@@ -0,0 +1 @@
+MD5 11aa64fa71d3a356bbcc0b85754680bc qpage-3.3.tar.Z 225689
diff --git a/sys-apps/qpage/files/qpage b/sys-apps/qpage/files/qpage
new file mode 100644
index 000000000000..281383ee44d2
--- /dev/null
+++ b/sys-apps/qpage/files/qpage
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/qpage/files/qpage,v 1.1 2003/08/08 18:05:35 agriffis Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/qpage/qpage.cf ] ; then
+ eerror "You need an /etc/qpage/qpage.cf file first."
+ eerror "There is a sample file in /etc/qpage/."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting qpage"
+ start-stop-daemon --start --quiet --exec /usr/bin/qpage -- -q 10
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping qpage"
+ start-stop-daemon --stop --quiet --exec /usr/bin/qpage
+ eend $?
+}
diff --git a/sys-apps/qpage/files/qpage-3.3-gentoo.patch b/sys-apps/qpage/files/qpage-3.3-gentoo.patch
new file mode 100644
index 000000000000..577fb8a4ff3b
--- /dev/null
+++ b/sys-apps/qpage/files/qpage-3.3-gentoo.patch
@@ -0,0 +1,72 @@
+--- config.input.dist 2003-04-11 14:03:36.000000000 -0700
++++ config.input 2003-04-11 14:05:47.000000000 -0700
+@@ -20,7 +20,7 @@
+ # See the QuickPage documentation for complete details about
+ # the syntax of the configuration file.
+ #
+-QPAGE_CONFIG="/etc/qpage.cf"
++QPAGE_CONFIG="/etc/qpage/qpage.cf"
+
+
+ #
+@@ -41,7 +41,7 @@
+ # copies of the configuration file. Only one filename
+ # may be specified.
+ #
+-SNPP_SERVER_FILE="/etc/qpage.servers"
++SNPP_SERVER_FILE="/etc/qpage/qpage.servers"
+
+
+ #
+--- qpage.man.dist 2003-04-18 14:43:45.000000000 -0700
++++ qpage.man 2003-04-18 14:43:55.000000000 -0700
+@@ -867,7 +867,7 @@
+ must be able to detect when it's safe to send dial commands to the modem.
+ .LP
+ .SH FILES
+-/etc/qpage.cf
++/etc/qpage/qpage.cf
+ .SH SEE ALSO
+ .B RFC-1861
+ .SH KNOWN BUGS
+--- example.cf.dist 2003-04-25 09:55:47.000000000 -0700
++++ example.cf 2003-04-25 10:55:11.000000000 -0700
+@@ -21,7 +21,7 @@
+ #
+ # modem=<modem name>
+ # text=<optional text, no whitespace allowed>
+-# device=<modem device e.g. /dev/ttya>
++# device=<modem device e.g. /dev/tts/0>
+ # initcmd=<modem initialization command>
+ # dialcmd=<modem dial command not including phone number>
+ #
+@@ -64,14 +64,15 @@
+
+ queuedir=/var/spool/qpage
+
++lockdir=/var/lock/subsys/qpage
++
+ identtimeout=5
+ snpptimeout=60
+
+-modem=ttya device=/dev/cua/a
+-modem=ttyb device=/dev/cua/b
++modem=ttyS0 device=/dev/tts/0
+
+ service=default
+- device=ttya,ttyb
++ device=ttyS0
+ baudrate=1200
+ parity=even
+ allowpid=yes
+--- ixo.c.dist 2003-04-25 11:36:30.000000000 -0700
++++ ixo.c 2003-04-25 11:37:37.000000000 -0700
+@@ -192,7 +192,7 @@
+ if ((i = read_modem(fd, seconds)) < 0)
+ return(NULL);
+
+- if (i == '\r') {
++ if (i == '\r' || i == '\n') {
+ *ptr = '\0';
+ got_full_packet++;
+ }
diff --git a/sys-apps/qpage/qpage-3.3.ebuild b/sys-apps/qpage/qpage-3.3.ebuild
new file mode 100644
index 000000000000..d3c93b7abaab
--- /dev/null
+++ b/sys-apps/qpage/qpage-3.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/qpage/qpage-3.3.ebuild,v 1.1 2003/08/08 18:05:35 agriffis Exp $
+
+inherit eutils
+
+IUSE="tcpd"
+
+DESCRIPTION="Sends messages to an alphanumeric pager"
+HOMEPAGE="http://www.qpage.org/"
+SRC_URI="http://www.qpage.org/download/${P}.tar.Z"
+LICENSE="qpage"
+SLOT="0"
+KEYWORDS="~x86 ~alpha"
+
+DEPEND="tcpd? ( sys-apps/tcp-wrappers ) : ( >=sys-apps/sed-4 )"
+RDEPEND="
+ tcpd? ( sys-apps/tcp-wrappers )
+ virtual/mta"
+
+src_unpack() {
+ unpack ${A} || die "unpack failed"
+ cd ${S} || die "cd failed"
+ epatch ${FILESDIR}/qpage-3.3-gentoo.patch || die "epatch failed"
+}
+
+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
+
+ dodir /etc/qpage
+ insinto /etc/qpage
+ doins example.cf || die "doins example.cf failed"
+
+ insopts -m0755
+ insinto /etc/init.d
+ doins ${FILESDIR}/qpage || die "doins qpage failed"
+}
+
+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
+}