/[gentoo-alt]/trunk/overlay/sys-freebsd/freebsd-usbin/freebsd-usbin-5.4-r2.ebuild
Gentoo

Contents of /trunk/overlay/sys-freebsd/freebsd-usbin/freebsd-usbin-5.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 867 - (show annotations) (download)
Tue Nov 1 17:38:49 2005 UTC (9 years, 1 month ago) by flameeyes
File size: 3375 byte(s)
Remove pf support, as freebsd-pf will provide it.
1 # Copyright 1999-2005 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit bsdmk freebsd flag-o-matic eutils
6
7 DESCRIPTION="FreeBSD /usr/sbin tools"
8 SLOT="0"
9 KEYWORDS="~x86-fbsd ~amd64-fbsd"
10
11 IUSE="atm bluetooth tcpd ssl usb ipv6 acpi lpr ipfilter isdn pam ssl radius
12 netgraph minimal suid ipsec nis pam suid nat radius"
13
14 SRC_URI="mirror://gentoo/${P}.tar.bz2
15 mirror://gentoo/${CONTRIB}.tar.bz2
16 mirror://gentoo/${UBIN}.tar.bz2
17 mirror://gentoo/${LIB}.tar.bz2
18 mirror://gentoo/${SBIN}.tar.bz2
19 nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 )"
20
21 RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
22 =sys-freebsd/freebsd-libexec-${RV}*
23 ssl? ( dev-libs/openssl )
24 tcpd? ( sys-apps/tcp-wrappers )
25 sys-apps/texinfo
26 net-libs/libpcap"
27 DEPEND="${RDEPEND}
28 =sys-freebsd/freebsd-mk-defs-${RV}*
29 =sys-freebsd/freebsd-sources-${RV}*
30 =sys-freebsd/freebsd-headers-${RV}*
31 sys-devel/flex"
32
33 # it provides lpr when is requested and syslogd which is a logger
34 PROVIDE="lpr? virtual/lpr
35 virtual/logger"
36
37 S="${WORKDIR}/usr.sbin"
38
39 pkg_setup() {
40 # Release crunch is something like minimal. It seems to remove everything
41 # which is not needed to work.
42 use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
43
44 use atm || mymakeopts="${mymakeopts} NOATM= "
45 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
46 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
47 use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
48 use lpr || mymakeopts="${mymakeopts} NO_LPR= "
49 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
50 use usb || mymakeopts="${mymakeopts} NO_USB= "
51 use acpi || mymakeopts="${mymakeopts} NO_ACPI= "
52 use isdn || mymakeopts="${mymakeopts} NO_I4B= "
53 use pam || mymakeopts="${mymakeopts} NOPAM= "
54 use radius || mymakeopts="${mymakeopts} NORADIUS= "
55 use suid || mymakeopts="${mymakeopts} NOSUID= "
56 use ipsec || mymakeopts="${mymakeopts} NOIPSEC= "
57 use nis || mymakeopts="${mymakeopts} NO_NIS= "
58 use nat || mymakeopts="${mymakeopts} NONAT= "
59 use pam || mymakeopts="${mymakeopts} NOPAM= "
60 use suid || mymakeopts="${mymakeopts} NOSUID= PPP_NOSUID= "
61 use radius || mymakeopts="${mymakeopts} NORADIUS= "
62 use tcpd || mymakeopts="${mymakeopts} NO_WRAP= "
63
64 mymakeopts="${mymakeopts} NO_MAILWRAPPER= NO_BIND= NO_SENDMAIL= NO_PF= NO_AUTHPF="
65
66 # kldxref does not build with -O2
67 replace-flags "-O?" "-O1"
68 }
69
70 PATCHES="${FILESDIR}/${PN}-fixmakefiles.patch
71 ${FILESDIR}/${PN}-flex.patch
72 ${FILESDIR}/${PN}-nowrap.patch
73 ${FILESDIR}/${PN}-5.3-r1-makefile-docpaths.patch"
74
75 REMOVE_SUBDIRS="
76 named named-checkzone named-checkconf rndc rndc-confgen
77 dnssec-keygen dnssec-signzone
78 tcpdchk tcpdmatch
79 sendmail praliases editmap mailstats makemap
80 sysinstall cron mailwrapper ntp bsnmpd mount_smbfs
81 tcpdump ndp traceroute pkg_install inetd"
82
83 src_install() {
84 # By creating these two directories we avoid having to do a
85 # more complex hack inside lpr/SMM.doc and nologin makefiles.
86 dodir /usr/share/doc
87 dodir /sbin
88 dodir /usr/libexec
89
90 # FILESDIR is used by some makefiles which will install files
91 # in the wrong place, just put it in the doc directory.
92 mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed"
93
94 for util in nfs nfsmount rpcbind syslogd moused; do
95 newinitd ${FILESDIR}/${util}.initd ${util}
96 [[ -e ${FILESDIR}/${util}.confd ]] && \
97 newconfd ${FILESDIR}/${util}.confd ${util}
98 done
99 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20