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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 594 - (show annotations) (download)
Fri Jul 29 21:07:44 2005 UTC (9 years, 1 month ago) by flameeyes
File size: 3491 byte(s)
Adapt to recent bsdmk changes.

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20