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