1 |
commit: b27cac089ce5fdf431fe22e47922f402b2ca878e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 13 08:30:45 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 13 08:31:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b27cac08 |
7 |
|
8 |
app-shells/bash: Removed old. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-shells/bash/bash-4.4.ebuild | 245 ---------------------------------------- |
14 |
1 file changed, 245 deletions(-) |
15 |
|
16 |
diff --git a/app-shells/bash/bash-4.4.ebuild b/app-shells/bash/bash-4.4.ebuild |
17 |
deleted file mode 100644 |
18 |
index 06b540f..00000000 |
19 |
--- a/app-shells/bash/bash-4.4.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,245 +0,0 @@ |
22 |
-# Copyright 1999-2016 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
-# $Id$ |
25 |
- |
26 |
-EAPI="5" |
27 |
- |
28 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
29 |
- |
30 |
-# Official patchlevel |
31 |
-# See ftp://ftp.cwru.edu/pub/bash/bash-4.3-patches/ |
32 |
-PLEVEL=${PV##*_p} |
33 |
-MY_PV=${PV/_p*} |
34 |
-MY_PV=${MY_PV/_/-} |
35 |
-MY_P=${PN}-${MY_PV} |
36 |
-[[ ${PV} != *_p* ]] && PLEVEL=0 |
37 |
-patches() { |
38 |
- local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}} |
39 |
- [[ ${plevel} -eq 0 ]] && return 1 |
40 |
- eval set -- {1..${plevel}} |
41 |
- set -- $(printf "${pn}${pv/\.}-%03d " "$@") |
42 |
- if [[ ${opt} == -s ]] ; then |
43 |
- echo "${@/#/${DISTDIR}/}" |
44 |
- else |
45 |
- local u |
46 |
- for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do |
47 |
- printf "${u}/${pn}-${pv}-patches/%s " "$@" |
48 |
- done |
49 |
- fi |
50 |
-} |
51 |
- |
52 |
-# The version of readline this bash normally ships with. |
53 |
-READLINE_VER="7.0_rc2" |
54 |
- |
55 |
-DESCRIPTION="The standard GNU Bourne again shell" |
56 |
-HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html" |
57 |
-case ${PV} in |
58 |
-*_alpha*|*_beta*|*_rc*) SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" ;; |
59 |
-*) SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)" ;; |
60 |
-esac |
61 |
- |
62 |
-LICENSE="GPL-3" |
63 |
-SLOT="0" |
64 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
65 |
-IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline vanilla" |
66 |
- |
67 |
-DEPEND=">=sys-libs/ncurses-5.2-r2:0= |
68 |
- readline? ( >=sys-libs/readline-${READLINE_VER}:0= ) |
69 |
- nls? ( virtual/libintl )" |
70 |
-RDEPEND="${DEPEND} |
71 |
- !<sys-apps/portage-2.1.6.7_p1 |
72 |
- !<sys-apps/paludis-0.26.0_alpha5" |
73 |
-# we only need yacc when the .y files get patched (bash42-005) |
74 |
-DEPEND+=" virtual/yacc" |
75 |
- |
76 |
-S=${WORKDIR}/${MY_P} |
77 |
- |
78 |
-pkg_setup() { |
79 |
- if is-flag -malign-double ; then #7332 |
80 |
- eerror "Detected bad CFLAGS '-malign-double'. Do not use this" |
81 |
- eerror "as it breaks LFS (struct stat64) on x86." |
82 |
- die "remove -malign-double from your CFLAGS mr ricer" |
83 |
- fi |
84 |
- if use bashlogger ; then |
85 |
- ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs." |
86 |
- ewarn "This will log ALL output you enter into the shell, you have been warned." |
87 |
- fi |
88 |
-} |
89 |
- |
90 |
-src_unpack() { |
91 |
- unpack ${MY_P}.tar.gz |
92 |
-} |
93 |
- |
94 |
-src_prepare() { |
95 |
- # Include official patches |
96 |
- [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s) |
97 |
- |
98 |
- # Clean out local libs so we know we use system ones w/releases. |
99 |
- if [[ ${PV} != *_rc* ]] ; then |
100 |
- rm -rf lib/{readline,termcap}/* |
101 |
- touch lib/{readline,termcap}/Makefile.in # for config.status |
102 |
- sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die |
103 |
- fi |
104 |
- |
105 |
- # Avoid regenerating docs after patches #407985 |
106 |
- sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die |
107 |
- touch -r . doc/* |
108 |
- |
109 |
- epatch_user |
110 |
-} |
111 |
- |
112 |
-src_configure() { |
113 |
- local myconf=() |
114 |
- |
115 |
- # For descriptions of these, see config-top.h |
116 |
- # bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426 |
117 |
- append-cppflags \ |
118 |
- -DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \ |
119 |
- -DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \ |
120 |
- -DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \ |
121 |
- -DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \ |
122 |
- -DNON_INTERACTIVE_LOGIN_SHELLS \ |
123 |
- -DSSH_SOURCE_BASHRC \ |
124 |
- $(use bashlogger && echo -DSYSLOG_HISTORY) |
125 |
- |
126 |
- # Don't even think about building this statically without |
127 |
- # reading Bug 7714 first. If you still build it statically, |
128 |
- # don't come crying to us with bugs ;). |
129 |
- #use static && export LDFLAGS="${LDFLAGS} -static" |
130 |
- use nls || myconf+=( --disable-nls ) |
131 |
- |
132 |
- # Historically, we always used the builtin readline, but since |
133 |
- # our handling of SONAME upgrades has gotten much more stable |
134 |
- # in the PM (and the readline ebuild itself preserves the old |
135 |
- # libs during upgrades), linking against the system copy should |
136 |
- # be safe. |
137 |
- # Exact cached version here doesn't really matter as long as it |
138 |
- # is at least what's in the DEPEND up above. |
139 |
- export ac_cv_rl_version=${READLINE_VER%%_*} |
140 |
- |
141 |
- # Force linking with system curses ... the bundled termcap lib |
142 |
- # sucks bad compared to ncurses. For the most part, ncurses |
143 |
- # is here because readline needs it. But bash itself calls |
144 |
- # ncurses in one or two small places :(. |
145 |
- |
146 |
- if [[ ${PV} != *_rc* ]] ; then |
147 |
- # Use system readline only with released versions. |
148 |
- myconf+=( --with-installed-readline=. ) |
149 |
- fi |
150 |
- |
151 |
- if use plugins; then |
152 |
- append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash |
153 |
- else |
154 |
- # Disable the plugins logic by hand since bash doesn't |
155 |
- # provide a way of doing it. |
156 |
- export ac_cv_func_dl{close,open,sym}=no \ |
157 |
- ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no |
158 |
- sed -i \ |
159 |
- -e '/LOCAL_LDFLAGS=/s:-rdynamic::' \ |
160 |
- configure || die |
161 |
- fi |
162 |
- tc-export AR #444070 |
163 |
- econf \ |
164 |
- --docdir='$(datarootdir)'/doc/${PF} \ |
165 |
- --htmldir='$(docdir)/html' \ |
166 |
- --with-curses \ |
167 |
- $(use_with afs) \ |
168 |
- $(use_enable net net-redirections) \ |
169 |
- --disable-profiling \ |
170 |
- $(use_enable mem-scramble) \ |
171 |
- $(use_with mem-scramble bash-malloc) \ |
172 |
- $(use_enable readline) \ |
173 |
- $(use_enable readline history) \ |
174 |
- $(use_enable readline bang-history) \ |
175 |
- "${myconf[@]}" |
176 |
-} |
177 |
- |
178 |
-src_compile() { |
179 |
- emake |
180 |
- |
181 |
- if use plugins ; then |
182 |
- emake -C examples/loadables all others |
183 |
- fi |
184 |
-} |
185 |
- |
186 |
-src_install() { |
187 |
- local d f |
188 |
- |
189 |
- default |
190 |
- |
191 |
- dodir /bin |
192 |
- mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die |
193 |
- dosym bash /bin/rbash |
194 |
- |
195 |
- insinto /etc/bash |
196 |
- doins "${FILESDIR}"/bash_logout |
197 |
- doins "${FILESDIR}"/bashrc |
198 |
- keepdir /etc/bash/bashrc.d |
199 |
- insinto /etc/skel |
200 |
- for f in bash{_logout,_profile,rc} ; do |
201 |
- newins "${FILESDIR}"/dot-${f} .${f} |
202 |
- done |
203 |
- |
204 |
- local sed_args=( |
205 |
- -e "s:#${USERLAND}#@::" |
206 |
- -e '/#@/d' |
207 |
- ) |
208 |
- if ! use readline ; then |
209 |
- sed_args+=( #432338 |
210 |
- -e '/^shopt -s histappend/s:^:#:' |
211 |
- -e 's:use_color=true:use_color=false:' |
212 |
- ) |
213 |
- fi |
214 |
- sed -i \ |
215 |
- "${sed_args[@]}" \ |
216 |
- "${ED}"/etc/skel/.bashrc \ |
217 |
- "${ED}"/etc/bash/bashrc || die |
218 |
- |
219 |
- if use plugins ; then |
220 |
- exeinto /usr/$(get_libdir)/bash |
221 |
- doexe $(echo examples/loadables/*.o | sed 's:\.o::g') |
222 |
- insinto /usr/include/bash-plugins |
223 |
- doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h} |
224 |
- fi |
225 |
- |
226 |
- if use examples ; then |
227 |
- for d in examples/{functions,misc,scripts,startup-files} ; do |
228 |
- exeinto /usr/share/doc/${PF}/${d} |
229 |
- insinto /usr/share/doc/${PF}/${d} |
230 |
- for f in ${d}/* ; do |
231 |
- if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then |
232 |
- doexe ${f} |
233 |
- else |
234 |
- doins ${f} |
235 |
- fi |
236 |
- done |
237 |
- done |
238 |
- fi |
239 |
- |
240 |
- doman doc/*.1 |
241 |
- newdoc CWRU/changelog ChangeLog |
242 |
- dosym bash.info /usr/share/info/bashref.info |
243 |
-} |
244 |
- |
245 |
-pkg_preinst() { |
246 |
- if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then |
247 |
- mkdir -p "${EROOT}"/etc/bash |
248 |
- mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/ |
249 |
- fi |
250 |
- |
251 |
- if [[ -L ${EROOT}/bin/sh ]] ; then |
252 |
- # rewrite the symlink to ensure that its mtime changes. having /bin/sh |
253 |
- # missing even temporarily causes a fatal error with paludis. |
254 |
- local target=$(readlink "${EROOT}"/bin/sh) |
255 |
- local tmp=$(emktemp "${EROOT}"/bin) |
256 |
- ln -sf "${target}" "${tmp}" |
257 |
- mv -f "${tmp}" "${EROOT}"/bin/sh |
258 |
- fi |
259 |
-} |
260 |
- |
261 |
-pkg_postinst() { |
262 |
- # If /bin/sh does not exist, provide it |
263 |
- if [[ ! -e ${EROOT}/bin/sh ]] ; then |
264 |
- ln -sf bash "${EROOT}"/bin/sh |
265 |
- fi |
266 |
-} |