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