/[gentoo-x86]/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r17.ebuild
Gentoo

Contents of /sys-apps/ucspi-tcp/ucspi-tcp-0.88-r17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun May 13 11:18:54 2012 UTC (2 years, 2 months ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
SELinux policy module for ucspi-tcp is provided by selinux-ucspitcp

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/ucspi-tcp/ucspi-tcp-0.88-r17.ebuild,v 1.11 2011/07/11 15:21:35 aballier Exp $
4
5 inherit eutils fixheadtails flag-o-matic qmail
6
7 DESCRIPTION="Collection of tools for managing UNIX services"
8 HOMEPAGE="http://cr.yp.to/ucspi-tcp.html"
9 SRC_URI="
10 http://cr.yp.to/${PN}/${P}.tar.gz
11 mirror://qmail/ucspi-rss.diff
12 http://smarden.org/pape/djb/manpages/${P}-man.tar.gz
13 http://xs3.b92.net/tomislavr/${P}-rblspp.patch
14 "
15
16 LICENSE="public-domain"
17 SLOT="0"
18 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
19 IUSE="qmail-spp selinux"
20 RESTRICT="test"
21
22 DEPEND=""
23 RDEPEND="${DEPEND}
24 !app-doc/ucspi-tcp-man
25 selinux? ( sec-policy/selinux-ucspitcp )"
26
27 pkg_setup() {
28 if [[ -n "${UCSPI_TCP_PATCH_DIR}" ]]; then
29 eerror
30 eerror "The UCSPI_TCP_PATCH_DIR variable for custom patches"
31 eerror "has been removed from ${PN}. If you need custom patches"
32 eerror "you should create a copy of this ebuild in an overlay."
33 eerror
34 die "UCSPI_TCP_PATCH_DIR is not supported anymore"
35 fi
36 }
37
38 src_unpack() {
39 unpack ${A}
40 cd "${S}"
41
42 epatch "${FILESDIR}"/${PV}-errno.patch
43 epatch "${FILESDIR}"/${PV}-exit.patch
44 epatch "${DISTDIR}"/ucspi-rss.diff
45 epatch "${FILESDIR}"/${PV}-rblsmtpd-ignore-on-RELAYCLIENT.patch
46 epatch "${DISTDIR}"/${P}-rblspp.patch
47
48 ht_fix_file Makefile
49
50 # gcc-3.4.5 and other several versions contain a bug on some platforms that
51 # cause this error:
52 # tcpserver: fatal: temporarily unable to figure out IP address for 0.0.0.0: file does not exist
53 # To work around this, we use -O1 here instead.
54 replace-flags -O? -O1
55
56 qmail_set_cc
57 echo "/usr/" > conf-home
58
59 # allow larger responses
60 sed -i -e 's|if (text.len > 200) text.len = 200;|if (text.len > 500) text.len = 500;|g' \
61 rblsmtpd.c rblspp.c
62 }
63
64 src_compile() {
65 emake || die
66 }
67
68 src_install() {
69 dobin tcpserver tcprules tcprulescheck argv0 recordio tcpclient *\@ \
70 tcpcat mconnect mconnect-io addcr delcr fixcrio rblsmtpd || die
71
72 if use qmail-spp; then
73 insinto "${QMAIL_HOME}"/plugins
74 insopts -m 755
75 doins rblspp
76 fi
77
78 doman "${WORKDIR}"/${P}-man/*.[1-8]
79 dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION
80
81 insinto /etc/tcprules.d/
82 newins "${FILESDIR}"/tcprules-Makefile Makefile
83 }
84
85 pkg_postinst() {
86 einfo
87 einfo "We have started a move to get all tcprules files into"
88 einfo "/etc/tcprules.d/, where we have provided a Makefile to"
89 einfo "easily update the CDB file."
90 einfo
91 }

  ViewVC Help
Powered by ViewVC 1.1.20