1 |
vapier 08/01/02 14:10:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bash-3.2_p33.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.1.4_rc14) |
8 |
|
9 |
Revision Changes Path |
10 |
1.165 app-shells/bash/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash/ChangeLog?rev=1.165&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash/ChangeLog?rev=1.165&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash/ChangeLog?r1=1.164&r2=1.165 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v |
19 |
retrieving revision 1.164 |
20 |
retrieving revision 1.165 |
21 |
diff -u -r1.164 -r1.165 |
22 |
--- ChangeLog 2 Jan 2008 07:05:50 -0000 1.164 |
23 |
+++ ChangeLog 2 Jan 2008 14:10:10 -0000 1.165 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for app-shells/bash |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.164 2008/01/02 07:05:50 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.165 2008/01/02 14:10:10 vapier Exp $ |
29 |
+ |
30 |
+*bash-3.2_p33 (02 Jan 2008) |
31 |
+ |
32 |
+ 02 Jan 2008; Mike Frysinger <vapier@g.o> +bash-3.2_p33.ebuild: |
33 |
+ Version bump. |
34 |
|
35 |
02 Jan 2008; Jeroen Roovers <jer@g.o> bash-3.2_p17-r1.ebuild: |
36 |
Stable for HPPA (bug #203603). |
37 |
|
38 |
|
39 |
|
40 |
1.1 app-shells/bash/bash-3.2_p33.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash/bash-3.2_p33.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash/bash-3.2_p33.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: bash-3.2_p33.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.2_p33.ebuild,v 1.1 2008/01/02 14:10:10 vapier Exp $ |
50 |
|
51 |
inherit eutils flag-o-matic toolchain-funcs multilib |
52 |
|
53 |
# Official patchlevel |
54 |
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/ |
55 |
PLEVEL=${PV##*_p} |
56 |
MY_PV=${PV/_p*} |
57 |
MY_P=${PN}-${MY_PV} |
58 |
READLINE_VER=5.2 |
59 |
READLINE_PLEVEL=0 # both readline patches are also released as bash patches |
60 |
|
61 |
DESCRIPTION="The standard GNU Bourne again shell" |
62 |
HOMEPAGE="http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" |
63 |
SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz |
64 |
ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz |
65 |
$(for ((i=1; i<=PLEVEL; i++)); do |
66 |
printf 'ftp://ftp.cwru.edu/pub/bash/bash-%s-patches/bash%s-%03d\n' \ |
67 |
${MY_PV} ${MY_PV/\.} ${i} |
68 |
printf 'mirror://gnu/bash/bash-%s-patches/bash%s-%03d\n' \ |
69 |
${MY_PV} ${MY_PV/\.} ${i} |
70 |
done) |
71 |
$(for ((i=1; i<=READLINE_PLEVEL; i++)); do |
72 |
printf 'ftp://ftp.cwru.edu/pub/bash/readline-%s-patches/readline%s-%03d\n' \ |
73 |
${READLINE_VER} ${READLINE_VER/\.} ${i} |
74 |
printf 'mirror://gnu/bash/readline-%s-patches/readline%s-%03d\n' \ |
75 |
${READLINE_VER} ${READLINE_VER/\.} ${i} |
76 |
done)" |
77 |
|
78 |
LICENSE="GPL-2" |
79 |
SLOT="0" |
80 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
81 |
IUSE="afs bashlogger nls plugins vanilla" |
82 |
|
83 |
DEPEND=">=sys-libs/ncurses-5.2-r2" |
84 |
RDEPEND="${DEPEND} !<sys-apps/portage-2.1.4_rc1" |
85 |
|
86 |
S=${WORKDIR}/${MY_P} |
87 |
|
88 |
pkg_setup() { |
89 |
if is-flag -malign-double ; then #7332 |
90 |
eerror "Detected bad CFLAGS '-malign-double'. Do not use this" |
91 |
eerror "as it breaks LFS (struct stat64) on x86." |
92 |
die "remove -malign-double from your CFLAGS mr ricer" |
93 |
fi |
94 |
} |
95 |
|
96 |
src_unpack() { |
97 |
unpack ${MY_P}.tar.gz |
98 |
cd "${S}" |
99 |
|
100 |
# Include official patches |
101 |
local i |
102 |
for ((i=1; i<=PLEVEL; i++)); do |
103 |
epatch "${DISTDIR}"/${PN}${MY_PV/\.}-$(printf '%03d' ${i}) |
104 |
done |
105 |
cd lib/readline |
106 |
for ((i=1; i<=READLINE_PLEVEL; i++)); do |
107 |
epatch "${DISTDIR}"/readline${READLINE_VER/\.}-$(printf '%03d' ${i}) |
108 |
done |
109 |
cd ../.. |
110 |
|
111 |
if ! use vanilla ; then |
112 |
epatch "${FILESDIR}"/${PN}-3.1-gentoo.patch |
113 |
epatch "${FILESDIR}"/${PN}-3.2-loadables.patch |
114 |
epatch "${FILESDIR}"/${PN}-3.2-parallel-build.patch #189671 |
115 |
|
116 |
# Fix process substitution on BSD. |
117 |
epatch "${FILESDIR}"/${PN}-3.2-process-subst.patch |
118 |
|
119 |
epatch "${FILESDIR}"/${PN}-3.2-ulimit.patch |
120 |
# Don't barf on handled signals in scripts |
121 |
epatch "${FILESDIR}"/${PN}-3.0-trap-fg-signals.patch |
122 |
epatch "${FILESDIR}"/${PN}-3.2-dev-fd-test-as-user.patch #131875 |
123 |
# Log bash commands to syslog #91327 |
124 |
if use bashlogger ; then |
125 |
echo |
126 |
ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs." |
127 |
ewarn "This will log ALL output you enter into the shell, you have been warned." |
128 |
ebeep |
129 |
epause |
130 |
epatch "${FILESDIR}"/${PN}-3.1-bash-logger.patch |
131 |
fi |
132 |
fi |
133 |
|
134 |
epatch "${FILESDIR}"/${PN}-3.0-configs.patch |
135 |
} |
136 |
|
137 |
src_compile() { |
138 |
local myconf= |
139 |
|
140 |
# Always use the buildin readline, else if we update readline |
141 |
# bash gets borked as readline is usually not binary compadible |
142 |
# between minor versions. |
143 |
#myconf="${myconf} $(use_with !readline installed-readline)" |
144 |
myconf="${myconf} --without-installed-readline" |
145 |
|
146 |
# Don't even think about building this statically without |
147 |
# reading Bug 7714 first. If you still build it statically, |
148 |
# don't come crying to use with bugs ;). |
149 |
#use static && export LDFLAGS="${LDFLAGS} -static" |
150 |
use nls || myconf="${myconf} --disable-nls" |
151 |
|
152 |
# Force linking with system curses ... the bundled termcap lib |
153 |
# sucks bad compared to ncurses |
154 |
myconf="${myconf} --with-curses" |
155 |
|
156 |
# Default path is to use /usr/local/..... regardless. This little |
157 |
# magic will set the default path to /usr/..... and keep us from |
158 |
# worrying about the rest of the path getting out of sync with the |
159 |
# ebuild code. |
160 |
eval $(echo export $(ac_default_prefix=/usr; eval echo $(grep DEBUGGER_START_FILE= configure))) |
161 |
|
162 |
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash |
163 |
econf \ |
164 |
$(use_with afs) \ |
165 |
--disable-profiling \ |
166 |
--without-gnu-malloc \ |
167 |
${myconf} || die |
168 |
emake || die "make failed" |
169 |
|
170 |
if use plugins ; then |
171 |
emake -C examples/loadables all others || die |
172 |
fi |
173 |
} |
174 |
|
175 |
src_install() { |
176 |
emake install DESTDIR="${D}" || die |
177 |
|
178 |
dodir /bin |
179 |
mv "${D}"/usr/bin/bash "${D}"/bin/ || die |
180 |
dosym bash /bin/rbash |
181 |
|
182 |
insinto /etc/bash |
183 |
doins "${FILESDIR}"/{bashrc,bash_logout} |
184 |
insinto /etc/skel |
185 |
for f in bash{_logout,_profile,rc} ; do |
186 |
newins "${FILESDIR}"/dot-${f} .${f} |
187 |
done |
188 |
|
189 |
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc |
190 |
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc |
191 |
|
192 |
if use plugins ; then |
193 |
exeinto /usr/$(get_libdir)/bash |
194 |
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die |
195 |
fi |
196 |
|
197 |
doman doc/*.1 |
198 |
dodoc README NEWS AUTHORS CHANGES COMPAT Y2K doc/FAQ doc/INTRO |
199 |
dosym bash.info /usr/share/info/bashref.info |
200 |
} |
201 |
|
202 |
pkg_preinst() { |
203 |
if [[ -e ${ROOT}/etc/bashrc ]] && [[ ! -d ${ROOT}/etc/bash ]] ; then |
204 |
mkdir -p "${ROOT}"/etc/bash |
205 |
mv -f "${ROOT}"/etc/bashrc "${ROOT}"/etc/bash/ |
206 |
fi |
207 |
|
208 |
# our bash_logout is just a place holder so dont |
209 |
# force users to go through etc-update all the time |
210 |
if [[ -e ${ROOT}/etc/bash/bash_logout ]] ; then |
211 |
rm -f "${D}"/etc/bash/bash_logout |
212 |
fi |
213 |
|
214 |
# If /bin/sh does not exist or is bash, then provide it |
215 |
# Otherwise leave it alone |
216 |
if [[ ! -e ${ROOT}/bin/sh ]] ; then |
217 |
ln -s bash "${ROOT}"/bin/sh |
218 |
elif [[ -L ${ROOT}/bin/sh ]] ; then |
219 |
case $(readlink "${ROOT}"/bin/sh) in |
220 |
bash|/bin/bash) cp -pPR "${ROOT}"/bin/sh "${D}"/bin/ ;; |
221 |
esac |
222 |
fi |
223 |
} |
224 |
|
225 |
|
226 |
|
227 |
-- |
228 |
gentoo-commits@g.o mailing list |