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
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')
-rw-r--r--app-admin/qpage/ChangeLog30
-rw-r--r--app-admin/qpage/Manifest7
-rw-r--r--app-admin/qpage/files/qpage-3.3-fix-warning.patch12
-rw-r--r--app-admin/qpage/files/qpage-3.3-gentoo.patch72
-rw-r--r--app-admin/qpage/metadata.xml16
-rw-r--r--app-admin/qpage/qpage-3.3.ebuild69
6 files changed, 206 insertions, 0 deletions
diff --git a/app-admin/qpage/ChangeLog b/app-admin/qpage/ChangeLog
new file mode 100644
index 000000000000..4831e573c23d
--- /dev/null
+++ b/app-admin/qpage/ChangeLog
@@ -0,0 +1,30 @@
+# ChangeLog for sys-apps/qpage
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/qpage/ChangeLog,v 1.1 2006/01/27 20:13:06 chutzpah Exp $
+
+ 27 Jan 2006; Patrick McLean <chutzpah@gentoo.org> metadata.xml,
+ qpage-3.3.ebuild:
+ Take over maintainership of package, update metadata.xml and minor
+ description fix.
+
+ 27 Jan 2006; Patrick McLean <chutzpah@gentoo.org>
+ +files/qpage-3.3-fix-warning.patch, qpage-3.3.ebuild:
+ Trivial compile warning fix. Thanks to Thomas Cort for the patch
+ (see bug #120195).
+
+ 27 Jan 2006; Joshua Jackson <tsunam@gentoo.org> qpage-3.3.ebuild:
+ Stable on x86; thanks to Thomas Cort for testing
+
+ 24 Jan 2006; Patrick McLean <chutzpah@gentoo.org> qpage-3.3.ebuild:
+ added ~amd64 keyword, updated copyright header.
+
+ 23 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> qpage-3.3.ebuild:
+ don't use deprecated ?: use syntax
+
+*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/app-admin/qpage/Manifest b/app-admin/qpage/Manifest
new file mode 100644
index 000000000000..c2086956e4e2
--- /dev/null
+++ b/app-admin/qpage/Manifest
@@ -0,0 +1,7 @@
+MD5 0e80bd5c8627844caa6008abba72c1ed ChangeLog 1153
+MD5 55f62becd8c8b17a893657b3f59d4aa5 files/digest-qpage-3.3 60
+MD5 c83c7ad21cc06145316f2725e8d07cbf files/qpage 671
+MD5 077fe753878522de473c0cb19c9274d8 files/qpage-3.3-fix-warning.patch 450
+MD5 e8298db8d15de50d701f0cdcb29c86c7 files/qpage-3.3-gentoo.patch 1764
+MD5 f0e8b0db5b7b6d8d44fe7ef60c954f1b metadata.xml 627
+MD5 40deacabfc68fc24a8ca9ab7194b518c qpage-3.3.ebuild 1759
diff --git a/app-admin/qpage/files/qpage-3.3-fix-warning.patch b/app-admin/qpage/files/qpage-3.3-fix-warning.patch
new file mode 100644
index 000000000000..722677648250
--- /dev/null
+++ b/app-admin/qpage/files/qpage-3.3-fix-warning.patch
@@ -0,0 +1,12 @@
+diff -urN qpage-3.3.orig/srvrsnpp.c qpage-3.3/srvrsnpp.c
+--- qpage-3.3.orig/srvrsnpp.c 1998-10-25 14:55:05.000000000 -0500
++++ qpage-3.3/srvrsnpp.c 2006-01-25 15:49:57.000000000 -0500
+@@ -1061,7 +1061,7 @@
+ if (ptr && strcmp(ptr, STRING_UNKNOWN) != 0)
+ p->ident = strdup(ptr);
+
+- ptr = eval_hostinfo(&request.client);
++ ptr = eval_hostinfo(&request.client[0]);
+
+ if (ptr && strcmp(ptr, STRING_UNKNOWN) != 0)
+ p->hostname = strdup(ptr);
diff --git a/app-admin/qpage/files/qpage-3.3-gentoo.patch b/app-admin/qpage/files/qpage-3.3-gentoo.patch
new file mode 100644
index 000000000000..577fb8a4ff3b
--- /dev/null
+++ b/app-admin/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/app-admin/qpage/metadata.xml b/app-admin/qpage/metadata.xml
new file mode 100644
index 000000000000..7f77b91eb829
--- /dev/null
+++ b/app-admin/qpage/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+</maintainer>
+<longdescription lang="en">
+QuickPage is a client/server software package that enables you to send messages
+to an alphanumeric pager. The client accepts a message from the user and
+forwards it to a server using SNPP. The server uses a modem to transmit the
+message to the recipient's paging service using the TAP protocol (also known as
+the IXO protocol).
+</longdescription>
+</pkgmetadata>
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
+}