summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-03-10 21:40:36 +0000
committerMike Frysinger <vapier@gentoo.org>2013-03-10 21:40:36 +0000
commita79978b3e50ba0c2f1011ae05ab9d1b7c4bf0760 (patch)
tree8ed0d92aba5ba121ff8db140263ba17855be6186 /app-shells/bash
parentRestore --disable-asm for ABI=x32 #427004 by devsk. (diff)
downloadhistorical-a79978b3e50ba0c2f1011ae05ab9d1b7c4bf0760.tar.gz
historical-a79978b3e50ba0c2f1011ae05ab9d1b7c4bf0760.tar.bz2
historical-a79978b3e50ba0c2f1011ae05ab9d1b7c4bf0760.zip
Version bump.
Package-Manager: portage-2.2.0_alpha164/cvs/Linux x86_64 Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/ChangeLog7
-rw-r--r--app-shells/bash/Manifest32
-rw-r--r--app-shells/bash/bash-4.2_p45.ebuild219
3 files changed, 243 insertions, 15 deletions
diff --git a/app-shells/bash/ChangeLog b/app-shells/bash/ChangeLog
index 3bea1ec41357..2718426e78bc 100644
--- a/app-shells/bash/ChangeLog
+++ b/app-shells/bash/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-shells/bash
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.331 2013/01/31 05:25:11 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.332 2013/03/10 21:40:31 vapier Exp $
+
+*bash-4.2_p45 (10 Mar 2013)
+
+ 10 Mar 2013; Mike Frysinger <vapier@gentoo.org> +bash-4.2_p45.ebuild:
+ Version bump.
31 Jan 2013; Mike Frysinger <vapier@gentoo.org> bash-4.2_p42.ebuild:
Set up AR when running configure #444070 by Denis M..
diff --git a/app-shells/bash/Manifest b/app-shells/bash/Manifest
index ae3eb2cd06cb..a36b5239fb33 100644
--- a/app-shells/bash/Manifest
+++ b/app-shells/bash/Manifest
@@ -201,6 +201,9 @@ DIST bash42-039 1603 SHA256 f4f9300a60321a5088ae9e54052a64c4d3e876f9a3a17ca104d5
DIST bash42-040 1710 SHA256 b265f9caf3c7321f95bc8e0b9e2c46bd86c226f00f05e823699aafb83c4aaa6c SHA512 ff5cfdd2aa846f0831a1f2f7b477e70fc6b68b6c4f4785293c417039a7f3fd4822ade4658ea17046ab9616c3fed02b463e6a3e60aeb7daf6ab667da14b9a482e WHIRLPOOL 7b4672ee3112be3919cef4a30e730daa534ee61c2b5a8e48cef799bf5e17a9bbf58dfbb96626f6edcdad595c92bec0dfc9b5f41a9785c20af7cf3e829553fe65
DIST bash42-041 1463 SHA256 05cc1951bd9f6624088dd6067486ff47f1825e333273d7df5f1b06b23baaf5eb SHA512 7c9c12fc77bb764dbe8061e6df9419ab84d296a76c4a8bd96cf0f507bf70652a1c869162ac8d8c36f2d16ea0912a142fe14d6db45636bcb6e6fdf1444f0672a6 WHIRLPOOL bfcc374321554787373bac3d1cf22e2cdf4064a0ece447bda2426b90bd55c09f7d2ea2491bbdf2e03c2152783e45bccc98797fb4f12e4fe8095543ddb51f0457
DIST bash42-042 1571 SHA256 faaa5c1f456517b258b2a65eaa664dd6a01eeff73c8ca4447c3a6de371bbf304 SHA512 99fd4f5f70e3d7d2e8dc1dac80e6ee6e0bb9ba1f629f41019b13f36aba2404aa4d786049bb0039e5fee138a01b813d295d4303c7c3d561a3cf565ffa19bb081e WHIRLPOOL 944cf532a9cdc42dcda55f3b2af96337d31596bcb39e83fb3e223bc3aeb1a45696dfc69e60ef0a68fd0c133728d9d23a037d633d9a267b09f51954ba7693e262
+DIST bash42-043 2110 SHA256 dc2683840f3e890a9c5f85338366ff6cd923285e558eb46aa818a03fa67c5c57 SHA512 70503181c392faf565ef0b23a2f6d1614836ffb9c04791cc4bfb31aff7786fd5efab4072034a4cfba0035595140cf7f9461b1565e4854ec34823cbd4f5ab419d WHIRLPOOL e988a962aac3ed9cd1f105cc5c9a477aaa52defdb049be8d9cd37da40177664507c06550193855cddea3b0a9fea3a04ec027ad14eea845317ee67e1b89697076
+DIST bash42-044 1871 SHA256 10d32d6c9ccdedb1d826f46468631d475f9dcf983fac087766e16df7b99766e6 SHA512 e94cf93c5760225d4ac16f9c73078c3ce9913ffe1e20ffed8fa31084a0efd3dd63762b5437221f6b570078667e3ec19d882169ffe0ba4c498e258e56f17d2511 WHIRLPOOL 23e3fd1ed1a708eead2ce463c0e5acd720accbe9727462b7fd3916b14b8eabf2339c1f7b1dc973249e075bff4fa566753ae43c540ce3ddc84b5cdd72814d568d
+DIST bash42-045 1572 SHA256 ddb7eff0f59d394a483b09feec3771d9026f81ba90afac32846a19b172b2986d SHA512 64f62b19c79eb2c581feda2b9f3c36196b3a794ee9996f6d72078fbb0b8c5878aa2d8ff3e2698cf9769e42083704dd9342bb108212d02aeb79875fad70895560 WHIRLPOOL 02fa25cf02c831675a78a5625e0ba5606b52eb9f3dbdf546cd62983d83cea7fd159b535df94b3c8d39907a7739de7459b69cde3583f28d952a54b384122d264e
DIST readline51-001 2042 SHA256 2c9786b231a454504c3f38361af6fd74e61789bc1009eba5fb2447b5a3ac5774 SHA512 94dbe326f551099aac9658e80cf5489cdecf0a06f4986b1ebf0f6b678f1e2e50e31353e459e1b71a186f17c933180bf30a821cb262708ef6425c5987eb6d66e0 WHIRLPOOL 10546875add30ab9d2c9b60f6d90dd9cc6745e02cbec1ab8913517c6bdbc3d894d97652d04de148e6423fd8666831255996d9862e8e532ad06390757859a8f64
EBUILD bash-3.1_p17.ebuild 4644 SHA256 5cfa12364bdd1421827788a87fd11caa4134898b4d557df717e0f651ff6ed931 SHA512 098f35549dcb2483b57dc167c05ba60d092078b43ebb587580b7d33d3232eb92a090ae4d85aec22b14cadfd0dd9183c9cf9c94d923d554aaa6fb3200a30c54a4 WHIRLPOOL ff799e36d08c0e59e15d6f670436057b2ff26620dc454f28692107134ea28274e249a1a60bb8442353aab68cd8b1bf56dd0bf77e61e400e560d78196160c0751
EBUILD bash-3.2_p51.ebuild 5864 SHA256 490653a9868ba93a572ef0e4b8d26e0bfc3a93b6cf83813a47a7b9078ef13c63 SHA512 c00e53f3f2d92e404f38cc82fde8fe0073b4ff21b81d789fbe3577b931a040f98895666735ea0318ef0e6cf32438e7035a37d0ffa686f324c91e6b9e47ec2991 WHIRLPOOL 80de9884361e62712f024ea22f2e69b4f470942fddfe6d3d7d12df70331a78e747b6a5c4a2a80f64d6ba8f887e029a8156024e6dae79f3ee6360bb666d2cf1ab
@@ -210,22 +213,23 @@ EBUILD bash-4.2_p37.ebuild 6311 SHA256 c807f0def9dc9dcac9958cb7a9606dd9f1ce33142
EBUILD bash-4.2_p39-r1.ebuild 6511 SHA256 b475371f82ad19450b1eaace2eb3162e6dd86a5dfbd41ac6164232cdc11795a8 SHA512 19a40132ab1da0f46dd281803694fce1648f2386dc11ff1c8f283f861abd8d041ad9f09f1ab1fe2ff96101c8bd8d3e3daac3d2811c31c595d741e232bdbef06e WHIRLPOOL c8d75740f8264e7cf80cc8ab492340e9afb9a290e80f7bee9f40c3cc40b60a40ca6180a5211a613ee091d0e2884b5057565c1b2bbd8426152421c0fd2059659f
EBUILD bash-4.2_p39.ebuild 6321 SHA256 d021ad20244b04d4a6b5f8f7d920aba2b2d7bc760e200d245f29860ef91bb9a2 SHA512 9484e4a61f61dcfddb420a1829a41463db2e4827e4f0bb7de47f84423f32eff0644097fcaa5b6c4b0313dc91d3ecb9f3134f4e420343540d69118612ddf571a2 WHIRLPOOL 75be42a4bebd19b2e2cfbdf3dafc6f981a7daa2a29068c1df31e76d848aa4a5c8a6ccba181e4fab72a82deddcb21e3076ef660f9e7dd1764053da54436da45d9
EBUILD bash-4.2_p42.ebuild 6530 SHA256 d4d4d953e0e4c6dc2afc84b6c599252ab31694bb098e997a6c84fed2f741442d SHA512 5fc7c1f398e9cc8cc576d3c87ff905d95f5c221181a62556e3642f97cbca83aed7a29d62afe6840607de78a873cc40e27d5b14e3ca4d5e7dfe24abb795c28c44 WHIRLPOOL 790b9f29420bd9779ad329dcded1261ee690ea2053df2599da869da8068b8dfad24e1bf93de22ebb4bf968c62bcd450167f5e05df52515627e2769065ac6ad1e
-MISC ChangeLog 50846 SHA256 261e04036f97b355c3a18843b7a380ddc634cc9b552c268de11508a110e889b9 SHA512 05c36a99d4ff5da509f81ebbde4379ffdee7926c0c1bb66862537a8bd70ac6250dadba1c18535f4473d81773d2902c1ccf9c32f6404ff5729ed7c2b5e7733d97 WHIRLPOOL 57e47cedeb6d69810e99b76db218d839dae8a2759a0f1f7affdae7fb25ae88c3d31798a0e10b5847bda5eb4d41e95310a0b9e13d319f8d6a4939bea52f9cb15e
+EBUILD bash-4.2_p45.ebuild 6530 SHA256 adc1cad79385d1c23e926dc8eb8d20b338bbd0607b85652752772340cbc9ffc7 SHA512 f5d224893b27f5ca0946adc942926b08d418a09ff063e485c4ec385f1a253179ebed0ec930b566c65fd9727a7d00d1021f0049edf63bed09a545460019c302ea WHIRLPOOL 84cfcdbc7902279eff015594ead0dda0e9c003d9bb41c30c52cbb6d10c1d85b5700b9678de3a4f3de9ee074cb651a0ab4291debd330af0f5c97062ca3cd80212
+MISC ChangeLog 50964 SHA256 6a19cf0ac5f1e51ecd9fcdd33fe231acb767b5d56ef10edad557c9e6c2dd8f73 SHA512 f7ab5e228d116bb42a43ab363c25a08c0f6ed0ecb4613245768d60ee49a061266bee0f0c266169e87f0531c4a8d2de057cf9219aa70e9c97737a2402473ed0f1 WHIRLPOOL 5c562c440fa2c4fae84e4d5983402f0cfb987cf17f320aae0c22a83c63f390524109487a98a405b51c7d9dbb0301950a34ec65625b5b6678bf1d645ef0491ced
MISC metadata.xml 568 SHA256 48d380acb97dda0a7f4bd918b208d11367a8367d289b0a2d78ef08ef9a4e2562 SHA512 e50fd93498123511ac7460795687e694d368aaa2e7001ad752aae7bb6b67ed4746c8e171e4d5ff42e6aade0fd29d001330afdb593b8446046a98b27b113b7c5e WHIRLPOOL 83ad81f6ec56c7deaaa1d6cd18ee73621f02bedb62201d59ac44676120251e040f73c9ef238d91abf0c8c7d115a8b4b8df6ea22b533102c8daadfad755de51d6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJRCgA5AAoJELEHsLL7fEFWcDsP/jPqTOAxVlhdivWyjN7oi//P
-rHenD6LIcw1mLp5MqIIwMomQkckk5ojh4q1g2TWUelMbkeqwKNmDhB72TsqM34fT
-ZiAgsr2S0ohsT5K8bG8YKAwdyapRfihFXkHNAJ1rlHPd6yChHwClN6iEycnqNIAS
-b3YX033hwxQ1RutNYoA/YlJa5sHDrSlNrlMikrlkEBPwijX2VqYMqgTWLzJ+nPGx
-XPKsddmFyMA/yzt3DfhQJP4+l2XDbqntBcY2boZjyGq3ozUJdA2StJNr+vMHuhTb
-fvtKjMiRj+25Ayn+cHvaDEMxPOp23DCQu4KFuasQgYhWPYfVNUz68evtAEhfpmTa
-gI547ySzbsyHL+ukxTRXflb1NbKv/UKCEjiGl/6pEWRw9CICI7K301IJiWeD78Z0
-BNvfKOekYRpgVBpvWtqDlHdVKB6HHR+5oCB7B4e04wF3qJZEZOmZccLUVwkNp603
-LPNqCFJBZCmcvJ7wLUVRueJHqf78N8RtVnxAjZmplJjf7HAFd7gcn2XX4gOor8k2
-nC9Xw9nthFHXMvAMb5q9gGYqktAOkfMFzkUB9SyqYg+Rj5HKdlyqMQ7/yageOUDl
-bTkMsVFi1j1ozfsI6sXXyS7dvtUOZPzVtDCATF3LXWKR5Vfr0JDQMFWwFRHs169e
-SNAxVfhvlOJb2/lw/zMY
-=D4E+
+iQIcBAEBCAAGBQJRPP5pAAoJELEHsLL7fEFWxUcQAK8j+PpjtwV+hx5ABVF0FIfW
+3YUwBaD11Baj89LbOkYtMFmkVG32yfz9uh0Z2AT24mEb8Z0VgmAsGkRLMyso19CB
+Aqc7gQaIJTR1qco4V6M/BcjVfstHD2KHudqBhDud/k+0m3IypuC382sq/uHC10tx
+34My34ImF1ZuyYFVmSFbne2Nix3ionuMZ9L+8siwmpsODIy+qpAOjAQi4LZnf1MO
+cdIzCOX7Fb4KTFLKYg1PxR/w55hBgR8pSPAqTPaRrm9MSoEeCy2lzFn5vV0dZqQb
+iBrkrtAMb7brwiU+dOByQtvtioS/YJCXQPzZmedskekTVLurh2QA0XsTSJmuc4X6
+Q1GTPTp7ImDPqMdoc8GRDGVxcxaI4/DfxLCkHu6HmVM9umVU+4G/66+TK2ijrU8W
+bq4YP/mijAuplvZ+toJoZjSzV02+/KCbgkiDQBr+a8PpcknPFYcMILMBuXZZCSus
+PiKXmzi4a2FHvqvtec8G2MLIjECu9kMh8J752YIYCLzXTgdi9k76jlBtT/Isfcu6
+3FymU/HdV7ZgAs26131JgD65yyy575Ui/OCgXFc4wDvTGgi4hPVRyVlYaxGrenOp
+4cHQEG72j4+KyYwEmco/MGUyZAAMhbo7lqEt28CnVSFs4pLOfp9peWvYWoGuOhMo
+KOuyHJlJMdlT9KcpZD1h
+=KNIj
-----END PGP SIGNATURE-----
diff --git a/app-shells/bash/bash-4.2_p45.ebuild b/app-shells/bash/bash-4.2_p45.ebuild
new file mode 100644
index 000000000000..19108269c4a8
--- /dev/null
+++ b/app-shells/bash/bash-4.2_p45.ebuild
@@ -0,0 +1,219 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p45.ebuild,v 1.1 2013/03/10 21:40:31 vapier Exp $
+
+EAPI="1"
+
+inherit eutils flag-o-matic toolchain-funcs multilib
+
+# Official patchlevel
+# See ftp://ftp.cwru.edu/pub/bash/bash-4.2-patches/
+PLEVEL=${PV##*_p}
+MY_PV=${PV/_p*}
+MY_PV=${MY_PV/_/-}
+MY_P=${PN}-${MY_PV}
+[[ ${PV} != *_p* ]] && PLEVEL=0
+patches() {
+ local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}}
+ [[ ${plevel} -eq 0 ]] && return 1
+ eval set -- {1..${plevel}}
+ set -- $(printf "${pn}${pv/\.}-%03d " "$@")
+ if [[ ${opt} == -s ]] ; then
+ echo "${@/#/${DISTDIR}/}"
+ else
+ local u
+ for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do
+ printf "${u}/${pn}-${pv}-patches/%s " "$@"
+ done
+ fi
+}
+
+DESCRIPTION="The standard GNU Bourne again shell"
+HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
+SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline vanilla"
+
+DEPEND=">=sys-libs/ncurses-5.2-r2
+ readline? ( >=sys-libs/readline-6.2 )
+ nls? ( virtual/libintl )"
+RDEPEND="${DEPEND}
+ !<sys-apps/portage-2.1.6.7_p1
+ !<sys-apps/paludis-0.26.0_alpha5"
+# we only need yacc when the .y files get patched (bash42-005)
+DEPEND+=" virtual/yacc"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if is-flag -malign-double ; then #7332
+ eerror "Detected bad CFLAGS '-malign-double'. Do not use this"
+ eerror "as it breaks LFS (struct stat64) on x86."
+ die "remove -malign-double from your CFLAGS mr ricer"
+ fi
+ if use bashlogger ; then
+ ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs."
+ ewarn "This will log ALL output you enter into the shell, you have been warned."
+ fi
+}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ cd "${S}"
+
+ # Include official patches
+ [[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
+
+ # Clean out local libs so we know we use system ones
+ rm -rf lib/{readline,termcap}/*
+ touch lib/{readline,termcap}/Makefile.in # for config.status
+ sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die
+
+ # Avoid regenerating docs after patches #407985
+ sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
+ touch -r . doc/*
+
+ epatch "${FILESDIR}"/${PN}-4.2-execute-job-control.patch #383237
+ epatch "${FILESDIR}"/${PN}-4.2-parallel-build.patch
+ epatch "${FILESDIR}"/${PN}-4.2-no-readline.patch
+ epatch "${FILESDIR}"/${PN}-4.2-speed-up-read-N.patch
+
+ epatch_user
+}
+
+src_compile() {
+ local myconf=
+
+ # For descriptions of these, see config-top.h
+ # bashrc/#26952 bash_logout/#90488 ssh/#24762
+ append-cppflags \
+ -DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\' \
+ -DSTANDARD_UTILS_PATH=\'\"/bin:/usr/bin:/sbin:/usr/sbin\"\' \
+ -DSYS_BASHRC=\'\"/etc/bash/bashrc\"\' \
+ -DSYS_BASH_LOGOUT=\'\"/etc/bash/bash_logout\"\' \
+ -DNON_INTERACTIVE_LOGIN_SHELLS \
+ -DSSH_SOURCE_BASHRC \
+ $(use bashlogger && echo -DSYSLOG_HISTORY)
+
+ # Don't even think about building this statically without
+ # reading Bug 7714 first. If you still build it statically,
+ # don't come crying to us with bugs ;).
+ #use static && export LDFLAGS="${LDFLAGS} -static"
+ use nls || myconf="${myconf} --disable-nls"
+
+ # Historically, we always used the builtin readline, but since
+ # our handling of SONAME upgrades has gotten much more stable
+ # in the PM (and the readline ebuild itself preserves the old
+ # libs during upgrades), linking against the system copy should
+ # be safe.
+ # Exact cached version here doesn't really matter as long as it
+ # is at least what's in the DEPEND up above.
+ export ac_cv_rl_version=6.2
+
+ # Force linking with system curses ... the bundled termcap lib
+ # sucks bad compared to ncurses. For the most part, ncurses
+ # is here because readline needs it. But bash itself calls
+ # ncurses in one or two small places :(.
+
+ use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
+ tc-export AR #444070
+ econf \
+ --with-installed-readline=. \
+ --with-curses \
+ $(use_with afs) \
+ $(use_enable net net-redirections) \
+ --disable-profiling \
+ $(use_enable mem-scramble) \
+ $(use_with mem-scramble bash-malloc) \
+ $(use_enable readline) \
+ $(use_enable readline history) \
+ $(use_enable readline bang-history) \
+ ${myconf}
+ emake || die
+
+ if use plugins ; then
+ emake -C examples/loadables all others || die
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+
+ dodir /bin
+ mv "${D}"/usr/bin/bash "${D}"/bin/ || die
+ dosym bash /bin/rbash
+
+ insinto /etc/bash
+ doins "${FILESDIR}"/{bashrc,bash_logout}
+ insinto /etc/skel
+ for f in bash{_logout,_profile,rc} ; do
+ newins "${FILESDIR}"/dot-${f} .${f}
+ done
+
+ local sed_args=(
+ -e "s:#${USERLAND}#@::"
+ -e '/#@/d'
+ )
+ if ! use readline ; then
+ sed_args+=( #432338
+ -e '/^shopt -s histappend/s:^:#:'
+ -e 's:use_color=true:use_color=false:'
+ )
+ fi
+ sed -i \
+ "${sed_args[@]}" \
+ "${D}"/etc/skel/.bashrc \
+ "${D}"/etc/bash/bashrc || die
+
+ if use plugins ; then
+ exeinto /usr/$(get_libdir)/bash
+ doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
+ insinto /usr/include/bash-plugins
+ doins *.h builtins/*.h examples/loadables/*.h include/*.h \
+ lib/{glob/glob.h,tilde/tilde.h}
+ fi
+
+ if use examples ; then
+ for d in examples/{functions,misc,scripts,scripts.noah,scripts.v2} ; do
+ exeinto /usr/share/doc/${PF}/${d}
+ insinto /usr/share/doc/${PF}/${d}
+ for f in ${d}/* ; do
+ if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then
+ doexe ${f}
+ else
+ doins ${f}
+ fi
+ done
+ done
+ fi
+
+ doman doc/*.1
+ dodoc README NEWS AUTHORS CHANGES COMPAT Y2K doc/FAQ doc/INTRO
+ dosym bash.info /usr/share/info/bashref.info
+}
+
+pkg_preinst() {
+ if [[ -e ${ROOT}/etc/bashrc ]] && [[ ! -d ${ROOT}/etc/bash ]] ; then
+ mkdir -p "${ROOT}"/etc/bash
+ mv -f "${ROOT}"/etc/bashrc "${ROOT}"/etc/bash/
+ fi
+
+ if [[ -L ${ROOT}/bin/sh ]]; then
+ # rewrite the symlink to ensure that its mtime changes. having /bin/sh
+ # missing even temporarily causes a fatal error with paludis.
+ local target=$(readlink "${ROOT}"/bin/sh)
+ local tmp=$(emktemp "${ROOT}"/bin)
+ ln -sf "${target}" "${tmp}"
+ mv -f "${tmp}" "${ROOT}"/bin/sh
+ fi
+}
+
+pkg_postinst() {
+ # If /bin/sh does not exist, provide it
+ if [[ ! -e ${ROOT}/bin/sh ]]; then
+ ln -sf bash "${ROOT}"/bin/sh
+ fi
+}