1 |
the_paya 09/01/22 21:06:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-ubin-7.1.ebuild |
5 |
Log: |
6 |
Import of the 7.1 ebuilds from gentoo-bsd overlay. |
7 |
(Portage version: 2.2_rc23/cvs/FreeBSD i386) |
8 |
|
9 |
Revision Changes Path |
10 |
1.58 sys-freebsd/freebsd-ubin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog?rev=1.58&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog?rev=1.58&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog?r1=1.57&r2=1.58 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v |
19 |
retrieving revision 1.57 |
20 |
retrieving revision 1.58 |
21 |
diff -u -r1.57 -r1.58 |
22 |
--- ChangeLog 8 Jan 2009 21:17:28 -0000 1.57 |
23 |
+++ ChangeLog 22 Jan 2009 21:06:12 -0000 1.58 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sys-freebsd/freebsd-ubin |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.57 2009/01/08 21:17:28 aballier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.58 2009/01/22 21:06:12 the_paya Exp $ |
29 |
+ |
30 |
+*freebsd-ubin-7.1 (22 Jan 2009) |
31 |
+ |
32 |
+ 22 Jan 2009; Javier Villavicencio <the_paya@g.o> |
33 |
+ +freebsd-ubin-7.1.ebuild: |
34 |
+ Import 7.1 ebuilds from gentoo-bsd overlay. |
35 |
|
36 |
08 Jan 2009; Alexis Ballier <aballier@g.o> |
37 |
-freebsd-ubin-6.2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-freebsd/freebsd-ubin/freebsd-ubin-7.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-7.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-7.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: freebsd-ubin-7.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 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-7.1.ebuild,v 1.1 2009/01/22 21:06:12 the_paya Exp $ |
51 |
|
52 |
inherit bsdmk freebsd flag-o-matic pam |
53 |
|
54 |
DESCRIPTION="FreeBSD's base system source for /usr/bin" |
55 |
SLOT="0" |
56 |
KEYWORDS="~sparc-fbsd ~x86-fbsd" |
57 |
|
58 |
IUSE="atm bluetooth ssl usb nls ipv6 kerberos nis build" |
59 |
|
60 |
SRC_URI="mirror://gentoo/${UBIN}.tar.bz2 |
61 |
mirror://gentoo/${CONTRIB}.tar.bz2 |
62 |
mirror://gentoo/${LIB}.tar.bz2 |
63 |
mirror://gentoo/${ETC}.tar.bz2 |
64 |
mirror://gentoo/${BIN}.tar.bz2 |
65 |
mirror://gentoo/${INCLUDE}.tar.bz2 |
66 |
build? ( mirror://gentoo/${SYS}.tar.bz2 )" |
67 |
|
68 |
RDEPEND=">=sys-freebsd/freebsd-lib-6.2_rc2 |
69 |
ssl? ( dev-libs/openssl ) |
70 |
kerberos? ( virtual/krb5 ) |
71 |
virtual/pam |
72 |
sys-libs/zlib |
73 |
!dev-util/csup" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
sys-devel/flex |
77 |
!build? ( =sys-freebsd/freebsd-sources-${RV}* ) |
78 |
=sys-freebsd/freebsd-mk-defs-${RV}*" |
79 |
|
80 |
RDEPEND="${RDEPEND} |
81 |
>=sys-auth/pambase-20080219.1 |
82 |
sys-process/cronbase" |
83 |
|
84 |
S="${WORKDIR}/usr.bin" |
85 |
|
86 |
pkg_setup() { |
87 |
use nls || mymakeopts="${mymakeopts} NO_NLS= " |
88 |
use atm || mymakeopts="${mymakeopts} NO_ATM= " |
89 |
use bluetooth || mymakeopts="${mymakeopts} NO_BLUETOOTH= " |
90 |
use ssl || mymakeopts="${mymakeopts} NO_OPENSSL= NO_CRYPT= " |
91 |
use usb || mymakeopts="${mymakeopts} NO_USB= " |
92 |
use ipv6 || mymakeopts="${mymakeopts} NO_INET6= " |
93 |
use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " |
94 |
use nis || mymakeopts="${mymakeopts} NO_NIS= " |
95 |
|
96 |
mymakeopts="${mymakeopts} NO_SENDMAIL= " |
97 |
} |
98 |
|
99 |
# List of patches to apply |
100 |
PATCHES="${FILESDIR}/${PN}-6.0-bsdcmp.patch |
101 |
${FILESDIR}/${PN}-6.0-fixmakefiles.patch |
102 |
${FILESDIR}/${PN}-setXid.patch |
103 |
${FILESDIR}/${PN}-lint-stdarg.patch |
104 |
${FILESDIR}/${PN}-6.0-kdump-ioctl.patch" |
105 |
|
106 |
# Here we remove some sources we don't need because they are already |
107 |
# provided by portage's packages or similar. In order: |
108 |
# - Archiving tools, provided by their own ebuilds |
109 |
# - ncurses stuff |
110 |
# - less stuff |
111 |
# - bind utils |
112 |
# - rsh stuff |
113 |
# - binutils gprof |
114 |
# and the rest are misc utils we already provide somewhere else. |
115 |
REMOVE_SUBDIRS="bzip2 bzip2recover tar |
116 |
gzip gprof |
117 |
tput tset |
118 |
less lessecho lesskey |
119 |
dig hesinfo nslookup nsupdate host |
120 |
rsh rlogin rusers rwho ruptime |
121 |
compile_et lex vi smbutil file vacation nc ftp telnet |
122 |
c99 c89 |
123 |
whois tftp" |
124 |
|
125 |
pkg_preinst() { |
126 |
# bison installs a /usr/bin/yacc symlink ... |
127 |
# we need to remove it to avoid triggering |
128 |
# collision-protect errors |
129 |
if [[ -L ${ROOT}/usr/bin/yacc ]] ; then |
130 |
rm -f "${ROOT}"/usr/bin/yacc |
131 |
fi |
132 |
} |
133 |
|
134 |
|
135 |
src_unpack() { |
136 |
freebsd_src_unpack |
137 |
|
138 |
use build || ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" |
139 |
|
140 |
# Rename manpage for renamed cmp |
141 |
mv "${S}"/cmp/cmp.1 "${S}"/cmp/bsdcmp.1 |
142 |
# Fix whereis(1) manpath search. |
143 |
sed -i -e 's:"manpath -q":"manpath":' "${S}/whereis/pathnames.h" |
144 |
|
145 |
# Build a dynamic make |
146 |
sed -i -e '/^NO_SHARED/ s/^/#/' "${S}"/make/Makefile |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
freebsd_src_install |
151 |
|
152 |
# baselayout requires these in /bin |
153 |
dodir /bin |
154 |
for bin in sed; do |
155 |
mv "${D}/usr/bin/${bin}" "${D}/bin/" || die "mv ${bin} failed" |
156 |
dosym /bin/${bin} /usr/bin/${bin} || die "dosym ${bin} failed" |
157 |
done |
158 |
|
159 |
for pamdfile in login passwd su; do |
160 |
newpamd "${FILESDIR}/${pamdfile}.1.pamd" ${pamdfile} |
161 |
done |
162 |
|
163 |
cd "${WORKDIR}/etc" |
164 |
insinto /etc |
165 |
doins remote phones opieaccess fbtab |
166 |
|
167 |
exeinto /etc/cron.daily |
168 |
newexe "${FILESDIR}/locate-updatedb-cron" locate.updatedb |
169 |
} |
170 |
|
171 |
pkg_postinst() { |
172 |
# We need to ensure that login.conf.db is up-to-date. |
173 |
if [[ -e "${ROOT}"etc/login.conf ]] ; then |
174 |
einfo "Updating ${ROOT}etc/login.conf.db" |
175 |
"${ROOT}"usr/bin/cap_mkdb -f "${ROOT}"etc/login.conf "${ROOT}"etc/login.conf |
176 |
elog "Remember to run cap_mkdb /etc/login.conf after making changes to it" |
177 |
fi |
178 |
} |
179 |
|
180 |
pkg_postrm() { |
181 |
# and if we uninstall yacc but keep bison, |
182 |
# lets restore the /usr/bin/yacc symlink |
183 |
if [[ ! -e ${ROOT}/usr/bin/yacc ]] && [[ -e ${ROOT}/usr/bin/yacc.bison ]] ; then |
184 |
ln -s yacc.bison "${ROOT}"/usr/bin/yacc |
185 |
fi |
186 |
} |