1 |
mgorny 15/07/29 12:09:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-ubin-10.1-r1.ebuild |
5 |
Removed: freebsd-ubin-10.1.ebuild |
6 |
Log: |
7 |
Fix FreeBSD-SA-15:14.bsdpatch. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/186 by nigoro. |
8 |
|
9 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.104 sys-freebsd/freebsd-ubin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog?rev=1.104&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog?rev=1.104&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog?r1=1.103&r2=1.104 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v |
21 |
retrieving revision 1.103 |
22 |
retrieving revision 1.104 |
23 |
diff -u -r1.103 -r1.104 |
24 |
--- ChangeLog 5 Jun 2015 16:43:55 -0000 1.103 |
25 |
+++ ChangeLog 29 Jul 2015 12:09:34 -0000 1.104 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-freebsd/freebsd-ubin |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.103 2015/06/05 16:43:55 mgorny Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.104 2015/07/29 12:09:34 mgorny Exp $ |
31 |
+ |
32 |
+*freebsd-ubin-10.1-r1 (29 Jul 2015) |
33 |
+ |
34 |
+ 29 Jul 2015; Michał Górny <mgorny@g.o> +freebsd-ubin-10.1-r1.ebuild, |
35 |
+ -freebsd-ubin-10.1.ebuild: |
36 |
+ Fix FreeBSD-SA-15:14.bsdpatch. https://github.com/gentoo/gentoo-portage-rsync- |
37 |
+ mirror/pull/186 by nigoro. |
38 |
|
39 |
05 Jun 2015; Michał Górny <mgorny@g.o> freebsd-ubin-10.1.ebuild: |
40 |
Bump to EAPI=5. Use upstream tarballs. |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: freebsd-ubin-10.1-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2015 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-10.1-r1.ebuild,v 1.1 2015/07/29 12:09:34 mgorny Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit bsdmk freebsd flag-o-matic pam multilib multibuild multilib-build |
58 |
|
59 |
DESCRIPTION="FreeBSD's base system source for /usr/bin" |
60 |
SLOT="0" |
61 |
IUSE="ar atm audit bluetooth ipv6 kerberos netware nis ssl usb build zfs" |
62 |
LICENSE="BSD zfs? ( CDDL )" |
63 |
|
64 |
# Security Advisory and Errata patches. |
65 |
UPSTREAM_PATCHES=( "SA-15:14/bsdpatch.patch" ) |
66 |
|
67 |
if [[ ${PV} != *9999* ]]; then |
68 |
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
69 |
SRC_URI="${SRC_URI} |
70 |
$(freebsd_upstream_patches)" |
71 |
fi |
72 |
|
73 |
EXTRACTONLY=" |
74 |
usr.bin/ |
75 |
contrib/ |
76 |
lib/ |
77 |
etc/ |
78 |
bin/ |
79 |
include/ |
80 |
" |
81 |
use zfs && EXTRACTONLY+="cddl/" |
82 |
use build && EXTRACTONLY+="sys/" |
83 |
|
84 |
RDEPEND="=sys-freebsd/freebsd-lib-${RV}*[usb?,bluetooth?,${MULTILIB_USEDEP}] |
85 |
ssl? ( dev-libs/openssl ) |
86 |
kerberos? ( virtual/krb5 ) |
87 |
ar? ( >=app-arch/libarchive-3 ) |
88 |
virtual/pam |
89 |
sys-libs/zlib |
90 |
>=sys-libs/ncurses-5.9 |
91 |
!sys-process/fuser-bsd |
92 |
!dev-util/csup |
93 |
!dev-libs/libiconv |
94 |
!sys-freebsd/freebsd-contrib" |
95 |
|
96 |
DEPEND="${RDEPEND} |
97 |
sys-devel/flex |
98 |
!build? ( =sys-freebsd/freebsd-sources-${RV}* ) |
99 |
=sys-freebsd/freebsd-mk-defs-${RV}*" |
100 |
|
101 |
RDEPEND="${RDEPEND} |
102 |
>=sys-auth/pambase-20080219.1 |
103 |
sys-process/cronbase" |
104 |
|
105 |
S="${WORKDIR}/usr.bin" |
106 |
|
107 |
PATCHES=( "${FILESDIR}/${PN}-6.0-bsdcmp.patch" |
108 |
"${FILESDIR}/${PN}-9.0-fixmakefiles.patch" |
109 |
"${FILESDIR}/${PN}-setXid.patch" |
110 |
"${FILESDIR}/${PN}-lint-stdarg.patch" |
111 |
"${FILESDIR}/${PN}-8.0-xinstall.patch" |
112 |
"${FILESDIR}/${PN}-9.1-bsdar.patch" |
113 |
"${FILESDIR}/${PN}-9.1-minigzip.patch" |
114 |
"${FILESDIR}/${PN}-10.0-atf.patch" |
115 |
"${FILESDIR}/${PN}-10.0-dtc-gcc46.patch" |
116 |
"${FILESDIR}/${PN}-10.0-kdump-ioctl.patch" |
117 |
"${FILESDIR}/${PN}-10.0-mandoc.patch" |
118 |
"${FILESDIR}/${PN}-10.1-kdump-workaround.patch" ) |
119 |
|
120 |
# Here we remove some sources we don't need because they are already |
121 |
# provided by portage's packages or similar. In order: |
122 |
# - Archiving tools, provided by their own ebuilds |
123 |
# - ncurses stuff |
124 |
# - less stuff |
125 |
# - bind utils |
126 |
# - rsh stuff |
127 |
# - binutils gprof |
128 |
# - dc stuff |
129 |
# and the rest are misc utils we already provide somewhere else. |
130 |
REMOVE_SUBDIRS="bzip2 bzip2recover tar cpio |
131 |
gzip gprof |
132 |
lzmainfo xz xzdec |
133 |
unzip |
134 |
tput tset tabs |
135 |
less lessecho lesskey |
136 |
hesinfo host |
137 |
rsh rlogin rusers rwho ruptime |
138 |
compile_et lex vi smbutil file vacation nc ftp telnet |
139 |
c99 c89 |
140 |
bc dc |
141 |
whois tftp man" |
142 |
|
143 |
pkg_setup() { |
144 |
use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= " |
145 |
use audit || mymakeopts="${mymakeopts} WITHOUT_AUDIT= " |
146 |
use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= " |
147 |
use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6= WITHOUT_INET6_SUPPORT= " |
148 |
use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= " |
149 |
use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= " |
150 |
use nis || mymakeopts="${mymakeopts} WITHOUT_NIS= " |
151 |
use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= " |
152 |
use usb || mymakeopts="${mymakeopts} WITHOUT_USB= " |
153 |
use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= " |
154 |
mymakeopts="${mymakeopts} WITHOUT_CLANG= WITHOUT_LZMA_SUPPORT= WITHOUT_SVN= WITHOUT_SVNLITE= WITHOUT_OPENSSH= WITHOUT_LDNS_UTILS= " |
155 |
} |
156 |
|
157 |
pkg_preinst() { |
158 |
# bison installs a /usr/bin/yacc symlink ... |
159 |
# we need to remove it to avoid triggering |
160 |
# collision-protect errors |
161 |
if [[ -L ${ROOT}/usr/bin/yacc ]] ; then |
162 |
rm -f "${ROOT}"/usr/bin/yacc |
163 |
fi |
164 |
} |
165 |
|
166 |
src_prepare() { |
167 |
if [[ ! -e "${WORKDIR}/sys" ]]; then |
168 |
use build || ln -s "/usr/src/sys" "${WORKDIR}/sys" |
169 |
fi |
170 |
|
171 |
# Rename manpage for renamed cmp |
172 |
mv "${S}"/cmp/cmp.1 "${S}"/cmp/bsdcmp.1 || die |
173 |
# Rename manpage for renamed ar |
174 |
mv "${S}"/ar/ar.1 "${S}"/ar/freebsd-ar.1 || die |
175 |
# Fix whereis(1) manpath search. |
176 |
sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h" |
177 |
|
178 |
# Build a dynamic make |
179 |
sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/make/Makefile || die |
180 |
|
181 |
# Disable it here otherwise our patch wont apply |
182 |
use ar || dummy_mk ar |
183 |
|
184 |
# Preparing to build xlint |
185 |
export LINT=xlint |
186 |
} |
187 |
|
188 |
setup_multilib_vars() { |
189 |
if ! multilib_is_native_abi ; then |
190 |
cd "${WORKDIR}/usr.bin/ldd" || die |
191 |
export mymakeopts="${mymakeopts} PROG=ldd32 WITHOUT_MAN=" |
192 |
else |
193 |
cd "${S}" |
194 |
fi |
195 |
"$@" |
196 |
} |
197 |
|
198 |
src_compile() { |
199 |
# Preparing to build mandoc |
200 |
cd "${WORKDIR}/lib/libmandoc" |
201 |
freebsd_src_compile |
202 |
|
203 |
cd "${S}" |
204 |
local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) ) |
205 |
multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile |
206 |
} |
207 |
|
208 |
src_install() { |
209 |
local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) ) |
210 |
multibuild_foreach_variant freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_install |
211 |
|
212 |
# baselayout requires these in /bin |
213 |
dodir /bin |
214 |
for bin in sed printf ; do |
215 |
mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed" |
216 |
dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed" |
217 |
done |
218 |
|
219 |
for pamdfile in login passwd su; do |
220 |
newpamd "${FILESDIR}/${pamdfile}.1.pamd" ${pamdfile} || die |
221 |
done |
222 |
|
223 |
cd "${WORKDIR}/etc" |
224 |
insinto /etc |
225 |
doins remote phones opieaccess fbtab || die |
226 |
|
227 |
exeinto /etc/cron.daily |
228 |
newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb || die |
229 |
|
230 |
# tip requires /var/spool/lock/, bug #200700 |
231 |
keepdir /var/spool/lock |
232 |
|
233 |
# create locate database #472468 |
234 |
local f=/var/db/locate.database |
235 |
mkdir "${ED}${f%/*}" || die |
236 |
touch "${ED}${f}" || die |
237 |
fowners nobody:nobody ${f} |
238 |
} |
239 |
|
240 |
pkg_postinst() { |
241 |
# We need to ensure that login.conf.db is up-to-date. |
242 |
if [[ -e "${ROOT}"etc/login.conf ]] ; then |
243 |
einfo "Updating ${ROOT}etc/login.conf.db" |
244 |
"${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf |
245 |
elog "Remember to run cap_mkdb /etc/login.conf after making changes to it" |
246 |
fi |
247 |
} |
248 |
|
249 |
pkg_postrm() { |
250 |
# and if we uninstall yacc but keep bison, |
251 |
# lets restore the /usr/bin/yacc symlink |
252 |
if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then |
253 |
ln -s yacc.bison "${ROOT}"/usr/bin/yacc |
254 |
fi |
255 |
} |