Fixed bug 18892
authorMichael Hanselmann <hansmi@gentoo.org>
Thu, 6 Jan 2005 20:10:25 +0000 (20:10 +0000)
committerMichael Hanselmann <hansmi@gentoo.org>
Thu, 6 Jan 2005 20:10:25 +0000 (20:10 +0000)
sys-apps/ucspi-tcp/ChangeLog
sys-apps/ucspi-tcp/Manifest
sys-apps/ucspi-tcp/files/0.88-bigendian.patch [new file with mode: 0644]
sys-apps/ucspi-tcp/files/digest-ucspi-tcp-0.88-r9 [new file with mode: 0644]
sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild [new file with mode: 0644]

index ef1410fd101acbb985f30b9c70a2442968362453..7274b323b8f4be42225b0bb15eda6be271ad8ecf 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-apps/ucspi-tcp
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/ucspi-tcp/ChangeLog,v 1.29 2005/01/02 23:54:45 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ucspi-tcp/ChangeLog,v 1.30 2005/01/06 20:10:25 hansmi Exp $
+
+*ucspi-tcp-0.88-r9 (06 Jan 2005)
+
+  06 Jan 2005; Michael Hanselmann <hansmi@gentoo.org>
+  +ucspi-tcp-0.88-r9.ebuild:
+  Fixed bug 18892 which affected big endian systems.
 
   02 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> :
   Change encoding to UTF-8 for GLEP 31 compliance
@@ -24,7 +30,7 @@
   ucspi-tcp-0.88-r7.ebuild, ucspi-tcp-0.88-r8.ebuild:
   virtual/glibc -> virtual/libc
 
-  11 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> ucspi-tcp-0.88-r8.ebuild:
+  11 Jun 2004; Bryan Ã\83Â\98stergaard <kloeri@gentoo.org> ucspi-tcp-0.88-r8.ebuild:
   Stable on alpha.
 
   09 Apr 2004; Joshua Kinard <kumba@gentoo.org> ucspi-tcp-0.88-r8.ebuild:
index 3f594c35e2de5d8cc857b244a3f2a310e3a7ec24..f47a6844c30878ce3ac0163dcf97ca00d0111a64 100644 (file)
@@ -1,7 +1,10 @@
-MD5 3be15cda6e51a78a18c7268549d29ea8 ChangeLog 4373
-MD5 f28315c57485584788c9824481bc7603 ucspi-tcp-0.88-r8.ebuild 2148
 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 b36e99b422384451ac68b3a9b31b7ed6 files/0.88-head-1.patch 1403
+MD5 7207f0123559b34c5db678e3c3932784 ChangeLog 4545
+MD5 3f0a45bb90e30fe1ee45a937c305efaf ucspi-tcp-0.88-r9.ebuild 2207
+MD5 f28315c57485584788c9824481bc7603 ucspi-tcp-0.88-r8.ebuild 2148
+MD5 9eab9910e2978160e33f6c4e9b227efa files/digest-ucspi-tcp-0.88-r9 350
 MD5 64eb2b26c9c0e5d6b4042fd36b74dbb8 files/tcprules-Makefile 168
-MD5 9eab9910e2978160e33f6c4e9b227efa files/digest-ucspi-tcp-0.88-r8 350
+MD5 b36e99b422384451ac68b3a9b31b7ed6 files/0.88-head-1.patch 1403
+MD5 fb41d7c55db5124d7488a923e4223576 files/0.88-bigendian.patch 478
 MD5 0479a09fdd4ce855d35e36563cab4743 files/0.88-errno.patch 239
+MD5 9eab9910e2978160e33f6c4e9b227efa files/digest-ucspi-tcp-0.88-r8 350
diff --git a/sys-apps/ucspi-tcp/files/0.88-bigendian.patch b/sys-apps/ucspi-tcp/files/0.88-bigendian.patch
new file mode 100644 (file)
index 0000000..026fbc6
--- /dev/null
@@ -0,0 +1,14 @@
+--- ucspi-tcp-0.88.orig/tcpserver.c    2005-01-06 20:51:16.590777128 +0100
++++ ucspi-tcp-0.88/tcpserver.c 2005-01-06 20:52:34.075997584 +0100
+@@ -422,7 +422,11 @@
+     se = getservbyname(x,"tcp");
+     if (!se)
+       strerr_die3x(111,FATAL,"unable to figure out port number for ",x);
++#if __BYTE_ORDER == __BIG_ENDIAN || BYTE_ORDER == BIG_ENDIAN
++      localport = ntohs(se->s_port);
++#else
+     uint16_unpack_big((char*)&se->s_port,&localport);
++#endif
+   }
+ 
+   if (!*argv) usage();
diff --git a/sys-apps/ucspi-tcp/files/digest-ucspi-tcp-0.88-r9 b/sys-apps/ucspi-tcp/files/digest-ucspi-tcp-0.88-r9
new file mode 100644 (file)
index 0000000..aee701c
--- /dev/null
@@ -0,0 +1,5 @@
+MD5 39b619147db54687c4a583a7a94c9163 ucspi-tcp-0.88.tar.gz 53019
+MD5 7a75eda8ccd766570392042f879a0812 ucspi-tcp-0.88-ipv6.diff13.bz2 21965
+MD5 554ec0eb60f619667efde3fb5325310d ucspi-rss.diff 1828
+MD5 10d5074c18d00e5c62c76ce69d7c975b ucspi-tcp-ssl-20020705.patch.gz 3084
+MD5 2dfc47b1a142e1021a49c678dfbb7a03 ucspi-tcp-0.88-ipv6-ssl-nm1.patch.bz2 3212
diff --git a/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild b/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild
new file mode 100644 (file)
index 0000000..919a07c
--- /dev/null
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild,v 1.1 2005/01/06 20:10:25 hansmi Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Collection of tools for managing UNIX services"
+HOMEPAGE="http://cr.yp.to/ucspi-tcp.html"
+SRC_URI="http://cr.yp.to/${PN}/${P}.tar.gz
+       ipv6? ( http://www.fefe.de/ucspi/ucspi-tcp-0.88-ipv6.diff13.bz2 )
+       mirror://qmail/ucspi-rss.diff
+       ssl? ( http://www.nrg4u.com/qmail/ucspi-tcp-ssl-20020705.patch.gz
+               http://www.netmonks.ca/gentoo/patches/ucspi-tcp-0.88-ipv6-ssl-nm1.patch.bz2 )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ~ppc-macos sparc s390 x86"
+IUSE="ssl ipv6 selinux"
+
+DEPEND="virtual/libc
+       ssl? ( >=dev-libs/openssl-0.9.6g )"
+RDEPEND="${DEPEND}
+       selinux? ( sec-policy/selinux-ucspi-tcp )"
+PROVIDE="virtual/inetd"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       if use ipv6; then
+               epatch ${WORKDIR}/ucspi-tcp-0.88-ipv6.diff13
+       fi
+       if use ssl; then
+               # this is a merged thingy. Thanks to Stephen Olesen <slepp.netmonks.ca>
+               # (bug #32007)
+               if use ipv6 ; then
+                       epatch ${WORKDIR}/ucspi-tcp-0.88-ipv6-ssl-nm1.patch
+               else
+                       epatch ${WORKDIR}/ucspi-tcp-ssl-20020705.patch
+               fi
+       fi
+       epatch ${FILESDIR}/${PV}-errno.patch
+       epatch ${DISTDIR}/ucspi-rss.diff
+       epatch ${FILESDIR}/${PV}-head-1.patch
+       # Fixes bug 18892
+       epatch ${FILESDIR}/${PV}-bigendian.patch
+
+       echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+       echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+       echo "/usr/" > conf-home
+
+       # allow larger responses
+       sed -i 's|if (text.len > 200) text.len = 200;|if (text.len > 500) text.len = 500;|g' ${S}/rblsmtpd.c
+}
+
+src_compile() {
+       emake || die
+}
+
+src_install() {
+       dobin tcpserver tcprules tcprulescheck argv0 recordio tcpclient *\@ tcpcat mconnect mconnect-io addcr delcr fixcrio rblsmtpd || die
+       doman *.[15]
+       dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION
+       insinto /etc/tcprules.d/
+       newins ${FILESDIR}/tcprules-Makefile Makefile
+}
+
+pkg_postinst() {
+       einfo "We have started a move to get all tcprules files into"
+       einfo "/etc/tcprules.d/, where we have provided a Makefile to"
+       einfo "easily update the CDB file."
+}