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

Contents of /trunk/overlay/sys-freebsd/freebsd-usbin/freebsd-usbin-6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1022 - (show annotations) (download)
Mon Feb 13 14:34:31 2006 UTC (8 years, 5 months ago) by flameeyes
File size: 3875 byte(s)
Add periodic files.
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 mirror://gentoo/${ETC}.tar.bz2
20 nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 )"
21
22 RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
23 =sys-freebsd/freebsd-libexec-${RV}*
24 ssl? ( dev-libs/openssl )
25 tcpd? ( sys-apps/tcp-wrappers )
26 sys-apps/texinfo
27 net-libs/libpcap"
28 DEPEND="${RDEPEND}
29 =sys-freebsd/freebsd-mk-defs-${RV}*
30 =sys-freebsd/freebsd-sources-${RV}*
31 =sys-freebsd/freebsd-headers-${RV}*
32 sys-devel/flex"
33
34 # it provides lpr when is requested and syslogd which is a logger
35 PROVIDE="lpr? virtual/lpr
36 virtual/logger"
37
38 S="${WORKDIR}/usr.sbin"
39
40 pkg_setup() {
41 # Release crunch is something like minimal. It seems to remove everything
42 # which is not needed to work.
43 use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
44
45 use atm || mymakeopts="${mymakeopts} NOATM= "
46 use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= "
47 use ipv6 || mymakeopts="${mymakeopts} NOINET6= "
48 use ipfilter || mymakeopts="${mymakeopts} NO_IPFILTER= "
49 use lpr || mymakeopts="${mymakeopts} NO_LPR= "
50 use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NOCRYPT= "
51 use usb || mymakeopts="${mymakeopts} NO_USB= "
52 use acpi || mymakeopts="${mymakeopts} NO_ACPI= "
53 use isdn || mymakeopts="${mymakeopts} NO_I4B= "
54 use pam || mymakeopts="${mymakeopts} NOPAM= "
55 use radius || mymakeopts="${mymakeopts} NORADIUS= "
56 use suid || mymakeopts="${mymakeopts} NOSUID= "
57 use ipsec || mymakeopts="${mymakeopts} NOIPSEC= "
58 use nis || mymakeopts="${mymakeopts} NO_NIS= "
59 use nat || mymakeopts="${mymakeopts} NONAT= "
60 use pam || mymakeopts="${mymakeopts} NOPAM= "
61 use suid || mymakeopts="${mymakeopts} NOSUID= PPP_NOSUID= "
62 use radius || mymakeopts="${mymakeopts} NORADIUS= "
63 use tcpd || mymakeopts="${mymakeopts} NO_WRAP= "
64
65 mymakeopts="${mymakeopts} NO_MAILWRAPPER= NO_BIND= NO_SENDMAIL= NO_PF= NO_AUTHPF="
66
67 # kldxref does not build with -O2
68 replace-flags "-O?" "-O1"
69 }
70
71 PATCHES="${FILESDIR}/${PN}-${RV}-fixmakefiles.patch
72 ${FILESDIR}/${PN}-nowrap.patch"
73
74 REMOVE_SUBDIRS="
75 named named-checkzone named-checkconf rndc rndc-confgen
76 dnssec-keygen dnssec-signzone
77 tcpdchk tcpdmatch
78 sendmail praliases editmap mailstats makemap
79 sysinstall cron mailwrapper ntp bsnmpd mount_smbfs
80 tcpdump ndp traceroute pkg_install inetd
81 wpa/wpa_supplicant wpa/hostapd"
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
100 # Install the pw.conf file to let pw use Gentoo's skel location
101 insinto /etc
102 doins "${FILESDIR}/pw.conf"
103
104 cd "${WORKDIR}/etc"
105 doins amd.map apmd.conf syslog.conf newsyslog.conf
106
107 insinto /etc/ppp
108 doins ppp/ppp.conf
109
110 if use isdn; then
111 insinto /etc/isdn
112 doins isdn/*
113 rm -f ${D}/etc/isdn/Makefile
114 fi
115
116 # Install the periodic stuff (needs probably to be ported in a more
117 # gentooish way)
118 cd "${WORKDIR}/etc/periodic"
119
120 doperiodic daily daily/*.accounting
121 doperiodic monthly monthly/*.accounting
122 }

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20