summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-03 03:31:28 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-03 03:31:28 +0000
commit09b6fc7ae7b031cb744dad139e229fdd5a66ec31 (patch)
treedfc82bcac770f08376f163e17fcbbf1e36e92bde /app-shells
parentversion bump (diff)
downloadhistorical-09b6fc7ae7b031cb744dad139e229fdd5a66ec31.tar.gz
historical-09b6fc7ae7b031cb744dad139e229fdd5a66ec31.tar.bz2
historical-09b6fc7ae7b031cb744dad139e229fdd5a66ec31.zip
Version bump #449804 by Lars Wendler.
Package-Manager: portage-2.2.0_alpha144/cvs/Linux x86_64 Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/bash/ChangeLog9
-rw-r--r--app-shells/bash/Manifest32
-rw-r--r--app-shells/bash/bash-4.2_p42.ebuild218
3 files changed, 243 insertions, 16 deletions
diff --git a/app-shells/bash/ChangeLog b/app-shells/bash/ChangeLog
index cdb8f32ff079..d6de2c7fc41d 100644
--- a/app-shells/bash/ChangeLog
+++ b/app-shells/bash/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-shells/bash
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.329 2012/12/15 01:55:49 vapier Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.330 2013/01/03 03:31:22 vapier Exp $
+
+*bash-4.2_p42 (03 Jan 2013)
+
+ 03 Jan 2013; Mike Frysinger <vapier@gentoo.org> +bash-4.2_p42.ebuild:
+ Version bump #449804 by Lars Wendler.
*bash-4.2_p39-r1 (15 Dec 2012)
diff --git a/app-shells/bash/Manifest b/app-shells/bash/Manifest
index 43ed80c33dfd..c1d41d8edc6f 100644
--- a/app-shells/bash/Manifest
+++ b/app-shells/bash/Manifest
@@ -198,6 +198,9 @@ DIST bash42-036 3123 SHA256 fe293a1bc92ac4d272ae9b9a0de3afef7c06145a2b52337a09ca
DIST bash42-037 3483 SHA256 c7578cddd3bb2430689c740f58a03403800726dcd1268b28f91bf37f368e1674 SHA512 4466990dc3499ccde5940ddfb383052fa345d4e53fff7c8963ac7482fa280658b4516a1583486175cab2f3a5c8afbbedda8461e3cb1802031bce8db386404608 WHIRLPOOL 918dd53aea5ba7c5da2b6ef3325289d80d5c9e01aa57bd5bf9b9e6a22302865929a670ed7b20a5916237e2078aa69223c681e00c79c5db40dcf4d9ffa455b603
DIST bash42-038 1290 SHA256 b8c9a81bdf206be58ba491dfad80373b3348af769e80aaf72f7611ddbbbe6d57 SHA512 f835bb393153310fa2e4c2d95a98c0db53a97075f8989d61cccb095db223495777e413b21e9b235391a4a0f34d935a828ff5ccf337520d5dc87d380170efb351 WHIRLPOOL 3625b8a1e17e2ec7925027b6e048262126366ec2691e7a2bdfd23f8da2eefcea6ce967382067c8d6969d1a9cc641ffcd05ab71a713a61762c43d77df01082b8a
DIST bash42-039 1603 SHA256 f4f9300a60321a5088ae9e54052a64c4d3e876f9a3a17ca104d58fa38b9c1791 SHA512 4c5e44a623840c7efe7894f313a5691307b12aea325dbc923b48deb6ee6ac0bb2ff7afb0d2ee12ab97b04d60c1b9e2a4facc51b66c93be9fe0beda317ec7318f WHIRLPOOL e863174def546d9e9cbcdf5cfa1f735a1503a7caa10ab25a017add965cde524412e37c7fdc43ee80b6dd23676f2231093df64de1d1f41aa823e6cf5c79136531
+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 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
@@ -206,22 +209,23 @@ EBUILD bash-4.1_p11.ebuild 5664 SHA256 ac909f86646bcf807fb81d734706a9d151d4d5a7d
EBUILD bash-4.2_p37.ebuild 6311 SHA256 c807f0def9dc9dcac9958cb7a9606dd9f1ce33142933dcf0f8cd3276434f86ea SHA512 f72570af7efb4e07b5b5e67fb81f6c12f8b177f75592b2b12da606371ee63001c43126a2da03ef41e140894e47935c21df3a8235e10da9131a4f3bdd51c35575 WHIRLPOOL 54c55493d4f9443e33ee97421abca38237c4027d2bfe0f5c43b04e56cf35b795ca08d33e62517b79a193045dd67b1286b05630621f47bc376e26a276322dcce4
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
-MISC ChangeLog 50576 SHA256 eedfcd9d94e89e7328b4d3c5e3b8c172f6ab5f9371c13b5155714800a42d3d30 SHA512 077a0d05910d2e0ba2ada87e9d1c6bc1ffd9b4af45464f55d6683ea0b3897cd7c113fbdae93f00897198bad877cb908f758764e4832ef05fb121fe4af623f6df WHIRLPOOL c0504cdde5723f248ad6527b2c25b10b2e99d312ab1d80aa2404f43e637cb17fdb093ec9e6c7c61f32f9313b6b61e8e1dc641c42d199bfd388dab15e58abe56c
+EBUILD bash-4.2_p42.ebuild 6508 SHA256 71ece381df2f984f9fc2f9c704afd099d1a0153bf39048f02acd436c3aa0b0a8 SHA512 8aa6985f6844058b1757f3edcc8f97646ba37abd950278a98a7e00dca0d9df033db9f9bda76224727966cbce0368efb79d65f5ea452c8601516a3bef0c369378 WHIRLPOOL 13f7fc814b13046cd8efdefa209f9d0de9f523e8bdaa6e0fade651a9408586846ee7387a369b1ffbe9b424adace5de1196d245b7fdf5ec2c2ba7414a311ef830
+MISC ChangeLog 50718 SHA256 a7ae6123aa84e2d9b967ec35a67a9423813a23ef0f9aa65723d0bb0d88a0fc34 SHA512 98c9bb77bbf2469bf9a744ec02a5a38c2da06bb3cf2cfefba1290d42e27b7f22e40483d0922d5a0f39d25bf40e600b145c6bea804ed0d19dc9fca971cba2157d WHIRLPOOL ea668531509a0e74805092f850971205399c1ea59808c86c867b8f88b349958568892fcd903b0954d736aea0a89da0fe3a1b119d8543ec646272fb9bf5f183de
MISC metadata.xml 568 SHA256 48d380acb97dda0a7f4bd918b208d11367a8367d289b0a2d78ef08ef9a4e2562 SHA512 e50fd93498123511ac7460795687e694d368aaa2e7001ad752aae7bb6b67ed4746c8e171e4d5ff42e6aade0fd29d001330afdb593b8446046a98b27b113b7c5e WHIRLPOOL 83ad81f6ec56c7deaaa1d6cd18ee73621f02bedb62201d59ac44676120251e040f73c9ef238d91abf0c8c7d115a8b4b8df6ea22b533102c8daadfad755de51d6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJQy9jDAAoJELEHsLL7fEFWDt4P/iWKfpN22M+NxRc0IWD/0d7A
-lPF8Om8vrfbnGX2xK0msotKogQH4B7vmd9D/MjYXUVVI7J76J6zcOkc0gxfzGuqP
-UZrYGFtLuv/vJk1S8DL0NLt0/aMXiIDo2xkWNp1wlVM8aEuXCCgBL+U2bq0sF3OV
-n2WECD7icEnvXVx/MsD9s6wc91MCJPpcMBB4YrfZnknebozDAplgDV0yvEX0toLN
-AzdyqyINgxRisDgzzQW92psOQrIDXhTWjGlXxiTKL5EO+YbYQSAqhtrQmcV/LgvL
-wMxDLthYqhp5e63VqoXEzDDfFBfHwG3hhUm/x85HKA08toXH41EqarnaRPi0XmlD
-NUSlbn1578vfzBFdBcQOCLCEIOj2JcaqNp9cApLNFQFxQM9Jm9goBODS49h0HfDq
-6nzkFFwloqW8ELGA09NWOEknhK3Z0un6MT/PG1TNRIXoCRje6XtXeoH0isPs4ODe
-aW4gXkrEtuHWEFlZo63zOnegL+O+4Gja2Px7rqNSwpE0V3z2jmZkEt/pTZhGLdHa
-0R4uk59pFVDjSaUaJ7S/nPUZIpX/RieYQmn+yV3tKGQL6IRjZmlAkdJALdW5FH6z
-UZZHZKe3JTFCv0ruNNMXBllb//9Ht7xKBU0EgOhrzarZaqyzNqa8kXdbbhDui4sB
-wn1RvDBBIhFnJcTpD0vR
-=Tfkv
+iQIcBAEBCAAGBQJQ5Pv0AAoJELEHsLL7fEFW0AMQAIjCq6kDd/VC+cahU7jx0abz
+SLG6XfAbvbprdAvrfrsx21hFL154xJGHmk5Z4A9XqkemtdU/Wh/GXBy+bt3378QQ
+MwQYvZnzBY83/yL81B5pn6gWhAcdMtNyHYXAx0H69m8BVAFhLRkR2mFJiSoSTrK1
+AmRQz5eLrFyY/h9rVjcBwTk/rhKdPjqI6lXgW3ExLr4o9c5rSVJWHv9c2+j3HdUY
+vzII1g8uD/z/bBDjIZEVrWOLECR/x3X/QCGRprfF/G82xyWzS64EJz3AK21JOoQN
+l3nJbNNKaWxOuCg2/rY/xPsJaDazaRMqg8AdZ6bewhk1SFLJDGj5N7q39WmFbtRG
+/Yko25mynZbTOsRSQb4D/MOcbOjwvyFcoUBzOkNNPQ9AK+khJ/pAzWrIdXPUdRZe
+mQ+so7cFP/t+c8i0gmmT9+Mdjbc1EGVFANVW+D13lbIXVslfydtuQ0rR7QWdKwyZ
+dUBwukKsdCnMzKlhKfQTQu2ultQAIWJMvcBgg5C4QW+zl1DENvbbytqCBWCNpspJ
+eO0Rh/5M0MsyTWWi3UfvrlzSuqOgH6a5/4E87wcfWw6zIiyEIRBM3+XfxIYBXJSo
+REFef9TDPppeMQBmMMkJLbV56wdbR9/zzw3MFIvXtHeKLBXax80bZzgWwImlvPPR
+4/uP1ke5vZkZRSpYbMzD
+=sJDL
-----END PGP SIGNATURE-----
diff --git a/app-shells/bash/bash-4.2_p42.ebuild b/app-shells/bash/bash-4.2_p42.ebuild
new file mode 100644
index 000000000000..1af45cc92d70
--- /dev/null
+++ b/app-shells/bash/bash-4.2_p42.ebuild
@@ -0,0 +1,218 @@
+# 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_p42.ebuild,v 1.1 2013/01/03 03:31:22 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
+ 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
+}