1 |
naota 11/09/05 14:53:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-usbin-8.2-r2.ebuild |
5 |
Log: |
6 |
Add patch to fix bzip2/gzip path. Bug #359223. Patch from Dmitri Bogomolov |
7 |
|
8 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.69 sys-freebsd/freebsd-usbin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog?rev=1.69&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog?rev=1.69&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog?r1=1.68&r2=1.69 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v |
20 |
retrieving revision 1.68 |
21 |
retrieving revision 1.69 |
22 |
diff -u -r1.68 -r1.69 |
23 |
--- ChangeLog 30 Aug 2011 02:12:19 -0000 1.68 |
24 |
+++ ChangeLog 5 Sep 2011 14:53:54 -0000 1.69 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-freebsd/freebsd-usbin |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.68 2011/08/30 02:12:19 naota Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.69 2011/09/05 14:53:54 naota Exp $ |
30 |
+ |
31 |
+*freebsd-usbin-8.2-r2 (05 Sep 2011) |
32 |
+ |
33 |
+ 05 Sep 2011; Naohiro Aota <naota@g.o> +freebsd-usbin-8.2-r2.ebuild, |
34 |
+ +files/freebsd-usbin-8.2-newsyslog.patch: |
35 |
+ Add patch to fix bzip2/gzip path. Bug #359223. Patch from Dmitri Bogomolov |
36 |
|
37 |
30 Aug 2011; Naohiro Aota <naota@g.o> freebsd-usbin-8.2-r1.ebuild: |
38 |
Add -fno-strict-aliasing |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: freebsd-usbin-8.2-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-8.2-r2.ebuild,v 1.1 2011/09/05 14:53:54 naota Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
|
55 |
inherit bsdmk freebsd flag-o-matic eutils |
56 |
|
57 |
DESCRIPTION="FreeBSD /usr/sbin tools" |
58 |
SLOT="0" |
59 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
60 |
|
61 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
62 |
mirror://gentoo/${CONTRIB}.tar.bz2 |
63 |
mirror://gentoo/${UBIN}.tar.bz2 |
64 |
mirror://gentoo/${LIB}.tar.bz2 |
65 |
mirror://gentoo/${SBIN}.tar.bz2 |
66 |
mirror://gentoo/${ETC}.tar.bz2 |
67 |
mirror://gentoo/${GNU}.tar.bz2 |
68 |
nis? ( mirror://gentoo/${LIBEXEC}.tar.bz2 ) |
69 |
build? ( mirror://gentoo/${SYS}.tar.bz2 |
70 |
mirror://gentoo/${INCLUDE}.tar.bz2 )" |
71 |
|
72 |
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?] |
73 |
=sys-freebsd/freebsd-libexec-${RV}* |
74 |
acpi? ( sys-power/iasl ) |
75 |
build? ( sys-apps/baselayout ) |
76 |
ssl? ( dev-libs/openssl ) |
77 |
tcpd? ( sys-apps/tcp-wrappers ) |
78 |
dev-libs/libelf |
79 |
dev-libs/libedit |
80 |
net-libs/libpcap" |
81 |
DEPEND="${RDEPEND} |
82 |
=sys-freebsd/freebsd-mk-defs-${RV}* |
83 |
=sys-freebsd/freebsd-ubin-${RV}* |
84 |
!build? ( =sys-freebsd/freebsd-sources-${RV}* ) |
85 |
sys-apps/texinfo |
86 |
sys-devel/flex" |
87 |
|
88 |
S="${WORKDIR}/usr.sbin" |
89 |
|
90 |
IUSE="acpi atm audit bluetooth floppy ipv6 isdn minimal netware nis pam ssl tcpd usb build" |
91 |
|
92 |
pkg_setup() { |
93 |
# Release crunch is something like minimal. It seems to remove everything |
94 |
# which is not needed to work. |
95 |
use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= " |
96 |
|
97 |
use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= " |
98 |
use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= " |
99 |
use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= " |
100 |
use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= " |
101 |
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= " |
102 |
use isdn || mymakeopts="${mymakeopts} WITHOUT_I4B= " |
103 |
use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= " |
104 |
use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " |
105 |
use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= " |
106 |
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= " |
107 |
use usb || mymakeopts="${mymakeopts} WITHOUT_USB= " |
108 |
use floppy || mymakeopts="${mymakeopts} WITHOUT_FLOPPY= " |
109 |
use tcpd || mymakeopts="${mymakeopts} NO_WRAP=" |
110 |
|
111 |
mymakeopts="${mymakeopts} WITHOUT_BIND_NAMED= WITHOUT_BIND_DNSSEC= WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= " |
112 |
|
113 |
append-flags $(test-flags -fno-strict-aliasing) |
114 |
} |
115 |
|
116 |
PATCHES=( "${FILESDIR}/${PN}-7.0-nowrap.patch" |
117 |
"${FILESDIR}/${PN}-adduser.patch" |
118 |
"${FILESDIR}/mountd.patch" |
119 |
"${FILESDIR}/${PN}-8.2-newsyslog.patch" ) |
120 |
|
121 |
REMOVE_SUBDIRS=" |
122 |
named named-checkzone named-checkconf rndc rndc-confgen |
123 |
dnssec-keygen dnssec-signzone |
124 |
tcpdchk tcpdmatch |
125 |
sendmail praliases editmap mailstats makemap |
126 |
sysinstall cron mailwrapper ntp bsnmpd |
127 |
tcpdump ndp inetd |
128 |
wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase |
129 |
zic amd |
130 |
pkg_install freebsd-update" |
131 |
|
132 |
src_prepare() { |
133 |
if ! use build; then |
134 |
ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" |
135 |
ln -s "/usr/include" "${WORKDIR}/include" |
136 |
else |
137 |
dummy_mk mount_smbfs |
138 |
fi |
139 |
# Don't install mtree format manpage |
140 |
# it's installed by libarchive. |
141 |
sed -e "s: mtree.5::g" -i "${S}"/mtree/Makefile |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
# By creating these directories we avoid having to do a |
146 |
# more complex hack |
147 |
dodir /usr/share/doc |
148 |
dodir /sbin |
149 |
dodir /usr/libexec |
150 |
dodir /usr/bin |
151 |
|
152 |
# FILESDIR is used by some makefiles which will install files |
153 |
# in the wrong place, just put it in the doc directory. |
154 |
mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed" |
155 |
|
156 |
# Most of these now come from openrc. |
157 |
for util in nfs rpc.statd rpc.lockd; do |
158 |
newinitd "${FILESDIR}/"${util}.initd ${util} || die |
159 |
if [[ -e "${FILESDIR}"/${util}.confd ]]; then \ |
160 |
newconfd "${FILESDIR}"/${util}.confd ${util} || die |
161 |
fi |
162 |
done |
163 |
|
164 |
for class in daily monthly weekly; do |
165 |
cat - > "${T}/periodic.${class}" <<EOS |
166 |
#!/bin/sh |
167 |
/usr/sbin/periodic ${class} |
168 |
EOS |
169 |
exeinto /etc/cron.${class} |
170 |
newexe "${T}/periodic.${class}" periodic |
171 |
done |
172 |
|
173 |
# Install the pw.conf file to let pw use Gentoo's skel location |
174 |
insinto /etc |
175 |
doins "${FILESDIR}/pw.conf" || die |
176 |
|
177 |
cd "${WORKDIR}/etc" |
178 |
doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die |
179 |
|
180 |
insinto /etc/ppp |
181 |
doins ppp/ppp.conf || die |
182 |
|
183 |
if use isdn; then |
184 |
insinto /etc/isdn |
185 |
doins isdn/* || die |
186 |
rm -f "${D}"/etc/isdn/Makefile |
187 |
fi |
188 |
|
189 |
if use bluetooth; then |
190 |
insinto /etc/bluetooth |
191 |
doins bluetooth/* || die |
192 |
rm -f "${D}"/etc/bluetooth/Makefile |
193 |
fi |
194 |
|
195 |
# Install the periodic stuff (needs probably to be ported in a more |
196 |
# gentooish way) |
197 |
cd "${WORKDIR}/etc/periodic" |
198 |
|
199 |
doperiodic daily daily/*.accounting |
200 |
doperiodic monthly monthly/*.accounting |
201 |
} |
202 |
|
203 |
pkg_postinst() { |
204 |
# We need to run pwd_mkdb if key files are not present |
205 |
# If they are, then there is no need to run pwd_mkdb |
206 |
if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then |
207 |
if [[ -e "${ROOT}etc/master.passwd" ]] ; then |
208 |
einfo "Generating passwd files from ${ROOT}etc/master.passwd" |
209 |
"${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd" |
210 |
else |
211 |
eerror "${ROOT}etc/master.passwd does not exist!" |
212 |
eerror "You will no be able to log into your system!" |
213 |
fi |
214 |
fi |
215 |
|
216 |
for logfile in messages security auth.log maillog lpd-errs xferlog cron \ |
217 |
debug.log slip.log ppp.log; do |
218 |
[[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}" |
219 |
done |
220 |
} |