1 |
naota 11/08/29 12:04:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-usbin-8.2-r1.ebuild |
5 |
freebsd-usbin-7.2-r1.ebuild |
6 |
freebsd-usbin-8.0-r1.ebuild |
7 |
Removed: freebsd-usbin-8.0.ebuild freebsd-usbin-8.2.ebuild |
8 |
freebsd-usbin-7.2.ebuild |
9 |
Log: |
10 |
Remove deprecated start-stop-daemon argument --oknodo, bug #377765 |
11 |
|
12 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
13 |
|
14 |
Revision Changes Path |
15 |
1.67 sys-freebsd/freebsd-usbin/ChangeLog |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog?rev=1.67&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog?rev=1.67&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog?r1=1.66&r2=1.67 |
20 |
|
21 |
Index: ChangeLog |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v |
24 |
retrieving revision 1.66 |
25 |
retrieving revision 1.67 |
26 |
diff -u -r1.66 -r1.67 |
27 |
--- ChangeLog 6 Jul 2011 06:09:51 -0000 1.66 |
28 |
+++ ChangeLog 29 Aug 2011 12:04:41 -0000 1.67 |
29 |
@@ -1,6 +1,16 @@ |
30 |
# ChangeLog for sys-freebsd/freebsd-usbin |
31 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.66 2011/07/06 06:09:51 aballier Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.67 2011/08/29 12:04:41 naota Exp $ |
34 |
+ |
35 |
+*freebsd-usbin-8.2-r1 (29 Aug 2011) |
36 |
+*freebsd-usbin-8.0-r1 (29 Aug 2011) |
37 |
+*freebsd-usbin-7.2-r1 (29 Aug 2011) |
38 |
+ |
39 |
+ 29 Aug 2011; Naohiro Aota <naota@g.o> -freebsd-usbin-7.2.ebuild, |
40 |
+ +freebsd-usbin-7.2-r1.ebuild, -freebsd-usbin-8.0.ebuild, |
41 |
+ +freebsd-usbin-8.0-r1.ebuild, -freebsd-usbin-8.2.ebuild, |
42 |
+ +freebsd-usbin-8.2-r1.ebuild, files/nfs.initd: |
43 |
+ Remove deprecated start-stop-daemon argument --oknodo, bug #377765 |
44 |
|
45 |
*freebsd-usbin-8.2 (06 Jul 2011) |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
1.1 sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r1.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r1.ebuild?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r1.ebuild?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: freebsd-usbin-8.2-r1.ebuild |
56 |
=================================================================== |
57 |
# Copyright 1999-2011 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r1.ebuild,v 1.1 2011/08/29 12:04:41 naota Exp $ |
60 |
|
61 |
EAPI=2 |
62 |
|
63 |
inherit bsdmk freebsd flag-o-matic eutils |
64 |
|
65 |
DESCRIPTION="FreeBSD /usr/sbin tools" |
66 |
SLOT="0" |
67 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
68 |
|
69 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
70 |
mirror://gentoo/${CONTRIB}.tar.bz2 |
71 |
mirror://gentoo/${UBIN}.tar.bz2 |
72 |
mirror://gentoo/${LIB}.tar.bz2 |
73 |
mirror://gentoo/${SBIN}.tar.bz2 |
74 |
mirror://gentoo/${ETC}.tar.bz2 |
75 |
mirror://gentoo/${GNU}.tar.bz2 |
76 |
nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 ) |
77 |
build? ( mirror://gentoo/${SYS}.tar.bz2 |
78 |
mirror://gentoo/${INCLUDE}.tar.bz2 )" |
79 |
|
80 |
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?] |
81 |
=sys-freebsd/freebsd-libexec-${RV}* |
82 |
acpi? ( sys-power/iasl ) |
83 |
build? ( sys-apps/baselayout ) |
84 |
ssl? ( dev-libs/openssl ) |
85 |
tcpd? ( sys-apps/tcp-wrappers ) |
86 |
dev-libs/libelf |
87 |
dev-libs/libedit |
88 |
net-libs/libpcap" |
89 |
DEPEND="${RDEPEND} |
90 |
=sys-freebsd/freebsd-mk-defs-${RV}* |
91 |
=sys-freebsd/freebsd-ubin-${RV}* |
92 |
!build? ( =sys-freebsd/freebsd-sources-${RV}* ) |
93 |
sys-apps/texinfo |
94 |
sys-devel/flex" |
95 |
|
96 |
S="${WORKDIR}/usr.sbin" |
97 |
|
98 |
IUSE="acpi atm audit bluetooth floppy ipv6 isdn minimal netware nis pam ssl tcpd usb build" |
99 |
|
100 |
pkg_setup() { |
101 |
# Release crunch is something like minimal. It seems to remove everything |
102 |
# which is not needed to work. |
103 |
use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= " |
104 |
|
105 |
use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= " |
106 |
use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= " |
107 |
use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= " |
108 |
use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= " |
109 |
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= " |
110 |
use isdn || mymakeopts="${mymakeopts} WITHOUT_I4B= " |
111 |
use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= " |
112 |
use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " |
113 |
use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= " |
114 |
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= " |
115 |
use usb || mymakeopts="${mymakeopts} WITHOUT_USB= " |
116 |
use floppy || mymakeopts="${mymakeopts} WITHOUT_FLOPPY= " |
117 |
use tcpd || mymakeopts="${mymakeopts} NO_WRAP=" |
118 |
|
119 |
mymakeopts="${mymakeopts} WITHOUT_BIND_NAMED= WITHOUT_BIND_DNSSEC= WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= " |
120 |
} |
121 |
|
122 |
PATCHES=( "${FILESDIR}/${PN}-7.0-nowrap.patch" |
123 |
"${FILESDIR}/${PN}-adduser.patch" |
124 |
"${FILESDIR}/mountd.patch" ) |
125 |
|
126 |
REMOVE_SUBDIRS=" |
127 |
named named-checkzone named-checkconf rndc rndc-confgen |
128 |
dnssec-keygen dnssec-signzone |
129 |
tcpdchk tcpdmatch |
130 |
sendmail praliases editmap mailstats makemap |
131 |
sysinstall cron mailwrapper ntp bsnmpd |
132 |
tcpdump ndp inetd |
133 |
wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase |
134 |
zic amd |
135 |
pkg_install freebsd-update" |
136 |
|
137 |
src_prepare() { |
138 |
if ! use build; then |
139 |
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" |
140 |
ln -s "/usr/include" "${WORKDIR}/include" |
141 |
else |
142 |
dummy_mk mount_smbfs |
143 |
fi |
144 |
# Don't install mtree format manpage |
145 |
# it's installed by libarchive. |
146 |
sed -e "s: mtree.5::g" -i "${S}"/mtree/Makefile |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
# By creating these directories we avoid having to do a |
151 |
# more complex hack |
152 |
dodir /usr/share/doc |
153 |
dodir /sbin |
154 |
dodir /usr/libexec |
155 |
dodir /usr/bin |
156 |
|
157 |
# FILESDIR is used by some makefiles which will install files |
158 |
# in the wrong place, just put it in the doc directory. |
159 |
mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed" |
160 |
|
161 |
# Most of these now come from openrc. |
162 |
for util in nfs rpc.statd rpc.lockd; do |
163 |
newinitd "${FILESDIR}/"${util}.initd ${util} || die |
164 |
if [[ -e "${FILESDIR}"/${util}.confd ]]; then \ |
165 |
newconfd "${FILESDIR}"/${util}.confd ${util} || die |
166 |
fi |
167 |
done |
168 |
|
169 |
for class in daily monthly weekly; do |
170 |
cat - > "${T}/periodic.${class}" <<EOS |
171 |
#!/bin/sh |
172 |
/usr/sbin/periodic ${class} |
173 |
EOS |
174 |
exeinto /etc/cron.${class} |
175 |
newexe "${T}/periodic.${class}" periodic |
176 |
done |
177 |
|
178 |
# Install the pw.conf file to let pw use Gentoo's skel location |
179 |
insinto /etc |
180 |
doins "${FILESDIR}/pw.conf" || die |
181 |
|
182 |
cd "${WORKDIR}/etc" |
183 |
doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die |
184 |
|
185 |
insinto /etc/ppp |
186 |
doins ppp/ppp.conf || die |
187 |
|
188 |
if use isdn; then |
189 |
insinto /etc/isdn |
190 |
doins isdn/* || die |
191 |
rm -f "${D}"/etc/isdn/Makefile |
192 |
fi |
193 |
|
194 |
if use bluetooth; then |
195 |
insinto /etc/bluetooth |
196 |
doins bluetooth/* || die |
197 |
rm -f "${D}"/etc/bluetooth/Makefile |
198 |
fi |
199 |
|
200 |
# Install the periodic stuff (needs probably to be ported in a more |
201 |
# gentooish way) |
202 |
cd "${WORKDIR}/etc/periodic" |
203 |
|
204 |
doperiodic daily daily/*.accounting |
205 |
doperiodic monthly monthly/*.accounting |
206 |
} |
207 |
|
208 |
pkg_postinst() { |
209 |
# We need to run pwd_mkdb if key files are not present |
210 |
# If they are, then there is no need to run pwd_mkdb |
211 |
if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then |
212 |
if [[ -e "${ROOT}etc/master.passwd" ]] ; then |
213 |
einfo "Generating passwd files from ${ROOT}etc/master.passwd" |
214 |
"${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd" |
215 |
else |
216 |
eerror "${ROOT}etc/master.passwd does not exist!" |
217 |
eerror "You will no be able to log into your system!" |
218 |
fi |
219 |
fi |
220 |
|
221 |
for logfile in messages security auth.log maillog lpd-errs xferlog cron \ |
222 |
debug.log slip.log ppp.log; do |
223 |
[[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}" |
224 |
done |
225 |
} |
226 |
|
227 |
|
228 |
|
229 |
1.1 sys-freebsd/freebsd-usbin/freebsd-usbin-7.2-r1.ebuild |
230 |
|
231 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-7.2-r1.ebuild?rev=1.1&view=markup |
232 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-7.2-r1.ebuild?rev=1.1&content-type=text/plain |
233 |
|
234 |
Index: freebsd-usbin-7.2-r1.ebuild |
235 |
=================================================================== |
236 |
# Copyright 1999-2011 Gentoo Foundation |
237 |
# Distributed under the terms of the GNU General Public License v2 |
238 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-7.2-r1.ebuild,v 1.1 2011/08/29 12:04:41 naota Exp $ |
239 |
|
240 |
EAPI=2 |
241 |
|
242 |
inherit bsdmk freebsd flag-o-matic eutils |
243 |
|
244 |
DESCRIPTION="FreeBSD /usr/sbin tools" |
245 |
SLOT="0" |
246 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
247 |
|
248 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
249 |
mirror://gentoo/${CONTRIB}.tar.bz2 |
250 |
mirror://gentoo/${UBIN}.tar.bz2 |
251 |
mirror://gentoo/${LIB}.tar.bz2 |
252 |
mirror://gentoo/${SBIN}.tar.bz2 |
253 |
mirror://gentoo/${ETC}.tar.bz2 |
254 |
mirror://gentoo/${GNU}.tar.bz2 |
255 |
nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 ) |
256 |
build? ( mirror://gentoo/${SYS}.tar.bz2 |
257 |
mirror://gentoo/${INCLUDE}.tar.bz2 )" |
258 |
|
259 |
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?] |
260 |
=sys-freebsd/freebsd-libexec-${RV}* |
261 |
acpi? ( sys-power/iasl ) |
262 |
build? ( sys-apps/baselayout ) |
263 |
ssl? ( dev-libs/openssl ) |
264 |
tcpd? ( sys-apps/tcp-wrappers ) |
265 |
dev-libs/libedit |
266 |
net-libs/libpcap" |
267 |
DEPEND="${RDEPEND} |
268 |
=sys-freebsd/freebsd-mk-defs-${RV}* |
269 |
=sys-freebsd/freebsd-ubin-${RV}* |
270 |
!build? ( =sys-freebsd/freebsd-sources-${RV}* ) |
271 |
sys-apps/texinfo |
272 |
sys-devel/flex" |
273 |
|
274 |
S="${WORKDIR}/usr.sbin" |
275 |
|
276 |
IUSE="acpi atm audit bluetooth ipv6 isdn minimal netware nis pam ssl tcpd usb build" |
277 |
|
278 |
pkg_setup() { |
279 |
# Release crunch is something like minimal. It seems to remove everything |
280 |
# which is not needed to work. |
281 |
use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= " |
282 |
|
283 |
use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= " |
284 |
use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= " |
285 |
use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= " |
286 |
use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= " |
287 |
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= " |
288 |
use isdn || mymakeopts="${mymakeopts} WITHOUT_I4B= " |
289 |
use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= " |
290 |
use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " |
291 |
use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= " |
292 |
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= " |
293 |
use usb || mymakeopts="${mymakeopts} WITHOUT_USB= " |
294 |
use tcpd || mymakeopts="${mymakeopts} NO_WRAP= " |
295 |
|
296 |
mymakeopts="${mymakeopts} WITHOUT_BIND_NAMED= WITHOUT_BIND_DNSSEC= WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= " |
297 |
} |
298 |
|
299 |
PATCHES=( "${FILESDIR}/${PN}-7.0-nowrap.patch" |
300 |
"${FILESDIR}/${PN}-adduser.patch" ) |
301 |
|
302 |
REMOVE_SUBDIRS=" |
303 |
named named-checkzone named-checkconf rndc rndc-confgen |
304 |
dnssec-keygen dnssec-signzone |
305 |
tcpdchk tcpdmatch |
306 |
sendmail praliases editmap mailstats makemap |
307 |
sysinstall cron mailwrapper ntp bsnmpd |
308 |
tcpdump ndp inetd |
309 |
wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase |
310 |
zic amd |
311 |
pkg_install freebsd-update" |
312 |
|
313 |
src_prepare() { |
314 |
if ! use build; then |
315 |
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" |
316 |
ln -s "/usr/include" "${WORKDIR}/include" |
317 |
else |
318 |
dummy_mk mount_smbfs |
319 |
fi |
320 |
} |
321 |
|
322 |
src_compile() { |
323 |
strip-flags |
324 |
append-flags -I "${WORKDIR}/sys" |
325 |
|
326 |
NOFLAGSTRIP="yes" freebsd_src_compile |
327 |
} |
328 |
|
329 |
src_install() { |
330 |
# By creating these directories we avoid having to do a |
331 |
# more complex hack |
332 |
dodir /usr/share/doc |
333 |
dodir /sbin |
334 |
dodir /usr/libexec |
335 |
dodir /usr/bin |
336 |
|
337 |
# FILESDIR is used by some makefiles which will install files |
338 |
# in the wrong place, just put it in the doc directory. |
339 |
mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed" |
340 |
|
341 |
# Most of these now come from openrc. |
342 |
for util in nfs rpc.statd rpc.lockd; do |
343 |
newinitd "${FILESDIR}/"${util}.initd ${util} || die |
344 |
if [[ -e "${FILESDIR}"/${util}.confd ]]; then \ |
345 |
newconfd "${FILESDIR}"/${util}.confd ${util} || die |
346 |
fi |
347 |
done |
348 |
|
349 |
for class in daily monthly weekly; do |
350 |
cat - > "${T}/periodic.${class}" <<EOS |
351 |
#!/bin/sh |
352 |
/usr/sbin/periodic ${class} |
353 |
EOS |
354 |
exeinto /etc/cron.${class} |
355 |
newexe "${T}/periodic.${class}" periodic |
356 |
done |
357 |
|
358 |
# Install the pw.conf file to let pw use Gentoo's skel location |
359 |
insinto /etc |
360 |
doins "${FILESDIR}/pw.conf" || die |
361 |
|
362 |
cd "${WORKDIR}/etc" |
363 |
doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die |
364 |
use usb && doins usbd.conf |
365 |
|
366 |
insinto /etc/ppp |
367 |
doins ppp/ppp.conf || die |
368 |
|
369 |
if use isdn; then |
370 |
insinto /etc/isdn |
371 |
doins isdn/* || die |
372 |
rm -f "${D}"/etc/isdn/Makefile |
373 |
fi |
374 |
|
375 |
if use bluetooth; then |
376 |
insinto /etc/bluetooth |
377 |
doins bluetooth/* || die |
378 |
rm -f "${D}"/etc/bluetooth/Makefile |
379 |
fi |
380 |
|
381 |
# Install the periodic stuff (needs probably to be ported in a more |
382 |
# gentooish way) |
383 |
cd "${WORKDIR}/etc/periodic" |
384 |
|
385 |
doperiodic daily daily/*.accounting |
386 |
doperiodic monthly monthly/*.accounting |
387 |
} |
388 |
|
389 |
pkg_postinst() { |
390 |
# We need to run pwd_mkdb if key files are not present |
391 |
# If they are, then there is no need to run pwd_mkdb |
392 |
if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then |
393 |
if [[ -e "${ROOT}etc/master.passwd" ]] ; then |
394 |
einfo "Generating passwd files from ${ROOT}etc/master.passwd" |
395 |
"${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd" |
396 |
else |
397 |
eerror "${ROOT}etc/master.passwd does not exist!" |
398 |
eerror "You will no be able to log into your system!" |
399 |
fi |
400 |
fi |
401 |
|
402 |
for logfile in messages security auth.log maillog lpd-errs xferlog cron \ |
403 |
debug.log slip.log ppp.log; do |
404 |
[[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}" |
405 |
done |
406 |
} |
407 |
|
408 |
|
409 |
|
410 |
1.1 sys-freebsd/freebsd-usbin/freebsd-usbin-8.0-r1.ebuild |
411 |
|
412 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.0-r1.ebuild?rev=1.1&view=markup |
413 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.0-r1.ebuild?rev=1.1&content-type=text/plain |
414 |
|
415 |
Index: freebsd-usbin-8.0-r1.ebuild |
416 |
=================================================================== |
417 |
# Copyright 1999-2011 Gentoo Foundation |
418 |
# Distributed under the terms of the GNU General Public License v2 |
419 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.0-r1.ebuild,v 1.1 2011/08/29 12:04:41 naota Exp $ |
420 |
|
421 |
EAPI=2 |
422 |
|
423 |
inherit bsdmk freebsd flag-o-matic eutils |
424 |
|
425 |
DESCRIPTION="FreeBSD /usr/sbin tools" |
426 |
SLOT="0" |
427 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
428 |
|
429 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
430 |
mirror://gentoo/${CONTRIB}.tar.bz2 |
431 |
mirror://gentoo/${UBIN}.tar.bz2 |
432 |
mirror://gentoo/${LIB}.tar.bz2 |
433 |
mirror://gentoo/${SBIN}.tar.bz2 |
434 |
mirror://gentoo/${ETC}.tar.bz2 |
435 |
mirror://gentoo/${GNU}.tar.bz2 |
436 |
nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 ) |
437 |
build? ( mirror://gentoo/${SYS}.tar.bz2 |
438 |
mirror://gentoo/${INCLUDE}.tar.bz2 )" |
439 |
|
440 |
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?] |
441 |
=sys-freebsd/freebsd-libexec-${RV}* |
442 |
acpi? ( sys-power/iasl ) |
443 |
build? ( sys-apps/baselayout ) |
444 |
ssl? ( dev-libs/openssl ) |
445 |
tcpd? ( sys-apps/tcp-wrappers ) |
446 |
dev-libs/libelf |
447 |
dev-libs/libedit |
448 |
net-libs/libpcap" |
449 |
DEPEND="${RDEPEND} |
450 |
=sys-freebsd/freebsd-mk-defs-${RV}* |
451 |
=sys-freebsd/freebsd-ubin-${RV}* |
452 |
!build? ( =sys-freebsd/freebsd-sources-${RV}* ) |
453 |
sys-apps/texinfo |
454 |
sys-devel/flex" |
455 |
|
456 |
S="${WORKDIR}/usr.sbin" |
457 |
|
458 |
IUSE="acpi atm audit bluetooth floppy ipv6 isdn minimal netware nis pam ssl tcpd usb build" |
459 |
|
460 |
pkg_setup() { |
461 |
# Release crunch is something like minimal. It seems to remove everything |
462 |
# which is not needed to work. |
463 |
use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= " |
464 |
|
465 |
use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= " |
466 |
use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= " |
467 |
use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= " |
468 |
use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= " |
469 |
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= " |
470 |
use isdn || mymakeopts="${mymakeopts} WITHOUT_I4B= " |
471 |
use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= " |
472 |
use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " |
473 |
use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= " |
474 |
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= " |
475 |
use usb || mymakeopts="${mymakeopts} WITHOUT_USB= " |
476 |
use floppy || mymakeopts="${mymakeopts} WITHOUT_FLOPPY= " |
477 |
use tcpd || mymakeopts="${mymakeopts} NO_WRAP=" |
478 |
|
479 |
mymakeopts="${mymakeopts} WITHOUT_BIND_NAMED= WITHOUT_BIND_DNSSEC= WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= " |
480 |
} |
481 |
|
482 |
PATCHES=( "${FILESDIR}/${PN}-7.0-nowrap.patch" |
483 |
"${FILESDIR}/${PN}-adduser.patch" ) |
484 |
|
485 |
REMOVE_SUBDIRS=" |
486 |
named named-checkzone named-checkconf rndc rndc-confgen |
487 |
dnssec-keygen dnssec-signzone |
488 |
tcpdchk tcpdmatch |
489 |
sendmail praliases editmap mailstats makemap |
490 |
sysinstall cron mailwrapper ntp bsnmpd |
491 |
tcpdump ndp inetd |
492 |
wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase |
493 |
zic amd |
494 |
pkg_install freebsd-update" |
495 |
|
496 |
src_prepare() { |
497 |
if ! use build; then |
498 |
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" |
499 |
ln -s "/usr/include" "${WORKDIR}/include" |
500 |
else |
501 |
dummy_mk mount_smbfs |
502 |
fi |
503 |
# Don't install mtree format manpage |
504 |
# it's installed by libarchive. |
505 |
sed -e "s: mtree.5::g" -i "${S}"/mtree/Makefile |
506 |
} |
507 |
|
508 |
src_install() { |
509 |
# By creating these directories we avoid having to do a |
510 |
# more complex hack |
511 |
dodir /usr/share/doc |
512 |
dodir /sbin |
513 |
dodir /usr/libexec |
514 |
dodir /usr/bin |
515 |
|
516 |
# FILESDIR is used by some makefiles which will install files |
517 |
# in the wrong place, just put it in the doc directory. |
518 |
mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed" |
519 |
|
520 |
# Most of these now come from openrc. |
521 |
for util in nfs rpc.statd rpc.lockd; do |
522 |
newinitd "${FILESDIR}/"${util}.initd ${util} || die |
523 |
if [[ -e "${FILESDIR}"/${util}.confd ]]; then \ |
524 |
newconfd "${FILESDIR}"/${util}.confd ${util} || die |
525 |
fi |
526 |
done |
527 |
|
528 |
for class in daily monthly weekly; do |
529 |
cat - > "${T}/periodic.${class}" <<EOS |
530 |
#!/bin/sh |
531 |
/usr/sbin/periodic ${class} |
532 |
EOS |
533 |
exeinto /etc/cron.${class} |
534 |
newexe "${T}/periodic.${class}" periodic |
535 |
done |
536 |
|
537 |
# Install the pw.conf file to let pw use Gentoo's skel location |
538 |
insinto /etc |
539 |
doins "${FILESDIR}/pw.conf" || die |
540 |
|
541 |
cd "${WORKDIR}/etc" |
542 |
doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die |
543 |
|
544 |
insinto /etc/ppp |
545 |
doins ppp/ppp.conf || die |
546 |
|
547 |
if use isdn; then |
548 |
insinto /etc/isdn |
549 |
doins isdn/* || die |
550 |
rm -f "${D}"/etc/isdn/Makefile |
551 |
fi |
552 |
|
553 |
if use bluetooth; then |
554 |
insinto /etc/bluetooth |
555 |
doins bluetooth/* || die |
556 |
rm -f "${D}"/etc/bluetooth/Makefile |
557 |
fi |
558 |
|
559 |
# Install the periodic stuff (needs probably to be ported in a more |
560 |
# gentooish way) |
561 |
cd "${WORKDIR}/etc/periodic" |
562 |
|
563 |
doperiodic daily daily/*.accounting |
564 |
doperiodic monthly monthly/*.accounting |
565 |
} |
566 |
|
567 |
pkg_postinst() { |
568 |
# We need to run pwd_mkdb if key files are not present |
569 |
# If they are, then there is no need to run pwd_mkdb |
570 |
if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then |
571 |
if [[ -e "${ROOT}etc/master.passwd" ]] ; then |
572 |
einfo "Generating passwd files from ${ROOT}etc/master.passwd" |
573 |
"${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd" |
574 |
else |
575 |
eerror "${ROOT}etc/master.passwd does not exist!" |
576 |
eerror "You will no be able to log into your system!" |
577 |
fi |
578 |
fi |
579 |
|
580 |
for logfile in messages security auth.log maillog lpd-errs xferlog cron \ |
581 |
debug.log slip.log ppp.log; do |
582 |
[[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}" |
583 |
done |
584 |
} |