diff options
author | Michael Hanselmann <hansmi@gentoo.org> | 2005-01-06 20:10:25 +0000 |
---|---|---|
committer | Michael Hanselmann <hansmi@gentoo.org> | 2005-01-06 20:10:25 +0000 |
commit | d03866f2dea67b70290800ed6836024fb9d1e33b (patch) | |
tree | 520d8dca0ac3817d0ebe7170e8bf5b6425b5dc55 /sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild | |
parent | masking to test eclass (diff) | |
download | gentoo-2-d03866f2dea67b70290800ed6836024fb9d1e33b.tar.gz gentoo-2-d03866f2dea67b70290800ed6836024fb9d1e33b.tar.bz2 gentoo-2-d03866f2dea67b70290800ed6836024fb9d1e33b.zip |
Fixed bug 18892
Diffstat (limited to 'sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild')
-rw-r--r-- | sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
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 index 000000000000..919a07c0c9a2 --- /dev/null +++ b/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r9.ebuild @@ -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." +} |