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