Gentoo Archives: gentoo-commits

From: Yuta SATOH <nigoro.gentoo@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: sys-freebsd/freebsd-rescue/, sys-freebsd/freebsd-pf/, sys-freebsd/freebsd-ubin/, ...
Date: Sun, 31 Aug 2014 05:07:55
Message-Id: 1409452962.06be3ad6735cc2de50db6ad6ba810da429280551.yuta_satoh@gentoo
1 commit: 06be3ad6735cc2de50db6ad6ba810da429280551
2 Author: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
3 AuthorDate: Sun Aug 31 02:42:42 2014 +0000
4 Commit: Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com>
5 CommitDate: Sun Aug 31 02:42:42 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=06be3ad6
7
8 added -10.9999_p270665.ebuild, 10.1-PRERELEASE (copy from 10.0.0.9999.ebuild)
9
10 ---
11 sys-freebsd/boot0/Manifest | 1 +
12 sys-freebsd/boot0/boot0-10.9999_p270665.ebuild | 77 +++
13 sys-freebsd/freebsd-bin/Manifest | 1 +
14 .../freebsd-bin/freebsd-bin-10.9999_p270665.ebuild | 39 ++
15 sys-freebsd/freebsd-cddl/Manifest | 1 +
16 .../freebsd-cddl-10.9999_p270665.ebuild | 64 +++
17 sys-freebsd/freebsd-lib/Manifest | 1 +
18 .../freebsd-lib/freebsd-lib-10.9999_p270665.ebuild | 633 +++++++++++++++++++++
19 sys-freebsd/freebsd-libexec/Manifest | 1 +
20 .../freebsd-libexec-10.9999_p270665.ebuild | 88 +++
21 sys-freebsd/freebsd-mk-defs/Manifest | 1 +
22 .../freebsd-mk-defs-10.9999_p270665.ebuild | 41 ++
23 sys-freebsd/freebsd-pam-modules/Manifest | 1 +
24 .../freebsd-pam-modules-10.9999_p270665.ebuild | 47 ++
25 sys-freebsd/freebsd-pf/Manifest | 1 +
26 .../freebsd-pf/freebsd-pf-10.9999_p270665.ebuild | 70 +++
27 sys-freebsd/freebsd-rescue/Manifest | 1 +
28 .../freebsd-rescue-10.9999_p270665.ebuild | 76 +++
29 sys-freebsd/freebsd-sbin/Manifest | 1 +
30 .../freebsd-sbin-10.9999_p270665.ebuild | 96 ++++
31 sys-freebsd/freebsd-share/Manifest | 1 +
32 .../freebsd-share-10.9999_p270665.ebuild | 104 ++++
33 sys-freebsd/freebsd-sources/Manifest | 1 +
34 .../freebsd-sources-10.9999_p270665.ebuild | 131 +++++
35 sys-freebsd/freebsd-ubin/Manifest | 1 +
36 .../freebsd-ubin-10.9999_p270665.ebuild | 196 +++++++
37 sys-freebsd/freebsd-usbin/Manifest | 1 +
38 .../freebsd-usbin-10.9999_p270665.ebuild | 176 ++++++
39 28 files changed, 1852 insertions(+)
40
41 diff --git a/sys-freebsd/boot0/Manifest b/sys-freebsd/boot0/Manifest
42 index 89e00f9..f66e010 100644
43 --- a/sys-freebsd/boot0/Manifest
44 +++ b/sys-freebsd/boot0/Manifest
45 @@ -2,4 +2,5 @@ AUX boot0-9.2-gcc46.patch 2119 SHA256 745245270e8ac2e8a1084f1785bb31ce7a5d2c7242
46 AUX boot0-9.3-gcc46.patch 2180 SHA256 a664f792660fe1dc25b6e54a973ad6d8ac6c19ef309954f5bb7973b52832cc82 SHA512 a0633fe171c668b976277d26c3406d75ec5892cd6fe28845ea9faca03659689ad87fee6eeac5968b00026733e854bb0d2216e6f3987cf1ed9bcedb3bc2b210b6 WHIRLPOOL 2d5ba9602c93ab02aef29838478b578603b39e7d26dbf688e3fccd1cdd7e5fec3aec729db81b4548b69841ab330e8898eb445ee09d06ccd8500fb0f7387c3fc8
47 AUX boot0-add-nossp-cflags.patch 341 SHA256 ed801285f9e9846c7fc4f334a2dfceec2d023be9b22e53aa3713d648cac899be SHA512 980a6b8f247f0d51724f409627c81e5e089e4b2a7b11732bc3cf569f87a5c308e7c2e5985ce3ba32c61c489a5a1e16596bde43ef3c260b0730ec67e50f42e9bb WHIRLPOOL 06ae4058fd8c39abe215e417fdffd1c13fdc641891fcb8f8a37af3ac31e781da666c3cd9cf2b800174439ebcc2ecb5b6efb9e9e5880a216878fb4ced7ffd9bfe
48 EBUILD boot0-10.0.0.9999.ebuild 1816 SHA256 687ff6d157bfed3c8cacb5ef8651cb1a10bec0596821a6f91efc34e31cc5be42 SHA512 6fe2922b9366b841e7f3645ca71b8c0597c35e73c56af51971fb6a2a95724048cccb7e2fbe8b1aef1b4962c60a0b7135e983289b7b47fd86545ed4100b5df3f0 WHIRLPOOL 9708d1b5564ff343c1b684a24883ccdc77106b076bcd393961691cdfe34596e4b3e8e8e688740b5f9ebe82ef7dc6a9eb7bf07d632db14decda323336ad5a1552
49 +EBUILD boot0-10.9999_p270665.ebuild 1816 SHA256 687ff6d157bfed3c8cacb5ef8651cb1a10bec0596821a6f91efc34e31cc5be42 SHA512 6fe2922b9366b841e7f3645ca71b8c0597c35e73c56af51971fb6a2a95724048cccb7e2fbe8b1aef1b4962c60a0b7135e983289b7b47fd86545ed4100b5df3f0 WHIRLPOOL 9708d1b5564ff343c1b684a24883ccdc77106b076bcd393961691cdfe34596e4b3e8e8e688740b5f9ebe82ef7dc6a9eb7bf07d632db14decda323336ad5a1552
50 EBUILD boot0-9.3.0.9999.ebuild 1731 SHA256 23526e967e810ef69b61c89d2b76e289ff3d564483c2c9c3be0574b7ef5b9489 SHA512 270c12effc457a49fc5701f914c4610f6846e0733c387473cdc2ed2f94a577147b8430dd75c1cb52ca8625f3d32aa2fe58c9fc9420c6e42d9c7a3a9240ca9284 WHIRLPOOL eaada15a89eb1d5ab81cfdf8794e7321a94b845db1cbb3d4bfb9b72c1ccbdf72e177f7a55bf2061161f93ed77da5bc118fa5cd0e71faed08a11c04cadc3bd043
51
52 diff --git a/sys-freebsd/boot0/boot0-10.9999_p270665.ebuild b/sys-freebsd/boot0/boot0-10.9999_p270665.ebuild
53 new file mode 100644
54 index 0000000..194e5e1
55 --- /dev/null
56 +++ b/sys-freebsd/boot0/boot0-10.9999_p270665.ebuild
57 @@ -0,0 +1,77 @@
58 +# Copyright 1999-2014 Gentoo Foundation
59 +# Distributed under the terms of the GNU General Public License v2
60 +# $Header: $
61 +
62 +EAPI=3
63 +
64 +inherit bsdmk freebsd flag-o-matic toolchain-funcs
65 +
66 +DESCRIPTION="FreeBSD's bootloader"
67 +SLOT="0"
68 +
69 +IUSE="bzip2 ieee1394 tftp zfs"
70 +
71 +if [[ ${PV} != *9999* ]]; then
72 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
73 + SRC_URI="mirror://gentoo/${SYS}.tar.xz
74 + mirror://gentoo/${LIB}.tar.xz
75 + mirror://gentoo/${CONTRIB}.tar.xz"
76 +fi
77 +
78 +RDEPEND=""
79 +DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
80 + =sys-freebsd/freebsd-lib-${RV}*"
81 +
82 +S="${WORKDIR}/sys/boot"
83 +
84 +PATCHES=( "${FILESDIR}/${PN}-9.2-gcc46.patch"
85 + "${FILESDIR}/${PN}-add-nossp-cflags.patch" )
86 +
87 +boot0_use_enable() {
88 + use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\""
89 +}
90 +
91 +pkg_setup() {
92 + boot0_use_enable ieee1394 FIREWIRE
93 + boot0_use_enable zfs ZFS
94 + boot0_use_enable tftp TFTP
95 + boot0_use_enable bzip2 BZIP2
96 +}
97 +
98 +src_prepare() {
99 + sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
100 + -i "${S}"/i386/boot2/Makefile \
101 + -i "${S}"/i386/gptboot/Makefile \
102 + -i "${S}"/i386/gptzfsboot/Makefile \
103 + -i "${S}"/i386/zfsboot/Makefile || die
104 +}
105 +
106 +src_compile() {
107 + strip-flags
108 + append-flags "-fno-strict-aliasing"
109 +
110 + if use amd64-fbsd; then
111 + cd "${S}/userboot/libstand" || die
112 + freebsd_src_compile
113 + fi
114 + cd "${WORKDIR}/lib/libstand" || die
115 + freebsd_src_compile
116 +
117 + cd "${S}"
118 + CFLAGS="${CFLAGS} -I${WORKDIR}/lib/libstand"
119 + LDFLAGS="${LDFLAGS} -L${WORKDIR}/lib/libstand"
120 + export LIBSTAND="${WORKDIR}/lib/libstand/libstand.a"
121 + NOFLAGSTRIP="yes" freebsd_src_compile
122 +}
123 +
124 +src_install() {
125 + dodir /boot/defaults
126 + mkinstall FILESDIR=/boot || die "mkinstall failed"
127 +
128 + cd "${WORKDIR}/sys/$(tc-arch-kernel)/conf" || die
129 + insinto /boot
130 + newins GENERIC.hints device.hints
131 +
132 + echo 'CONFIG_PROTECT="/boot/device.hints"' > "${T}"/50boot0
133 + doenvd "${T}"/50boot0
134 +}
135
136 diff --git a/sys-freebsd/freebsd-bin/Manifest b/sys-freebsd/freebsd-bin/Manifest
137 index 12232c5..5aae79f 100644
138 --- a/sys-freebsd/freebsd-bin/Manifest
139 +++ b/sys-freebsd/freebsd-bin/Manifest
140 @@ -1,2 +1,3 @@
141 EBUILD freebsd-bin-10.0.0.9999.ebuild 899 SHA256 50597db60e48c9c12b3bbc5b27af2b5b50c5e02fc810ddecf341b99f9d867934 SHA512 ba96121a11bf381525a1eacfc55bc3aaf867c79d4666fa050a4f3143e7a5a82eb0916dbe62d5dc29b146adc336b0b44101144bd1784179f8f3d204f18687f4ab WHIRLPOOL acd5685ba8fedaca0b8abfdae789d33bb11d32c1cba46c34f8b049b3b5b7207d1ef0c8b0f8ba9c55233159426cef7a43ce5abf72f328bd8241fff17d02cd1d79
142 +EBUILD freebsd-bin-10.9999_p270665.ebuild 899 SHA256 50597db60e48c9c12b3bbc5b27af2b5b50c5e02fc810ddecf341b99f9d867934 SHA512 ba96121a11bf381525a1eacfc55bc3aaf867c79d4666fa050a4f3143e7a5a82eb0916dbe62d5dc29b146adc336b0b44101144bd1784179f8f3d204f18687f4ab WHIRLPOOL acd5685ba8fedaca0b8abfdae789d33bb11d32c1cba46c34f8b049b3b5b7207d1ef0c8b0f8ba9c55233159426cef7a43ce5abf72f328bd8241fff17d02cd1d79
143 EBUILD freebsd-bin-9.3.0.9999.ebuild 887 SHA256 0ba352302f3294bacc36502ccd6b1ffa4a4e9a7e4cc8c68809e547fa8439e26d SHA512 d509ef885fe84f14988a7fec10334da997efce4659a4c6aaaf9ce0157691d84581ce1fc873a61a14630762018f9abc1b22b6e461603abb1ce2394fad8a9da12e WHIRLPOOL d5f3428241b49752b2d967adb75881f90b860501432c1504b303a94d82dce69409102b2c9f2b720c705cbb4655f8db4436c6c713ec5de61f36059d6743ab8dd4
144
145 diff --git a/sys-freebsd/freebsd-bin/freebsd-bin-10.9999_p270665.ebuild b/sys-freebsd/freebsd-bin/freebsd-bin-10.9999_p270665.ebuild
146 new file mode 100644
147 index 0000000..abefd05
148 --- /dev/null
149 +++ b/sys-freebsd/freebsd-bin/freebsd-bin-10.9999_p270665.ebuild
150 @@ -0,0 +1,39 @@
151 +# Copyright 1999-2014 Gentoo Foundation
152 +# Distributed under the terms of the GNU General Public License v2
153 +# $Header: $
154 +
155 +EAPI=3
156 +
157 +inherit bsdmk freebsd
158 +
159 +DESCRIPTION="FreeBSD /bin tools"
160 +SLOT="0"
161 +
162 +IUSE=""
163 +
164 +if [[ ${PV} != *9999* ]]; then
165 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
166 + SRC_URI="mirror://gentoo/${BIN}.tar.xz
167 + mirror://gentoo/${UBIN}.tar.xz
168 + mirror://gentoo/${SBIN}.tar.xz
169 + mirror://gentoo/${LIB}.tar.xz"
170 +fi
171 +
172 +RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
173 + >=dev-libs/libedit-20120311.3.0-r1
174 + sys-libs/ncurses
175 + sys-apps/ed
176 + !app-misc/realpath
177 + !<sys-freebsd/freebsd-ubin-8"
178 +DEPEND="${RDEPEND}
179 + =sys-freebsd/freebsd-mk-defs-${RV}*
180 + >=sys-devel/flex-2.5.31-r2"
181 +
182 +S=${WORKDIR}/bin
183 +
184 +# csh and tcsh are provided by tcsh package, rmail is sendmail stuff.
185 +REMOVE_SUBDIRS="csh rmail ed freebsd-version"
186 +
187 +pkg_setup() {
188 + mymakeopts="${mymakeopts} WITHOUT_TCSH= WITHOUT_SENDMAIL= WITHOUT_RCMDS= "
189 +}
190
191 diff --git a/sys-freebsd/freebsd-cddl/Manifest b/sys-freebsd/freebsd-cddl/Manifest
192 index 4f0b127..0cef32b 100644
193 --- a/sys-freebsd/freebsd-cddl/Manifest
194 +++ b/sys-freebsd/freebsd-cddl/Manifest
195 @@ -7,4 +7,5 @@ AUX freebsd-cddl-9.3-underlink.patch 942 SHA256 f5a0139191b98584832075f22880e6ea
196 AUX zfs.initd 481 SHA256 8078bfd9241d694ca97364044ce5386015669a5102ef3702be0b1b1d70fdab61 SHA512 9734a3faeb2c5d555a311fd71821c249bb110c221f973f7efe9c3d2bb150286ec68e60e3fcb7639b7b62804484d4d2fce34465ef89568aa946243f729bb9a843 WHIRLPOOL 766477f8743f0b1c898860a2904d31a2b725cbdfa4aacc8a3ae8790361f693d0cbe74ed932eb3e8e993e5fd5b9de3d15fcf175528f7e060dee311ccc77336e5c
197 AUX zvol.initd-9.0 930 SHA256 5b3aed77ab896f1d522d36c697718afe69cf5799a753c704c4beae7ec1c6b44a SHA512 998864b0a7b6f8765311e604b3f1e22d59ccf329bd6d0b9e8649f6da49e42832babee26a837516de99e6a949d6f933b9952cfe98687b274c031f6d07375372f3 WHIRLPOOL 361f8bcb86c9274757f1a087bc935bfe708ba2ac3b6ae945e62fb59080322b4ded2dfc8d2a6862529b9e661aeeb8ffe0782aedcf535f784761f0c26dfc7f7d87
198 EBUILD freebsd-cddl-10.0.0.9999.ebuild 1510 SHA256 f987838a5db4415b187ba6dbb283320a19d70eb69ae4e3816fff87699d788d73 SHA512 9d4223729e66cee65cfa448ac88c4eea049fc83caeba83aec7a6b1bc06465020073e7084c67fef1315b89e2f9704d5779acd28c0145265afd1acd723116b67ae WHIRLPOOL d4c007208fc9c0383f29672573e39135670cfe63c97890ca75271472c64c956527ea1adf2ee33bdeac5d9ee230bf2391a20bfc0bcad213b14f700ce56ffaaf09
199 +EBUILD freebsd-cddl-10.9999_p270665.ebuild 1510 SHA256 f987838a5db4415b187ba6dbb283320a19d70eb69ae4e3816fff87699d788d73 SHA512 9d4223729e66cee65cfa448ac88c4eea049fc83caeba83aec7a6b1bc06465020073e7084c67fef1315b89e2f9704d5779acd28c0145265afd1acd723116b67ae WHIRLPOOL d4c007208fc9c0383f29672573e39135670cfe63c97890ca75271472c64c956527ea1adf2ee33bdeac5d9ee230bf2391a20bfc0bcad213b14f700ce56ffaaf09
200 EBUILD freebsd-cddl-9.3.0.9999.ebuild 1536 SHA256 f91f1dd41730b250c7826dfd3f52f2bc791fe7281d7b8b788245d561963620a4 SHA512 58264f74d15f8791b303db1fa9ab771f342e429e68aead739d2548a68794ea5d878d0a9367d654bc84a7371f03cc44e469b83811f5262d7c437380608ad2af1e WHIRLPOOL ad44c4523b5234beb73ffaff40a4b3ad4a437cbe851392bc9b0e8f7208ca391b77af5b407c0e805ea4508bc891414c6b0effa300bf9d9601bdb3fd52f0840fd2
201
202 diff --git a/sys-freebsd/freebsd-cddl/freebsd-cddl-10.9999_p270665.ebuild b/sys-freebsd/freebsd-cddl/freebsd-cddl-10.9999_p270665.ebuild
203 new file mode 100644
204 index 0000000..51c6c67
205 --- /dev/null
206 +++ b/sys-freebsd/freebsd-cddl/freebsd-cddl-10.9999_p270665.ebuild
207 @@ -0,0 +1,64 @@
208 +# Copyright 1999-2014 Gentoo Foundation
209 +# Distributed under the terms of the GNU General Public License v2
210 +# $Header: $
211 +
212 +EAPI=4
213 +
214 +inherit bsdmk freebsd toolchain-funcs multilib
215 +
216 +DESCRIPTION="FreeBSD CDDL (opensolaris/zfs) extra software"
217 +SLOT="0"
218 +
219 +IUSE="build"
220 +LICENSE="CDDL GPL-2"
221 +
222 +if [[ ${PV} != *9999* ]]; then
223 + KEYWORDS="~amd64-fbsd ~x86-fbsd"
224 + SRC_URI="mirror://gentoo/${P}.tar.xz
225 + mirror://gentoo/${CONTRIB}.tar.xz
226 + mirror://gentoo/${UBIN}.tar.xz
227 + mirror://gentoo/${LIB}.tar.xz
228 + mirror://gentoo/${SBIN}.tar.xz
229 + mirror://gentoo/${SYS}.tar.xz
230 + build? ( mirror://gentoo/${INCLUDE}.tar.xz )"
231 +fi
232 +
233 +# sys is required.
234 +
235 +RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
236 + =sys-freebsd/freebsd-libexec-${RV}*
237 + build? ( sys-apps/baselayout )"
238 +
239 +DEPEND="${RDEPEND}
240 + =sys-freebsd/freebsd-mk-defs-${RV}*
241 + !build? ( =sys-freebsd/freebsd-sources-${RV}* )"
242 +
243 +S="${WORKDIR}/cddl"
244 +
245 +PATCHES=(
246 + "${FILESDIR}/${PN}-9.2-libpaths.patch"
247 + "${FILESDIR}/${PN}-9.2-underlink.patch"
248 + )
249 +
250 +src_prepare() {
251 + if [[ ! -e "${WORKDIR}/include" ]]; then
252 + # Link in include headers.
253 + ln -s "/usr/include" "${WORKDIR}/include" || die "Symlinking /usr/include.."
254 + fi
255 +}
256 +
257 +src_install() {
258 + # Install libraries proper place
259 + local mylibdir=$(get_libdir)
260 + mkinstall SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" || die
261 +
262 + gen_usr_ldscript -a avl nvpair umem uutil zfs zpool zfs_core
263 +
264 + # Install zfs volinit script.
265 + newinitd "${FILESDIR}"/zvol.initd-9.0 zvol
266 +
267 + # Install zfs script
268 + newinitd "${FILESDIR}"/zfs.initd zfs
269 +
270 + keepdir /etc/zfs
271 +}
272
273 diff --git a/sys-freebsd/freebsd-lib/Manifest b/sys-freebsd/freebsd-lib/Manifest
274 index dc298ce..20ddc82 100644
275 --- a/sys-freebsd/freebsd-lib/Manifest
276 +++ b/sys-freebsd/freebsd-lib/Manifest
277 @@ -28,4 +28,5 @@ AUX libmap.conf 201 SHA256 36a1bd56965f171cbb058f6e1762801e3b92c083fe36f6fe046bd
278 AUX libusb-1.0.pc.in 207 SHA256 edf35e887cbfed2df288825434c467e0a946eeb21e0d631f55940bb177c2ba15 SHA512 93289cecfc298a31fd4fd0848bf25a63048a7549bd81792d7bd158731246221c24ec9f469a918430da56873a0936fb2b372cedaaa32a38ccd5323de0f9a89b93 WHIRLPOOL 7c81b0df4548a9391b4e1420186f1e970aa9e2e73a89e817adbff9de52b8797cbd8a4d8b3ca01f782f86e4b1e48fad72a08b5bff49d5ee6ffaa5135c015ca5ae
279 AUX libusb.pc.in 208 SHA256 9bfe398a335f8b9b1c3dd167ab0c9206fe3bdd4e1da318ece977e20f3c2d7c56 SHA512 e9c6d5f04057cf8c13f69a3d8e07bdd517fdb01d572a69a1beb397766311b3c53894b108caaaea740bfc27b227a9620621dac5846bff1a367fbf9954f38bb40c WHIRLPOOL e80e76a8a564655d924a7148a841c7c7cf0be0ea3bdbd76e95e5004124543826e5d925dfe791f4b040e042a10923865bb517499d9f5be39611fedbcceebe32d8
280 EBUILD freebsd-lib-10.0.0.9999-r1.ebuild 19248 SHA256 5cc3f7146a3bfd73aeec95185f2d448d34097afea4b7964fb1b51f902ce0b43e SHA512 a3eb390fdbb18624822e7bdb1c2539854808b28d45fdf2f1e1fbf9017953d4b9e2d483a9311b705cdf5284d1a0440a0e02c9e18fe5cbb30b017511938a1c9c22 WHIRLPOOL 17aae80822ecafab4bd23536f5470994ddcd319dd5bf10cc598db88f19b35aeac1178877bc3a8136cb2fadd0c44a24a307c587c0a60a901df209382e7d7260cd
281 +EBUILD freebsd-lib-10.9999_p270665.ebuild 19248 SHA256 5cc3f7146a3bfd73aeec95185f2d448d34097afea4b7964fb1b51f902ce0b43e SHA512 a3eb390fdbb18624822e7bdb1c2539854808b28d45fdf2f1e1fbf9017953d4b9e2d483a9311b705cdf5284d1a0440a0e02c9e18fe5cbb30b017511938a1c9c22 WHIRLPOOL 17aae80822ecafab4bd23536f5470994ddcd319dd5bf10cc598db88f19b35aeac1178877bc3a8136cb2fadd0c44a24a307c587c0a60a901df209382e7d7260cd
282 EBUILD freebsd-lib-9.3.0.9999.ebuild 18265 SHA256 d83ccba8780d4d71d412b3be8f5b5dd243c9eb9a92de299125c2e34ad3275174 SHA512 aabfae2be91e35c19013e6f57adc7e5bca8c6db04f19a7fb896bd96a4f4e14e2995dee1ab312a020519dd40dc1ff026aca3751eb4ddc9528e8c430d1b6e346b6 WHIRLPOOL 4580f2e636a3c03244f481d011e4ee9f53c70863091c1e1448a68e64db2fb245c015140fd516b5cd37aea19145bcc9c2c957610ccefc2e0ce52b59f8519654ab
283
284 diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-10.9999_p270665.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-10.9999_p270665.ebuild
285 new file mode 100644
286 index 0000000..7bff55f
287 --- /dev/null
288 +++ b/sys-freebsd/freebsd-lib/freebsd-lib-10.9999_p270665.ebuild
289 @@ -0,0 +1,633 @@
290 +# Copyright 1999-2014 Gentoo Foundation
291 +# Distributed under the terms of the GNU General Public License v2
292 +# $Header: $
293 +
294 +EAPI=5
295 +
296 +inherit bsdmk freebsd flag-o-matic multilib toolchain-funcs eutils multibuild multilib-build
297 +
298 +DESCRIPTION="FreeBSD's base system libraries"
299 +SLOT="0"
300 +
301 +# Crypto is needed to have an internal OpenSSL header
302 +# sys is needed for libalias, probably we can just extract that instead of
303 +# extracting the whole tarball
304 +if [[ ${PV} != *9999* ]]; then
305 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
306 + SRC_URI="mirror://gentoo/${LIB}.tar.xz
307 + mirror://gentoo/${CONTRIB}.tar.xz
308 + mirror://gentoo/${CRYPTO}.tar.xz
309 + mirror://gentoo/${LIBEXEC}.tar.xz
310 + mirror://gentoo/${ETC}.tar.xz
311 + mirror://gentoo/${INCLUDE}.tar.xz
312 + mirror://gentoo/${USBIN}.tar.xz
313 + mirror://gentoo/${GNU}.tar.xz
314 + mirror://gentoo/${SECURE}.tar.xz
315 + build? ( mirror://gentoo/${SYS}.tar.xz )
316 + zfs? ( mirror://gentoo/${CDDL}.tar.xz )"
317 +fi
318 +
319 +if [ "${CATEGORY#*cross-}" = "${CATEGORY}" ]; then
320 + RDEPEND="ssl? ( dev-libs/openssl )
321 + hesiod? ( net-dns/hesiod )
322 + kerberos? ( app-crypt/heimdal )
323 + usb? ( !dev-libs/libusb )
324 + zfs? ( =sys-freebsd/freebsd-cddl-${RV}* )
325 + >=dev-libs/expat-2.0.1
326 + !sys-libs/libutempter
327 + !dev-libs/libelf
328 + !dev-libs/libexecinfo
329 + !dev-libs/libiconv
330 + !sys-freebsd/freebsd-headers"
331 + DEPEND="${RDEPEND}
332 + >=sys-devel/flex-2.5.31-r2
333 + =sys-freebsd/freebsd-sources-${RV}*"
334 + RDEPEND="${RDEPEND}
335 + =sys-freebsd/freebsd-share-${RV}*
336 + >=virtual/libiconv-0-r2"
337 +else
338 + SRC_URI="${SRC_URI}
339 + mirror://gentoo/${SYS}.tar.bz2"
340 +fi
341 +
342 +DEPEND="${DEPEND}
343 + userland_GNU? ( sys-apps/mtree )
344 + =sys-freebsd/freebsd-mk-defs-${RV}*"
345 +
346 +S="${WORKDIR}/lib"
347 +
348 +export CTARGET=${CTARGET:-${CHOST}}
349 +if [ "${CTARGET}" = "${CHOST}" -a "${CATEGORY#*cross-}" != "${CATEGORY}" ]; then
350 + export CTARGET=${CATEGORY/cross-}
351 +fi
352 +
353 +IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
354 + build crosscompile_opts_headers-only zfs
355 + userland_GNU userland_BSD"
356 +
357 +QA_DT_NEEDED="lib/libc.so.7 lib32/libc.so.7"
358 +
359 +pkg_setup() {
360 + [ -c /dev/zero ] || \
361 + die "You forgot to mount /dev; the compiled libc would break."
362 +
363 + if ! use ssl && use kerberos; then
364 + eerror "If you want kerberos support you need to enable ssl support, too."
365 + fi
366 +
367 + use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
368 + use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
369 + use hesiod || mymakeopts="${mymakeopts} WITHOUT_HESIOD= "
370 + use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6_SUPPORT= "
371 + use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= WITHOUT_GSSAPI= "
372 + use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
373 + use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
374 + use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
375 + use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
376 +
377 + mymakeopts="${mymakeopts} WITHOUT_SENDMAIL= WITHOUT_CLANG= WITHOUT_LIBCPLUSPLUS= WITHOUT_LDNS= WITHOUT_UNBOUND= "
378 +
379 + if [ "${CTARGET}" != "${CHOST}" ]; then
380 + mymakeopts="${mymakeopts} MACHINE=$(tc-arch-kernel ${CTARGET})"
381 + mymakeopts="${mymakeopts} MACHINE_ARCH=$(tc-arch-kernel ${CTARGET})"
382 + fi
383 +}
384 +
385 +PATCHES=(
386 + "${FILESDIR}/${PN}-6.0-pmc.patch"
387 + "${FILESDIR}/${PN}-6.1-csu.patch"
388 + "${FILESDIR}/${PN}-10.0-liblink.patch"
389 + "${FILESDIR}/${PN}-10.0-atfcxx.patch"
390 + "${FILESDIR}/${PN}-10.0-libusb.patch"
391 + "${FILESDIR}/${PN}-10.0-libproc-libcxx.patch"
392 + "${FILESDIR}/${PN}-10.0-libiconv_modules.patch"
393 + "${FILESDIR}/${PN}-10.0-cve-2014-3951.patch"
394 + "${FILESDIR}/${PN}-bsdxml2expat.patch"
395 + "${FILESDIR}/${PN}-9.0-bluetooth.patch"
396 + "${FILESDIR}/${PN}-9.1-.eh_frame_hdr-fix.patch"
397 + "${FILESDIR}/${PN}-add-nossp-cflags.patch"
398 + )
399 +
400 +# Here we disable and remove source which we don't need or want
401 +# In order:
402 +# - ncurses stuff
403 +# - libexpat creates a bsdxml library which is the same as expat
404 +# - archiving libraries (have their own ebuild)
405 +# - sendmail libraries (they are installed by sendmail)
406 +# - SNMP library and dependency (have their own ebuilds)
407 +# - libstand: static library, 32bits on amd64 used for boot0, we build it from
408 +# boot0 instead.
409 +#
410 +# The rest are libraries we already have somewhere else because
411 +# they are contribution.
412 +REMOVE_SUBDIRS="ncurses \
413 + libexpat \
414 + libz libbz2 libarchive liblzma \
415 + libsm libsmdb libsmutil \
416 + libbegemot libbsnmp \
417 + libpam libpcap libwrap libmagic \
418 + libcom_err
419 + libedit
420 + libstand
421 + libgssapi"
422 +
423 +# Are we building a cross-compiler?
424 +is_crosscompile() {
425 + [ "${CATEGORY#*cross-}" != "${CATEGORY}" ]
426 +}
427 +
428 +src_prepare() {
429 + sed -i.bak -e 's:-o/dev/stdout:-t:' "${S}/libc/net/Makefile.inc"
430 +
431 + # Upstream Display Managers default to using VT7
432 + # We should make FreeBSD allow this by default
433 + local x=
434 + for x in "${WORKDIR}"/etc/etc.*/ttys ; do
435 + sed -i.bak \
436 + -e '/ttyv5[[:space:]]/ a\
437 +# Display Managers default to VT7.\
438 +# If you use the xdm init script, keep ttyv6 commented out\
439 +# unless you force a different VT for the DM being used.' \
440 + -e '/^ttyv[678][[:space:]]/ s/^/# /' "${x}" \
441 + || die "Failed to sed ${x}"
442 + rm "${x}".bak
443 + done
444 +
445 + # This one is here because it also
446 + # patches "${WORKDIR}/include"
447 + cd "${WORKDIR}"
448 + epatch "${FILESDIR}/${PN}-includes.patch"
449 + epatch "${FILESDIR}/${PN}-8.0-gcc45.patch"
450 + epatch "${FILESDIR}/${PN}-9.0-opieincludes.patch"
451 + epatch "${FILESDIR}/${PN}-9.1-rmgssapi.patch"
452 + epatch "${FILESDIR}/${PN}-10.0-clang34.patch"
453 +
454 + # Don't install the hesiod man page or header
455 + rm "${WORKDIR}"/include/hesiod.h || die
456 + sed -i.bak -e 's:hesiod.h::' "${WORKDIR}"/include/Makefile || die
457 + sed -i.bak -e 's:hesiod.c::' -e 's:hesiod.3::' \
458 + "${WORKDIR}"/lib/libc/net/Makefile.inc || die
459 +
460 + # Fix the Makefiles of these few libraries that will overwrite our LDADD.
461 + cd "${S}"
462 + for dir in libradius libtacplus libcam libdevstat libfetch libgeom libmemstat libopie \
463 + libsmb libprocstat libulog; do sed -i.bak -e 's:LDADD=:LDADD+=:g' "${dir}/Makefile" || \
464 + die "Problem fixing \"${dir}/Makefile"
465 + done
466 + # Call LD with LDFLAGS, rename them to RAW_LDFLAGS
467 + sed -e 's/LDFLAGS/RAW_LDFLAGS/g' \
468 + -i "${S}/csu/i386-elf/Makefile" \
469 + -i "${S}/csu/ia64/Makefile" || die
470 + if use build; then
471 + cd "${WORKDIR}"
472 + # This patch has to be applied on ${WORKDIR}/sys, so we do it here since it
473 + # shouldn't be a symlink to /usr/src/sys (which should be already patched)
474 + epatch "${FILESDIR}"/${PN}-7.1-types.h-fix.patch
475 + epatch "${FILESDIR}"/freebsd-sources-9.0-sysctluint.patch
476 + return 0
477 + fi
478 +
479 + if ! is_crosscompile ; then
480 + if [[ ! -e "${WORKDIR}/sys" ]]; then
481 + ln -s "/usr/src/sys" "${WORKDIR}/sys" || die "Couldn't make sys symlink!"
482 + fi
483 + else
484 + sed -i.bak -e "s:/usr/include:/usr/${CTARGET}/usr/include:g" \
485 + "${S}/libc/rpc/Makefile.inc" \
486 + "${S}/libc/yp/Makefile.inc"
487 + fi
488 +
489 + if install --version 2> /dev/null | grep -q GNU; then
490 + sed -i.bak -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile"
491 + fi
492 +
493 + # Try to fix sed calls for GNU sed. Do it only with GNU userland and force
494 + # BSD's sed on BSD.
495 + cd "${S}"
496 + if use userland_GNU; then
497 + find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \;
498 + fi
499 +}
500 +
501 +bootstrap_lib() {
502 + for i ; do
503 + cd "${WORKDIR}/${i}" || die "missing ${i}"
504 + freebsd_src_compile
505 + append-ldflags "-L${MAKEOBJDIRPREFIX}/${WORKDIR}/${i}"
506 + done
507 +}
508 +
509 +get_csudir() {
510 + if [ -d "${WORKDIR}/lib/csu/$1-elf" ]; then
511 + echo "lib/csu/$1-elf"
512 + else
513 + echo "lib/csu/$1"
514 + fi
515 +}
516 +
517 +bootstrap_csu() {
518 + local csudir="$(get_csudir $(tc-arch-kernel ${CTARGET}))"
519 + export RAW_LDFLAGS=$(raw-ldflags)
520 + bootstrap_lib "${csudir}"
521 +
522 + CFLAGS="${CFLAGS} -B ${MAKEOBJDIRPREFIX}/${WORKDIR}/${csudir}"
523 + append-ldflags "-B ${MAKEOBJDIRPREFIX}/${WORKDIR}/${csudir}"
524 +
525 + bootstrap_lib "gnu/lib/csu"
526 +
527 + cd "${MAKEOBJDIRPREFIX}/${WORKDIR}/gnu/lib/csu"
528 + for i in *.So ; do
529 + ln -s $i ${i%.So}S.o
530 + done
531 + CFLAGS="${CFLAGS} -B ${MAKEOBJDIRPREFIX}/${WORKDIR}/gnu/lib/csu"
532 + append-ldflags "-B ${MAKEOBJDIRPREFIX}/${WORKDIR}/gnu/lib/csu"
533 +}
534 +
535 +# Compile libssp_nonshared.a and add it's path to LDFLAGS.
536 +bootstrap_libssp_nonshared() {
537 + bootstrap_lib "gnu/lib/libssp/libssp_nonshared"
538 + export LDADD="-lssp_nonshared"
539 +}
540 +
541 +bootstrap_libgcc() {
542 + bootstrap_lib "lib/libcompiler_rt"
543 + cd "${MAKEOBJDIRPREFIX}/${WORKDIR}/lib/libcompiler_rt" || die
544 + ln -s libcompiler_rt.a libgcc.a || die
545 +
546 + bootstrap_lib "lib/libc" "gnu/lib/libgcc"
547 +}
548 +
549 +bootstrap_libthr() {
550 + bootstrap_lib "lib/libthr"
551 + cd "${MAKEOBJDIRPREFIX}/${WORKDIR}/lib/libthr" || die
552 + ln -s libthr.so libpthread.so
553 +}
554 +
555 +# What to build for a cross-compiler.
556 +# We also need the csu but this has to be handled separately.
557 +CROSS_SUBDIRS="lib/libc lib/msun gnu/lib/libssp/libssp_nonshared lib/libthr lib/libutil lib/librt lib/libc_nonshared"
558 +
559 +# What to build for non-default ABIs.
560 +NON_NATIVE_SUBDIRS="${CROSS_SUBDIRS} gnu/lib/csu lib/libcompiler_rt gnu/lib/libgcc lib/libmd lib/libcrypt lib/libsbuf lib/libcam lib/libelf lib/libiconv_modules"
561 +
562 +# Subdirs for a native build:
563 +NATIVE_SUBDIRS="lib gnu/lib/libssp/libssp_nonshared gnu/lib/libregex gnu/lib/csu gnu/lib/libgcc lib/libiconv_modules"
564 +
565 +# Is my $ABI native ?
566 +is_native_abi() {
567 + is_crosscompile && return 1
568 + multilib_is_native_abi
569 +}
570 +
571 +# Do we need to bootstrap the csu and libssp_nonshared?
572 +need_bootstrap() {
573 + is_crosscompile || use build || { ! is_native_abi && ! has_version '>=sys-freebsd/freebsd-lib-9.1-r8[multilib]' && ! has_version ">=sys-freebsd/freebsd-lib-9.1-r11[${MULTILIB_USEDEP}]" ; } || has_version "<${CATEGORY}/${P}"
574 +}
575 +
576 +# Get the subdirs we are building.
577 +get_subdirs() {
578 + local ret=""
579 + if is_native_abi ; then
580 + # If we are building for the native ABI, build everything
581 + ret="${NATIVE_SUBDIRS}"
582 + elif is_crosscompile ; then
583 + # With a cross-compiler we only build the very core parts.
584 + ret="${CROSS_SUBDIRS}"
585 + if [ "${EBUILD_PHASE}" = "install" ]; then
586 + # Add the csu dir first when installing. We treat it separately for
587 + # compiling.
588 + ret="$(get_csudir $(tc-arch-kernel ${CTARGET})) ${ret}"
589 + fi
590 + else
591 + # For the non-native ABIs we only build the csu parts and very core
592 + # libraries for now.
593 + ret="${NON_NATIVE_SUBDIRS} $(get_csudir $(tc-arch-kernel ${CHOST}))"
594 + fi
595 + echo "${ret}"
596 +}
597 +
598 +# Bootstrap the core libraries and setup the flags so that the other parts can
599 +# build against it.
600 +do_bootstrap() {
601 + einfo "Bootstrapping on ${CHOST} for ${CTARGET}"
602 + if ! is_crosscompile ; then
603 + # Pre-install headers, but not when building a cross-compiler since we
604 + # assume they have been installed in the previous pass.
605 + einfo "Pre-installing includes in include_proper_${ABI}"
606 + mkdir "${WORKDIR}/include_proper_${ABI}" || die
607 + CTARGET="${CHOST}" install_includes "/include_proper_${ABI}"
608 + CFLAGS="${CFLAGS} -isystem ${WORKDIR}/include_proper_${ABI}"
609 + CXXFLAGS="${CXXFLAGS} -isystem ${WORKDIR}/include_proper_${ABI}"
610 + fi
611 + bootstrap_csu
612 + bootstrap_libssp_nonshared
613 + is_crosscompile && bootstrap_lib "lib/libc"
614 + is_crosscompile || is_native_abi || bootstrap_libgcc
615 + is_native_abi || bootstrap_libthr
616 +}
617 +
618 +# Compile it. Assume we have the toolchain setup correctly.
619 +do_compile() {
620 + # Bootstrap if needed, otherwise assume the system headers are in
621 + # /usr/include.
622 + if need_bootstrap ; then
623 + do_bootstrap
624 + else
625 + CFLAGS="${CFLAGS} -isystem /usr/include"
626 + CXXFLAGS="${CXXFLAGS} -isystem /usr/include"
627 + fi
628 +
629 + export RAW_LDFLAGS=$(raw-ldflags)
630 +
631 + # Everything is now setup, build it!
632 + for i in $(get_subdirs) ; do
633 + einfo "Building in ${i}... with CC=${CC} and CFLAGS=${CFLAGS}"
634 + cd "${WORKDIR}/${i}/" || die "missing ${i}."
635 + freebsd_src_compile || die "make ${i} failed"
636 + done
637 +}
638 +
639 +src_compile() {
640 + # Does not work with GNU sed
641 + # Force BSD's sed on BSD.
642 + if use userland_BSD ; then
643 + export ESED=/usr/bin/sed
644 + unalias sed
645 + fi
646 +
647 + use usb && export NON_NATIVE_SUBDIRS="${NON_NATIVE_SUBDIRS} lib/libusb lib/libusbhid"
648 +
649 + cd "${WORKDIR}/include"
650 + $(freebsd_get_bmake) CC="$(tc-getCC)" || die "make include failed"
651 +
652 + use crosscompile_opts_headers-only && return 0
653 +
654 + # Bug #270098
655 + append-flags $(test-flags -fno-strict-aliasing)
656 +
657 + # Bug #324445
658 + append-flags $(test-flags -fno-strict-overflow)
659 +
660 + # strip flags and do not do it later, we only add safe, and in fact
661 + # needed flags after all
662 + strip-flags
663 + export NOFLAGSTRIP=yes
664 + if is_crosscompile ; then
665 + export YACC='yacc -by'
666 + CHOST=${CTARGET} tc-export CC LD CXX RANLIB
667 + mymakeopts="${mymakeopts} NLS="
668 + CFLAGS="${CFLAGS} -isystem /usr/${CTARGET}/usr/include"
669 + CXXFLAGS="${CXXFLAGS} -isystem /usr/${CTARGET}/usr/include"
670 + append-ldflags "-L${WORKDIR}/${CHOST}/${WORKDIR}/lib/libc"
671 + fi
672 +
673 + if is_crosscompile ; then
674 + do_compile
675 + else
676 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
677 + multibuild_foreach_variant freebsd_multilib_multibuild_wrapper do_compile
678 + fi
679 +}
680 +
681 +gen_libc_ldscript() {
682 + # Parameters:
683 + # $1 = target libdir
684 + # $2 = source libc dir
685 + # $3 = source libssp_nonshared dir
686 +
687 + # Clear the symlink.
688 + rm -f "${D}/$2/libc.so" || die
689 +
690 + # Move the library if needed
691 + if [ "$1" != "$2" ] ; then
692 + mv "${D}/$2/libc.so.7" "${D}/$1/" || die
693 + fi
694 +
695 + # Generate libc.so ldscript for inclusion of libssp_nonshared.a when linking
696 + # this is done to avoid having to touch gcc spec file as it is currently
697 + # done on FreeBSD upstream, mostly because their binutils aren't able to
698 + # cope with linker scripts yet.
699 + # Taken from toolchain-funcs.eclass:
700 + local output_format
701 + output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
702 + [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"
703 +
704 + # iconv symbol provided by libc_nonshared.a.
705 + # http://svnweb.freebsd.org/base?view=revision&amp;revision=258283
706 + cat > "${D}/$2/libc.so" <<-END_LDSCRIPT
707 +/* GNU ld script
708 + SSP (-fstack-protector) requires __stack_chk_fail_local to be local.
709 + GCC invokes this symbol in a non-PIC way, which results in TEXTRELs if
710 + this symbol was provided by a shared libc. So we link in
711 + libssp_nonshared.a from here.
712 + */
713 +${output_format}
714 +GROUP ( /$1/libc.so.7 /$3/libc_nonshared.a /$3/libssp_nonshared.a )
715 +END_LDSCRIPT
716 +}
717 +
718 +header_list=""
719 +
720 +move_header() {
721 + local dirname=$(dirname ${1})
722 + local filename=$(basename ${1})
723 +
724 + if [ ! -d "${dirname}/${ABI}" ] ; then
725 + mkdir "${dirname}/${ABI}" || die
726 + fi
727 +
728 + mv "${1}" "${dirname}/${ABI}/" || die
729 +
730 + export header_list="${header_list} ${1}"
731 +}
732 +
733 +make_header_template() {
734 + cat <<-END_HEADER
735 +/*
736 + * Wrapped header for multilib support.
737 + * See the real headers included below.
738 + */
739 +
740 +#if defined(__x86_64__)
741 + @ABI_amd64_fbsd@
742 +#elif defined(__i386__)
743 + @ABI_x86_fbsd@
744 +#else
745 + @ABI_${DEFAULT_ABI}@
746 +#endif
747 +END_HEADER
748 +}
749 +
750 +wrap_header() {
751 + local dirname=$(dirname ${1})
752 + local filename=$(basename ${1})
753 +
754 + if [ -n "${dirname#.}" ] ; then
755 + dirname="${dirname}/${2}"
756 + else
757 + dirname="${2}"
758 + fi
759 +
760 + if [ -f "${dirname}/${filename}" ] ; then
761 + sed -e "s:@ABI_${2}@:#include <${dirname}/${filename}>:" ${1}
762 + else
763 + cat ${1}
764 + fi
765 +}
766 +
767 +wrap_header_end() {
768 + sed -e "s:@ABI_.*@:#error \"Sorry, no support for your ABI.\":" ${1}
769 +}
770 +
771 +do_install() {
772 + if is_crosscompile ; then
773 + INCLUDEDIR="/usr/${CTARGET}/usr/include"
774 + else
775 + INCLUDEDIR="/usr/include"
776 + fi
777 +
778 + dodir ${INCLUDEDIR}
779 + CTARGET="${CHOST}" \
780 + install_includes ${INCLUDEDIR}
781 +
782 + is_crosscompile && use crosscompile_opts_headers-only && return 0
783 +
784 + # Install a libusb.pc for better compat with Linux's libusb
785 + if use usb ; then
786 + dodir /usr/$(get_libdir)/pkgconfig
787 + sed -i.bkp "s:^libdir=.*:libdir=/usr/$(get_libdir):g" ${S}/libusb/libusb-*.pc
788 + fi
789 +
790 + for i in $(get_subdirs) ; do
791 + if [[ ${i} != *libiconv_modules* ]] ; then
792 + einfo "Installing in ${i}..."
793 + cd "${WORKDIR}/${i}/" || die "missing ${i}."
794 + freebsd_src_install || die "Install ${i} failed"
795 + fi
796 + done
797 +
798 + if ! is_crosscompile; then
799 + local mymakeopts_save="${mymakeopts}"
800 + mymakeopts="${mymakeopts} SHLIBDIR=/usr/$(get_libdir)/i18n LIBDIR=/usr/$(get_libdir)/i18n"
801 +
802 + einfo "Installing in lib/libiconv_modules..."
803 + cd "${WORKDIR}/lib/libiconv_modules/" || die "missing libiconv_modules."
804 + freebsd_src_install || die "Install lib/libiconv_modules failed"
805 +
806 + mymakeopts="${mymakeopts_save}"
807 + fi
808 +
809 + if ! is_crosscompile ; then
810 + if ! multilib_is_native_abi ; then
811 + gen_libc_ldscript "usr/$(get_libdir)" "usr/$(get_libdir)" "usr/$(get_libdir)"
812 + else
813 + dodir "$(get_libdir)"
814 + gen_libc_ldscript "$(get_libdir)" "usr/$(get_libdir)" "usr/$(get_libdir)"
815 + fi
816 + else
817 + CHOST=${CTARGET} gen_libc_ldscript "usr/${CTARGET}/usr/lib" "usr/${CTARGET}/usr/lib" "usr/${CTARGET}/usr/lib"
818 + # We're done for the cross libc here.
819 + return 0
820 + fi
821 +
822 + # Generate ldscripts for core libraries that will go in /
823 + multilib_is_native_abi && \
824 + gen_usr_ldscript -a alias cam geom ipsec jail kiconv \
825 + kvm m md procstat sbuf thr ufs util elf
826 +
827 + if [[ ${#MULTIBUILD_VARIANTS[@]} -gt 1 ]] ; then
828 + cd "${D}/usr/include"
829 + for i in machine/*.h fenv.h ; do
830 + move_header ${i}
831 + done
832 + if multilib_is_native_abi ; then
833 + # Supposedly the last one!
834 + local uniq_headers="$(echo ${header_list} | tr ' ' '\n' | sort | uniq | tr '\n' ' ')"
835 + for j in ${uniq_headers} ; do
836 + make_header_template > ${j}
837 + for i in $(get_all_abis) ; do
838 + wrap_header ${j} ${i} > ${j}.new
839 + cp ${j}.new ${j}
840 + rm -f ${j}.new
841 + done
842 + wrap_header_end ${j} > ${j}.new
843 + cp ${j}.new ${j}
844 + rm -f ${j}.new
845 + done
846 + fi
847 + fi
848 +}
849 +
850 +src_install() {
851 + if is_crosscompile ; then
852 + einfo "Installing for ${CTARGET} in ${CHOST}.."
853 + # From this point we need to force: get stripped with the correct tools,
854 + # get tc-arch-kernel to return the right value, etc.
855 + export CHOST=${CTARGET}
856 +
857 + mymakeopts="${mymakeopts} NO_MAN= \
858 + INCLUDEDIR=/usr/${CTARGET}/usr/include \
859 + SHLIBDIR=/usr/${CTARGET}/usr/lib \
860 + LIBDIR=/usr/${CTARGET}/usr/lib"
861 +
862 + dosym "usr/include" "/usr/${CTARGET}/sys-include"
863 + do_install
864 +
865 + return 0
866 + else
867 + export STRIP_MASK="*/usr/lib*/*crt*.o"
868 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
869 + multibuild_foreach_variant freebsd_multilib_multibuild_wrapper do_install
870 + fi
871 +
872 + cd "${WORKDIR}/etc/"
873 + insinto /etc
874 + doins nls.alias mac.conf netconfig
875 +
876 + # Install ttys file
877 + local MACHINE="$(tc-arch-kernel)"
878 + doins "etc.${MACHINE}"/*
879 +}
880 +
881 +install_includes()
882 +{
883 + local INCLUDEDIR="$1"
884 +
885 + # The idea is to be called from either install or unpack.
886 + # During unpack it's required to install them as portage's user.
887 + if [[ "${EBUILD_PHASE}" == "install" ]]; then
888 + local DESTDIR="${D}"
889 + BINOWN="root"
890 + BINGRP="wheel"
891 + else
892 + local DESTDIR="${WORKDIR}"
893 + [[ -z "${USER}" ]] && USER="portage"
894 + BINOWN="${USER}"
895 + [[ -z "${GROUPS}" ]] && GROUPS="portage"
896 + BINGRP="${GROUPS}"
897 + fi
898 +
899 + # Must exist before we use it.
900 + [[ -d "${DESTDIR}${INCLUDEDIR}" ]] || die "dodir or mkdir ${INCLUDEDIR} before using install_includes."
901 + cd "${WORKDIR}/include"
902 +
903 + local MACHINE="$(tc-arch-kernel)"
904 +
905 + einfo "Installing includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
906 + $(freebsd_get_bmake) installincludes \
907 + MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE} \
908 + DESTDIR="${DESTDIR}" \
909 + INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
910 + BINGRP="${BINGRP}" || die "install_includes() failed"
911 + einfo "includes installed ok."
912 + EXTRA_INCLUDES="lib/librtld_db lib/libutil lib/msun gnu/lib/libregex"
913 + for i in $EXTRA_INCLUDES; do
914 + einfo "Installing $i includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
915 + cd "${WORKDIR}/$i" || die
916 + $(freebsd_get_bmake) installincludes DESTDIR="${DESTDIR}" \
917 + MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE} \
918 + INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
919 + BINGRP="${BINGRP}" || die "problem installing $i includes."
920 + einfo "$i includes installed ok."
921 + done
922 +}
923
924 diff --git a/sys-freebsd/freebsd-libexec/Manifest b/sys-freebsd/freebsd-libexec/Manifest
925 index 6dbb0ea..0caa8c2 100644
926 --- a/sys-freebsd/freebsd-libexec/Manifest
927 +++ b/sys-freebsd/freebsd-libexec/Manifest
928 @@ -8,4 +8,5 @@ AUX rusersd.xinetd 220 SHA256 271de1cad33a65a2a0e81e8983cbb1b7ab6e2e75bbf4c6e991
929 AUX sprayd.xinetd 216 SHA256 5b2c0e14c40c3d14f16f6fbe7b1f00d133bbae8ea27e548273a16d104afea24e SHA512 a49824ab0421560699901f54d9faf3f38fb6f8d8f63f05e33eb11da053278838e80eaabf5963b1c2a7292ba2d2118e1efd90954b2f3b2dc01b945fbadc6ce101 WHIRLPOOL 3869a0e4a9f03aa3654729e611a020421ec0beef2686ca8857b5ac3d50f8db26d7c1a5eb16e90aaf5b2b33e992915f7e9e504ce6bca9fd5862c2051a7172495f
930 AUX walld.xinetd 215 SHA256 b7d8cb4b69809a2ea2f479f942c3d7752c5cb1e4b3b4b7b7b590f15616a774f0 SHA512 ab78d32e48d660649d3415a4432a5f3e98f8a6a8854791d1d828b0dc678f58e9f24532c264c5f5b039ccd706e0bb70c369ba9fb55fc9af9d3ed9b28e10b9e830 WHIRLPOOL 013b60056a8f5fe46eb4e00182fe0f391a2dc915312fe7e47eb372697526ed05a53e156159fd5dd3dcbf3db44a6591461c789af31ca0e1dd967537b785462802
931 EBUILD freebsd-libexec-10.0.0.9999.ebuild 2519 SHA256 9c2a8ea10adc7a7015a0a1be1a35556a07bc3329c81391416a3792efe88b2362 SHA512 959e6027da56dd075f2eab63905d972621746b4b59cfadfd9c3a28112011d4e6bf8d0524fec14992bf56f7ce1e8acc7874c50719cd3eb54d59391f5c8a856908 WHIRLPOOL 8c24bc3198ddf9a947feea6f9aa1bbf74272fdcf2a202dc759428e1b242416c3632c2b2dae6a2c64a894fffffff5003b2276e19036dfb81f8b3befc22db8d48b
932 +EBUILD freebsd-libexec-10.9999_p270665.ebuild 2519 SHA256 9c2a8ea10adc7a7015a0a1be1a35556a07bc3329c81391416a3792efe88b2362 SHA512 959e6027da56dd075f2eab63905d972621746b4b59cfadfd9c3a28112011d4e6bf8d0524fec14992bf56f7ce1e8acc7874c50719cd3eb54d59391f5c8a856908 WHIRLPOOL 8c24bc3198ddf9a947feea6f9aa1bbf74272fdcf2a202dc759428e1b242416c3632c2b2dae6a2c64a894fffffff5003b2276e19036dfb81f8b3befc22db8d48b
933 EBUILD freebsd-libexec-9.3.0.9999.ebuild 2484 SHA256 3ce34ec17af06590dda720857a64bfb75a5a7f85fd0c38d7f10b72ab0d65af5f SHA512 1d0badf22482005a70ce2428c7b23c5730f7c19684b37bec0cb00b30a2ca9c4dec6eae2f4f77ad3da7324e1e62f00d33d30ea0da8c5300db863a7150f045c524 WHIRLPOOL 07c1464cd7a9e779e288d592d695c2b0aff9c5573ceff108fda196932419251a4cbeabecc2612255aeb12882354d4c8e77d1b17b872d3835e605a56db31e7975
934
935 diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-10.9999_p270665.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-10.9999_p270665.ebuild
936 new file mode 100644
937 index 0000000..d8ee578
938 --- /dev/null
939 +++ b/sys-freebsd/freebsd-libexec/freebsd-libexec-10.9999_p270665.ebuild
940 @@ -0,0 +1,88 @@
941 +# Copyright 1999-2014 Gentoo Foundation
942 +# Distributed under the terms of the GNU General Public License v2
943 +# $Header: $
944 +
945 +EAPI=5
946 +
947 +inherit bsdmk freebsd pam multilib multibuild multilib-build
948 +
949 +DESCRIPTION="FreeBSD libexec things"
950 +SLOT="0"
951 +
952 +if [[ ${PV} != *9999* ]]; then
953 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
954 + SRC_URI="mirror://gentoo/${LIBEXEC}.tar.xz
955 + mirror://gentoo/${UBIN}.tar.xz
956 + mirror://gentoo/${BIN}.tar.xz
957 + mirror://gentoo/${CONTRIB}.tar.xz
958 + mirror://gentoo/${LIB}.tar.xz
959 + mirror://gentoo/${ETC}.tar.xz
960 + mirror://gentoo/${USBIN}.tar.xz"
961 +fi
962 +
963 +RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
964 + >=sys-freebsd/freebsd-lib-9.1-r11[${MULTILIB_USEDEP}]
965 + pam? ( virtual/pam )"
966 +DEPEND="${RDEPEND}
967 + =sys-freebsd/freebsd-mk-defs-${RV}*
968 + =sys-freebsd/freebsd-sources-${RV}*"
969 +RDEPEND="${RDEPEND}
970 + xinetd? ( sys-apps/xinetd )"
971 +
972 +S="${WORKDIR}/libexec"
973 +
974 +# Remove sendmail, tcp_wrapper and other useless stuff
975 +REMOVE_SUBDIRS="smrsh mail.local tcpd telnetd rshd rlogind lukemftpd ftpd"
976 +
977 +IUSE="pam ssl kerberos ipv6 nis xinetd"
978 +
979 +PATCHES=( "${FILESDIR}/${PN}-9.2-no_ld32.patch"
980 + "${FILESDIR}/${PN}-10.0-atf-check.patch" )
981 +
982 +pkg_setup() {
983 + use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
984 + use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
985 + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
986 + use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
987 + use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
988 +
989 + mymakeopts="${mymakeopts} WITHOUT_SENDMAIL= WITHOUT_PF= WITHOUT_RCMDS= "
990 +}
991 +
992 +src_prepare() {
993 + if [[ ! -e "${WORKDIR}/include" ]]; then
994 + ln -s /usr/include "${WORKDIR}/include" || die "Symlinking /usr/include.."
995 + fi
996 +}
997 +
998 +setup_multilib_vars() {
999 + if ! multilib_is_native_abi ; then
1000 + cd "${WORKDIR}/libexec/rtld-elf" || die
1001 + export mymakeopts="${mymakeopts} PROG=ld-elf32.so.1"
1002 + else
1003 + cd "${S}"
1004 + fi
1005 + "$@"
1006 +}
1007 +
1008 +src_compile() {
1009 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
1010 + multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile
1011 +}
1012 +
1013 +src_install() {
1014 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
1015 + multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_install
1016 +
1017 + insinto /etc
1018 + doins "${WORKDIR}/etc/gettytab"
1019 + newinitd "${FILESDIR}/bootpd.initd" bootpd
1020 + newconfd "${FILESDIR}/bootpd.confd" bootpd
1021 +
1022 + if use xinetd; then
1023 + for rpcd in rstatd rusersd walld rquotad sprayd; do
1024 + insinto /etc/xinetd.d
1025 + newins "${FILESDIR}/${rpcd}.xinetd" ${rpcd}
1026 + done
1027 + fi
1028 +}
1029
1030 diff --git a/sys-freebsd/freebsd-mk-defs/Manifest b/sys-freebsd/freebsd-mk-defs/Manifest
1031 index 92662a9..3137c36 100644
1032 --- a/sys-freebsd/freebsd-mk-defs/Manifest
1033 +++ b/sys-freebsd/freebsd-mk-defs/Manifest
1034 @@ -9,4 +9,5 @@ AUX freebsd-mk-defs-9.2-gnu.patch 2242 SHA256 95305f335a360549703c73056898e77864
1035 AUX freebsd-mk-defs-9.3-gentoo.patch 12275 SHA256 e77676e5604a77d10cb3f245de9e5d12acd37064f9d1220a7bc9b562de8068a6 SHA512 db184d82508f386c7176f68431009c89d97fe1d11a5fcb29579341162b85f1e14d4b8fcbe9b4e2c6bd4b097b4b8c68fb8282b27d56f053cf94eaf43e28b31301 WHIRLPOOL fc1bb6d56b93490a00b9c05273920d8051a3c89ec329efecc2483c8cc60d7fddc907b24bcd82a829e159e3f83a1ff85fc8cf2b7cd1e014f68f1fcf98809cbae0
1036 AUX freebsd-mk-defs-add-nossp-cflags.patch 1017 SHA256 fa9f47aa7bee35feee0462b6c91995f648143384c547326bcec3b58f69d3db5b SHA512 012897f4f4b4c3f71d1288ab57adeed56d7f399e508cfa4f593a1f787443e3e4752f7002c86f5da65952ac57eb908d0cce751d7b029048b1c70a9b3c79bea913 WHIRLPOOL 98c8fd10f85e9b2e780ef639de932caaa68ae4da50d7417601ae3366d119445364d15307016561b11fa91e4849a0ba45599a85b988702688e15ebd44457883c1
1037 EBUILD freebsd-mk-defs-10.0.0.9999.ebuild 822 SHA256 d07246a139936e75d6c3d582acbdf69d3f529ec8ce038ff5f07a395e6b9c3334 SHA512 a339f41281ee5896e24b736e75c628d438dcd09dc162caa547c58846a8cbf4fad9b18514fa5683d2db3ac68159ae8018945c0753ee966fbd6334fcdd22d66c7c WHIRLPOOL aa5e407e4169e9b3c67d538a4787a16163cbf5032fb06d2e60e766166f431710fc9c0e03028e5b9b749f0e3bf98899059a627d5ab779b5c1f3a9c2312afa03a1
1038 +EBUILD freebsd-mk-defs-10.9999_p270665.ebuild 822 SHA256 d07246a139936e75d6c3d582acbdf69d3f529ec8ce038ff5f07a395e6b9c3334 SHA512 a339f41281ee5896e24b736e75c628d438dcd09dc162caa547c58846a8cbf4fad9b18514fa5683d2db3ac68159ae8018945c0753ee966fbd6334fcdd22d66c7c WHIRLPOOL aa5e407e4169e9b3c67d538a4787a16163cbf5032fb06d2e60e766166f431710fc9c0e03028e5b9b749f0e3bf98899059a627d5ab779b5c1f3a9c2312afa03a1
1039 EBUILD freebsd-mk-defs-9.3.0.9999.ebuild 821 SHA256 d597737120dbed7881ed5f204445029142fe154fe101c53af2844c04f08b5fb7 SHA512 af4a8af53b30489568481a9b2332abe961cae728489a9e2824150323440d081d47cb6b7f0ebdd5d3a2742603381f5acdb96150818b0e684ae8061b385eeeb499 WHIRLPOOL b14795f4cfdd7c0ba6910fba87404793968558836f4aecc23e9953b089327c3365e5af95c81c7822712d35098e30c7dfa6bbe9da92d902b35c649a5fd8965c66
1040
1041 diff --git a/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-10.9999_p270665.ebuild b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-10.9999_p270665.ebuild
1042 new file mode 100644
1043 index 0000000..54a98c8
1044 --- /dev/null
1045 +++ b/sys-freebsd/freebsd-mk-defs/freebsd-mk-defs-10.9999_p270665.ebuild
1046 @@ -0,0 +1,41 @@
1047 +# Copyright 1999-2014 Gentoo Foundation
1048 +# Distributed under the terms of the GNU General Public License v2
1049 +# $Header: $
1050 +
1051 +EAPI=3
1052 +
1053 +inherit bsdmk freebsd
1054 +
1055 +DESCRIPTION="Makefiles definitions used for building and installing libraries and system files"
1056 +SLOT="0"
1057 +
1058 +IUSE="userland_GNU"
1059 +
1060 +if [[ ${PV} != *9999* ]]; then
1061 + KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1062 + SRC_URI="mirror://gentoo/${SHARE}.tar.xz"
1063 +fi
1064 +
1065 +RDEPEND=""
1066 +DEPEND=""
1067 +
1068 +RESTRICT="strip"
1069 +
1070 +S="${WORKDIR}/share/mk"
1071 +
1072 +src_prepare() {
1073 + epatch "${FILESDIR}/${PN}-10.0-gentoo.patch"
1074 + epatch "${FILESDIR}/${PN}-add-nossp-cflags.patch"
1075 + use userland_GNU && epatch "${FILESDIR}/${PN}-10.0-gnu.patch"
1076 +}
1077 +
1078 +src_compile() { :; }
1079 +
1080 +src_install() {
1081 + if [[ ${CHOST} != *-freebsd* ]]; then
1082 + insinto /usr/share/mk/freebsd
1083 + else
1084 + insinto /usr/share/mk
1085 + fi
1086 + doins *.mk *.awk
1087 +}
1088
1089 diff --git a/sys-freebsd/freebsd-pam-modules/Manifest b/sys-freebsd/freebsd-pam-modules/Manifest
1090 index 2d05982..5edb4b3 100644
1091 --- a/sys-freebsd/freebsd-pam-modules/Manifest
1092 +++ b/sys-freebsd/freebsd-pam-modules/Manifest
1093 @@ -1,4 +1,5 @@
1094 AUX README.pamd 2965 SHA256 2d3cea2b59ddee2ca6639ca7d14068e1499acee4194181c255bdfea81964d5ac SHA512 e278fd0a5056ae8c1de2f6104bfb4766adc89c7c357a4b965cb08ee555a071b326462c937fd63cd8fc7bd7e2a880f939cecdf2997a3d2c33c1b962afee12d38e WHIRLPOOL 8ee79582595a2b79f3936863bd5fdb144930380a4073a74ec81967b3a11d61a40ca0becaf36dfa760c0c6110efa2041a4acd6041615e0d006f032e1d9c819aff
1095 AUX freebsd-pam-modules-9.0-gentoo.patch 622 SHA256 b397d5d646712c4a63606d94c45d25551344872d77d7b6b5f646403a2b09f7fb SHA512 752b593a8bea623110683a181deefd7126eaded7bf94973bcd994b2415db5739cd69a125ee9bd0c960fd5a3e30e3a2eaf8c711893f94966a9cc5a9b0c3191af0 WHIRLPOOL 168b0ba47e9a326ff1db9cfe46724c83a45d744df0fa737599894ef1574b0e199c46e7626b16f5cc83cd4886fd79320c5f92e4c2b37801ef3604ffd4ec1b2de7
1096 EBUILD freebsd-pam-modules-10.0.0.9999.ebuild 1124 SHA256 b631cab5061193c283ffa26c044d6554f8f1a4ff34713190b5c37f213fbd12fa SHA512 8af9f32f80ff40bf9bbfb2dea69694f13eedfb18e0d1619efea1f5438e572dba2c2099013fd7e5b09f79914c9a8504f2873fab94cde0094f633fc539c61d9d2b WHIRLPOOL a4ddf2176f0b497c83ea63f97340afe48d39ae9c932209ed269147b8235aa097282626c4552aa124e0c460ab289d6189d84b3f678e82dc6236a81ef787baab8f
1097 +EBUILD freebsd-pam-modules-10.9999_p270665.ebuild 1124 SHA256 b631cab5061193c283ffa26c044d6554f8f1a4ff34713190b5c37f213fbd12fa SHA512 8af9f32f80ff40bf9bbfb2dea69694f13eedfb18e0d1619efea1f5438e572dba2c2099013fd7e5b09f79914c9a8504f2873fab94cde0094f633fc539c61d9d2b WHIRLPOOL a4ddf2176f0b497c83ea63f97340afe48d39ae9c932209ed269147b8235aa097282626c4552aa124e0c460ab289d6189d84b3f678e82dc6236a81ef787baab8f
1098 EBUILD freebsd-pam-modules-9.3.0.9999.ebuild 1109 SHA256 83e05f34236f61f73e3db23029b32b3543017e22c4ad4ef2955cce3380a0d791 SHA512 6dd0e338936662a9a3b37fa1f2be1a3f0dadf2114998c51245988fabe66ad48ad79a291e2e4a06fbee0051105a0b63e5b3ab941a49bc1e4b2853cce7b86afc34 WHIRLPOOL 68859464d43e1d2667ef9eb6710b935c1481c591123199c147c8c1eaebad4e58050ad8754f9468689f88bf165f27fa49de7ea1353bb2dba59134a4cd1258b900
1099
1100 diff --git a/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.9999_p270665.ebuild b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.9999_p270665.ebuild
1101 new file mode 100644
1102 index 0000000..ab4e762
1103 --- /dev/null
1104 +++ b/sys-freebsd/freebsd-pam-modules/freebsd-pam-modules-10.9999_p270665.ebuild
1105 @@ -0,0 +1,47 @@
1106 +# Copyright 1999-2014 Gentoo Foundation
1107 +# Distributed under the terms of the GNU General Public License v2
1108 +# $Header: $
1109 +
1110 +EAPI=3
1111 +
1112 +inherit bsdmk freebsd multilib pam
1113 +
1114 +DESCRIPTION="FreeBSD's PAM authentication modules"
1115 +SLOT="0"
1116 +
1117 +IUSE="kerberos nis"
1118 +
1119 +if [[ ${PV} != *9999* ]]; then
1120 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1121 + SRC_URI="mirror://gentoo/${LIB}.tar.bz2"
1122 +fi
1123 +
1124 +RDEPEND=">=sys-auth/openpam-20050201-r1
1125 + kerberos? ( dev-libs/openssl
1126 + virtual/krb5 )"
1127 +DEPEND="${RDEPEND}
1128 + =sys-freebsd/freebsd-mk-defs-${RV}*
1129 + =sys-freebsd/freebsd-sources-${RV}*"
1130 +
1131 +S=${WORKDIR}/lib/libpam/modules
1132 +
1133 +PATCHES=( "${FILESDIR}"/${PN}-9.0-gentoo.patch )
1134 +
1135 +pkg_setup() {
1136 + # Avoid installing pam_ssh as that has its own ebuild.
1137 + mymakeopts="${mymakeopts} WITHOUT_OPENSSH= "
1138 + use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS= "
1139 + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
1140 +}
1141 +
1142 +src_prepare() {
1143 + for module in pam_deny pam_passwdqc pam_permit pam_krb5; do
1144 + sed -i -e "s:${module}::" "${S}"/modules.inc
1145 + done
1146 +}
1147 +
1148 +src_install() {
1149 + mkinstall "LIBDIR=/$(get_libdir)/security" || die "install failed"
1150 +
1151 + dodoc "${FILESDIR}/README.pamd"
1152 +}
1153
1154 diff --git a/sys-freebsd/freebsd-pf/Manifest b/sys-freebsd/freebsd-pf/Manifest
1155 index 6ffddb7..2d6b8a8 100644
1156 --- a/sys-freebsd/freebsd-pf/Manifest
1157 +++ b/sys-freebsd/freebsd-pf/Manifest
1158 @@ -8,4 +8,5 @@ AUX freebsd-pf-9.0-pflogd.patch 332 SHA256 fc832fdfa406603a2cb185b8f0f746b13f767
1159 AUX pf.confd 274 SHA256 dba0e34d34ef583b3a06499eae5f5dd9a73cacdb238915060735e24bd6c2c8eb SHA512 bf476bf7dc796307f2bf916e73780a6c70a2defd75f4dcbce664a99fdbb5aa69ce7004483073036a0c52fadcf9e7e7c8bcc902e9eacb7ac1963714740bdfc5e5 WHIRLPOOL fa87094a2339af4fc117840741e6460331c8de1d7ff656394701d58d0f362243788b1d6e650ee2cea34e9e4ad9c19f97996de8d01927808875384af2925a8adc
1160 AUX pf.initd 916 SHA256 b0cf7dadb825a1133fb52069e63eda10042aa62e3fa702bfbee53cd455837ac9 SHA512 cd55eccc9735f5a9e41297049a12c23b3fb4ef0987236b25bbfeeb01e7e0be697ff60fe8c9827dbb6a3da93211d6534e018a9693a6d1d48d60723738a21e7485 WHIRLPOOL babaa4fdcb885262ec9e89b9bd076aa4fec0c82764025d3192dda6986366b2f0169235c4c771510ea742444deb0c7bccf56f4ab23fb592351decae445b9cc158
1161 EBUILD freebsd-pf-10.0.0.9999.ebuild 1678 SHA256 3bc74457178d6c6496c2080943e80de01853e45b4427e27ba10e53ad6c51b093 SHA512 f7eb1b7f5db59329cbe19b94db51d5372529e43a4e4e925d8fea1801d75220fb8c8073a40fb7d85240557c3a02b8239fc8dabfaaaefae1062afaab7679cf6128 WHIRLPOOL 287a0be6dac4bb133954829d35886c478768a5b81d6a7e416bf1c47cb1f6b24558145b757749f647d9326acfb95f99de79a5859b8323b1f3e02ac53cf9cc6610
1162 +EBUILD freebsd-pf-10.9999_p270665.ebuild 1678 SHA256 3bc74457178d6c6496c2080943e80de01853e45b4427e27ba10e53ad6c51b093 SHA512 f7eb1b7f5db59329cbe19b94db51d5372529e43a4e4e925d8fea1801d75220fb8c8073a40fb7d85240557c3a02b8239fc8dabfaaaefae1062afaab7679cf6128 WHIRLPOOL 287a0be6dac4bb133954829d35886c478768a5b81d6a7e416bf1c47cb1f6b24558145b757749f647d9326acfb95f99de79a5859b8323b1f3e02ac53cf9cc6610
1163 EBUILD freebsd-pf-9.3.0.9999.ebuild 1680 SHA256 020a048ac9a95eefd39e8999dffe54bd493c4307f3626ece54a5f8a021d0446d SHA512 4d52667af56d50d39501471f209954d8186679ec70588d2b5397b46d83452b9e49df002382d995088b25dc7e1c62d2b1beafd1831808416325328c024b3cc1f2 WHIRLPOOL 1787a07b62c9058dd622980779f0c762eaf46813b797d1f18ed29ffbdd0f3aeab5f0520749cf4f61c4a60fdd565e8fc7e8b277c3861bfca4764fae6a48749078
1164
1165 diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-10.9999_p270665.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-10.9999_p270665.ebuild
1166 new file mode 100644
1167 index 0000000..70e25fa
1168 --- /dev/null
1169 +++ b/sys-freebsd/freebsd-pf/freebsd-pf-10.9999_p270665.ebuild
1170 @@ -0,0 +1,70 @@
1171 +# Copyright 1999-2014 Gentoo Foundation
1172 +# Distributed under the terms of the GNU General Public License v2
1173 +# $Header: $
1174 +
1175 +EAPI=3
1176 +
1177 +inherit bsdmk freebsd user
1178 +
1179 +DESCRIPTION="FreeBSD's base system libraries"
1180 +SLOT="0"
1181 +
1182 +IUSE=""
1183 +
1184 +# Crypto is needed to have an internal OpenSSL header
1185 +if [[ ${PV} != *9999* ]]; then
1186 + KEYWORDS="~amd64-fbsd ~x86-fbsd"
1187 + SRC_URI="mirror://gentoo/${USBIN}.tar.xz
1188 + mirror://gentoo/${SBIN}.tar.xz
1189 + mirror://gentoo/${CONTRIB}.tar.xz
1190 + mirror://gentoo/${ETC}.tar.xz"
1191 +fi
1192 +
1193 +RDEPEND="net-libs/libpcap"
1194 +DEPEND="${RDEPEND}
1195 + dev-libs/libevent
1196 + =sys-freebsd/freebsd-mk-defs-${RV}*
1197 + =sys-freebsd/freebsd-sources-${RV}*"
1198 +
1199 +S="${WORKDIR}"
1200 +
1201 +SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy/ftp-proxy"
1202 +
1203 +pkg_setup() {
1204 + enewgroup authpf 63
1205 + mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
1206 +}
1207 +
1208 +src_prepare() {
1209 + # pcap-int.h redefines snprintf as pcap_snprintf
1210 + epatch "${FILESDIR}/${PN}-9.0-pcap_pollution.patch"
1211 + # Use system's libevent
1212 + epatch "${FILESDIR}/${PN}-10.0-libevent.patch"
1213 + epatch "${FILESDIR}/${PN}-10.0-pflogd.patch"
1214 + epatch "${FILESDIR}/${PN}-9.0-bpf.patch"
1215 + epatch "${FILESDIR}/${PN}-9.0-getline.patch"
1216 + # Link in kernel sources
1217 + [[ ! -e "${WORKDIR}/sys" ]] && ln -s "/usr/src/sys" "${WORKDIR}/sys"
1218 +}
1219 +
1220 +src_compile() {
1221 + for dir in ${SUBDIRS}; do
1222 + einfo "Starting make in ${dir}"
1223 + cd "${S}/${dir}"
1224 + mkmake || die "Make ${dir} failed"
1225 + done
1226 +}
1227 +
1228 +src_install() {
1229 + for dir in ${SUBDIRS}; do
1230 + einfo "Starting install in ${dir}"
1231 + cd "${S}/${dir}"
1232 + mkinstall || die "Install ${dir} failed"
1233 + done
1234 +
1235 + cd "${WORKDIR}"/etc
1236 + insinto /etc
1237 + doins pf.os
1238 + # pf.initd provided by openrc, but no pf.confd
1239 + newconfd "${FILESDIR}/pf.confd" pf
1240 +}
1241
1242 diff --git a/sys-freebsd/freebsd-rescue/Manifest b/sys-freebsd/freebsd-rescue/Manifest
1243 index 564a02b..47bbc5d 100644
1244 --- a/sys-freebsd/freebsd-rescue/Manifest
1245 +++ b/sys-freebsd/freebsd-rescue/Manifest
1246 @@ -6,4 +6,5 @@ AUX freebsd-rescue-9.1-bsdtar.patch 404 SHA256 0e71e3e370b33318bbb167e82d6507589
1247 AUX freebsd-rescue-9.1-libcleverlink.patch 801 SHA256 53794263aabaf55cd570adbbfdb68e86a9e9b17557e8ca223d424a5c2f4f6831 SHA512 556bb68f3307dc7fb10096080db2d336ba4096ba6bebc6a1fe9449ab5298ce2c66fb53f11f0702ee75c2208b45a6e2cb366a3d774bedb65bcdb2a49f51c08fa3 WHIRLPOOL 88125b9143113b1f7049bf63a20a0c6d82fbe2c722198405830092b0a183f4bf7744420e6a82b601c8fb25911556c8f3a9088949798c7f66caf7843a5f9b2347
1248 AUX freebsd-sbin-bsdxml2expat.patch 424 SHA256 f40f55bec52d0e3e0205c363ad624a1139a74d5de36f99ca2ff9e53583bc2287 SHA512 f455db40e528c9bf19a68a639d2c0b304371d66741ee852c279246647f43620fd33911787aa9721547e086cbaa7dafa85b1ee6571094593c74de15e2ccc2f522 WHIRLPOOL 9409fa6d31a1a9b7dad59a6bdd820319c8a895b27c130af7d29e0db969be6760c4ab7df952420fb4fca9445fe0433b3aca5377f509852261d0f6b4e5a2fbd72b
1249 EBUILD freebsd-rescue-10.0.0.9999.ebuild 1997 SHA256 4b669c20567d931f38f20c824b1c9a0a72bfdad998bd7616621289d8077e0586 SHA512 3d39ba10c1db1dc60924e31bb1a8b24436c4d0a8fb2371dc1e081e15c227de729f9be85952f75de21f8316086c8ef969da30863130e65e1e041e0e8f19f79187 WHIRLPOOL dbe509a3d8d6eac97b063382ce0f3aec073102253b21e36ae6df6c54ac534bb8c13178f255afa0066f5ffca3ef6d0f55b9cbf473ddbd6832a9724dbe7511699f
1250 +EBUILD freebsd-rescue-10.9999_p270665.ebuild 1997 SHA256 4b669c20567d931f38f20c824b1c9a0a72bfdad998bd7616621289d8077e0586 SHA512 3d39ba10c1db1dc60924e31bb1a8b24436c4d0a8fb2371dc1e081e15c227de729f9be85952f75de21f8316086c8ef969da30863130e65e1e041e0e8f19f79187 WHIRLPOOL dbe509a3d8d6eac97b063382ce0f3aec073102253b21e36ae6df6c54ac534bb8c13178f255afa0066f5ffca3ef6d0f55b9cbf473ddbd6832a9724dbe7511699f
1251 EBUILD freebsd-rescue-9.3.0.9999.ebuild 2007 SHA256 d06c193d43a23ad8537328ad450d03928cd3e55a2abbeaf89514f8487f6ba2a6 SHA512 f188c36bde9b899c9e9233053f4119809e70d6ace6ea55bfe54261622659f904a60dd57b896955d7d51a6c92d721dc5430d9f86ab4eabd908f032077b34a002a WHIRLPOOL 30aa4d9f8cc9fea4678d27a0c6246b858eb457d5c5e6c485dd39d62f59e80fb8c8fdf72b4844358dcb5833a38774c407a095a502a9b355fb03a697b023424de1
1252
1253 diff --git a/sys-freebsd/freebsd-rescue/freebsd-rescue-10.9999_p270665.ebuild b/sys-freebsd/freebsd-rescue/freebsd-rescue-10.9999_p270665.ebuild
1254 new file mode 100644
1255 index 0000000..821021c
1256 --- /dev/null
1257 +++ b/sys-freebsd/freebsd-rescue/freebsd-rescue-10.9999_p270665.ebuild
1258 @@ -0,0 +1,76 @@
1259 +# Copyright 1999-2014 Gentoo Foundation
1260 +# Distributed under the terms of the GNU General Public License v2
1261 +# $Header: $
1262 +
1263 +EAPI=5
1264 +
1265 +inherit bsdmk freebsd toolchain-funcs
1266 +
1267 +DESCRIPTION="FreeBSD's rescue binaries"
1268 +SLOT="0"
1269 +LICENSE="BSD zfs? ( CDDL )"
1270 +
1271 +IUSE="atm netware nis zfs"
1272 +
1273 +if [[ ${PV} != *9999* ]]; then
1274 + KEYWORDS="~amd64-fbsd ~x86-fbsd"
1275 + SRC_URI="mirror://gentoo/${UBIN}.tar.xz
1276 + mirror://gentoo/${CONTRIB}.tar.xz
1277 + mirror://gentoo/${LIB}.tar.xz
1278 + mirror://gentoo/${BIN}.tar.xz
1279 + mirror://gentoo/${SBIN}.tar.xz
1280 + mirror://gentoo/${USBIN}.tar.xz
1281 + mirror://gentoo/${GNU}.tar.xz
1282 + mirror://gentoo/${SYS}.tar.xz
1283 + mirror://gentoo/${LIBEXEC}.tar.xz
1284 + mirror://gentoo/${RESCUE}.tar.xz
1285 + zfs? ( mirror://gentoo/${CDDL}.tar.xz )"
1286 +fi
1287 +
1288 +RDEPEND=""
1289 +DEPEND="sys-devel/flex
1290 + app-arch/xz-utils[static-libs]
1291 + sys-libs/ncurses[static-libs]
1292 + dev-libs/expat[static-libs]
1293 + app-arch/bzip2[static-libs]
1294 + dev-libs/libedit[static-libs]
1295 + dev-libs/libxml2:2[static-libs]
1296 + dev-libs/openssl[static-libs]
1297 + sys-libs/zlib[static-libs]
1298 + sys-libs/readline[static-libs]
1299 + =sys-freebsd/freebsd-lib-${RV}*[atm?,netware?]
1300 + =sys-freebsd/freebsd-sources-${RV}*
1301 + =sys-freebsd/freebsd-mk-defs-${RV}*
1302 + zfs? ( =sys-freebsd/freebsd-cddl-${RV}* )"
1303 +
1304 +S="${WORKDIR}/rescue"
1305 +
1306 +pkg_setup() {
1307 + use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
1308 + use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= "
1309 + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
1310 + use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
1311 + mymakeopts="${mymakeopts} NO_PIC= "
1312 +}
1313 +
1314 +src_prepare() {
1315 + # As they are patches from ${WORKDIR} apply them by hand
1316 + cd "${WORKDIR}"
1317 + epatch "${FILESDIR}/${PN}"-10.0-zlib.patch
1318 + epatch "${FILESDIR}/freebsd-sbin-bsdxml2expat.patch"
1319 +}
1320 +
1321 +src_compile() {
1322 + tc-export CC
1323 + # crunchgen is now checks env MAKE.
1324 + # Use to force BSD's make
1325 + export MAKE=/usr/bin/make
1326 +
1327 + cd "${WORKDIR}/lib/libarchive"
1328 + echo "#include <expat.h>" > bsdxml.h
1329 + freebsd_src_compile
1330 + export CC="${CC} -L${WORKDIR}/lib/libarchive"
1331 +
1332 + cd "${S}"
1333 + freebsd_src_compile
1334 +}
1335
1336 diff --git a/sys-freebsd/freebsd-sbin/Manifest b/sys-freebsd/freebsd-sbin/Manifest
1337 index 71e1a6e..550c230 100644
1338 --- a/sys-freebsd/freebsd-sbin/Manifest
1339 +++ b/sys-freebsd/freebsd-sbin/Manifest
1340 @@ -7,4 +7,5 @@ AUX freebsd-sbin-bsdxml2expat.patch 424 SHA256 f40f55bec52d0e3e0205c363ad624a113
1341 AUX freebsd-sbin-setXid.patch 541 SHA256 2d8158df7af52f9ce15f1513d16ed08ea6244f310aea3f271b12184a6a4c4267 SHA512 e6f1aefab22eca6941a5b62f6f9d9c82e0efc2b308ec636ecab40d9a678e87f2f6ccfefac99f5367ad8a16d18ddadf9a877a2f93697248b3f38a09edac75ec6e WHIRLPOOL a2d578ff3b54ad25875f65d6724d0762c0fc3a400aa8e14c93ab94dc789910fbc6ab70528cbd0074fd0d7a4957a2d2d51bf10f615cbfd751aa4e95edc88d4e7d
1342 AUX idmapd.initd 440 SHA256 e89050097731f658825b4a7215023e1c5070f0e31cfdf79eaf299ede9c9f9e39 SHA512 d76f1ed5b6cb0624359f0e1018b1decee80fec6e201393500656a2001034b042dde4299c2768ea8bfd1aa65813c86a5f9c06b5dd2e41ab74f954b8310d55259a WHIRLPOOL eeb04173b61c7e60883bd51e07be5f69aa67d6f4e506c3b3e07604e86cb43d81b5722e23e21ec189d83f2549a8827256216f45025ea5fd427b4874f2723c7a16
1343 EBUILD freebsd-sbin-10.0.0.9999.ebuild 2723 SHA256 4e547ff6a7352ea0e0035cb77e967424a95ff1c265c1d0dbc4f6fe196fea772e SHA512 a1069aad64bffbddd0389927267d3a45537bb871a5a3ecf68909b5d65fd10afeb00382941249b98d5196161da412124283bae63ff25eb025adf694e34a2c6a67 WHIRLPOOL 02e319e6a04a1ec83e55bdc46a95738cdef506f531bec2585d9306b39ecccc6ba4cd08144ed11c73493f67baec266e3f18cf2b96795d4851908fc9a30c6ef789
1344 +EBUILD freebsd-sbin-10.9999_p270665.ebuild 2723 SHA256 4e547ff6a7352ea0e0035cb77e967424a95ff1c265c1d0dbc4f6fe196fea772e SHA512 a1069aad64bffbddd0389927267d3a45537bb871a5a3ecf68909b5d65fd10afeb00382941249b98d5196161da412124283bae63ff25eb025adf694e34a2c6a67 WHIRLPOOL 02e319e6a04a1ec83e55bdc46a95738cdef506f531bec2585d9306b39ecccc6ba4cd08144ed11c73493f67baec266e3f18cf2b96795d4851908fc9a30c6ef789
1345 EBUILD freebsd-sbin-9.3.0.9999.ebuild 2729 SHA256 231858c2a2e3210891d0a8add3639fcaf009ae3436e1bdb3a3dc0f0029fbd2bb SHA512 a519e95555c210be68f0f1f9faca5e0323a37f998257a5a30a4dd3767527c5be855198c387f5b091207fd38c312e0f9fe01ad217353627c42481b8bec9770059 WHIRLPOOL 9b5dfe9c3bfeb9f584433a1e057fc27d2c65137facb1568451f733074683b58b42f93363ea87d9de4950ca525ebb832dad69ed910705978cc7f58ede0ed082fc
1346
1347 diff --git a/sys-freebsd/freebsd-sbin/freebsd-sbin-10.9999_p270665.ebuild b/sys-freebsd/freebsd-sbin/freebsd-sbin-10.9999_p270665.ebuild
1348 new file mode 100644
1349 index 0000000..4eaf754
1350 --- /dev/null
1351 +++ b/sys-freebsd/freebsd-sbin/freebsd-sbin-10.9999_p270665.ebuild
1352 @@ -0,0 +1,96 @@
1353 +# Copyright 1999-2014 Gentoo Foundation
1354 +# Distributed under the terms of the GNU General Public License v2
1355 +# $Header: $
1356 +
1357 +EAPI=3
1358 +
1359 +inherit bsdmk freebsd multilib
1360 +
1361 +DESCRIPTION="FreeBSD sbin utils"
1362 +SLOT="0"
1363 +
1364 +if [[ ${PV} != *9999* ]]; then
1365 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1366 + SRC_URI="mirror://gentoo/${SBIN}.tar.xz
1367 + mirror://gentoo/${CONTRIB}.tar.xz
1368 + mirror://gentoo/${LIB}.tar.xz
1369 + mirror://gentoo/${LIBEXEC}.tar.xz
1370 + mirror://gentoo/${USBIN}.tar.xz
1371 + mirror://gentoo/${ETC}.tar.xz
1372 + build? ( mirror://gentoo/${SYS}.tar.xz )"
1373 +fi
1374 +
1375 +RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[ipv6?,atm?,netware?]
1376 + =sys-freebsd/freebsd-libexec-${RV}*
1377 + >=dev-libs/expat-2.0.1
1378 + ssl? ( dev-libs/openssl )
1379 + >=dev-libs/libedit-20120311.3.0-r1
1380 + sys-libs/readline
1381 + sys-process/vixie-cron
1382 + atm? ( net-analyzer/bsnmp )"
1383 +DEPEND="${RDEPEND}
1384 + !build? ( =sys-freebsd/freebsd-sources-${RV}* )
1385 + =sys-freebsd/freebsd-mk-defs-${RV}*"
1386 +
1387 +S="${WORKDIR}/sbin"
1388 +
1389 +IUSE="atm ipfilter +pf ipv6 build ssl +cxx netware"
1390 +
1391 +pkg_setup() {
1392 + use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
1393 + use cxx || mymakeopts="${mymakeopts} WITHOUT_CXX="
1394 + use ipfilter || mymakeopts="${mymakeopts} WITHOUT_IPFILTER= "
1395 + use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT="
1396 + use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
1397 + use pf || mymakeopts="${mymakeopts} WITHOUT_PF= "
1398 + use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL="
1399 +}
1400 +
1401 +REMOVE_SUBDIRS="dhclient pfctl pflogd rcorder resolvconf"
1402 +
1403 +PATCHES=( "${FILESDIR}/${PN}-setXid.patch"
1404 + "${FILESDIR}/${PN}-10.0-zlib.patch"
1405 + "${FILESDIR}/${PN}-6.2-ldconfig.patch"
1406 + "${FILESDIR}/${PN}-6.1-pr102701.patch"
1407 + "${FILESDIR}/${PN}-bsdxml2expat.patch" )
1408 +
1409 +src_prepare() {
1410 + if [[ ! -e "${WORKDIR}/sys" ]]; then
1411 + use build || ln -s "/usr/src/sys" "${WORKDIR}/sys"
1412 + fi
1413 +}
1414 +
1415 +src_install() {
1416 + mymakeopts="${mymakeopts} GEOM_CLASS_DIR=/$(get_libdir)/geom "
1417 + freebsd_src_install
1418 + keepdir /var/log
1419 + # Needed by ldconfig:
1420 + keepdir /var/run
1421 +
1422 + # Maybe ship our own sysctl.conf so things like radvd work out of the box.
1423 + # New wireless config method requires regdomain.xml in /etc
1424 + cd "${WORKDIR}/etc/"
1425 + insinto /etc
1426 + doins minfree sysctl.conf regdomain.xml || die
1427 +
1428 + # initd script for idmapd
1429 + newinitd "${FILESDIR}/idmapd.initd" idmapd
1430 +
1431 + # Install a crontab for adjkerntz
1432 + insinto /etc/cron.d
1433 + newins "${FILESDIR}/adjkerntz-crontab" adjkerntz
1434 +
1435 + # Install the periodic stuff (needs probably to be ported in a more
1436 + # gentooish way)
1437 + cd "${WORKDIR}/etc/periodic"
1438 +
1439 + doperiodic security \
1440 + security/*.ipfwlimit \
1441 + security/*.ipfwdenied || die
1442 +
1443 + use ipfilter && { doperiodic security \
1444 + security/*.ipfdenied || die ; }
1445 +
1446 + use pf && { doperiodic security \
1447 + security/*.pfdenied || die ; }
1448 +}
1449
1450 diff --git a/sys-freebsd/freebsd-share/Manifest b/sys-freebsd/freebsd-share/Manifest
1451 index ecbfcff..d642e17 100644
1452 --- a/sys-freebsd/freebsd-share/Manifest
1453 +++ b/sys-freebsd/freebsd-share/Manifest
1454 @@ -5,5 +5,6 @@ AUX freebsd-share-8.0-gnu-miscfiles.patch 858 SHA256 20b3761bd18d4ff8e7257ab006f
1455 AUX freebsd-share-9.0-gentoowaydir.patch 314 SHA256 68ddc9d6d95c95fc295f3ed3f7d7562de01ff6894b002bd7455d2da72cf4e2f2 SHA512 ef325e79806d78ede26567268829949de3aab02db1b7ea5f1dd834d4deeeddee8338679f7196fee6dc1a5682ccd79c1a0bdd73c96349961a8e1c2153fcf84afd WHIRLPOOL 10448b2cd090068b698d2d9037f2a217cdc20cebcfce4a13f98111ae4e4a2073ce4cb274ec3a7011c2e89acc1b2ab1b5e8e3d141817c065fdb35d1879ae31c37
1456 AUX freebsd-share-9.2-gnu-miscfiles.patch 1022 SHA256 0484a9ea6d05eb8d26c33efac61928c399230d8bf71a374fa2ae5c22a1acf3d2 SHA512 b220c884a6e3bb9037a1817b3bb1bcf181b1493836dafbef98bf0973e9781d2e2e982d9e17eef78b24056038e985969ed08c471c9ba374557097086bfcff8f3e WHIRLPOOL ffa0400172e0834f31897738d426dd53df40e67612e51045cd899cd84cef018db6a14c8600233fe2e23699a708e73f1b6df7654089356bdaa62274f5fc11931b
1457 EBUILD freebsd-share-10.0.0.9999.ebuild 3043 SHA256 1a7c9dfcf8a1cab305808b29fa8f427b0a9f450aa05b4ae96ac8cf2d6e3ce554 SHA512 5fcf89942246ea345f3986a3ddde62a004443f1bbb7530c946ac8b1873ba62bc61727766ccc40b17a5542bef3ee691e5651c7070deb0c8059cbe641310e6f85a WHIRLPOOL dee8dc8eda79a508ee24b845d957ae02a3ddba46ebd5b825939c07ddbf96380c31d5ead653b367f2c19afb7b0bc6e061651329ff50768ca24d6bca4783a1771d
1458 +EBUILD freebsd-share-10.9999_p270665.ebuild 3043 SHA256 1a7c9dfcf8a1cab305808b29fa8f427b0a9f450aa05b4ae96ac8cf2d6e3ce554 SHA512 5fcf89942246ea345f3986a3ddde62a004443f1bbb7530c946ac8b1873ba62bc61727766ccc40b17a5542bef3ee691e5651c7070deb0c8059cbe641310e6f85a WHIRLPOOL dee8dc8eda79a508ee24b845d957ae02a3ddba46ebd5b825939c07ddbf96380c31d5ead653b367f2c19afb7b0bc6e061651329ff50768ca24d6bca4783a1771d
1459 EBUILD freebsd-share-9.3.0.9999.ebuild 2770 SHA256 5f1d9daf17d7455820e26bf4fe4f467cce62982500f679eae42020fa2d9a0c0c SHA512 35b637ddc5d384925846980b26d91eae247dc9e311f1377ba888e746d3fc0eca0241009e60cfeec4b75fcbb676bb56f39d4f0fb05b9b64814424531c26d2adb7 WHIRLPOOL 21fd24ec40f3ee82559b506d3dab9278360329a396f1f317770843419b74b2090851cd2c5f4bd8ef0fdbc86dd2129737100c42911b5756349d61c7d9ee947bae
1460 MISC metadata.xml 223 SHA256 5c9860c4ce81b51fef51a6c5e87081bfd13e74ba452c27191a1abc0ca5ff0aa0 SHA512 3dc7fea8c9f850d63d4f9f24af639fb41d406c2e87439eb960c401412b37e7dc7ab6822d446ec113eb079aba30967391e95cd71dceb889753ed969bc51f6064e WHIRLPOOL 577570d1260a6ef86155c1647e3d90c18aa9b83a89027dcea28b70d22df60e413cee353083d7e915d81129f447772dc7dc4ea766e478a9cf363dabce5d9042de
1461
1462 diff --git a/sys-freebsd/freebsd-share/freebsd-share-10.9999_p270665.ebuild b/sys-freebsd/freebsd-share/freebsd-share-10.9999_p270665.ebuild
1463 new file mode 100644
1464 index 0000000..867e4dc
1465 --- /dev/null
1466 +++ b/sys-freebsd/freebsd-share/freebsd-share-10.9999_p270665.ebuild
1467 @@ -0,0 +1,104 @@
1468 +# Copyright 1999-2014 Gentoo Foundation
1469 +# Distributed under the terms of the GNU General Public License v2
1470 +# $Header: $
1471 +
1472 +EAPI=3
1473 +
1474 +inherit bsdmk freebsd
1475 +
1476 +DESCRIPTION="FreeBSD shared tools/files"
1477 +SLOT="0"
1478 +
1479 +IUSE="doc zfs"
1480 +
1481 +if [[ ${PV} != *9999* ]]; then
1482 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1483 + SRC_URI="mirror://gentoo/${SHARE}.tar.xz
1484 + mirror://gentoo/${CONTRIB}.tar.xz
1485 + mirror://gentoo/${GNU}.tar.xz
1486 + mirror://gentoo/${UBIN}.tar.xz
1487 + mirror://gentoo/${USBIN}.tar.xz
1488 + mirror://gentoo/${SBIN}.tar.xz
1489 + mirror://gentoo/${BIN}.tar.xz
1490 + mirror://gentoo/${LIB}.tar.xz
1491 + mirror://gentoo/${ETC}.tar.xz
1492 + zfs? ( mirror://gentoo/${CDDL}.tar.xz )"
1493 +fi
1494 +
1495 +DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
1496 + =sys-freebsd/freebsd-sources-${RV}*"
1497 +RDEPEND="sys-apps/miscfiles"
1498 +
1499 +RESTRICT="strip"
1500 +
1501 +S="${WORKDIR}/share"
1502 +
1503 +pkg_setup() {
1504 + use doc || mymakeopts="${mymakeopts} NO_SHAREDOCS= "
1505 + use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
1506 +
1507 + mymakeopts="${mymakeopts} NO_SENDMAIL= NO_MANCOMPRESS= NO_INFOCOMPRESS= "
1508 +}
1509 +
1510 +REMOVE_SUBDIRS="mk termcap zoneinfo tabset"
1511 +
1512 +PATCHES=( "${FILESDIR}/${PN}-5.3-doc-locations.patch"
1513 + "${FILESDIR}/${PN}-5.4-gentoo-skel.patch"
1514 + "${FILESDIR}/${PN}-9.2-gnu-miscfiles.patch"
1515 + "${FILESDIR}/${PN}-10.0-gentoo-eapi3.patch" )
1516 +
1517 +src_prepare() {
1518 + # Remove make.conf manpage as it describes bsdmk's make.conf.
1519 + sed -i -e 's:make.conf.5::' "${S}/man/man5/Makefile"
1520 + # Remove rc.conf manpage as it describes bsd's rc.conf.
1521 + sed -i -e 's:\brc.conf.5::' "${S}/man/man5/Makefile"
1522 + sed -i -e 's:\brc.conf.local.5::' "${S}/man/man5/Makefile"
1523 + # Remove mailer.conf manpage
1524 + sed -i -e 's:mailer.conf.5::' "${S}/man/man5/Makefile"
1525 + # Remove pbm and moduli(ssh) manpages
1526 + sed -i -e 's:pbm.5::' -e 's:moduli.5::' "${S}/man/man5/Makefile"
1527 + # Remove builtins manpage
1528 + sed -i -e '/builtins\.1/d' "${S}/man/man1/Makefile"
1529 + # Remove rc manpages
1530 + sed -i -e '/rc.8/d' "${S}/man/man8/Makefile"
1531 +
1532 + # Don't install the arch-specific directories in subdirectories
1533 + sed -i -e '/MANSUBDIR/d' "${S}"/man/man4/man4.{i386,sparc64}/Makefile
1534 +
1535 + # Remove them so that they can't be included by error
1536 + rm -rf "${S}"/mk/*.mk
1537 +
1538 + # Make proper symlinks by defining the full target.
1539 + local sdir
1540 + for sdir in colldef mklocale monetdef msgdef numericdef timedef
1541 + do
1542 + sed -e 's:\${enc2}$:\${enc2}/\${FILESNAME}:g' -i \
1543 + "${S}/${sdir}/Makefile" || \
1544 + die "Error fixing ${sdir}/Makefile"
1545 + done
1546 + if [[ ! -e "${WORKDIR}/sys" ]]; then
1547 + ln -s "/usr/src/sys" "${WORKDIR}/sys" || die "failed to set sys symlink"
1548 + fi
1549 +}
1550 +
1551 +src_compile() {
1552 + export ESED="/usr/bin/sed"
1553 +
1554 + # libiconv support.
1555 + # i18n/csmapper/APPLE requires mkcsmapper_static
1556 + # i18n/esdb/APPLE requires mkesdb_static
1557 + for pkg in mkcsmapper_static mkesdb_static
1558 + do
1559 + cd "${WORKDIR}"/usr.bin/${pkg}
1560 + freebsd_src_compile
1561 + done
1562 +
1563 + # This is a groff problem and not a -shared problem.
1564 + cd "${S}"
1565 + export GROFF_TMAC_PATH="/usr/share/tmac/:/usr/share/groff/1.22.2/tmac/"
1566 + freebsd_src_compile -j1 || die "emake failed"
1567 +}
1568 +
1569 +src_install() {
1570 + mkmake -j1 DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install || die "Install failed"
1571 +}
1572
1573 diff --git a/sys-freebsd/freebsd-sources/Manifest b/sys-freebsd/freebsd-sources/Manifest
1574 index a3153b2..af98d4d 100644
1575 --- a/sys-freebsd/freebsd-sources/Manifest
1576 +++ b/sys-freebsd/freebsd-sources/Manifest
1577 @@ -23,5 +23,6 @@ AUX freebsd-sources-9.2-gentoo.patch 716 SHA256 9a196adef145f57bf960b936f69065f6
1578 AUX freebsd-sources-cve-2012-0217.patch 856 SHA256 9b752e65a29b2b9a4a1412765d69d00310c05508af1cfa6d8d3c16d545bb3ffe SHA512 b1ac18cae23b81fd5ab2fcb44bb9f9808d6eb80f52b8572b81296fdd0b18edee62460520bc753848283d67e13367bf99775a2a5c6cf0272def9cdff6ec6fa4d9 WHIRLPOOL 27e4d0647c5275b77123bef6b866ac841af4b1b547fc663f776da82a7889995eba21b930adeabf2a71b3fbe053d2af5583cbdb6e8fd16a0379d10214d24b9121
1579 AUX freebsd-sources-cve-2012-4576.patch 561 SHA256 c3ad42e10164eaa3d928fd11a68b5ab490981b5d4684315e7e78c582e680d6c2 SHA512 451fb9be983672fa8d85d34bf13b67e70ac4bbda44da0c16ee484349bcf4e9ad795f66c36b5216bbcf022f709727dc19760e9f23b001a5768d9fa15dbad8122a WHIRLPOOL 2f261add2b2d9014782198b564a807f1a61917e0fbe91354ce5b1a685b27e312e699b7dc799f1653c952864633be84dda110e37f74378a3c5f1c5aacacb6811d
1580 EBUILD freebsd-sources-10.0.0.9999-r4.ebuild 3767 SHA256 157f4aca34c64778cb10fa0682ef2bcb71234a75d764617a2b565335a5fe0e06 SHA512 4404b0ca857ef88bad1f36238f79ee82a4806fee0207dfaa64c0e152d59f0a86450666d7fe0bff6134fdf8bffda0181f8169d68ae379d5016e49f1f4584f1fc6 WHIRLPOOL b7b8c3cf385134d59d76aa791cec0a290fd0c7c93c2d464084bdff8c4f6f074bff39a1d16ee7008d1b5024c9e75f1b78f07f33ac101a8426875e0e2a72abb0d5
1581 +EBUILD freebsd-sources-10.9999_p270665.ebuild 3767 SHA256 157f4aca34c64778cb10fa0682ef2bcb71234a75d764617a2b565335a5fe0e06 SHA512 4404b0ca857ef88bad1f36238f79ee82a4806fee0207dfaa64c0e152d59f0a86450666d7fe0bff6134fdf8bffda0181f8169d68ae379d5016e49f1f4584f1fc6 WHIRLPOOL b7b8c3cf385134d59d76aa791cec0a290fd0c7c93c2d464084bdff8c4f6f074bff39a1d16ee7008d1b5024c9e75f1b78f07f33ac101a8426875e0e2a72abb0d5
1582 EBUILD freebsd-sources-9.3.0.9999.ebuild 3480 SHA256 53444c2041f38e45f405f11f3ca98f833ddaec78d0ec9fd2c4d11d2826455404 SHA512 0d77fbb0c7a02d04f728f728ae89b1839fa042aa29d28189bbf82f378dd909d711f04cad5e9aab2b7ba2796dd50526475f7842664d63d09452a6359b995ef795 WHIRLPOOL 032aa9f584e58d1431d542968b927b670b40668e6350e1c3b05e38357d4da0a922ee5bdade75c1d5ca51727b3930cbe1803dec36cabcf91057e4406db2bca9a8
1583 MISC metadata.xml 410 SHA256 f29a086ab076d7e7924571990c4cab73cce2aec303e10cf3be057dfa0c8b27fd SHA512 d949aac7499d418fce878c099d47713112e1856346dbf7478e95c14f37a5f2c2fbd580a21b2330712e439d5be235bc2de69ac182bd46c1727e95fbb3b081dd0f WHIRLPOOL ffc6ba7653dfa4be5d63231043a64c85a3ad2409f98b8e1f9cf03dd51edb84b1ed0add5a613e591e9f2409c92e3be08e8b3f7f2073fa45f362c19ef72ec7f63d
1584
1585 diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-10.9999_p270665.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-10.9999_p270665.ebuild
1586 new file mode 100644
1587 index 0000000..f8a1361
1588 --- /dev/null
1589 +++ b/sys-freebsd/freebsd-sources/freebsd-sources-10.9999_p270665.ebuild
1590 @@ -0,0 +1,131 @@
1591 +# Copyright 1999-2014 Gentoo Foundation
1592 +# Distributed under the terms of the GNU General Public License v2
1593 +# $Header: $
1594 +
1595 +EAPI=5
1596 +
1597 +inherit bsdmk freebsd flag-o-matic toolchain-funcs
1598 +
1599 +DESCRIPTION="FreeBSD kernel sources"
1600 +SLOT="0"
1601 +
1602 +IUSE="+build-kernel debug dtrace profile zfs"
1603 +
1604 +if [[ ${PV} != *9999* ]]; then
1605 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1606 + SRC_URI="mirror://gentoo/${SYS}.tar.xz"
1607 +fi
1608 +
1609 +RDEPEND="dtrace? ( >=sys-freebsd/freebsd-cddl-9.2_rc1 )
1610 + =sys-freebsd/freebsd-mk-defs-${RV}*
1611 + !sys-freebsd/virtio-kmod
1612 + !sys-fs/fuse4bsd
1613 + !<sys-freebsd/freebsd-sources-9.2_beta1"
1614 +DEPEND="build-kernel? (
1615 + dtrace? ( >=sys-freebsd/freebsd-cddl-9.2_rc1 )
1616 + !sparc-fbsd? ( sys-devel/clang )
1617 + >=sys-freebsd/freebsd-usbin-9.1
1618 + =sys-freebsd/freebsd-mk-defs-${RV}*
1619 + )"
1620 +
1621 +RESTRICT="strip binchecks"
1622 +
1623 +S="${WORKDIR}/sys"
1624 +
1625 +KERN_BUILD=GENTOO
1626 +
1627 +PATCHES=( "${FILESDIR}/${PN}-9.0-disable-optimization.patch"
1628 + "${FILESDIR}/${PN}-10.0-gentoo.patch"
1629 + "${FILESDIR}/${PN}-10.0-clang34.patch"
1630 + "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch"
1631 + "${FILESDIR}/${PN}-7.1-types.h-fix.patch"
1632 + "${FILESDIR}/${PN}-8.0-subnet-route-pr40133.patch"
1633 + "${FILESDIR}/${PN}-7.1-includes.patch"
1634 + "${FILESDIR}/${PN}-9.0-sysctluint.patch"
1635 + "${FILESDIR}/${PN}-9.2-gentoo-gcc.patch"
1636 + "${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch"
1637 + "${FILESDIR}/${PN}-9.1-cve-2014-1453.patch"
1638 + "${FILESDIR}/${PN}-9.1-tcp.patch"
1639 + "${FILESDIR}/${PN}-9.1-ciss.patch"
1640 + "${FILESDIR}/${PN}-10.0-EN-1407-pmap.patch"
1641 + "${FILESDIR}/${PN}-10.0-SA-1417-kmem.patch" )
1642 +
1643 +pkg_setup() {
1644 + # Force set CC=clang. when using gcc, aesni fails to build.
1645 + use sparc-fbsd || export CC=clang
1646 + use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL="
1647 +}
1648 +
1649 +src_prepare() {
1650 + local conf="${S}/$(tc-arch-kernel)/conf/${KERN_BUILD}"
1651 +
1652 + # This replaces the gentoover patch, it doesn't need reapply every time.
1653 + sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \
1654 + -e 's:^BRANCH=.*:BRANCH="Gentoo":' \
1655 + -e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \
1656 + "${S}/conf/newvers.sh"
1657 +
1658 + # __FreeBSD_cc_version comes from FreeBSD's gcc.
1659 + # on 10.0-RELEASE it's 1000001.
1660 + # FYI, can get it from gnu/usr.bin/cc/cc_tools/freebsd-native.h.
1661 + sed -e "s:-D_KERNEL:-D_KERNEL -D__FreeBSD_cc_version=1000001:g" \
1662 + -i "${S}/conf/kern.pre.mk" \
1663 + -i "${S}/conf/kmod.mk" || die "Couldn't set __FreeBSD_cc_version"
1664 +
1665 + # Remove -Werror
1666 + sed -e "s:-Werror:-Wno-error:g" \
1667 + -i "${S}/conf/kern.pre.mk" \
1668 + -i "${S}/conf/kmod.mk" || die
1669 +
1670 + # Set the kernel configuration using USE flags.
1671 + cp -f "${FILESDIR}/config-GENTOO" "${conf}" || die
1672 + use debug || echo 'nomakeoptions DEBUG' >> "${conf}"
1673 + use dtrace || echo 'nomakeoptions WITH_CTF' >> "${conf}"
1674 +
1675 + # Only used with USE=build-kernel, let the kernel build with its own flags, its safer.
1676 + unset LDFLAGS CFLAGS CXXFLAGS ASFLAGS KERNEL
1677 +}
1678 +
1679 +src_configure() {
1680 + if use build-kernel ; then
1681 + tc-export CC
1682 + cd "${S}/$(tc-arch-kernel)/conf" || die
1683 + config ${KERN_BUILD} || die
1684 + fi
1685 +}
1686 +
1687 +src_compile() {
1688 + if use build-kernel ; then
1689 + cd "${S}/$(tc-arch-kernel)/compile/${KERN_BUILD}" || die
1690 + freebsd_src_compile depend
1691 + freebsd_src_compile
1692 + else
1693 + einfo "Nothing to compile.."
1694 + fi
1695 +}
1696 +
1697 +src_install() {
1698 + if use build-kernel ; then
1699 + cd "${S}/$(tc-arch-kernel)/compile/${KERN_BUILD}" || die
1700 + freebsd_src_install
1701 + rm -rf "${S}/$(tc-arch-kernel)/compile/${KERN_BUILD}"
1702 + cd "${S}"
1703 + fi
1704 +
1705 + insinto "/usr/src/sys"
1706 + doins -r "${S}/"*
1707 +}
1708 +
1709 +pkg_preinst() {
1710 + if [[ -L "${ROOT}/usr/src/sys" ]]; then
1711 + einfo "/usr/src/sys is a symlink, removing it..."
1712 + rm -f "${ROOT}/usr/src/sys"
1713 + fi
1714 +
1715 + if use sparc-fbsd ; then
1716 + ewarn "WARNING: kldload currently causes kernel panics"
1717 + ewarn "on sparc64. This is probably a gcc-4.1 issue, but"
1718 + ewarn "we need gcc-4.1 to compile the kernel correctly :/"
1719 + ewarn "Please compile all modules you need into the kernel"
1720 + fi
1721 +}
1722
1723 diff --git a/sys-freebsd/freebsd-ubin/Manifest b/sys-freebsd/freebsd-ubin/Manifest
1724 index 020fa57..3a9cb46 100644
1725 --- a/sys-freebsd/freebsd-ubin/Manifest
1726 +++ b/sys-freebsd/freebsd-ubin/Manifest
1727 @@ -23,4 +23,5 @@ AUX passwd.pamd 360 SHA256 ff964fd309462cac711422be051122f8a60b570da9b13756e9012
1728 AUX su.1.pamd 432 SHA256 a231f9cbe5b9e03aa0aaa1520657332771f15d5e5cd69890ce49d02bb34e21c3 SHA512 7d7d8ef2a5b1b52b1b5aa5de86a8767a0aa217fb2658c9bb13bce09e3c68c1a4e15f287d2063a3f18615b9d7dc1eba1ebefb95c1510f9a4c7b7de810a5bcfa40 WHIRLPOOL 635fd8294abf9e8948032ab2b6d50565f2f9f72ea64c18799a6337776bdf2a7859e17bb58e3e1ab3558d74a10611225c31ac4b6cb26f1c5462bf855b02dc9e07
1729 AUX su.pamd 420 SHA256 efe3a5efafd7e97e9305f4d24f2b4aacb44f65b261ca54bca1306b918b82cb08 SHA512 25ac749209c05733d0c9978c8ef1712961a3bd863bb2f5615844ed9b44e98dcf7795c02dfc84d58703eca35331701f1fff06a13904792e634256675af5444a48 WHIRLPOOL c97d3314cd58edff9c05b8286e2a377ae928752197dec0d380fa68867a9e8ce5366cc97e8038c21c3f50f527957b6ecc6c723960e28e39a7e8fef1cf7f3caad1
1730 EBUILD freebsd-ubin-10.0.0.9999.ebuild 5821 SHA256 f88f49babd4f4475411583d7836362b152f71e61377418fc333b3d9d2fe57a2d SHA512 3810860bda81a2c9c2895e52c20c9c8589957e827ff1b7cfc9caef2ef9f27284caf1f3eeed41188f681b723ee0ce2de15fe3f6177cce892a5e20abd5966e6660 WHIRLPOOL edf3ad26f03a49b2dc3f4fd705a936f280b7c3a5953b5687d0f1dd1f33f9e8e605956944cca878af349578a68aa90622897db4ff62acdc135ed67cba845a904a
1731 +EBUILD freebsd-ubin-10.9999_p270665.ebuild 5821 SHA256 f88f49babd4f4475411583d7836362b152f71e61377418fc333b3d9d2fe57a2d SHA512 3810860bda81a2c9c2895e52c20c9c8589957e827ff1b7cfc9caef2ef9f27284caf1f3eeed41188f681b723ee0ce2de15fe3f6177cce892a5e20abd5966e6660 WHIRLPOOL edf3ad26f03a49b2dc3f4fd705a936f280b7c3a5953b5687d0f1dd1f33f9e8e605956944cca878af349578a68aa90622897db4ff62acdc135ed67cba845a904a
1732 EBUILD freebsd-ubin-9.3.0.9999.ebuild 5541 SHA256 6bbb334e144a4f4c99c840f56483874cab6b2e3697d0f549b72ae797d4444aed SHA512 d72dbff8b4659cc41133f174ecbbb629621841e13d772b21e1b02cc338e99ccb1f49b871a91665565cb4681eb660c3d99e7463b4be62e397e4bc8e5fdbe47ce9 WHIRLPOOL ba9332d62b0afbc1113506a3b9d8f5f1c65674073bde7436087bb4b9a21bf66c63951ac2aec447f31e5652de7aa51f0e53b92d045d474d94e3293d2410e90d5c
1733
1734 diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-10.9999_p270665.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-10.9999_p270665.ebuild
1735 new file mode 100644
1736 index 0000000..6f354f4
1737 --- /dev/null
1738 +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-10.9999_p270665.ebuild
1739 @@ -0,0 +1,196 @@
1740 +# Copyright 1999-2014 Gentoo Foundation
1741 +# Distributed under the terms of the GNU General Public License v2
1742 +# $Header: $
1743 +
1744 +EAPI=5
1745 +
1746 +inherit bsdmk freebsd flag-o-matic pam multilib multibuild multilib-build
1747 +
1748 +DESCRIPTION="FreeBSD's base system source for /usr/bin"
1749 +SLOT="0"
1750 +IUSE="ar atm audit bluetooth ipv6 kerberos netware nis ssl usb build zfs"
1751 +LICENSE="BSD zfs? ( CDDL )"
1752 +
1753 +if [[ ${PV} != *9999* ]]; then
1754 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1755 + SRC_URI="mirror://gentoo/${UBIN}.tar.xz
1756 + mirror://gentoo/${CONTRIB}.tar.xz
1757 + mirror://gentoo/${LIB}.tar.xz
1758 + mirror://gentoo/${ETC}.tar.xz
1759 + mirror://gentoo/${BIN}.tar.xz
1760 + mirror://gentoo/${INCLUDE}.tar.xz
1761 + zfs? ( mirror://gentoo/${CDDL}.tar.xz )
1762 + build? ( mirror://gentoo/${SYS}.tar.xz )"
1763 +fi
1764 +
1765 +RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,${MULTILIB_USEDEP}]
1766 + ssl? ( dev-libs/openssl )
1767 + kerberos? ( virtual/krb5 )
1768 + ar? ( >=app-arch/libarchive-3 )
1769 + virtual/pam
1770 + sys-libs/zlib
1771 + >=sys-libs/ncurses-5.9
1772 + !sys-process/fuser-bsd
1773 + !dev-util/csup
1774 + !dev-libs/libiconv
1775 + !sys-freebsd/freebsd-contrib"
1776 +
1777 +DEPEND="${RDEPEND}
1778 + sys-devel/flex
1779 + !build? ( =sys-freebsd/freebsd-sources-${RV}* )
1780 + =sys-freebsd/freebsd-mk-defs-${RV}*"
1781 +
1782 +RDEPEND="${RDEPEND}
1783 + >=sys-auth/pambase-20080219.1
1784 + sys-process/cronbase"
1785 +
1786 +S="${WORKDIR}/usr.bin"
1787 +
1788 +PATCHES=( "${FILESDIR}/${PN}-6.0-bsdcmp.patch"
1789 + "${FILESDIR}/${PN}-9.0-fixmakefiles.patch"
1790 + "${FILESDIR}/${PN}-setXid.patch"
1791 + "${FILESDIR}/${PN}-lint-stdarg.patch"
1792 + "${FILESDIR}/${PN}-8.0-xinstall.patch"
1793 + "${FILESDIR}/${PN}-9.1-bsdar.patch"
1794 + "${FILESDIR}/${PN}-9.1-minigzip.patch"
1795 + "${FILESDIR}/${PN}-10.0-atf.patch"
1796 + "${FILESDIR}/${PN}-10.0-dtc-gcc46.patch"
1797 + "${FILESDIR}/${PN}-10.0-kdump-ioctl.patch"
1798 + "${FILESDIR}/${PN}-10.0-mandoc.patch" )
1799 +
1800 +# Here we remove some sources we don't need because they are already
1801 +# provided by portage's packages or similar. In order:
1802 +# - Archiving tools, provided by their own ebuilds
1803 +# - ncurses stuff
1804 +# - less stuff
1805 +# - bind utils
1806 +# - rsh stuff
1807 +# - binutils gprof
1808 +# - dc stuff
1809 +# and the rest are misc utils we already provide somewhere else.
1810 +REMOVE_SUBDIRS="bzip2 bzip2recover tar cpio
1811 + gzip gprof
1812 + lzmainfo xz xzdec
1813 + unzip
1814 + tput tset tabs
1815 + less lessecho lesskey
1816 + hesinfo host
1817 + rsh rlogin rusers rwho ruptime
1818 + compile_et lex vi smbutil file vacation nc ftp telnet
1819 + c99 c89
1820 + bc dc
1821 + whois tftp man"
1822 +
1823 +pkg_setup() {
1824 + use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
1825 + use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= "
1826 + use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
1827 + use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
1828 + use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
1829 + use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
1830 + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
1831 + use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
1832 + use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
1833 + use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
1834 + mymakeopts="${mymakeopts} WITHOUT_CLANG= WITHOUT_LZMA_SUPPORT= WITHOUT_SVN= WITHOUT_SVNLITE= WITHOUT_OPENSSH= WITHOUT_LDNS_UTILS= "
1835 +}
1836 +
1837 +pkg_preinst() {
1838 + # bison installs a /usr/bin/yacc symlink ...
1839 + # we need to remove it to avoid triggering
1840 + # collision-protect errors
1841 + if [[ -L ${ROOT}/usr/bin/yacc ]] ; then
1842 + rm -f "${ROOT}"/usr/bin/yacc
1843 + fi
1844 +}
1845 +
1846 +src_prepare() {
1847 + if [[ ! -e "${WORKDIR}/sys" ]]; then
1848 + use build || ln -s "/usr/src/sys" "${WORKDIR}/sys"
1849 + fi
1850 +
1851 + # Rename manpage for renamed cmp
1852 + mv "${S}"/cmp/cmp.1 "${S}"/cmp/bsdcmp.1 || die
1853 + # Rename manpage for renamed ar
1854 + mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die
1855 + # Fix whereis(1) manpath search.
1856 + sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h"
1857 +
1858 + # Build a dynamic make
1859 + sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/make/Makefile || die
1860 +
1861 + # Disable it here otherwise our patch wont apply
1862 + use ar || dummy_mk ar
1863 +
1864 + # Preparing to build xlint
1865 + export LINT=xlint
1866 +}
1867 +
1868 +setup_multilib_vars() {
1869 + if ! multilib_is_native_abi ; then
1870 + cd "${WORKDIR}/usr.bin/ldd" || die
1871 + export mymakeopts="${mymakeopts} PROG=ldd32 WITHOUT_MAN="
1872 + else
1873 + cd "${S}"
1874 + fi
1875 + "$@"
1876 +}
1877 +
1878 +src_compile() {
1879 + # Preparing to build mandoc
1880 + cd "${WORKDIR}/lib/libmandoc"
1881 + freebsd_src_compile
1882 +
1883 + cd "${S}"
1884 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
1885 + multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile
1886 +}
1887 +
1888 +src_install() {
1889 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
1890 + multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_install
1891 +
1892 + # baselayout requires these in /bin
1893 + dodir /bin
1894 + for bin in sed printf ; do
1895 + mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed"
1896 + dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed"
1897 + done
1898 +
1899 + for pamdfile in login passwd su; do
1900 + newpamd "${FILESDIR}/${pamdfile}.1.pamd" ${pamdfile} || die
1901 + done
1902 +
1903 + cd "${WORKDIR}/etc"
1904 + insinto /etc
1905 + doins remote phones opieaccess fbtab || die
1906 +
1907 + exeinto /etc/cron.daily
1908 + newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb || die
1909 +
1910 + # tip requires /var/spool/lock/, bug #200700
1911 + keepdir /var/spool/lock
1912 +
1913 + # create locate database #472468
1914 + local f=/var/db/locate.database
1915 + mkdir "${ED}${f%/*}" || die
1916 + touch "${ED}${f}" || die
1917 + fowners nobody:nobody ${f}
1918 +}
1919 +
1920 +pkg_postinst() {
1921 + # We need to ensure that login.conf.db is up-to-date.
1922 + if [[ -e "${ROOT}"etc/login.conf ]] ; then
1923 + einfo "Updating ${ROOT}etc/login.conf.db"
1924 + "${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf
1925 + elog "Remember to run cap_mkdb /etc/login.conf after making changes to it"
1926 + fi
1927 +}
1928 +
1929 +pkg_postrm() {
1930 + # and if we uninstall yacc but keep bison,
1931 + # lets restore the /usr/bin/yacc symlink
1932 + if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then
1933 + ln -s yacc.bison "${ROOT}"/usr/bin/yacc
1934 + fi
1935 +}
1936
1937 diff --git a/sys-freebsd/freebsd-usbin/Manifest b/sys-freebsd/freebsd-usbin/Manifest
1938 index 1671263..8f0c5e6 100644
1939 --- a/sys-freebsd/freebsd-usbin/Manifest
1940 +++ b/sys-freebsd/freebsd-usbin/Manifest
1941 @@ -22,4 +22,5 @@ AUX syscons.confd 464 SHA256 7e566edb81fef49b662ad6b84dd0bf4657d5f05efe9791a515b
1942 AUX syscons.initd 1711 SHA256 16f5ab3ceb67accc10350d21527321c1e559c432f0b52e7b3adf08b67d9f62aa SHA512 41fef393e1fe732de065cb9ac3fdb4bbe73158a86f7c8b6175b496d0a65b9c682d888ce7b34c8a43732909c12626a2f5783457607e4b9bf6b4210589c3397d76 WHIRLPOOL 7a11eed37860db8dce71ad09299bd48427cf2beb349da3799189ef93d4d5c618b4c33b51e60f17cb485989dd3e0480458f5559c61deaa3f542f920df43f89801
1943 AUX syslogd.initd 571 SHA256 3f0f242197be7c59f36edffd36918935189d17ca7d8f5c2de6238c7a7f52d005 SHA512 0c67138b2461ba3629a7aa87dca35357ee17f2a1c1c13e1951417f4c05054ad006efb7f98dcf7fa24f0b90e0c0331e6fb7d1e3459c1db17f1bc82baa63b3beeb WHIRLPOOL e8dc6a0f402a474bb98c5d4a9a21b331a2a55726d517411c2b7c7adec28219e5a538ebb448c6c27dd1540affb914e935e91160cb0795ca6eb624f4ee163b0e9d
1944 EBUILD freebsd-usbin-10.0.0.9999.ebuild 5394 SHA256 809e5c8ff04b70fd30dda8e73e19c01920ebb5cee11239dc4b2951b896672ba0 SHA512 0db2df64096169c470f5f9c6d54091e936b04163d0f1abe745e3e38ba42fcda4fae6d040128ffa6fee3da6fc0ab6be156f1b4ad0ec27e98cc4d017c54951b6ff WHIRLPOOL bfad1b78162fb63a61f4e4709942613197c29218cd1fcc2aeda5fe197b550e518123eefd252f6bd41dcb0966870ecd2d6cc27c50e25f2950b03ec4568a8a402f
1945 +EBUILD freebsd-usbin-10.9999_p270665.ebuild 5394 SHA256 809e5c8ff04b70fd30dda8e73e19c01920ebb5cee11239dc4b2951b896672ba0 SHA512 0db2df64096169c470f5f9c6d54091e936b04163d0f1abe745e3e38ba42fcda4fae6d040128ffa6fee3da6fc0ab6be156f1b4ad0ec27e98cc4d017c54951b6ff WHIRLPOOL bfad1b78162fb63a61f4e4709942613197c29218cd1fcc2aeda5fe197b550e518123eefd252f6bd41dcb0966870ecd2d6cc27c50e25f2950b03ec4568a8a402f
1946 EBUILD freebsd-usbin-9.3.0.9999.ebuild 5542 SHA256 d1d03a895fbf61262eb2564953bdeeccc1deea94cd704ffe09e8c598fe26b2a4 SHA512 038e50122d6e2fa5e3f3bd21b2a72d6c3a7ebad7f65b2f0cf1a554134fd474879e06164fd0ba682529c6f0da0b2d0e607af55c586ba9045864d239cb16d402cf WHIRLPOOL 2f16129a2ddcbcb8bfaa390571c2050392a4e0dff5439f9e6ffbcea266b91e0421ba76464ff0b5971c8b501bdd60226b462289a100ea1d67e969ec439f204e6d
1947
1948 diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-10.9999_p270665.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-10.9999_p270665.ebuild
1949 new file mode 100644
1950 index 0000000..c6a38ac
1951 --- /dev/null
1952 +++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-10.9999_p270665.ebuild
1953 @@ -0,0 +1,176 @@
1954 +# Copyright 1999-2014 Gentoo Foundation
1955 +# Distributed under the terms of the GNU General Public License v2
1956 +# $Header: $
1957 +
1958 +EAPI=3
1959 +
1960 +inherit bsdmk freebsd flag-o-matic eutils
1961 +
1962 +DESCRIPTION="FreeBSD /usr/sbin tools"
1963 +SLOT="0"
1964 +
1965 +if [[ ${PV} != *9999* ]]; then
1966 + KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1967 + SRC_URI="mirror://gentoo/${P}.tar.xz
1968 + mirror://gentoo/${CONTRIB}.tar.xz
1969 + mirror://gentoo/${UBIN}.tar.xz
1970 + mirror://gentoo/${LIB}.tar.xz
1971 + mirror://gentoo/${SBIN}.tar.xz
1972 + mirror://gentoo/${ETC}.tar.xz
1973 + mirror://gentoo/${GNU}.tar.xz
1974 + nis? ( mirror://gentoo/${LIBEXEC}.tar.xz )
1975 + build? ( mirror://gentoo/${SYS}.tar.xz
1976 + mirror://gentoo/${INCLUDE}.tar.xz )"
1977 +fi
1978 +
1979 +RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,netware?]
1980 + =sys-freebsd/freebsd-libexec-${RV}*
1981 + build? ( sys-apps/baselayout )
1982 + ssl? ( dev-libs/openssl )
1983 + >=app-arch/libarchive-3
1984 + sys-apps/tcp-wrappers
1985 + dev-util/dialog
1986 + >=dev-libs/libedit-20120311.3.0-r1
1987 + net-libs/libpcap
1988 + kerberos? ( app-crypt/heimdal )"
1989 +DEPEND="${RDEPEND}
1990 + =sys-freebsd/freebsd-mk-defs-${RV}*
1991 + =sys-freebsd/freebsd-ubin-${RV}*
1992 + !build? ( =sys-freebsd/freebsd-sources-${RV}* )
1993 + sys-apps/texinfo
1994 + sys-devel/flex"
1995 +
1996 +S="${WORKDIR}/usr.sbin"
1997 +
1998 +IUSE="acpi atm audit bluetooth floppy ipv6 kerberos minimal netware nis pam ssl usb build"
1999 +
2000 +pkg_setup() {
2001 + # Release crunch is something like minimal. It seems to remove everything
2002 + # which is not needed to work.
2003 + use minimal && mymakeopts="${mymakeopts} RELEASE_CRUNCH= "
2004 +
2005 + use acpi || mymakeopts="${mymakeopts} WITHOUT_ACPI= "
2006 + use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
2007 + use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= "
2008 + use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
2009 + use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= "
2010 + use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
2011 + use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= "
2012 + use pam || mymakeopts="${mymakeopts} WITHOUT_PAM_SUPPORT= "
2013 + use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
2014 + use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
2015 + use floppy || mymakeopts="${mymakeopts} WITHOUT_FLOPPY= "
2016 + use kerberos || mymakeopts="${mymakeopts} WITHOUT_GSSAPI= "
2017 +
2018 + mymakeopts="${mymakeopts} WITHOUT_PF= WITHOUT_LPR= WITHOUT_SENDMAIL= WITHOUT_AUTHPF= WITHOUT_MAILWRAPPER= WITHOUT_UNBOUND= "
2019 +
2020 + append-flags $(test-flags -fno-strict-aliasing)
2021 +}
2022 +
2023 +PATCHES=(
2024 + "${FILESDIR}/${PN}-adduser.patch"
2025 + "${FILESDIR}/${PN}-9.0-newsyslog.patch"
2026 + "${FILESDIR}/${PN}-10.0-bsdxml2expat.patch"
2027 + )
2028 +
2029 +REMOVE_SUBDIRS="
2030 + tcpdchk tcpdmatch
2031 + sendmail praliases editmap mailstats makemap
2032 + pc-sysinstall cron mailwrapper ntp bsnmpd
2033 + tcpdump ndp inetd
2034 + wpa/wpa_supplicant wpa/hostapd wpa/hostapd_cli wpa/wpa_cli wpa/wpa_passphrase
2035 + zic amd
2036 + pkg pkg_install freebsd-update service sysrc"
2037 +
2038 +src_prepare() {
2039 + if ! use build; then
2040 + [[ ! -e "${WORKDIR}/sys" ]] && ln -s "/usr/src/sys" "${WORKDIR}/sys"
2041 + [[ ! -e "${WORKDIR}/include" ]] && ln -s "/usr/include" "${WORKDIR}/include"
2042 + else
2043 + dummy_mk mount_smbfs
2044 + fi
2045 + # Don't install mtree format manpage
2046 + # it's installed by libarchive.
2047 + sed -e "s: mtree.5::g" -i "${S}"/mtree/Makefile
2048 +}
2049 +
2050 +src_compile() {
2051 + # Preparing to build nmtree
2052 + cd "${WORKDIR}/lib/libnetbsd"
2053 + freebsd_src_compile
2054 +
2055 + cd "${S}"
2056 + freebsd_src_compile
2057 +}
2058 +
2059 +src_install() {
2060 + # By creating these directories we avoid having to do a
2061 + # more complex hack
2062 + dodir /usr/share/doc
2063 + dodir /sbin
2064 + dodir /usr/libexec
2065 + dodir /usr/bin
2066 +
2067 + # FILESDIR is used by some makefiles which will install files
2068 + # in the wrong place, just put it in the doc directory.
2069 + mkinstall DOCDIR=/usr/share/doc/${PF} || die "Install failed"
2070 +
2071 + # Most of these now come from openrc.
2072 + for util in iscsid nfs nfsuserd rpc.statd rpc.lockd; do
2073 + newinitd "${FILESDIR}/"${util}.initd ${util} || die
2074 + if [[ -e "${FILESDIR}"/${util}.confd ]]; then \
2075 + newconfd "${FILESDIR}"/${util}.confd ${util} || die
2076 + fi
2077 + done
2078 +
2079 + for class in daily monthly weekly; do
2080 + cat - > "${T}/periodic.${class}" <<EOS
2081 +#!/bin/sh
2082 +/usr/sbin/periodic ${class}
2083 +EOS
2084 + exeinto /etc/cron.${class}
2085 + newexe "${T}/periodic.${class}" periodic
2086 + done
2087 +
2088 + # Install the pw.conf file to let pw use Gentoo's skel location
2089 + insinto /etc
2090 + doins "${FILESDIR}/pw.conf" || die
2091 +
2092 + cd "${WORKDIR}/etc"
2093 + doins apmd.conf syslog.conf newsyslog.conf nscd.conf || die
2094 +
2095 + insinto /etc/ppp
2096 + doins ppp/ppp.conf || die
2097 +
2098 + if use bluetooth; then
2099 + insinto /etc/bluetooth
2100 + doins bluetooth/* || die
2101 + rm -f "${D}"/etc/bluetooth/Makefile
2102 + fi
2103 +
2104 + # Install the periodic stuff (needs probably to be ported in a more
2105 + # gentooish way)
2106 + cd "${WORKDIR}/etc/periodic"
2107 +
2108 + doperiodic daily daily/*.accounting
2109 + doperiodic monthly monthly/*.accounting
2110 +}
2111 +
2112 +pkg_postinst() {
2113 + # We need to run pwd_mkdb if key files are not present
2114 + # If they are, then there is no need to run pwd_mkdb
2115 + if [[ ! -e "${ROOT}etc/passwd" || ! -e "${ROOT}etc/pwd.db" || ! -e "${ROOT}etc/spwd.db" ]] ; then
2116 + if [[ -e "${ROOT}etc/master.passwd" ]] ; then
2117 + einfo "Generating passwd files from ${ROOT}etc/master.passwd"
2118 + "${ROOT}"usr/sbin/pwd_mkdb -p -d "${ROOT}etc" "${ROOT}etc/master.passwd"
2119 + else
2120 + eerror "${ROOT}etc/master.passwd does not exist!"
2121 + eerror "You will no be able to log into your system!"
2122 + fi
2123 + fi
2124 +
2125 + for logfile in messages security auth.log maillog lpd-errs xferlog cron \
2126 + debug.log slip.log ppp.log; do
2127 + [[ -f "${ROOT}/var/log/${logfile}" ]] || touch "${ROOT}/var/log/${logfile}"
2128 + done
2129 +}