parent
e5c912ae25
commit
e9de92f4c9
@ -1 +1 @@
|
||||
DIST eselect-timezone-0.1.tar.gz 1243 SHA256 3e660ede3d2ecec40dfb176530a2b9fd10b8636e2305dcafdf991a3ac01cc36a SHA512 57601d4d34533ba12c458860b753486cc474e31ce2c3e731ad5bf9179094a74e92f79f47c6928e92d70d6a7fa54c606100c334d74ce243564a0c9a1e72a43bfa WHIRLPOOL 484e0003a3b32bd6cd0562119c345185e6f2ae044c4acdd22a92dac62f39bd5951ea6986561a057f4e44128157b4c733004b49c81583ebfddeef88ab9acf9767
|
||||
DIST eselect-timezone-0.2.tar.xz 1400 SHA256 7bf7cc26b1ecfbc56ab742cc0debf7dd3b2bd0e83ba1df0dbd203e3b97c167f4 SHA512 757dc88b94fde547af2026c0759c9109f803f7144e843be9d79e9eef0bcbe8f2273a5585448dc1d810d89f4f4be7f6d8974e7dc35f6dc8069f8090775bdf8b52 WHIRLPOOL c950c695b7915db48f48ec7e15583911dfdaf281130b9e0c217199df477f8fbd4c3ad60e6582a7cc540adc44c461fccddc11c7c9c65f1e7c7b8931e1247beb9c
|
||||
|
@ -1,12 +1,12 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-timezone/eselect-timezone-0.1.ebuild,v 1.1 2012/11/04 17:35:44 ottxor Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-timezone/eselect-timezone-0.2.ebuild,v 1.1 2012/11/17 02:16:29 ottxor Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Manages timezone selection"
|
||||
HOMEPAGE="http://www.gentoo.org"
|
||||
SRC_URI="http://dev.gentoo.org/~ottxor/distfiles/${P}.tar.gz"
|
||||
SRC_URI="http://dev.gentoo.org/~ottxor/distfiles/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
@ -1,2 +1,3 @@
|
||||
DIST salt-0.10.0.tar.gz 1966467 RMD160 33731fcceab5e8f8cf5dc91bcf3caaa50f3037f8 SHA1 4f27d2fe80230082cdc770dd6e6cf172fa7f93b3 SHA256 268545290cf736bb1d0ba9c6fa73927c77c9cec2a7ed73112c970fd00b2aa94a
|
||||
DIST salt-0.9.8.tar.gz 1641495 RMD160 236fb3d5e514127067ae381aad9061afd6bbb741 SHA1 0b25385f23ccb24b41bf26f0767c55eaf871aaca SHA256 a00cb012b8caca3ce30ecf37a8bc9e0ba3048d5158ff6914918a913aae07ed15 SHA512 767f87d15483f101d5f264371abaf5ddb048a997ed758078a2ad015bd1bfb62224e7d9e6e5556af069766d20f3decc8944ab947e07f1ada6192b0c5dc50796e5 WHIRLPOOL c99f6ba40319cead3a4cb801ea6c9d3a1398642bcfcad1e018d128dc9dc216cf5ab7c55c140d22f6c08623bd61b3b0f026480fb224ffe82199d863e41defd0c7
|
||||
DIST salt-0.10.0.tar.gz 1966467 SHA256 268545290cf736bb1d0ba9c6fa73927c77c9cec2a7ed73112c970fd00b2aa94a SHA512 22c9d85240af30929e0658812e287619e5215d830b2281cfff23290a8c4012761270ee1ee997d109ae334643b4cc08157429be85d4b2a1d362c1d296857f7f50 WHIRLPOOL 8c823b9b7f1a0ce573e3beda6c9f7503bd7cd22d0a5be194329a5e20f114422c53b58b483878060fe7c7bf2eaffd7fb9c2dd1ae6f99aca7b7d05c141a75fff4f
|
||||
DIST salt-0.10.5.tar.gz 793582 SHA256 16350dea427e9216adfa48a184fe99b302dacf6b2afbb96b792734046d80c9c9 SHA512 ff7485fb8f9ef66c92f73ac64e424c8d05d1d5566e03bf6c187ea74948daacc6f1dfca5ce8f3aead27e1af85e60ed3715a88cead53b137e75723c19254f8a77e WHIRLPOOL 560bd02c945bbb2a7651bb491261c277a95b2925473750a78181b7e7ef09af6708bfc966b3525032bd593b7956dfb3f2e2029efce8fd987eaa470878d66cfbec
|
||||
DIST salt-0.9.8.tar.gz 1641495 SHA256 a00cb012b8caca3ce30ecf37a8bc9e0ba3048d5158ff6914918a913aae07ed15 SHA512 767f87d15483f101d5f264371abaf5ddb048a997ed758078a2ad015bd1bfb62224e7d9e6e5556af069766d20f3decc8944ab947e07f1ada6192b0c5dc50796e5 WHIRLPOOL c99f6ba40319cead3a4cb801ea6c9d3a1398642bcfcad1e018d128dc9dc216cf5ab7c55c140d22f6c08623bd61b3b0f026480fb224ffe82199d863e41defd0c7
|
||||
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/salt/salt-0.10.5.ebuild,v 1.1 2012/11/16 18:25:06 chutzpah Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_COMPAT="python2_6 python2_7 python3_1 python3_2"
|
||||
|
||||
inherit eutils python-distutils-ng
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager."
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
SRC_URI="mirror://github/saltstack/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
IUSE="+jinja ldap libvirt mongodb mysql openssl redis"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}
|
||||
>=dev-python/pyzmq-2.1.9
|
||||
dev-python/msgpack
|
||||
dev-python/pyyaml
|
||||
dev-python/m2crypto
|
||||
dev-python/pycrypto
|
||||
dev-python/pycryptopp
|
||||
ldap? ( dev-python/python-ldap )
|
||||
openssl? ( dev-python/pyopenssl )
|
||||
jinja? ( dev-python/jinja )
|
||||
libvirt? ( app-emulation/libvirt[python] )
|
||||
mongodb? ( dev-python/pymongo )
|
||||
mysql? ( dev-python/mysql-python )
|
||||
redis? ( dev-python/redis-py )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i '/install_requires=/ d' setup.py || die "sed failed"
|
||||
|
||||
python-distutils-ng_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python-distutils-ng_src_install
|
||||
|
||||
for s in minion master syndic; do
|
||||
newinitd "${FILESDIR}"/${s}-initd-1 salt-${s}
|
||||
newconfd "${FILESDIR}"/${s}-confd-1 salt-${s}
|
||||
done
|
||||
|
||||
# install the config template files
|
||||
dodir /etc/${PN}
|
||||
for conf in conf/*.template; do
|
||||
sed '1 d' ${conf} > "${D}"/etc/${PN}/"$(basename "${conf%.template}")" \
|
||||
|| die "sed failed"
|
||||
done
|
||||
|
||||
dodoc README.rst AUTHORS
|
||||
}
|
||||
|
||||
python_test() {
|
||||
./setup.py test || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST trousers-0.3.10.tar.gz 1658652 SHA256 eb9569de5c66d9698f6c3303de03777b95ec72827f68b7744454bfa9227bc530 SHA512 1835246f846d20bc1b2731d68440a9ca45865fcd52ad847d95485e4b126fae8bec09feaad559c27d83e243d92b8adc3a67934bff2034b318df075842fe9df4f0 WHIRLPOOL 7a27ef57b0038178cbf384c9fdec2d2e3e58dbeb5e5bc1503d2a7058a8312df54fa72b87968554631e4b5e483ae5e8c5e0a2367346bf3ae001b523a507ceff40
|
||||
DIST trousers-0.3.6.tar.gz 1335084 SHA256 91025f60248af44df192e8df16fa6b0c0f1e48c54f6dc51626567ed95758b0d6 SHA512 a9eba2f8e06b163c29e2e9079e62240d96dc630d12fbe61aa0c6b2bc93f88d7f528ae0cabae1de82aba9676e91c2c338da2ce1690bbf21b768af803f7cdff6c3 WHIRLPOOL b13e46f3e2f95bd28a4ad3f7686638709d2484b56ac96f98823f56aafd1be852275a1831ae82a1b11b4eb3e4e9ad051012e59368425374b918e41ecf41d70f01
|
||||
|
@ -0,0 +1,101 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/trousers-0.3.10.ebuild,v 1.3 2012/11/16 14:51:49 ssuominen Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools eutils linux-info user udev
|
||||
|
||||
#MY_P="${PN}-${PV%.*}-${PV##*.}"
|
||||
|
||||
DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation"
|
||||
HOMEPAGE="http://trousers.sf.net"
|
||||
SRC_URI="mirror://sourceforge/trousers/${P}.tar.gz"
|
||||
LICENSE="CPL-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="doc" # gtk
|
||||
|
||||
# gtk support presently does NOT compile.
|
||||
# gtk? ( >=x11-libs/gtk+-2 )
|
||||
|
||||
RDEPEND=">=dev-libs/glib-2
|
||||
>=dev-libs/openssl-0.9.7:0"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
# S="${WORKDIR}/${P}git"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NICETOHAVES README TODO"
|
||||
|
||||
pkg_setup() {
|
||||
# Check for driver (not sure it can be an rdep, because ot depends on the
|
||||
# version of virtual/linux-sources... Is that supported by portage?)
|
||||
linux-info_pkg_setup
|
||||
local tpm_kernel_version tpm_kernel_present tpm_module
|
||||
kernel_is ge 2 6 12 && tpm_kernel_version="yes"
|
||||
if linux_config_exists; then
|
||||
linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes"
|
||||
else
|
||||
ewarn "No kernel configuration could be found."
|
||||
fi
|
||||
has_version app-crypt/tpm-emulator && tpm_module="yes"
|
||||
if [[ -n "${tpm_kernel_present}" ]]; then
|
||||
einfo "Good, you seem to have in-kernel TPM support."
|
||||
elif [[ -n "${tpm_module}" ]]; then
|
||||
einfo "Good, you seem to have TPM support with the external module."
|
||||
if [[ -n "${tpm_kernel_version}" ]]; then
|
||||
elog
|
||||
elog "Note that since you have a >=2.6.12 kernel, you could use"
|
||||
elog "the in-kernel driver instead of (CONFIG_TCG_TPM)."
|
||||
fi
|
||||
elif [[ -n "${tpm_kernel_version}" ]]; then
|
||||
eerror
|
||||
eerror "To use this package, you will have to activate TPM support"
|
||||
eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM,"
|
||||
eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)."
|
||||
eerror
|
||||
else
|
||||
eerror
|
||||
eerror "To use this package, you should install a TPM driver."
|
||||
eerror "You can have the following options:"
|
||||
eerror " - install app-crypt/tpm-emulator"
|
||||
eerror " - switch to a >=2.6.12 kernel and compile the kernel module"
|
||||
eerror
|
||||
fi
|
||||
|
||||
# New user/group for the daemon
|
||||
enewgroup tss
|
||||
enewuser tss -1 -1 /var/lib/tpm tss
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.3.5-nouseradd.patch
|
||||
|
||||
sed -i -r \
|
||||
-e '/CFLAGS/s/ -(Werror|m64)//' \
|
||||
configure.in || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# econf --with-gui=$(usex gtk gtk openssl)
|
||||
econf --with-gui=openssl
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/lib/tpm
|
||||
default
|
||||
use doc && dodoc doc/*
|
||||
newinitd "${FILESDIR}"/tcsd.initd tcsd
|
||||
newconfd "${FILESDIR}"/tcsd.confd tcsd
|
||||
insinto "$(udev_get_udevdir)"/rules.d
|
||||
doins "${FILESDIR}"/61-trousers.rules
|
||||
fowners tss:tss /var/lib/tpm
|
||||
rm -f "${ED}"/usr/lib*/libtspi.la
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you have problems starting tcsd, please check permissions and"
|
||||
elog "ownership on /dev/tpm* and ~tss/system.data"
|
||||
}
|
@ -0,0 +1,260 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/uim/uim-1.8.3.ebuild,v 1.1 2012/11/16 09:31:59 patrick Exp $
|
||||
|
||||
EAPI="4"
|
||||
inherit autotools eutils multilib elisp-common flag-o-matic
|
||||
|
||||
DESCRIPTION="Simple, secure and flexible input method library"
|
||||
HOMEPAGE="http://code.google.com/p/uim/"
|
||||
SRC_URI="http://uim.googlecode.com/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="+anthy canna curl eb emacs libffi gnome gtk gtk3 kde libedit libnotify m17n-lib ncurses nls prime qt4 skk sqlite ssl static-libs test unicode X xft linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
REQUIRED_USE="gtk? ( X ) qt4? ( X )"
|
||||
|
||||
RDEPEND="X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXft
|
||||
x11-libs/libXt
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
)
|
||||
anthy? (
|
||||
unicode? ( >=app-i18n/anthy-8622 )
|
||||
!unicode? ( app-i18n/anthy )
|
||||
)
|
||||
canna? ( app-i18n/canna )
|
||||
curl? ( >=net-misc/curl-7.16.4 )
|
||||
eb? ( dev-libs/eb )
|
||||
emacs? ( virtual/emacs )
|
||||
libffi? ( virtual/libffi )
|
||||
gnome? ( >=gnome-base/gnome-panel-2.14 )
|
||||
gtk? ( >=x11-libs/gtk+-2.4:2 )
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
kde? ( >=kde-base/kdelibs-4 )
|
||||
libedit? ( dev-libs/libedit )
|
||||
libnotify? ( >=x11-libs/libnotify-0.4 )
|
||||
m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
nls? ( virtual/libintl )
|
||||
prime? ( app-i18n/prime )
|
||||
qt4? ( x11-libs/qt-gui:4[qt3support] )
|
||||
skk? ( app-i18n/skk-jisyo )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
ssl? ( dev-libs/openssl )
|
||||
!dev-scheme/sigscheme
|
||||
!app-i18n/uim-svn
|
||||
!<app-i18n/prime-0.9.4"
|
||||
# >=dev-scheme/sigscheme-0.8.5
|
||||
# mana? ( app-i18n/mana )
|
||||
# scim? ( >=app-i18n/scim-1.3.0 ) # broken
|
||||
# sj3? ( >=app-i18n/sj3-2.0.1.21 )
|
||||
# wnn? ( app-i18n/wnn )
|
||||
# gnome? (
|
||||
# gtk? ( >=gnome-base/gnome-panel-2.14 )
|
||||
# gtk3? ( >=gnome-base/gnome-panel-3 )
|
||||
# )
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/intltool
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/gettext-0.15
|
||||
kde? ( dev-util/cmake )
|
||||
X? (
|
||||
x11-proto/xextproto
|
||||
x11-proto/xproto
|
||||
)"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
X? (
|
||||
media-fonts/font-sony-misc
|
||||
linguas_zh_CN? (
|
||||
|| ( media-fonts/font-isas-misc media-fonts/intlfonts )
|
||||
)
|
||||
linguas_zh_TW? (
|
||||
media-fonts/intlfonts
|
||||
)
|
||||
linguas_ja? (
|
||||
|| ( media-fonts/font-jis-misc media-fonts/intlfonts )
|
||||
)
|
||||
linguas_ko? (
|
||||
|| ( media-fonts/font-daewoo-misc media-fonts/intlfonts )
|
||||
)
|
||||
)"
|
||||
# test? ( dev-scheme/gauche )
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
|
||||
update_gtk_immodules() {
|
||||
local GTK2_CONFDIR="/etc/gtk-2.0"
|
||||
# bug #366889
|
||||
if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
|
||||
GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)"
|
||||
fi
|
||||
mkdir -p "${EPREFIX}${GTK2_CONFDIR}"
|
||||
|
||||
if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
|
||||
"${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules"
|
||||
fi
|
||||
}
|
||||
|
||||
update_gtk3_immodules() {
|
||||
if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then
|
||||
"${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-1.6.0-gentoo.patch \
|
||||
"${FILESDIR}"/${PN}-1.5.4-zhTW.patch
|
||||
|
||||
# bug 275420
|
||||
sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die
|
||||
|
||||
echo "QMAKE_LFLAGS = ${LDFLAGS}" >> qt4/common.pro.in || die
|
||||
|
||||
#./autogen.sh
|
||||
AT_NO_RECURSIVE=1 eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if (use gtk || use gtk3) && (use anthy || use canna) ; then
|
||||
myconf="${myconf} --enable-dict"
|
||||
else
|
||||
myconf="${myconf} --disable-dict"
|
||||
fi
|
||||
|
||||
if use gtk || use gtk3 || use qt4 ; then
|
||||
myconf="${myconf} --enable-pref"
|
||||
else
|
||||
myconf="${myconf} --disable-pref"
|
||||
fi
|
||||
|
||||
if use anthy ; then
|
||||
if use unicode ; then
|
||||
myconf="${myconf} --with-anthy-utf8"
|
||||
else
|
||||
myconf="${myconf} --with-anthy"
|
||||
fi
|
||||
else
|
||||
myconf="${myconf} --without-anthy"
|
||||
fi
|
||||
|
||||
if use libnotify ; then
|
||||
myconf="${myconf} --enable-notify=libnotify"
|
||||
fi
|
||||
|
||||
#if use gnome ; then
|
||||
# myconf="${myconf} $(use_enable gtk gnome-applet)"
|
||||
# myconf="${myconf} $(use_enable gtk3 gnome3-applet)"
|
||||
#fi
|
||||
|
||||
econf $(use_with X x) \
|
||||
$(use_with canna) \
|
||||
$(use_with curl) \
|
||||
$(use_with eb) \
|
||||
$(use_enable emacs) \
|
||||
$(use_with emacs lispdir "${SITELISP}") \
|
||||
$(use_with libffi ffi) \
|
||||
$(use_enable gnome gnome-applet) \
|
||||
$(use_with gtk gtk2) \
|
||||
$(use_with gtk3) \
|
||||
$(use_with libedit) \
|
||||
--disable-kde-applet \
|
||||
$(use_enable kde kde4-applet) \
|
||||
$(use_with m17n-lib m17nlib) \
|
||||
$(use_enable ncurses fep) \
|
||||
$(use_enable nls) \
|
||||
$(use_with prime) \
|
||||
--without-qt \
|
||||
--without-qt-immodule \
|
||||
$(use_with qt4 qt4) \
|
||||
$(use_with qt4 qt4-immodule) \
|
||||
$(use_enable qt4 qt4-qt3support) \
|
||||
$(use_with skk) \
|
||||
$(use_with sqlite sqlite3) \
|
||||
$(use_enable ssl openssl) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with xft) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
|
||||
if use emacs; then
|
||||
cd emacs
|
||||
elisp-compile *.el || die "elisp-compile failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# parallel make install b0rked, bug #222677
|
||||
emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
dodoc AUTHORS ChangeLog* NEWS README RELNOTE || die
|
||||
if use emacs; then
|
||||
elisp-install uim-el emacs/*.elc || die "elisp-install failed"
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \
|
||||
|| die "elisp-site-file-install failed"
|
||||
fi
|
||||
|
||||
find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} +
|
||||
use static-libs || find "${ED}" -name '*.la' -exec rm {} +
|
||||
|
||||
sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die
|
||||
insinto /etc/X11/xinit/xinput.d
|
||||
doins "${T}/uim.conf" || die
|
||||
|
||||
# collision with dev-scheme/sigscheme, bug #330975
|
||||
# find "${ED}" -name '*gcroots*' -delete || die
|
||||
|
||||
#rmdir "${ED}"/usr/share/doc/sigscheme || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "New input method switcher has been introduced. You need to set"
|
||||
elog
|
||||
elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
|
||||
elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
|
||||
elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
|
||||
elog
|
||||
elog "If you would like to use uim-anthy as default input method, put"
|
||||
elog "(define default-im-name 'anthy)"
|
||||
elog "to your ~/.uim."
|
||||
elog
|
||||
elog "All input methods can be found by running uim-im-switcher-gtk, "
|
||||
elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4."
|
||||
elog
|
||||
elog "If you upgrade from a version of uim older than 1.4.0,"
|
||||
elog "you should run revdep-rebuild."
|
||||
|
||||
use gtk && update_gtk_immodules
|
||||
use gtk3 && update_gtk3_immodules
|
||||
if use emacs; then
|
||||
elisp-site-regen
|
||||
echo
|
||||
elog "uim is autoloaded with Emacs with a minimal set of features:"
|
||||
elog "There is no keybinding defined to call it directly, so please"
|
||||
elog "create one yourself and choose an input method."
|
||||
elog "Integration with LEIM is not done with this ebuild, please have"
|
||||
elog "a look at the documentation how to achieve this."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use gtk && update_gtk_immodules
|
||||
use gtk3 && update_gtk3_immodules
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST emelfm2-0.7.5.tar.bz2 1055510 SHA256 6dcd2ca2695f0ceb442a8390558580a19d4fb66d1d89e2b103696a6d4e68ac2c SHA512 b6deb404fe952fb33987afc0a862143da1ea6885053b0b713b3035bdd11960dadbb3e487fd526a4de1fdb57809e576d979ab59e89844791f66795a6d3b67e1c8 WHIRLPOOL b1641c4dc606fef74e6e48b6425213e992747f1164a36d4fcca80288ffc15cdcf5876cd200d32138771d3c11d1d03bfd5b48b4b76e0be6c96a6baf09de216718
|
||||
DIST emelfm2-0.8.0.tar.bz2 1085861 SHA256 85baadcf3d52d77eb8a44a325a444d52cf25164b1151c641dc2b36eb68e333e3 SHA512 02b1068a01b97b43fa315714d806f7ee8d7269840d226c2ff2ed0044f0f6ac1c9b8a26628423080136bb7f98603b71445f5c490f84e7f9dc7390ef0a11797882 WHIRLPOOL b378d91d3ce1a27fbc42f0816fd5e96e36ccb049c8784754738f8c9391fd845657637c49e8a8c68afa3cd2531c8f3816113afb2ad51c8476a29d0d05a02beb27
|
||||
DIST emelfm2-0.8.1.tar.bz2 1098199 SHA256 d38355628360e6bcdb69ef4affff03dd9f7cc9bd25c999b18b648a23c6f8bba7 SHA512 0f371459b8e4ca96beb45a8ed04ea2b757356c938cbd6927244abadc01f4c89f39ca50b8a86c4ff97e5c2d068405c1969c1d028a2fba650ec9326c39bb39a65f WHIRLPOOL 1dbe7848c44a79afb40a1c663503ad57a257d1b55b4e24e1cc0c7efd3bbe0be94e3a5ba9228bc1ee1933ad967b42492ecba7e2849a33a00d188592b6b3f26a72
|
||||
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/emelfm2/emelfm2-0.8.1.ebuild,v 1.1 2012/11/16 15:29:40 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A file manager that implements the popular two-pane design"
|
||||
HOMEPAGE="http://emelfm2.net/"
|
||||
SRC_URI="http://emelfm2.net/rel/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3 LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="acl fam gimp kernel_linux nls policykit spell udev"
|
||||
|
||||
COMMON_DEPEND=">=dev-libs/glib-2.26:2
|
||||
>=x11-libs/gtk+-2.12:2
|
||||
acl? ( sys-apps/acl )
|
||||
gimp? ( media-gfx/gimp )
|
||||
policykit? ( sys-auth/polkit )
|
||||
spell? ( >=app-text/gtkspell-2.0.14:2 )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udev? ( sys-fs/udisks:0 )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
emel_use() {
|
||||
use ${1} && echo "${2}=1" || echo "${2}=0"
|
||||
}
|
||||
|
||||
#363813
|
||||
myemelconf=(
|
||||
GTK3=0
|
||||
DOCS_VERSION=1
|
||||
$(emel_use nls I18N)
|
||||
WITH_TRANSPARENCY=1
|
||||
$(emel_use kernel_linux WITH_KERNELFAM)
|
||||
$(emel_use spell EDITOR_SPELLCHECK)
|
||||
$(emel_use udev WITH_DEVKIT)
|
||||
$(emel_use gimp WITH_THUMBS)
|
||||
$(emel_use acl WITH_ACL)
|
||||
$(emel_use policykit WITH_POLKIT)
|
||||
STRIP=0
|
||||
)
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e 's:dbus-glib-1::' \
|
||||
-e 's:@$(CC):$(CC):g' \
|
||||
-e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
emake LIB_DIR="/usr/$(get_libdir)" PREFIX="/usr" \
|
||||
${myemelconf[@]}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake LIB_DIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" \
|
||||
${myemelconf[@]} install $( use nls && echo install_i18n )
|
||||
newicon icons/${PN}_48.png ${PN}.png
|
||||
}
|
@ -0,0 +1,181 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.0.5.ebuild,v 1.1 2012/11/16 09:10:51 patrick Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit gnome2-utils qt4-r2 eutils flag-o-matic font python toolchain-funcs
|
||||
|
||||
MY_P="${P/_}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
FONT_S="${S}/lib/fonts"
|
||||
FONT_SUFFIX="ttf"
|
||||
DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
|
||||
HOMEPAGE="http://www.lyx.org/"
|
||||
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${P}.tar.xz"
|
||||
#SRC_URI="ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/rc3/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
|
||||
IUSE="cups debug nls +latex xetex luatex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant"
|
||||
|
||||
LANGS="ar ca cs de da el en es eu fi fr gl he hu ia id it ja nb nn pl pt ro ru sk sr sv tr uk zh_CN zh_TW"
|
||||
|
||||
for X in ${LANGS}; do
|
||||
IUSE="${IUSE} linguas_${X}"
|
||||
done
|
||||
|
||||
COMMONDEPEND="x11-libs/qt-gui:4
|
||||
x11-libs/qt-core:4
|
||||
dev-libs/libxml2
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
>=dev-libs/boost-1.34"
|
||||
|
||||
RDEPEND="${COMMONDEPEND}
|
||||
dev-texlive/texlive-fontsextra
|
||||
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
|
||||
cups? ( net-print/cups )
|
||||
latex? (
|
||||
virtual/latex-base
|
||||
app-text/ghostscript-gpl
|
||||
app-text/noweb
|
||||
app-text/dvipng
|
||||
dev-tex/dvipost
|
||||
dev-tex/chktex
|
||||
app-text/ps2eps
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-pictures
|
||||
dev-texlive/texlive-science
|
||||
dev-texlive/texlive-genericextra
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
|| (
|
||||
dev-tex/latex2html
|
||||
dev-tex/tth
|
||||
dev-tex/hevea
|
||||
dev-tex/tex4ht
|
||||
)
|
||||
)
|
||||
xetex? ( dev-texlive/texlive-xetex )
|
||||
luatex? ( >=dev-texlive/texlive-luatex-2010 )
|
||||
html? ( dev-tex/html2latex )
|
||||
rtf? (
|
||||
dev-tex/latex2rtf
|
||||
app-text/unrtf
|
||||
dev-tex/html2latex
|
||||
)
|
||||
linguas_he? ( dev-tex/culmus-latex )
|
||||
docbook? ( app-text/sgmltools-lite )
|
||||
dot? ( media-gfx/graphviz )
|
||||
dia? ( app-office/dia )
|
||||
subversion? ( <dev-vcs/subversion-1.7.0 )
|
||||
rcs? ( dev-vcs/rcs )
|
||||
svg? ( || ( media-gfx/imagemagick[svg] media-gfx/graphicsmagick[svg] )
|
||||
|| ( gnome-base/librsvg media-gfx/inkscape )
|
||||
)
|
||||
gnumeric? ( app-office/gnumeric )
|
||||
hunspell? ( app-text/hunspell )
|
||||
aspell? ( app-text/aspell )
|
||||
enchant? ( app-text/enchant )"
|
||||
|
||||
DEPEND="${COMMONDEPEND}
|
||||
sys-devel/bc
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
font_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/2.0-python.patch
|
||||
echo "#!/bin/sh" > config/py-compile
|
||||
sed "s:python -tt:$(PYTHON) -tt:g" -i lib/configure.py || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CXX
|
||||
#bug 221921
|
||||
export VARTEXFONTS=${T}/fonts
|
||||
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable monolithic-build) \
|
||||
$(use_with hunspell) \
|
||||
$(use_with aspell) \
|
||||
$(use_with enchant) \
|
||||
--without-included-boost \
|
||||
--disable-stdlib-debug \
|
||||
--with-packaging=posix
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
|
||||
dodoc ANNOUNCE NEWS README RELEASE-NOTES UPGRADING "${FONT_S}"/*.txt || die
|
||||
|
||||
if use linguas_he ; then
|
||||
echo "\bind_file cua" > "${T}"/hebrew.bind
|
||||
echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
|
||||
|
||||
insinto /usr/share/lyx/bind
|
||||
doins "${T}"/hebrew.bind || die
|
||||
fi
|
||||
|
||||
newicon -s 32 "$S/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png
|
||||
make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;"
|
||||
|
||||
# fix for bug 91108
|
||||
if use latex ; then
|
||||
dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx || die
|
||||
fi
|
||||
|
||||
# fonts needed for proper math display, see also bug #15629
|
||||
font_src_install
|
||||
|
||||
python_convert_shebangs -r 2 "${ED}"/usr/share/${PN}
|
||||
|
||||
if use hunspell ; then
|
||||
dosym /usr/share/myspell /usr/share/lyx/dicts
|
||||
dosym /usr/share/myspell /usr/share/lyx/thes
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
font_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
|
||||
# fix for bug 91108
|
||||
if use latex ; then
|
||||
texhash
|
||||
fi
|
||||
|
||||
# instructions for RTL support. See also bug 168331.
|
||||
if use linguas_he || use linguas_ar; then
|
||||
elog
|
||||
elog "Enabling RTL support in LyX:"
|
||||
elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
|
||||
elog "You must enable RTL support in LyX. To do so start LyX and go to"
|
||||
elog "Tools->Preferences->Language settings->Language"
|
||||
elog "and make sure the \"Right-to-left language support\" is checked"
|
||||
elog
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
|
||||
if use latex ; then
|
||||
texhash
|
||||
fi
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.1_p17.ebuild,v 1.22 2011/02/06 22:01:34 leio Exp $
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.1-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
READLINE_VER=5.1
|
||||
READLINE_PLEVEL=1
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
# Hit the GNU mirrors before hitting Chet's site
|
||||
# printf 'mirror://gnu/bash/bash-%s-patches/bash%s-%03d\n' \
|
||||
# ${MY_PV} ${MY_PV/\.} ${i}
|
||||
SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz
|
||||
ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz
|
||||
$(for ((i=1; i<=PLEVEL; i++)); do
|
||||
printf 'ftp://ftp.cwru.edu/pub/bash/bash-%s-patches/bash%s-%03d\n' \
|
||||
${MY_PV} ${MY_PV/\.} ${i}
|
||||
done)
|
||||
$(for ((i=1; i<=READLINE_PLEVEL; i++)); do
|
||||
printf 'ftp://ftp.cwru.edu/pub/bash/readline-%s-patches/readline%s-%03d\n' \
|
||||
${READLINE_VER} ${READLINE_VER/\.} ${i}
|
||||
printf 'mirror://gnu/bash/readline-%s-patches/readline%s-%03d\n' \
|
||||
${READLINE_VER} ${READLINE_VER/\.} ${i}
|
||||
done)"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger nls vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${PN}-3.1-gentoo.patch
|
||||
|
||||
# Include official patches
|
||||
local i
|
||||
for ((i=1; i<=PLEVEL; i++)); do
|
||||
epatch "${DISTDIR}"/${PN}${MY_PV/\.}-$(printf '%03d' ${i})
|
||||
done
|
||||
cd lib/readline
|
||||
for ((i=1; i<=READLINE_PLEVEL; i++)); do
|
||||
epatch "${DISTDIR}"/readline${READLINE_VER/\.}-$(printf '%03d' ${i})
|
||||
done
|
||||
cd ../..
|
||||
|
||||
if ! use vanilla ; then
|
||||
# Fall back to /etc/inputrc
|
||||
epatch "${FILESDIR}"/${PN}-3.0-etc-inputrc.patch
|
||||
# Add more ulimit options (from Fedora)
|
||||
epatch "${FILESDIR}"/${MY_P}-ulimit.patch
|
||||
# Fix a memleak in read_builtin (from Fedora)
|
||||
epatch "${FILESDIR}"/${PN}-3.0-read-memleak.patch
|
||||
# Don't barf on handled signals in scripts
|
||||
epatch "${FILESDIR}"/${PN}-3.0-trap-fg-signals.patch
|
||||
# Fix -/bin/bash login shell #118257
|
||||
epatch "${FILESDIR}"/bash-3.1-fix-dash-login-shell.patch
|
||||
# Fix /dev/fd test with FEATURES=userpriv #131875
|
||||
epatch "${FILESDIR}"/bash-3.1-dev-fd-test-as-user.patch
|
||||
# Log bash commands to syslog #91327
|
||||
if use bashlogger ; then
|
||||
echo
|
||||
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."
|
||||
ebeep
|
||||
epause
|
||||
epatch "${FILESDIR}"/${PN}-3.1-bash-logger.patch
|
||||
fi
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-3.0-configs.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
filter-flags -malign-double
|
||||
|
||||
local myconf=
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to use with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf="${myconf} --disable-nls"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
--disable-profiling \
|
||||
--without-gnu-malloc \
|
||||
${myconf} || die
|
||||
emake -j1 || die "make failed" # see bug 102426
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstall || die
|
||||
|
||||
dodir /bin
|
||||
mv "${D}"/usr/bin/bash "${D}"/bin/
|
||||
[[ ${USERLAND} != "BSD" ]] && dosym bash /bin/sh
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
doman doc/*.1
|
||||
dodoc README NEWS AUTHORS CHANGES COMPAT Y2K doc/FAQ doc/INTRO
|
||||
dosym bash.info.gz /usr/share/info/bashref.info.gz
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
# our bash_logout is just a place holder so dont
|
||||
# force users to go through etc-update all the time
|
||||
if [[ -e ${ROOT}/etc/bash/bash_logout ]] ; then
|
||||
rm -f "${D}"/etc/bash/bash_logout
|
||||
fi
|
||||
}
|
@ -1,187 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.2_p51.ebuild,v 1.3 2011/05/16 10:36:26 nyhm Exp $
|
||||
|
||||
EAPI=1
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
READLINE_VER=5.2
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
|
||||
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
|
||||
ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz
|
||||
$(for ((i=1; i<=PLEVEL; i++)); do
|
||||
printf 'ftp://ftp.cwru.edu/pub/bash/bash-%s-patches/bash%s-%03d\n' \
|
||||
${MY_PV} ${MY_PV/\.} ${i}
|
||||
printf 'mirror://gnu/bash/bash-%s-patches/bash%s-%03d\n' \
|
||||
${MY_PV} ${MY_PV/\.} ${i}
|
||||
done)
|
||||
$(for ((i=1; i<=READLINE_PLEVEL; i++)); do
|
||||
printf 'ftp://ftp.cwru.edu/pub/bash/readline-%s-patches/readline%s-%03d\n' \
|
||||
${READLINE_VER} ${READLINE_VER/\.} ${i}
|
||||
printf 'mirror://gnu/bash/readline-%s-patches/readline%s-%03d\n' \
|
||||
${READLINE_VER} ${READLINE_VER/\.} ${i}
|
||||
done)"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.5
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
cd "${S}"
|
||||
|
||||
# Include official patches
|
||||
local i
|
||||
for ((i=1; i<=PLEVEL; i++)); do
|
||||
epatch "${DISTDIR}"/${PN}${MY_PV/\.}-$(printf '%03d' ${i})
|
||||
done
|
||||
cd lib/readline
|
||||
for ((i=1; i<=READLINE_PLEVEL; i++)); do
|
||||
epatch "${DISTDIR}"/readline${READLINE_VER/\.}-$(printf '%03d' ${i})
|
||||
done
|
||||
cd ../..
|
||||
|
||||
if ! use vanilla ; then
|
||||
epatch "${FILESDIR}"/autoconf-mktime-2.59.patch #220040
|
||||
epatch "${FILESDIR}"/${PN}-3.1-gentoo.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2-loadables.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2-protos.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2-session-leader.patch #231775
|
||||
epatch "${FILESDIR}"/${PN}-3.2-parallel-build.patch #189671
|
||||
epatch "${FILESDIR}"/${PN}-3.2-ldflags-for-build.patch #211947
|
||||
|
||||
# Fix process substitution on BSD.
|
||||
epatch "${FILESDIR}"/${PN}-3.2-process-subst.patch
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-3.2-ulimit.patch
|
||||
# Don't barf on handled signals in scripts
|
||||
epatch "${FILESDIR}"/${PN}-3.0-trap-fg-signals.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2-dev-fd-test-as-user.patch #131875
|
||||
# Log bash commands to syslog #91327
|
||||
if use bashlogger ; then
|
||||
echo
|
||||
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."
|
||||
ebeep
|
||||
epause
|
||||
epatch "${FILESDIR}"/${PN}-3.1-bash-logger.patch
|
||||
fi
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-3.0-configs.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf=
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to use with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf="${myconf} --disable-nls"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
# Default path is to use /usr/local/..... regardless. This little
|
||||
# magic will set the default path to /usr/..... and keep us from
|
||||
# worrying about the rest of the path getting out of sync with the
|
||||
# ebuild code.
|
||||
eval $(echo export $(ac_default_prefix=/usr; eval echo $(grep DEBUGGER_START_FILE= configure)))
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
--without-gnu-malloc \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,181 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.0_p38.ebuild,v 1.3 2011/05/16 10:36:26 nyhm Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
READLINE_VER=6.0
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.5
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
cd "${S}"
|
||||
|
||||
# Include official patches
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.0-configure.patch #304901
|
||||
epatch "${FILESDIR}"/${PN}-4.x-deferred-heredocs.patch
|
||||
|
||||
if ! use vanilla ; then
|
||||
sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c # needs fpurge() decl
|
||||
epatch "${FILESDIR}"/${PN}-3.2-parallel-build.patch #189671
|
||||
epatch "${FILESDIR}"/${PN}-4.0-ldflags-for-build.patch #211947
|
||||
epatch "${FILESDIR}"/${PN}-4.0-negative-return.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.0-parallel-build.patch #267613
|
||||
# Log bash commands to syslog #91327
|
||||
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."
|
||||
ebeep
|
||||
epause
|
||||
epatch "${FILESDIR}"/${PN}-3.1-bash-logger.patch
|
||||
fi
|
||||
sed -i '/\.o: .*shell\.h/s:$: pathnames.h:' Makefile.in #267613
|
||||
fi
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,190 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.1_p10.ebuild,v 1.3 2012/05/23 01:13:17 zmedico Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
READLINE_VER=6.1
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
|
||||
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)
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.1-fbsd-eaccess.patch #303411
|
||||
|
||||
if ! use vanilla ; then
|
||||
sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c # needs fpurge() decl
|
||||
epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
|
||||
fi
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
myconf="${myconf} --without-lispdir" #335896
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,190 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.1_p11.ebuild,v 1.3 2012/05/23 01:13:17 zmedico Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
READLINE_VER=6.1
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
|
||||
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)
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.1-fbsd-eaccess.patch #303411
|
||||
|
||||
if ! use vanilla ; then
|
||||
sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c # needs fpurge() decl
|
||||
epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
|
||||
fi
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
myconf="${myconf} --without-lispdir" #335896
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,190 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.1_p7.ebuild,v 1.10 2012/05/23 01:13:17 zmedico Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
READLINE_VER=6.1
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
|
||||
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)
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.1-fbsd-eaccess.patch #303411
|
||||
|
||||
if ! use vanilla ; then
|
||||
sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c # needs fpurge() decl
|
||||
epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
|
||||
fi
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
myconf="${myconf} --without-lispdir" #335896
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,190 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.1_p9.ebuild,v 1.9 2012/05/23 01:13:17 zmedico Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
READLINE_VER=6.1
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
|
||||
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)
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.1-fbsd-eaccess.patch #303411
|
||||
|
||||
if ! use vanilla ; then
|
||||
sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c # needs fpurge() decl
|
||||
epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
|
||||
fi
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
myconf="${myconf} --without-lispdir" #335896
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,186 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p10.ebuild,v 1.6 2012/05/23 01:13:17 zmedico 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
|
||||
READLINE_VER=6.1
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
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)
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.2-execute-job-control.patch #383237
|
||||
epatch "${FILESDIR}"/${PN}-4.2-parallel-build.patch
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,196 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p20.ebuild,v 1.13 2012/05/23 01:13:17 zmedico 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 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
>=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
|
||||
}
|
||||
|
||||
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) \
|
||||
${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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,201 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p24-r1.ebuild,v 1.3 2012/05/23 01:13:17 zmedico 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-extglob-multibyte.patch #412867
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,200 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p24.ebuild,v 1.7 2012/05/23 01:13:17 zmedico 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 ~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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,200 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p28.ebuild,v 1.2 2012/05/23 01:13:17 zmedico 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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,200 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p29.ebuild,v 1.1 2012/05/30 16:06:34 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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,200 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p36.ebuild,v 1.1 2012/07/11 13:18:32 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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,184 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.2_p8-r1.ebuild,v 1.4 2012/05/23 01:13:17 zmedico 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
|
||||
READLINE_VER=6.1
|
||||
READLINE_PLEVEL=0 # both readline patches are also released as bash patches
|
||||
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)
|
||||
$(patches ${READLINE_PLEVEL} readline ${READLINE_VER})"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
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)
|
||||
epatch "${FILESDIR}"/${PN}-4.2-print-heredoc.patch #363371
|
||||
cd lib/readline
|
||||
[[ ${READLINE_PLEVEL} -gt 0 ]] && epatch $(patches -s ${READLINE_PLEVEL} readline ${READLINE_VER})
|
||||
cd ../..
|
||||
}
|
||||
|
||||
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)
|
||||
|
||||
# Always use the buildin readline, else if we update readline
|
||||
# bash gets borked as readline is usually not binary compadible
|
||||
# between minor versions.
|
||||
#myconf="${myconf} $(use_with !readline installed-readline)"
|
||||
myconf="${myconf} --without-installed-readline"
|
||||
|
||||
# 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"
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses
|
||||
myconf="${myconf} --with-curses"
|
||||
|
||||
use plugins && append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
econf \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
${myconf} || die
|
||||
emake || die "make failed"
|
||||
|
||||
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
|
||||
|
||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
sed -i -e '/#@/d' "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g') || die
|
||||
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
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/kding/kding-0.6.ebuild,v 1.5 2011/01/30 12:42:03 tampakrap Exp $
|
||||
|
||||
EAPI=3
|
||||
KDE_LINGUAS="de"
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="KDing is a KDE port of Ding, a dictionary lookup program."
|
||||
HOMEPAGE="http://www.rexi.org/software/kding/"
|
||||
SRC_URI="http://www.rexi.org/downloads/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="debug +handbook"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-dtd.patch )
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/mecab/mecab-0.994.ebuild,v 1.1 2012/11/16 07:31:03 patrick Exp $
|
||||
|
||||
EAPI="4"
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="Yet Another Part-of-Speech and Morphological Analyzer"
|
||||
HOMEPAGE="http://mecab.sourceforge.net/"
|
||||
SRC_URI="http://mecab.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( BSD LGPL-2.1 GPL-2 )"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
SLOT="0"
|
||||
IUSE="static-libs unicode"
|
||||
|
||||
DEPEND="dev-lang/perl
|
||||
virtual/libiconv"
|
||||
RDEPEND=""
|
||||
PDEPEND="|| (
|
||||
>=app-dicts/mecab-ipadic-2.7.0.20070610[unicode=]
|
||||
app-dicts/mecab-naist-jdic[unicode=]
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "/CFLAGS/s/-O3/${CFLAGS}/" \
|
||||
-e "/CXXFLAGS/s/-O3/${CXXFLAGS}/" \
|
||||
configure.in || die
|
||||
epatch "${FILESDIR}/${PN}-0.98-iconv.patch"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
use unicode && myconf="${myconf} --with-charset=utf8"
|
||||
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name '*.la' -delete
|
||||
fi
|
||||
|
||||
dodoc AUTHORS README
|
||||
dohtml -r doc/*
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
diff -urN tesseract-2.03/viewer/scrollview.cpp tesseract-2.03-NEW/viewer/scrollview.cpp
|
||||
--- tesseract-2.03/viewer/scrollview.cpp 2008-06-27 23:21:52.000000000 +0200
|
||||
+++ tesseract-2.03-NEW/viewer/scrollview.cpp 2008-06-27 23:23:31.000000000 +0200
|
||||
@@ -34,7 +34,10 @@
|
||||
#include <utility>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
-#include <string>
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <limits.h>
|
||||
+
|
||||
|
||||
#include "svutil.h"
|
||||
|
||||
diff -urN tesseract-2.03/viewer/svmnode.cpp tesseract-2.03-NEW/viewer/svmnode.cpp
|
||||
--- tesseract-2.03/viewer/svmnode.cpp 2008-06-27 23:22:08.000000000 +0200
|
||||
+++ tesseract-2.03-NEW/viewer/svmnode.cpp 2008-06-27 23:21:28.000000000 +0200
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "svmnode.h"
|
||||
|
||||
#include <iostream>
|
||||
+#include <string.h>
|
||||
|
||||
#include "scrollview.h"
|
||||
|
||||
diff -urN tesseract-2.03/viewer/svutil.cpp tesseract-2.03-NEW/viewer/svutil.cpp
|
||||
--- tesseract-2.03/viewer/svutil.cpp 2008-06-27 23:22:47.000000000 +0200
|
||||
+++ tesseract-2.03-NEW/viewer/svutil.cpp 2008-06-27 23:21:28.000000000 +0200
|
||||
@@ -37,7 +37,8 @@
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
-#include <string>
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
const int kBufferSize = 65536;
|
||||
const int kMaxMsgSize = 4096;
|
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-3.02.ebuild,v 1.1 2012/11/16 18:09:29 tomka Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_PN="${PN}-ocr"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
URI_PREFIX="http://${MY_PN}.googlecode.com/files"
|
||||
|
||||
inherit eutils autotools versionator
|
||||
|
||||
MY_MINOR=$(get_after_major_version)
|
||||
S="${WORKDIR}/${P}.${MY_MINOR}"
|
||||
|
||||
DESCRIPTION="An OCR Engine that was developed at HP and now at Google"
|
||||
HOMEPAGE="http://code.google.com/p/tesseract-ocr/"
|
||||
SRC_URI="${URI_PREFIX}/${P}.${MY_MINOR}.tar.gz
|
||||
${URI_PREFIX}/${MY_P}.eng.tar.gz
|
||||
doc? ( ${URI_PREFIX}/${MY_P}.${MY_MINOR}-doc-html.tar.gz )
|
||||
linguas_ar? ( ${URI_PREFIX}/${MY_P}.ara.tar.gz )
|
||||
linguas_bg? ( ${URI_PREFIX}/bul.traineddata.gz )
|
||||
linguas_ca? ( ${URI_PREFIX}/cat.traineddata.gz )
|
||||
linguas_chr? ( ${URI_PREFIX}/chr.traineddata.gz )
|
||||
linguas_cs? ( ${URI_PREFIX}/ces.traineddata.gz )
|
||||
linguas_de? ( ${URI_PREFIX}/deu.traineddata.gz
|
||||
${URI_PREFIX}/deu-frak.traineddata.gz )
|
||||
linguas_da? ( ${URI_PREFIX}/dan.traineddata.gz
|
||||
${URI_PREFIX}/dan-frak.traineddata.gz )
|
||||
linguas_el? ( ${URI_PREFIX}/ell.traineddata.gz )
|
||||
linguas_es? ( ${URI_PREFIX}/spa.traineddata.gz )
|
||||
linguas_fi? ( ${URI_PREFIX}/fin.traineddata.gz )
|
||||
linguas_fr? ( ${URI_PREFIX}/fra.traineddata.gz )
|
||||
linguas_he? ( ${URI_PREFIX}/${MY_P}.heb.tar.gz
|
||||
${URI_PREFIX}/${MY_PN}-3.01.heb-com.tar.gz )
|
||||
linguas_hi? ( ${URI_PREFIX}/${MY_P}.hin.tar.gz )
|
||||
linguas_hu? ( ${URI_PREFIX}/hun.traineddata.gz )
|
||||
linguas_id? ( ${URI_PREFIX}/ind.traineddata.gz )
|
||||
linguas_it? ( ${URI_PREFIX}/ita.traineddata.gz )
|
||||
linguas_jp? ( ${URI_PREFIX}/jpn.traineddata.gz )
|
||||
linguas_ko? ( ${URI_PREFIX}/kor.traineddata.gz )
|
||||
linguas_lt? ( ${URI_PREFIX}/lit.traineddata.gz )
|
||||
linguas_lv? ( ${URI_PREFIX}/lav.traineddata.gz )
|
||||
linguas_nl? ( ${URI_PREFIX}/nld.traineddata.gz )
|
||||
linguas_no? ( ${URI_PREFIX}/nor.traineddata.gz )
|
||||
linguas_pl? ( ${URI_PREFIX}/pol.traineddata.gz )
|
||||
linguas_pt? ( ${URI_PREFIX}/por.traineddata.gz )
|
||||
linguas_ro? ( ${URI_PREFIX}/ron.traineddata.gz )
|
||||
linguas_ru? ( ${URI_PREFIX}/rus.traineddata.gz )
|
||||
linguas_sk? ( ${URI_PREFIX}/slk.traineddata.gz
|
||||
${URI_PREFIX}/${MY_PN}-3.01.slk-frak.tar.gz )
|
||||
linguas_sl? ( ${URI_PREFIX}/slv.traineddata.gz )
|
||||
linguas_sr? ( ${URI_PREFIX}/srp.traineddata.gz )
|
||||
linguas_sv? ( ${URI_PREFIX}/swe.traineddata.gz
|
||||
${URI_PREFIX}/swe-frak.traineddata.gz )
|
||||
linguas_th? ( ${URI_PREFIX}/${MY_P}.tha.tar.gz )
|
||||
linguas_tl? ( ${URI_PREFIX}/tgl.traineddata.gz )
|
||||
linguas_tr? ( ${URI_PREFIX}/tur.traineddata.gz )
|
||||
linguas_uk? ( ${URI_PREFIX}/ukr.traineddata.gz )
|
||||
linguas_vi? ( ${URI_PREFIX}/vie.traineddata.gz )
|
||||
linguas_zh_CN? ( ${URI_PREFIX}/chi_sim.traineddata.gz )
|
||||
linguas_zh_TW? ( ${URI_PREFIX}/chi_tra.traineddata.gz )
|
||||
osd? ( ${URI_PREFIX}/${MY_PN}-3.01.osd.tar.gz )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="doc examples jpeg png tiff -webp +scrollview linguas_ar linguas_bg linguas_ca linguas_chr linguas_cs linguas_de linguas_da linguas_el linguas_es linguas_fi linguas_fr linguas_he linguas_hi linguas_hu linguas_id linguas_it linguas_jp linguas_ko linguas_lt linguas_lv linguas_nl linguas_no linguas_pl linguas_pt linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_th linguas_tl linguas_tr linguas_uk linguas_vi linguas_zh_CN linguas_zh_TW osd"
|
||||
|
||||
DEPEND="media-libs/leptonica[zlib,tiff?,jpeg?,png?,webp?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/tesseract-2.04-gcc47.patch"
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable scrollview graphics) \
|
||||
--disable-dependency-tracking
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README ReleaseNotes
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins eurotext.tif phototest.tif
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml doc/html/*
|
||||
fi
|
||||
|
||||
# install language files
|
||||
insinto /usr/share/tessdata
|
||||
find "${WORKDIR}" -maxdepth 1 -type f -name "*.traineddata" -exec doins '{}' +
|
||||
doins "${WORKDIR}"/"${MY_PN}"/tessdata/*
|
||||
}
|
@ -1,8 +1,6 @@
|
||||
DIST CEGUI-0.6.2-DOCS.tar.gz 18396638 SHA256 f1ea46bd583c486a6c588118573ebde55b06e90b190083e95525820e950ce2c8 SHA512 56ded923f21f18d837d71425e06fe8675a2efa979edde461a9e4e558c213cbb79ff8eeb576211da6ade56526ccdd9644a7a45b3619058615388e3882f96b9fb4 WHIRLPOOL f67c9dba4558c43ec9d14c160f228e974de4364bfe36ebfa9f3fe6bfc290fd5c4f024e954525845cd83645a06d53e6d63776137cbe58c459bcdd0e350d12e9c7
|
||||
DIST CEGUI-0.6.2b.tar.gz 2628081 SHA256 eb77741cd9fcc927a876e8116b98691212e973d2264e2071406423f6ca3e305f SHA512 52ed7e7a97024138af957815a396dda74b650e7c53542d2d48c5eb95335bec270abca3685c49b05078f4338079334df6bfbcec75e9b7eb21ee40bdbff5f57b20 WHIRLPOOL 3fde683a82fb0be33565adb28fbcb4b7001be99f1b3bdb2d3af9abecc5dc7681d633f141cc19f9eb1dc264d0fb0b2084ea604202a22a3e2cc415bdb6b9686161
|
||||
DIST CEGUI-0.7.5.tar.gz 9058788 SHA256 21049e31a03fcd4807729c7271756e6d2de834247ece603bb5b5087fae624cb2 SHA512 67bb1ae75a66f4b2ed7910c6a81fde0f4492268d3c9e33cf54c353e0193c07d0971762f13d0d56af5db2912a0c769243d2696b07e77bb7f29ee4bb9a678b8dfc WHIRLPOOL 5aafce59f7120a8fa6c37a82bdc9f64949c50b1b0772486ff8861a973bd43cf3e31a689b284232eba75f1cb5127c16293f7ad4a0ca5c93ff3faa36feb5a9254d
|
||||
DIST CEGUI-0.7.6.tar.gz 9146821 SHA256 b1b969332f8325ad4b6af7d4607417162d6c06100f4c6569248aed6afcafa3c6 SHA512 fc2660f3d9955463da5d8b22321d99f24a88f2a0dad76dba80f18b70d81bc9e66b3dd8c83cf79408e28e1a83a0f66f746264c4b1169837dd2c67df427c2c5537 WHIRLPOOL 04b4f8d51d91d60f015f9d3da0845353b5d09b93fcda086a93daebc932ce4123737f804cc2fb37fdb92f92ac6c3252eb4225c47fe93a71cc3198ea369f4a4d6e
|
||||
DIST CEGUI-0.7.7.tar.gz 9176105 SHA256 551e6fe4fffc7586b0ef0434b83ddc2b3889fc8c7eb22d4cca92b1c7ce25059a SHA512 a3adaf1fc8a9adbe7e2eb5939bacbbb6c9b9c5c0299c247e3f562faae1fa5d697634536d2a977925346b49d1060326359fd4739462074b780b6f6649e6f7a4f0 WHIRLPOOL cc394977876137cf0b5b8f75f0ae66eb5a2fcb30e2088b41392f53fdd15a3a4d989ab4784924667f18a12fe569ef3472027e0334e7190cb60fe2d2f596603cf7
|
||||
DIST CEGUI-DOCS-0.7.5.tar.gz 11001948 SHA256 2ee19e5bfa4c3a9c3ebc1f399df7276f5688cc2decfc8e175c9db12e464c5c4f SHA512 119f9601ba3efc9bcb8d639ebb51e327798209ebfb9edf6b1c79e376e8922ef7e3ac3d2d2071f0064ff85a9e99b9c86bb1e0c4c23e90b64e97acc1fe253f19f7 WHIRLPOOL 986bf2723465cae2a9875a5f5face0a4782802d5a4607f83546dd815ef3d09b84afa3420f12e9af3b7ebb475af730a8926bf6bfb99da3df8c6bd541e3ee42f3a
|
||||
DIST CEGUI-DOCS-0.7.6.tar.gz 11809064 SHA256 891285f68284b75211874c27bdea55dbc351233dead261ec0c6848eabfe16894 SHA512 119b4e4b829d7f88df746f81ea5b1bfd244a7025e89cf64864045db3f8d326176e08bbbe50f093cb5e37d5a99117f994b0fc554c3f00de1cadc389044af2fbb0 WHIRLPOOL cfb46f62c20778e9d5dcaf5156140c44a130413984c3b64146693115ebcc8975da93c74cbaeb81bc8f8280f3b40df130ea6221a430852ca2dff6a1312c1c1a7b
|
||||
DIST CEGUI-DOCS-0.7.7.tar.gz 14303467 SHA256 21b6fb8841dfb40650d68b3149afe24d7bde7c1986c0e3d86f9c34baa1b00c6c SHA512 cf0745ab9fdc4ca939aabeacf3c15e677ce26a3f4ecf136debc661842adc24955b30460a69238ab65ae65e4367e7da3515125befed2f017aa1b4981f32ccd08c WHIRLPOOL 2faa44214efe454211267f6417a5a0817026e3e46315acabe6b0ead1354443f0396c2bff8ecaa82210d922d59d2d5a6b60b9bab3c6cc2c7184ce6a5f49cd81bc
|
||||
|
@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/cegui/cegui-0.7.5-r1.ebuild,v 1.7 2012/05/03 06:35:30 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils
|
||||
|
||||
MY_P=CEGUI-${PV}
|
||||
MY_D=CEGUI-DOCS-${PV}
|
||||
DESCRIPTION="Crazy Eddie's GUI System"
|
||||
HOMEPAGE="http://www.cegui.org.uk/"
|
||||
SRC_URI="mirror://sourceforge/crayzedsgui/${MY_P}.tar.gz
|
||||
doc? ( mirror://sourceforge/crayzedsgui/${MY_D}.tar.gz )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 -ppc x86"
|
||||
IUSE="bidi debug devil doc examples expat gtk irrlicht lua opengl pcre static-libs tinyxml truetype xerces-c xml zip"
|
||||
REQUIRED_USE="|| ( xml tinyxml )" # bug 362223
|
||||
|
||||
RDEPEND="bidi? ( dev-libs/fribidi )
|
||||
devil? ( media-libs/devil )
|
||||
expat? ( dev-libs/expat )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
irrlicht? ( dev-games/irrlicht )
|
||||
lua? (
|
||||
dev-lang/lua
|
||||
dev-lua/toluapp
|
||||
)
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
media-libs/freeglut
|
||||
media-libs/glew
|
||||
)
|
||||
pcre? ( dev-libs/libpcre )
|
||||
tinyxml? ( dev-libs/tinyxml )
|
||||
xerces-c? ( dev-libs/xerces-c )
|
||||
xml? ( dev-libs/libxml2 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-tinyxml.patch \
|
||||
"${FILESDIR}"/${P}-gcc46.patch
|
||||
|
||||
# build with newer zlib (bug #389863)
|
||||
sed -i -e '74i#define OF(x) x' cegui/src/minizip/unzip.h || die
|
||||
sed -i -e '125i#define OF(x) x' cegui/src/minizip/ioapi.h || die
|
||||
if use examples ; then
|
||||
cp -r Samples Samples.clean
|
||||
rm -f $(find Samples.clean -name 'Makefile*')
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# ogre-1.6.5 needs older cegui (bug #387103)
|
||||
econf \
|
||||
--disable-ogre-renderer \
|
||||
$(use_enable bidi bidirectional-text) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable devil) \
|
||||
$(use_enable examples samples) \
|
||||
$(use_enable expat) \
|
||||
$(use_enable truetype freetype) \
|
||||
$(use_enable irrlicht irrlicht-renderer) \
|
||||
$(use_enable lua lua-module) \
|
||||
$(use_enable lua toluacegui) \
|
||||
--enable-external-toluapp \
|
||||
$(use_enable opengl opengl-renderer) \
|
||||
--enable-external-glew \
|
||||
$(use_enable pcre) \
|
||||
$(use_enable tinyxml) \
|
||||
--enable-external-tinyxml \
|
||||
$(use_enable xerces-c) \
|
||||
$(use_enable xml libxml) \
|
||||
$(use_enable zip minizip-resource-provider) \
|
||||
--enable-null-renderer \
|
||||
--enable-tga \
|
||||
--disable-corona \
|
||||
--disable-dependency-tracking \
|
||||
--disable-samples \
|
||||
--disable-silly \
|
||||
$(use_with gtk gtk2) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
|
||||
# remove .la files
|
||||
use static-libs || rm -f "${D}"/usr/*/*.la
|
||||
|
||||
if use doc ; then
|
||||
emake html || die
|
||||
dohtml -r doc/doxygen/html/* || die
|
||||
fi
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/Samples
|
||||
doins -r Samples.clean/* || die
|
||||
fi
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
--- cegui/include/CEGUIString.h.old 2011-04-27 14:33:25.862856070 +0200
|
||||
+++ cegui/include/CEGUIString.h 2011-04-27 14:33:49.780351908 +0200
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include <stdexcept>
|
||||
+#include <cstddef>
|
||||
|
||||
// Start of CEGUI namespace section
|
||||
namespace CEGUI
|
@ -1,17 +0,0 @@
|
||||
diff -Naur CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp
|
||||
--- CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp 2010-11-19 11:19:09.000000000 +0000
|
||||
+++ CEGUI-0.7.5/cegui/src/XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp 2010-11-19 11:20:09.000000000 +0000
|
||||
@@ -131,10 +131,10 @@
|
||||
{
|
||||
switch(childNode->Type())
|
||||
{
|
||||
- case CEGUI_TINYXML_NAMESPACE::TiXmlNode::ELEMENT:
|
||||
+ case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TINYXML_ELEMENT:
|
||||
processElement(childNode->ToElement());
|
||||
break;
|
||||
- case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TEXT:
|
||||
+ case CEGUI_TINYXML_NAMESPACE::TiXmlNode::TINYXML_TEXT:
|
||||
if (childNode->ToText()->Value() != '\0')
|
||||
d_handler->text((utf8*)childNode->ToText()->Value());
|
||||
break;
|
||||
|
@ -0,0 +1,95 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.7-r3.ebuild,v 1.1 2012/11/17 03:30:04 ottxor Exp $
|
||||
|
||||
EAPI=4
|
||||
JAVA_PKG_IUSE="doc"
|
||||
inherit java-pkg-2 java-ant-2 eutils
|
||||
|
||||
DESCRIPTION="Java based SVG toolkit"
|
||||
HOMEPAGE="http://xmlgraphics.apache.org/${PN}/"
|
||||
SRC_URI="mirror://apache/xmlgraphics/${PN}/${PN}-src-${PV}.zip"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1.7"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc python tcl"
|
||||
|
||||
CDEPEND="dev-java/xalan:0
|
||||
dev-java/rhino:1.6
|
||||
dev-java/xml-commons-external:1.3
|
||||
python? ( dev-java/jython:0 )
|
||||
tcl? ( dev-java/jacl:0 )
|
||||
dev-java/ant-core"
|
||||
DEPEND=">=virtual/jdk-1.4
|
||||
app-arch/unzip
|
||||
${CDEPEND}"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${CDEPEND}"
|
||||
|
||||
java_prepare() {
|
||||
java-ant_ignore-system-classes
|
||||
java-ant_rewrite-classpath contrib/rasterizertask/build.xml
|
||||
for file in build.xml contrib/rasterizertask/build.xml; do
|
||||
# bug #318323
|
||||
java-ant_xml-rewrite -f ${file} -c -e javadoc -a failonerror -v yes -a maxmemory -v 512m
|
||||
done
|
||||
|
||||
cd lib
|
||||
rm -v *.jar build/*.jar || die
|
||||
|
||||
java-pkg_jar-from xml-commons-external-1.3
|
||||
java-pkg_jar-from xalan
|
||||
java-pkg_jar-from rhino-1.6
|
||||
|
||||
use python && java-pkg_jar-from jython
|
||||
use tcl && java-pkg_jar-from jacl
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Fails to build on amd64 without this
|
||||
if use amd64 ; then
|
||||
export ANT_OPTS="-Xmx1g"
|
||||
else
|
||||
export ANT_OPTS="-Xmx256m"
|
||||
fi
|
||||
|
||||
eant jars all-jar $(use_doc)
|
||||
cd contrib/rasterizertask || die
|
||||
eant -Dgentoo.classpath="$(java-pkg_getjar ant-core ant.jar):../../classes" jar $(use_doc)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
#All-jar doesn't include ALL
|
||||
java-pkg_dojar ${P}/${PN}-*.jar
|
||||
|
||||
cd ${P}/lib
|
||||
|
||||
# needed because batik expects this layout:
|
||||
# batik.jar lib/*.jar
|
||||
# there are hardcoded classpaths in the manifest :(
|
||||
dodir /usr/share/${PN}-${SLOT}/lib/lib/
|
||||
for jar in batik*.jar
|
||||
do
|
||||
java-pkg_dojar ${jar}
|
||||
dosym ../${jar} /usr/share/${PN}-${SLOT}/lib/lib/${jar}
|
||||
done
|
||||
|
||||
cd "${S}"
|
||||
dodoc README CHANGES
|
||||
use doc && java-pkg_dojavadoc ${P}/docs/javadoc
|
||||
|
||||
# pwd fixes bug #116976
|
||||
java-pkg_dolauncher batik-${SLOT} --pwd "${EPREFIX}/usr/share/${PN}-${SLOT}/" \
|
||||
--main org.apache.batik.apps.svgbrowser.Main
|
||||
|
||||
# To find these lsjar batik-${SLOT} | grep Main.class
|
||||
for launcher in ttf2svg slideshow svgpp rasterizer; do
|
||||
java-pkg_dolauncher batik-${launcher}-${SLOT} \
|
||||
--main org.apache.batik.apps.${launcher}.Main
|
||||
done
|
||||
|
||||
# Install and register the ant task.
|
||||
java-pkg_dojar contrib/rasterizertask/build/lib/RasterizerTask.jar
|
||||
java-pkg_register-ant-task
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.2.0.ebuild,v 1.1 2010/06/08 08:25:34 dev-zero Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="ICE middleware C++ bindings"
|
||||
HOMEPAGE="http://www.zeroc.com/index.html"
|
||||
SRC_URI="http://www.zeroc.com/download/Ice/3.2/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ncurses test debug"
|
||||
|
||||
RDEPEND=">=dev-libs/expat-2.0
|
||||
>=app-arch/bzip2-1.0.3
|
||||
>=dev-libs/openssl-0.9.8
|
||||
=sys-libs/db-4.5.20*"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
ncurses? ( sys-libs/ncurses sys-libs/readline )
|
||||
test? ( >=dev-lang/python-2.4 )"
|
||||
|
||||
pkg_setup() {
|
||||
if built_with_use sys-libs/db nocxx; then
|
||||
eerror "sys-libs/db must be compiled with C++ support!"
|
||||
eerror "Remove the 'nocxx' use flag and try again."
|
||||
die "Fix use flags and re-emerge"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}"/${P}-Makefile.patch
|
||||
|
||||
if use amd64; then
|
||||
sed -i -e "s:^#LP64:LP64:g" ${S}/config/Make.rules \
|
||||
|| die "Failed to set lib64 directory"
|
||||
fi
|
||||
|
||||
if ! use ncurses; then
|
||||
sed -i -e "s#^USE_READLINE.*#USE_READLINE ?= yes#g" \
|
||||
${S}/config/Make.rules || die "Failed to set no readline"
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \
|
||||
${S}/config/Make.rules || die "Failed to remove debug"
|
||||
fi
|
||||
|
||||
sed -i -e \
|
||||
"s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \
|
||||
${S}/config/Make.rules.Linux || die "CXXFLAGS patching failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "Install Failed!"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
make test || die "Test failed"
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.2.1.ebuild,v 1.1 2010/06/08 08:25:34 dev-zero Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="ICE middleware C++ bindings"
|
||||
HOMEPAGE="http://www.zeroc.com/index.html"
|
||||
SRC_URI="http://www.zeroc.com/download/Ice/3.2/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="ncurses test debug"
|
||||
|
||||
RDEPEND=">=dev-libs/expat-2.0
|
||||
>=app-arch/bzip2-1.0.3
|
||||
>=dev-libs/openssl-0.9.8
|
||||
=sys-libs/db-4.5.20*"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
ncurses? ( sys-libs/ncurses sys-libs/readline )
|
||||
test? ( >=dev-lang/python-2.4 )"
|
||||
|
||||
pkg_setup() {
|
||||
if built_with_use sys-libs/db nocxx; then
|
||||
eerror "sys-libs/db must be compiled with C++ support!"
|
||||
eerror "Remove the 'nocxx' use flag and try again."
|
||||
die "Fix use flags and re-emerge"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}"/${P}-Makefile.patch
|
||||
epatch "${FILESDIR}"/${P}-gcc43.patch
|
||||
|
||||
MAKE_RULES="${S}/config/Make.rules"
|
||||
|
||||
if use amd64; then
|
||||
sed -i -e "s:^#LP64:LP64:g" "${MAKE_RULES}" \
|
||||
|| die "Failed to set lib64 directory"
|
||||
fi
|
||||
|
||||
if ! use ncurses; then
|
||||
sed -i -e "s#^USE_READLINE.*#USE_READLINE ?= yes#g" \
|
||||
"${MAKE_RULES}" || die "Failed to set no readline"
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \
|
||||
"${MAKE_RULES}" || die "Failed to remove debug"
|
||||
fi
|
||||
|
||||
sed -i -e \
|
||||
"s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \
|
||||
"${MAKE_RULES}.Linux" || die "CXXFLAGS patching failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Install Failed!"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test || die "Test failed"
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.3.1-r1.ebuild,v 1.3 2011/11/14 11:22:34 flameeyes Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="ICE middleware C++ bindings"
|
||||
HOMEPAGE="http://www.zeroc.com/index.html"
|
||||
SRC_URI="http://www.zeroc.com/download/Ice/3.3/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ncurses test debug"
|
||||
|
||||
RDEPEND=">=dev-libs/expat-2.0.1
|
||||
>=app-arch/bzip2-1.0.4
|
||||
>=dev-libs/openssl-0.9.8g
|
||||
=sys-libs/db-4.6.21*[cxx]
|
||||
=dev-cpp/libmcpp-2.7.2"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
ncurses? ( sys-libs/ncurses sys-libs/readline )
|
||||
test? ( >=dev-lang/python-2.4 )"
|
||||
|
||||
S=${WORKDIR}/${P}/cpp
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-Makefile.patch
|
||||
epatch "${FILESDIR}"/${P}-openssl.patch
|
||||
|
||||
MAKE_RULES="${S}/config/Make.rules"
|
||||
|
||||
#if use amd64; then
|
||||
# sed -i -e "s:^#LP64:LP64:g" "${MAKE_RULES}" \
|
||||
# || die "Failed to set lib64 directory"
|
||||
#fi
|
||||
|
||||
if ! use ncurses; then
|
||||
sed -i -e "s#^USE_READLINE.*#USE_READLINE ?= yes#g" \
|
||||
"${MAKE_RULES}" || die "Failed to set no readline"
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \
|
||||
"${MAKE_RULES}" || die "Failed to remove debug"
|
||||
fi
|
||||
|
||||
sed -i -e \
|
||||
"s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \
|
||||
"${MAKE_RULES}.Linux" || die "CXXFLAGS patching failed!"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Install failed"
|
||||
cp -dpR "${S}"/../slice "${D}"/usr/share/Ice
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test || die "Test failed"
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.3.1.ebuild,v 1.3 2011/11/14 11:22:34 flameeyes Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="ICE middleware C++ bindings"
|
||||
HOMEPAGE="http://www.zeroc.com/index.html"
|
||||
SRC_URI="http://www.zeroc.com/download/Ice/3.3/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
IUSE="ncurses test debug"
|
||||
|
||||
RDEPEND=">=dev-libs/expat-2.0.1
|
||||
>=app-arch/bzip2-1.0.4
|
||||
>=dev-libs/openssl-0.9.8g
|
||||
=sys-libs/db-4.6.21*[cxx]
|
||||
=dev-cpp/libmcpp-2.7.2"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
ncurses? ( sys-libs/ncurses sys-libs/readline )
|
||||
test? ( >=dev-lang/python-2.4 )"
|
||||
|
||||
S=${WORKDIR}/${P}/cpp
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
epatch "${FILESDIR}"/${P}-Makefile.patch
|
||||
|
||||
MAKE_RULES="${S}/config/Make.rules"
|
||||
|
||||
#if use amd64; then
|
||||
# sed -i -e "s:^#LP64:LP64:g" "${MAKE_RULES}" \
|
||||
# || die "Failed to set lib64 directory"
|
||||
#fi
|
||||
|
||||
if ! use ncurses; then
|
||||
sed -i -e "s#^USE_READLINE.*#USE_READLINE ?= yes#g" \
|
||||
"${MAKE_RULES}" || die "Failed to set no readline"
|
||||
fi
|
||||
|
||||
if ! use debug; then
|
||||
sed -i -e "s:#OPTIMIZE:OPTIMIZE:" \
|
||||
"${MAKE_RULES}" || die "Failed to remove debug"
|
||||
fi
|
||||
|
||||
sed -i -e \
|
||||
"s:.*CXXFLAGS[^\+]*\=\s:CXXFLAGS = ${CXXFLAGS} :g" \
|
||||
"${MAKE_RULES}.Linux" || die "CXXFLAGS patching failed!"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "Install failed"
|
||||
cp -dpR "${S}"/../slice "${D}"/usr/share/Ice
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test || die "Test failed"
|
||||
}
|
@ -1,264 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/Ice/Ice-3.4.1.ebuild,v 1.5 2011/11/14 11:22:34 flameeyes Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
PYTHON_DEPEND="python? 2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
RUBY_OPTIONAL="yes"
|
||||
USE_RUBY="ruby18"
|
||||
|
||||
inherit toolchain-funcs versionator python mono ruby-ng
|
||||
|
||||
DESCRIPTION="ICE middleware C++ library and generator tools"
|
||||
HOMEPAGE="http://www.zeroc.com/"
|
||||
SRC_URI="http://www.zeroc.com/download/Ice/$(get_version_component_range 1-2)/${P}.tar.gz
|
||||
doc? ( http://www.zeroc.com/download/Ice/$(get_version_component_range 1-2)/${P}.pdf.gz )"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
IUSE="doc examples +ncurses mono python ruby test debug"
|
||||
|
||||
RDEPEND=">=dev-libs/expat-2.0.1
|
||||
>=app-arch/bzip2-1.0.5
|
||||
>=dev-libs/openssl-0.9.8o
|
||||
>=sys-libs/db-4.8.30:4.8[cxx]
|
||||
~dev-cpp/libmcpp-2.7.2
|
||||
ruby? ( $(ruby_implementation_depend ruby18) )
|
||||
mono? ( dev-lang/mono )
|
||||
!dev-python/IcePy
|
||||
!dev-ruby/IceRuby"
|
||||
DEPEND="${RDEPEND}
|
||||
ncurses? ( sys-libs/ncurses sys-libs/readline )
|
||||
test? ( =dev-lang/python-2* )"
|
||||
|
||||
# Maintainer notes:
|
||||
# - yes, we have to do the trickery with the move for the python functions
|
||||
# since the build and test frameworks deduce various settings from the path
|
||||
# and they can't be tricked by a symlink. And we also need
|
||||
# SUPPORT_PYTHON_ABIS=1 otherwise we can't get pyc/pyo anymore the sane way
|
||||
# with EAPI=2 which is needed since ruby-ng does not support EAPI=3.
|
||||
# TODO: php bindings
|
||||
# TODO: java bindings
|
||||
|
||||
pkg_setup() {
|
||||
if use python || use test; then
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# prevent ruby-ng.eclass from messing with src_unpack
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# if tc-is-cross-compiler ; then
|
||||
# export CROSS_COMPILE=yes
|
||||
# epatch "${FILESDIR}/${P}-cross-compile.patch"
|
||||
# fi
|
||||
|
||||
sed -i \
|
||||
-e 's|\(install_docdir[[:space:]]*\):=|\1?=|' \
|
||||
-e 's|\(install_configdir[[:space:]]*\):=|\1?=|' \
|
||||
cpp/config/Make.rules || die "sed failed"
|
||||
|
||||
sed -i \
|
||||
-e 's|\(install_pythondir[[:space:]]*\):=|\1?=|' \
|
||||
-e 's|\(install_rubydir[[:space:]]*\):=|\1?=|' \
|
||||
-e 's|\(install_libdir[[:space:]]*\):=|\1?=|' \
|
||||
{py,rb}/config/Make.rules || die "sed failed"
|
||||
|
||||
sed -i \
|
||||
-e 's|-O2 ||g' \
|
||||
cpp/config/Make.rules.Linux || die "sed failed"
|
||||
|
||||
sed -i \
|
||||
-e 's|install-common||' \
|
||||
-e 's|demo||' \
|
||||
{cpp,cs,php,py,rb}/Makefile || die "sed failed"
|
||||
|
||||
sed -i \
|
||||
-e 's|-f -root|-f -gacdir $(GAC_DIR) -root|' \
|
||||
cs/config/Make.rules.cs || die "sed failed"
|
||||
|
||||
if ! use test ; then
|
||||
sed -i \
|
||||
-e 's|^\(SUBDIRS.*\)test|\1|' \
|
||||
{cpp,cs,php,py,rb}/Makefile || die "sed failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
MAKE_RULES="prefix=\"${D}/usr\"
|
||||
install_docdir=\"${D}/usr/share/doc/${PF}\"
|
||||
install_configdir=\"${D}/usr/share/Ice-${PV}/config\"
|
||||
embedded_runpath_prefix=\"\"
|
||||
LP64=yes"
|
||||
|
||||
use ncurses && OPTIONS="${MAKE_RULES} USE_READLINE=yes" || MAKE_RULES="${MAKE_RULES} USE_READLINE=no"
|
||||
use debug && OPTIONS"${MAKE_RULES} OPTIMIZE=no" || MAKE_RULES="${MAKE_RULES} OPTIMIZE=yes"
|
||||
|
||||
MAKE_RULES="${MAKE_RULES} DB_FLAGS=-I/usr/include/db4.8"
|
||||
sed -i \
|
||||
-e "s|c++|$(tc-getCXX)|" \
|
||||
-e "s|\(CFLAGS[[:space:]]*=\)|\1 ${CFLAGS}|" \
|
||||
-e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \
|
||||
-e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \
|
||||
-e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-4.8|" \
|
||||
cpp/config/Make.rules{,.Linux} py/config/Make.rules || die "sed failed"
|
||||
|
||||
if use python ; then
|
||||
python_copy_sources py
|
||||
mv py py.orig
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
SITERUBY="$(ruby18 -r rbconfig -e 'print Config::CONFIG["sitedir"]')"
|
||||
MAKE_RULES_RB="install_rubydir=\"${D}/${SITERUBY}\"
|
||||
install_libdir=\"${D}/${SITERUBY}\""
|
||||
|
||||
# make it use ruby18 only
|
||||
sed -i \
|
||||
-e 's|RUBY = ruby|\018|' \
|
||||
rb/config/Make.rules || die "sed failed"
|
||||
fi
|
||||
|
||||
MAKE_RULES_CS="GACINSTALL=yes GAC_ROOT=\"${D}/usr/$(get_libdir)\" GAC_DIR=/usr/$(get_libdir)"
|
||||
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if tc-is-cross-compiler ; then
|
||||
export CXX="${CHOST}-g++"
|
||||
fi
|
||||
|
||||
emake -C cpp ${MAKE_RULES} || die "emake failed"
|
||||
|
||||
if use doc ; then
|
||||
emake -C cpp/doc || die "building docs failed"
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
building() {
|
||||
mv py-${PYTHON_ABI} py
|
||||
emake -C py ${MAKE_RULES} || die "emake py failed (for py-${PYTHON_ABI})"
|
||||
mv py py-${PYTHON_ABI}
|
||||
}
|
||||
python_execute_function building
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake -C rb ${MAKE_RULES} ${MAKE_RULES_RB} || die "emake rb failed"
|
||||
fi
|
||||
|
||||
if use mono ; then
|
||||
emake -C cs ${MAKE_RULES} ${MAKE_RULES_CS} || die "emake cs failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc CHANGES README
|
||||
|
||||
insinto /usr/share/${P}
|
||||
doins -r slice
|
||||
|
||||
emake -C cpp ${MAKE_RULES} install || die "emake install failed"
|
||||
|
||||
docinto cpp
|
||||
dodoc CHANGES README
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples-cpp
|
||||
doins cpp/config/*.cfg
|
||||
doins -r cpp/demo/*
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
dohtml -r cpp/doc/reference/*
|
||||
dodoc "${WORKDIR}/${P}.pdf"
|
||||
fi
|
||||
|
||||
if use python ; then
|
||||
installation() {
|
||||
dodir $(python_get_sitedir)
|
||||
mv py-${PYTHON_ABI} py
|
||||
emake -C py ${MAKE_RULES} install_pythondir="\"${D}/$(python_get_sitedir)\"" install_libdir="\"${D}/$(python_get_sitedir)\"" install || die "emake py install failed (for py-${PYTHON_ABI})"
|
||||
mv py py-${PYTHON_ABI}
|
||||
}
|
||||
python_execute_function installation
|
||||
|
||||
docinto py
|
||||
dodoc py.orig/CHANGES py.orig/README
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples-py
|
||||
doins -r py.orig/demo/*
|
||||
fi
|
||||
|
||||
cd "${D}/$(python_get_sitedir -f)"
|
||||
PYTHON_MODULES=(*.py)
|
||||
PYTHON_MODULES+=(IceBox IceGrid IcePatch2 IceStorm)
|
||||
cd "${S}"
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
dodir "${SITERUBY}"
|
||||
emake -C rb ${MAKE_RULES} ${MAKE_RULES_RB} install || die "emake rb install failed"
|
||||
|
||||
docinto rb
|
||||
dodoc rb/CHANGES rb/README
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples-rb
|
||||
doins -r rb/demo/*
|
||||
fi
|
||||
fi
|
||||
|
||||
if use mono ; then
|
||||
emake -C cs ${MAKE_RULES} ${MAKE_RULES_CS} install || die "emake cs install failed"
|
||||
|
||||
# TODO: anyone has an idea what those are for?
|
||||
rm "${D}"/usr/bin/*.xml
|
||||
|
||||
docinto cs
|
||||
dodoc cs/CHANGES cs/README
|
||||
|
||||
if use examples ; then
|
||||
insinto /usr/share/doc/${PF}/examples-cs
|
||||
doins -r cs/demo/*
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -C cpp ${MAKE_RULES} test || die "emake test failed"
|
||||
|
||||
if use python ; then
|
||||
testing() {
|
||||
mv py-${PYTHON_ABI} py
|
||||
emake -C py ${MAKE_RULES} test || die "emake py test failed (for py-${PYTHON_ABI})"
|
||||
mv py py-${PYTHON_ABI}
|
||||
}
|
||||
python_execute_function testing
|
||||
fi
|
||||
|
||||
if use ruby ; then
|
||||
emake -C rb ${MAKE_RULES} ${MAKE_RULES_RB} test || die "emake rb test failed"
|
||||
fi
|
||||
|
||||
if use mono ; then
|
||||
# ewarn "Tests for C# are currently disabled."
|
||||
emake -C cs ${MAKE_RULES} ${MAKE_RULES_CS} test || die "emake cs test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use python && python_mod_optimize "${PYTHON_MODULES[@]}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use python && python_mod_cleanup "${PYTHON_MODULES[@]}"
|
||||
}
|
@ -1,7 +1,3 @@
|
||||
DIST Ice-3.2.0.tar.gz 2060037 SHA256 4698326e39342d2526c8780db996e47d35a09cdc6080be4329980ec5766ce81d SHA512 abd6b39cae937f2d8f0482809df8eb4751d1803da8f524e5fbd0e5e20413b2395608f60e344c6d0f5c2561b63e84e3b87e22b806473b5c65941a631c78ea909f WHIRLPOOL 59962e6479da33dc190438d1de8423a1c34cff4918f16a12a0ea98f11babace6a13b7b9a85bc384a727c30f15a9a7d14dfc7f4c383f5220fce6cc0c6d6e049c3
|
||||
DIST Ice-3.2.1.tar.gz 2090576 SHA256 bd24cfe0296d81e2b04ea8d97b32a4f13fdd949d0f038f4c7e0922b395075149 SHA512 a97e0ac6119978888fd2d809f0d33b55fb77e361fcc1c18bc222dda70640d054f6147fbf1a1828c3a4d2ae98510a717e52c717c7f054a898664826d2086ea086 WHIRLPOOL cfb518e54c149ca6cad0d3fe4a1967c09764612412fa1bccc7b7536cd0727a66253cd2f3046510c4705cf3ec35415dd3840e6b6981d6151e7a840b75584fb2d0
|
||||
DIST Ice-3.3.1.tar.gz 4455154 SHA256 7b90477303ea2668e8f2cc7bb4506e3a596699e092c4e622746ea42d8286abd0 SHA512 b354f8b35498ac2ab0ab0ca170e32bd6fb373d7be2f0185de4deca063b1e7a76966b849e06b9c2088abcb72efb37b3ea24bc9cb6a5671d1a33ddb5522e4bb295 WHIRLPOOL 03655f28af6ca90251b3c08636f1acca38181143345994327ae2da7da7c188ac9298a96eb449dc31601a2f2c4b1f1796eb18130af3cea989969d0028b34bd6b9
|
||||
DIST Ice-3.4.1.pdf.gz 5916874 SHA256 ce7b41769e22ec718d41a3e9eebbe92bee189e9bcab424c3551d2b765bde2e0f SHA512 34f7e586b779b915a52b3f65c88449abeef0b4839e24eb30d1db5d5bbc8b3fa7c377c3bd085632cff012b42a1483a2104ad8331f37f1a70eba880220a62dfd4f WHIRLPOOL f0dd4c75bb9f8d20ef089c43f922a23d9c6bedcaa8dce5a85b8d3a3f546c3d65b58b9ab359eb5578e1ded83f7ac6c6bd35078ecad43187688681adebd4d2719b
|
||||
DIST Ice-3.4.1.tar.gz 5263510 SHA256 83c76687ac2b1c16a7e51799668531ec794dc8bd81f0daec14765ad3c671b0e6 SHA512 d7be173826397d4d340fa72f03d29abe475f9e3281b5728dbf531960ba0763daf28de4ed4d61ca94ed72a1706a597258ced707b9356aa876a62d299b55039d58 WHIRLPOOL 3b25d2ccdf947f62f25d15c0f1cd65f4e54274da0f0d3ab06ea2f28a2b597a01bf4b4a0d0c37eb96a4be1fc48796f8d5326f52dba33f994c0edfa9b1b5768343
|
||||
DIST Ice-3.4.2-gcc47.patch.bz2 10177 SHA256 b9fe0d8091a83113452ae3a94a04a407ab987d609529631cfe061e5b83ab45f5 SHA512 52b4c4917904f6d76c72e2bd76e47c694c59439a9c0333c2e0d8e4c7c84e94bd4a450747a08fda28a6c570d2ebc70644e6037db3368cb0261d27bb7c99016f21 WHIRLPOOL 0ac187184dce0d5dc5423f330a5afeeaebb3ad6f899290507aad1ef7510105a657a76b8d7bb335ca9e7b5beade0faa1128c19e4bd82354a9083b01a1def0515d
|
||||
DIST Ice-3.4.2.pdf.gz 4232836 SHA256 6400efa65f879f964590759222dd46010bfeb3e430787a4d53e826a54cbc4067 SHA512 2ef70d27893e933ecbededfbf737b4033dd4d744c0577f4cf5efd132ca22f0d655378439ddda21254689d393f721ca41fa8ff80eb9691c03630b93cd1a6d81b7 WHIRLPOOL d19a04ddb8f0c0a26036c0163e413d9dacfc9a964ca04d33902c21627e6fed4cc7451a95bcb8327e3a7b56eceed8ae1250ce12a126f8a64903a608beeac82df8
|
||||
DIST Ice-3.4.2.tar.gz 5485106 SHA256 dcf0484495b6df0849ec90a00e8204fe5fe1c0d3882bb438bf2c1d062f15c979 SHA512 4a69fbddf53112d36805dd276c9af5e221677ea45108553e1e7d580e18ba5a61b2444b8b44d5b2a88132cdebcba989a0dc212029ccbd8e17a2e70bcf50ebb6c8 WHIRLPOOL a79c0348d0454d802af85c72c249a9e162108b71391a77f7b0c9887f3d22974dd4729426308247af8aabda6babc0608691fbb622ac25a54820e8c20ca4e80ec7
|
||||
|
@ -1,113 +0,0 @@
|
||||
--- config/Make.rules.orig 2007-03-13 09:07:05.000000000 -0400
|
||||
+++ config/Make.rules 2007-03-13 09:07:13.000000000 -0400
|
||||
@@ -11,13 +11,13 @@
|
||||
# Select an installation base directory. The directory will be created
|
||||
# if it does not exist.
|
||||
#
|
||||
-prefix ?= /opt/Ice-$(VERSION)
|
||||
+prefix ?= /$(DESTDIR)/usr
|
||||
|
||||
#
|
||||
# The "root directory" for runpath embedded in executables. Can be unset
|
||||
# to avoid adding a runpath to Ice executables.
|
||||
#
|
||||
-embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
+#embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
|
||||
#
|
||||
# Define OPTIMIZE as yes if you want to build with
|
||||
@@ -125,9 +125,10 @@
|
||||
install_bindir = $(prefix)/bin
|
||||
|
||||
install_includedir = $(prefix)/include
|
||||
-install_slicedir = $(prefix)/slice
|
||||
-install_schemadir = $(prefix)/schema
|
||||
-install_docdir = $(prefix)/doc
|
||||
+install_slicedir = $(prefix)/share/Ice/slice
|
||||
+install_schemadir = $(prefix)/share/Ice/schema
|
||||
+install_configdir = $(prefix)/share/Ice/config
|
||||
+install_docdir = $(prefix)/share/doc/Ice-$(VERSION)
|
||||
|
||||
INSTALL = cp -fp
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
@@ -179,18 +180,8 @@
|
||||
BZIP2_LIBS = $(if $(BZIP2_HOME),-L$(BZIP2_HOME)/$(libsubdir)) -lbz2
|
||||
BZIP2_RPATH_LINK = $(if $(BZIP2_HOME),$(call rpathlink,$(BZIP2_HOME)/$(libsubdir)))
|
||||
|
||||
-ifneq ($(DB_HOME),)
|
||||
- DB_FLAGS = -I$(DB_HOME)/include
|
||||
- DB_LIBS = -L$(DB_HOME)/$(libsubdir) -ldb_cxx
|
||||
- DB_RPATH_LINK = $(call rpathlink,$(DB_HOME)/$(libsubdir))
|
||||
-else
|
||||
- ifeq ($(shell if [ -d /usr/include/db45 -a -d /usr/$(libsubdir)/db45 ] ; then echo yes; fi), yes)
|
||||
- DB_FLAGS = -I/usr/include/db45
|
||||
- DB_LIBS = -L/usr/$(libsubdir)/db45 -ldb_cxx
|
||||
- else
|
||||
- DB_LIBS = -ldb_cxx
|
||||
- endif
|
||||
-endif
|
||||
+DB_FLAGS = -I/usr/include/db4.5
|
||||
+DB_LIBS = -L/usr/$(libsubdir) -ldb_cxx-4.5
|
||||
|
||||
EXPAT_FLAGS = $(if $(EXPAT_HOME),-I$(EXPAT_HOME)/include)
|
||||
EXPAT_LIBS = $(if $(EXPAT_HOME),-L$(EXPAT_HOME)/$(libsubdir)) -lexpat
|
||||
--- Makefile.orig 2007-03-13 09:07:20.000000000 -0400
|
||||
+++ Makefile 2007-03-13 09:08:44.000000000 -0400
|
||||
@@ -11,15 +11,15 @@
|
||||
|
||||
include $(top_srcdir)/config/Make.rules
|
||||
|
||||
-SUBDIRS = config src include test demo slice doc
|
||||
+SUBDIRS = config src include slice doc
|
||||
|
||||
-INSTALL_SUBDIRS = $(install_bindir) $(install_libdir) $(install_includedir) $(install_slicedir) $(install_docdir)
|
||||
+INSTALL_SUBDIRS = $(install_bindir) $(install_libdir) $(install_includedir) $(install_slicedir) $(install_docdir) $(install_configdir)
|
||||
|
||||
install::
|
||||
@if test ! -d $(prefix) ; \
|
||||
then \
|
||||
echo "Creating $(prefix)..." ; \
|
||||
- $(call mkdir,$(prefix)) ; \
|
||||
+ mkdir -p $(prefix) ; \
|
||||
fi
|
||||
ifneq ($(embedded_runpath_prefix),)
|
||||
@if test -h $(embedded_runpath_prefix) ; \
|
||||
@@ -55,8 +55,8 @@
|
||||
then \
|
||||
( cd doc && $(MAKE) install ) || exit 1 ; \
|
||||
fi
|
||||
- $(call installdata,ICE_LICENSE,$(prefix))
|
||||
- $(call installdata,LICENSE,$(prefix))
|
||||
+ $(call installdata,ICE_LICENSE,$(install_docdir))
|
||||
+ $(call installdata,LICENSE,$(install_docdir))
|
||||
|
||||
clean::
|
||||
@if test -d doc ; \
|
||||
@@ -65,4 +65,5 @@
|
||||
fi
|
||||
|
||||
test::
|
||||
+ @( cd test && $(MAKE) ) || exit 1
|
||||
@python $(top_srcdir)/allTests.py
|
||||
--- config/Makefile.orig 2007-03-13 10:05:05.000000000 -0400
|
||||
+++ config/Makefile 2007-03-13 10:05:43.000000000 -0400
|
||||
@@ -15,14 +15,9 @@
|
||||
echo ""
|
||||
|
||||
install::
|
||||
- @if test ! -d $(prefix)/config ; \
|
||||
- then \
|
||||
- echo "Creating $(prefix)/config..." ; \
|
||||
- $(call mkdir,$(prefix)/config) ; \
|
||||
- fi
|
||||
- $(call installdata,templates.xml,$(prefix)/config)
|
||||
- $(call installdata,convertssl.py,$(prefix)/config)
|
||||
- $(call installdata,upgradeicegrid.py,$(prefix)/config)
|
||||
- $(call installdata,upgradeicestorm.py,$(prefix)/config)
|
||||
- $(call installdata,icegrid-slice.3.1.ice.gz,$(prefix)/config)
|
||||
+ $(call installdata,templates.xml,$(install_configdir))
|
||||
+ $(call installdata,convertssl.py,$(install_configdir))
|
||||
+ $(call installdata,upgradeicegrid.py,$(install_configdir))
|
||||
+ $(call installdata,upgradeicestorm.py,$(install_configdir))
|
||||
+ $(call installdata,icegrid-slice.3.1.ice.gz,$(install_configdir))
|
||||
|
@ -1,113 +0,0 @@
|
||||
--- config/Make.rules.orig 2007-03-13 09:07:05.000000000 -0400
|
||||
+++ config/Make.rules 2007-03-13 09:07:13.000000000 -0400
|
||||
@@ -11,13 +11,13 @@
|
||||
# Select an installation base directory. The directory will be created
|
||||
# if it does not exist.
|
||||
#
|
||||
-prefix ?= /opt/Ice-$(VERSION)
|
||||
+prefix ?= /$(DESTDIR)/usr
|
||||
|
||||
#
|
||||
# The "root directory" for runpath embedded in executables. Can be unset
|
||||
# to avoid adding a runpath to Ice executables.
|
||||
#
|
||||
-embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
+#embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
|
||||
#
|
||||
# Define OPTIMIZE as yes if you want to build with
|
||||
@@ -125,9 +125,10 @@
|
||||
install_bindir = $(prefix)/bin
|
||||
|
||||
install_includedir = $(prefix)/include
|
||||
-install_slicedir = $(prefix)/slice
|
||||
-install_schemadir = $(prefix)/schema
|
||||
-install_docdir = $(prefix)/doc
|
||||
+install_slicedir = $(prefix)/share/Ice/slice
|
||||
+install_schemadir = $(prefix)/share/Ice/schema
|
||||
+install_configdir = $(prefix)/share/Ice/config
|
||||
+install_docdir = $(prefix)/share/doc/Ice-$(VERSION)
|
||||
|
||||
INSTALL = cp -fp
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
@@ -179,18 +180,8 @@
|
||||
BZIP2_LIBS = $(if $(BZIP2_HOME),-L$(BZIP2_HOME)/$(libsubdir)) -lbz2
|
||||
BZIP2_RPATH_LINK = $(if $(BZIP2_HOME),$(call rpathlink,$(BZIP2_HOME)/$(libsubdir)))
|
||||
|
||||
-ifneq ($(DB_HOME),)
|
||||
- DB_FLAGS = -I$(DB_HOME)/include
|
||||
- DB_LIBS = -L$(DB_HOME)/$(libsubdir) -ldb_cxx
|
||||
- DB_RPATH_LINK = $(call rpathlink,$(DB_HOME)/$(libsubdir))
|
||||
-else
|
||||
- ifeq ($(shell if [ -d /usr/include/db45 -a -d /usr/$(libsubdir)/db45 ] ; then echo yes; fi), yes)
|
||||
- DB_FLAGS = -I/usr/include/db45
|
||||
- DB_LIBS = -L/usr/$(libsubdir)/db45 -ldb_cxx
|
||||
- else
|
||||
- DB_LIBS = -ldb_cxx
|
||||
- endif
|
||||
-endif
|
||||
+DB_FLAGS = -I/usr/include/db4.5
|
||||
+DB_LIBS = -L/usr/$(libsubdir) -ldb_cxx-4.5
|
||||
|
||||
EXPAT_FLAGS = $(if $(EXPAT_HOME),-I$(EXPAT_HOME)/include)
|
||||
EXPAT_LIBS = $(if $(EXPAT_HOME),-L$(EXPAT_HOME)/$(libsubdir)) -lexpat
|
||||
--- Makefile.orig 2007-03-13 09:07:20.000000000 -0400
|
||||
+++ Makefile 2007-03-13 09:08:44.000000000 -0400
|
||||
@@ -11,15 +11,15 @@
|
||||
|
||||
include $(top_srcdir)/config/Make.rules
|
||||
|
||||
-SUBDIRS = config src include test demo slice doc
|
||||
+SUBDIRS = config src include slice doc
|
||||
|
||||
-INSTALL_SUBDIRS = $(install_bindir) $(install_libdir) $(install_includedir) $(install_slicedir) $(install_docdir)
|
||||
+INSTALL_SUBDIRS = $(install_bindir) $(install_libdir) $(install_includedir) $(install_slicedir) $(install_docdir) $(install_configdir)
|
||||
|
||||
install::
|
||||
@if test ! -d $(prefix) ; \
|
||||
then \
|
||||
echo "Creating $(prefix)..." ; \
|
||||
- $(call mkdir,$(prefix)) ; \
|
||||
+ mkdir -p $(prefix) ; \
|
||||
fi
|
||||
ifneq ($(embedded_runpath_prefix),)
|
||||
@if test -h $(embedded_runpath_prefix) ; \
|
||||
@@ -55,8 +55,8 @@
|
||||
then \
|
||||
( cd doc && $(MAKE) install ) || exit 1 ; \
|
||||
fi
|
||||
- $(call installdata,ICE_LICENSE,$(prefix))
|
||||
- $(call installdata,LICENSE,$(prefix))
|
||||
+ $(call installdata,ICE_LICENSE,$(install_docdir))
|
||||
+ $(call installdata,LICENSE,$(install_docdir))
|
||||
|
||||
clean::
|
||||
@if test -d doc ; \
|
||||
@@ -65,4 +65,5 @@
|
||||
fi
|
||||
|
||||
test::
|
||||
+ @( cd test && $(MAKE) ) || exit 1
|
||||
@python $(top_srcdir)/allTests.py
|
||||
--- config/Makefile.orig 2007-03-13 10:05:05.000000000 -0400
|
||||
+++ config/Makefile 2007-03-13 10:05:43.000000000 -0400
|
||||
@@ -15,14 +15,9 @@
|
||||
echo ""
|
||||
|
||||
install::
|
||||
- @if test ! -d $(prefix)/config ; \
|
||||
- then \
|
||||
- echo "Creating $(prefix)/config..." ; \
|
||||
- $(call mkdir,$(prefix)/config) ; \
|
||||
- fi
|
||||
- $(call installdata,templates.xml,$(prefix)/config)
|
||||
- $(call installdata,convertssl.py,$(prefix)/config)
|
||||
- $(call installdata,upgradeicegrid.py,$(prefix)/config)
|
||||
- $(call installdata,upgradeicestorm.py,$(prefix)/config)
|
||||
- $(call installdata,icegrid-slice.3.1.ice.gz,$(prefix)/config)
|
||||
+ $(call installdata,templates.xml,$(install_configdir))
|
||||
+ $(call installdata,convertssl.py,$(install_configdir))
|
||||
+ $(call installdata,upgradeicegrid.py,$(install_configdir))
|
||||
+ $(call installdata,upgradeicestorm.py,$(install_configdir))
|
||||
+ $(call installdata,icegrid-slice.3.1.ice.gz,$(install_configdir))
|
||||
|
@ -1,275 +0,0 @@
|
||||
diff -ur Ice-3.2.1.orig/include/Ice/Outgoing.h Ice-3.2.1/include/Ice/Outgoing.h
|
||||
--- Ice-3.2.1.orig/include/Ice/Outgoing.h 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/include/Ice/Outgoing.h 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <Ice/ReferenceF.h>
|
||||
#include <Ice/BasicStream.h>
|
||||
#include <Ice/Current.h>
|
||||
+#include <memory>
|
||||
|
||||
namespace Ice
|
||||
{
|
||||
diff -ur Ice-3.2.1.orig/src/FreezeScript/AssignVisitor.cpp Ice-3.2.1/src/FreezeScript/AssignVisitor.cpp
|
||||
--- Ice-3.2.1.orig/src/FreezeScript/AssignVisitor.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/FreezeScript/AssignVisitor.cpp 2008-02-22 15:26:34.000000000 +0100
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <FreezeScript/AssignVisitor.h>
|
||||
#include <FreezeScript/Util.h>
|
||||
+#include <climits>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/FreezeScript/Data.cpp Ice-3.2.1/src/FreezeScript/Data.cpp
|
||||
--- Ice-3.2.1.orig/src/FreezeScript/Data.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/FreezeScript/Data.cpp 2008-02-22 15:26:21.000000000 +0100
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <FreezeScript/Util.h>
|
||||
#include <FreezeScript/Exception.h>
|
||||
#include <IceUtil/InputUtil.h>
|
||||
+#include <climits>
|
||||
|
||||
using namespace std;
|
||||
using namespace IceUtil;
|
||||
diff -ur Ice-3.2.1.orig/src/FreezeScript/DumpDescriptors.cpp Ice-3.2.1/src/FreezeScript/DumpDescriptors.cpp
|
||||
--- Ice-3.2.1.orig/src/FreezeScript/DumpDescriptors.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/FreezeScript/DumpDescriptors.cpp 2008-02-22 15:26:26.000000000 +0100
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <FreezeScript/Util.h>
|
||||
#include <db_cxx.h>
|
||||
#include <set>
|
||||
+#include <climits>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/FreezeScript/Transformer.cpp Ice-3.2.1/src/FreezeScript/Transformer.cpp
|
||||
--- Ice-3.2.1.orig/src/FreezeScript/Transformer.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/FreezeScript/Transformer.cpp 2008-02-22 15:26:16.000000000 +0100
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <Freeze/Initialize.h>
|
||||
#include <IceXML/Parser.h>
|
||||
#include <db_cxx.h>
|
||||
+#include <climits>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/Ice/ConnectionI.h Ice-3.2.1/src/Ice/ConnectionI.h
|
||||
--- Ice-3.2.1.orig/src/Ice/ConnectionI.h 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Ice/ConnectionI.h 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <Ice/TraceLevelsF.h>
|
||||
#include <Ice/OutgoingAsyncF.h>
|
||||
#include <Ice/EventHandler.h>
|
||||
+#include <memory>
|
||||
|
||||
namespace IceInternal
|
||||
{
|
||||
diff -ur Ice-3.2.1.orig/src/IceGrid/Activator.cpp Ice-3.2.1/src/IceGrid/Activator.cpp
|
||||
--- Ice-3.2.1.orig/src/IceGrid/Activator.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceGrid/Activator.cpp 2008-02-22 15:27:13.000000000 +0100
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
+#include <climits>
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <sys/wait.h>
|
||||
diff -ur Ice-3.2.1.orig/src/IceGrid/PlatformInfo.cpp Ice-3.2.1/src/IceGrid/PlatformInfo.cpp
|
||||
--- Ice-3.2.1.orig/src/IceGrid/PlatformInfo.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceGrid/PlatformInfo.cpp 2008-02-22 15:27:05.000000000 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <IceGrid/TraceLevels.h>
|
||||
|
||||
#include <IcePatch2/Util.h>
|
||||
+#include <climits>
|
||||
|
||||
#if defined(_WIN32)
|
||||
# include <direct.h> // For _getcwd
|
||||
diff -ur Ice-3.2.1.orig/src/IcePatch2/OS.cpp Ice-3.2.1/src/IcePatch2/OS.cpp
|
||||
--- Ice-3.2.1.orig/src/IcePatch2/OS.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IcePatch2/OS.cpp 2008-02-22 15:26:56.000000000 +0100
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <IceUtil/DisableWarnings.h>
|
||||
#include <OS.h>
|
||||
#include <IceUtil/Unicode.h>
|
||||
+#include <climits>
|
||||
|
||||
#ifdef __BCPLUSPLUS__
|
||||
# include <dir.h>
|
||||
diff -ur Ice-3.2.1.orig/src/IceUtil/ArgVector.cpp Ice-3.2.1/src/IceUtil/ArgVector.cpp
|
||||
--- Ice-3.2.1.orig/src/IceUtil/ArgVector.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceUtil/ArgVector.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <IceUtil/ArgVector.h>
|
||||
#include <IceUtil/DisableWarnings.h>
|
||||
+#include <cstring>
|
||||
|
||||
IceUtil::ArgVector::ArgVector(int argc, char *argv[])
|
||||
{
|
||||
diff -ur Ice-3.2.1.orig/src/IceUtil/MD5.cpp Ice-3.2.1/src/IceUtil/MD5.cpp
|
||||
--- Ice-3.2.1.orig/src/IceUtil/MD5.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceUtil/MD5.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <IceUtil/MD5.h>
|
||||
#include <IceUtil/MD5I.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/IceUtil/OutputUtil.cpp Ice-3.2.1/src/IceUtil/OutputUtil.cpp
|
||||
--- Ice-3.2.1.orig/src/IceUtil/OutputUtil.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceUtil/OutputUtil.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -8,6 +8,7 @@
|
||||
// **********************************************************************
|
||||
|
||||
#include <IceUtil/OutputUtil.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
using namespace IceUtil;
|
||||
diff -ur Ice-3.2.1.orig/src/IceUtil/Random.cpp Ice-3.2.1/src/IceUtil/Random.cpp
|
||||
--- Ice-3.2.1.orig/src/IceUtil/Random.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceUtil/Random.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <IceUtil/Random.h>
|
||||
#include <IceUtil/StaticMutex.h>
|
||||
+#include <cstring>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <Wincrypt.h>
|
||||
diff -ur Ice-3.2.1.orig/src/IceUtil/ThreadException.cpp Ice-3.2.1/src/IceUtil/ThreadException.cpp
|
||||
--- Ice-3.2.1.orig/src/IceUtil/ThreadException.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/IceUtil/ThreadException.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -8,6 +8,7 @@
|
||||
// **********************************************************************
|
||||
|
||||
#include <IceUtil/ThreadException.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/CPlusPlusUtil.cpp Ice-3.2.1/src/Slice/CPlusPlusUtil.cpp
|
||||
--- Ice-3.2.1.orig/src/Slice/CPlusPlusUtil.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/CPlusPlusUtil.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -8,6 +8,7 @@
|
||||
// **********************************************************************
|
||||
|
||||
#include <Slice/CPlusPlusUtil.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
using namespace Slice;
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/DotNetNames.cpp Ice-3.2.1/src/Slice/DotNetNames.cpp
|
||||
--- Ice-3.2.1.orig/src/Slice/DotNetNames.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/DotNetNames.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <Slice/DotNetNames.h>
|
||||
#include <ctype.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/Grammar.cpp Ice-3.2.1/src/Slice/Grammar.cpp
|
||||
--- Ice-3.2.1.orig/src/Slice/Grammar.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/Grammar.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -165,6 +165,7 @@
|
||||
|
||||
#include <Slice/GrammarUtil.h>
|
||||
#include <IceUtil/UUID.h>
|
||||
+#include <cstring>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// I get these warnings from some bison versions:
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/Grammar.y Ice-3.2.1/src/Slice/Grammar.y
|
||||
--- Ice-3.2.1.orig/src/Slice/Grammar.y 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/Grammar.y 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <Slice/GrammarUtil.h>
|
||||
#include <IceUtil/UUID.h>
|
||||
+#include <cstring>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// I get these warnings from some bison versions:
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/Parser.cpp Ice-3.2.1/src/Slice/Parser.cpp
|
||||
--- Ice-3.2.1.orig/src/Slice/Parser.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/Parser.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <IceUtil/Functional.h>
|
||||
#include <Slice/Parser.h>
|
||||
#include <Slice/GrammarUtil.h>
|
||||
+#include <cstring>
|
||||
#ifdef __BCPLUSPLUS__
|
||||
# include <iterator>
|
||||
#endif
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/Preprocessor.cpp Ice-3.2.1/src/Slice/Preprocessor.cpp
|
||||
--- Ice-3.2.1.orig/src/Slice/Preprocessor.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/Preprocessor.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <IceUtil/StringUtil.h>
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
+#include <cstring>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
diff -ur Ice-3.2.1.orig/src/Slice/PythonUtil.cpp Ice-3.2.1/src/Slice/PythonUtil.cpp
|
||||
--- Ice-3.2.1.orig/src/Slice/PythonUtil.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/Slice/PythonUtil.cpp 2008-02-22 15:25:32.000000000 +0100
|
||||
@@ -13,6 +13,7 @@
|
||||
#ifdef __BCPLUSPLUS__
|
||||
# include <iterator>
|
||||
#endif
|
||||
+#include <climits>
|
||||
|
||||
using namespace std;
|
||||
using namespace Slice;
|
||||
diff -ur Ice-3.2.1.orig/src/slice2docbook/Gen.cpp Ice-3.2.1/src/slice2docbook/Gen.cpp
|
||||
--- Ice-3.2.1.orig/src/slice2docbook/Gen.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/slice2docbook/Gen.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <IceUtil/DisableWarnings.h>
|
||||
#include <IceUtil/Functional.h>
|
||||
#include <Gen.h>
|
||||
+#include <cstring>
|
||||
|
||||
#ifdef __BCPLUSPLUS__
|
||||
# include <iterator>
|
||||
diff -ur Ice-3.2.1.orig/src/slice2freeze/Main.cpp Ice-3.2.1/src/slice2freeze/Main.cpp
|
||||
--- Ice-3.2.1.orig/src/slice2freeze/Main.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/slice2freeze/Main.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <Slice/Preprocessor.h>
|
||||
#include <Slice/CPlusPlusUtil.h>
|
||||
#include <IceUtil/OutputUtil.h>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
using namespace IceUtil;
|
||||
diff -ur Ice-3.2.1.orig/src/slice2java/Gen.cpp Ice-3.2.1/src/slice2java/Gen.cpp
|
||||
--- Ice-3.2.1.orig/src/slice2java/Gen.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/slice2java/Gen.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <IceUtil/Iterator.h>
|
||||
|
||||
#include <limits>
|
||||
+#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
using namespace Slice;
|
||||
diff -ur Ice-3.2.1.orig/src/slice2py/Main.cpp Ice-3.2.1/src/slice2py/Main.cpp
|
||||
--- Ice-3.2.1.orig/src/slice2py/Main.cpp 2008-02-22 15:24:43.000000000 +0100
|
||||
+++ Ice-3.2.1/src/slice2py/Main.cpp 2008-02-22 15:24:56.000000000 +0100
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <Slice/PythonUtil.h>
|
||||
|
||||
#include <fstream>
|
||||
+#include <cstring>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
@ -1,68 +0,0 @@
|
||||
--- config/Make.rules.orig 2008-05-21 13:39:46.000000000 -0400
|
||||
+++ config/Make.rules 2008-05-21 13:43:35.000000000 -0400
|
||||
@@ -11,13 +11,13 @@
|
||||
# Select an installation base directory. The directory will be created
|
||||
# if it does not exist.
|
||||
#
|
||||
-prefix ?= /opt/Ice-$(VERSION)
|
||||
+prefix ?= /$(DESTDIR)/usr
|
||||
|
||||
#
|
||||
# The "root directory" for runpath embedded in executables. Can be unset
|
||||
# to avoid adding a runpath to Ice executables.
|
||||
#
|
||||
-embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
+#embedded_runpath_prefix ?= /opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
|
||||
|
||||
#
|
||||
# Define OPTIMIZE as yes if you want to build with
|
||||
@@ -144,10 +144,10 @@
|
||||
include $(top_srcdir)/config/Make.rules.$(UNAME)
|
||||
|
||||
install_includedir := $(prefix)/include
|
||||
-install_docdir := $(prefix)/doc
|
||||
+install_docdir := $(prefix)/share/doc/Ice-$(VERSION)
|
||||
install_bindir := $(prefix)/$(binsubdir)
|
||||
install_libdir := $(prefix)/$(libsubdir)
|
||||
-install_configdir := $(prefix)/config
|
||||
+install_configdir := $(prefix)/share/Ice/config
|
||||
|
||||
ifneq ($(embedded_runpath_prefix),)
|
||||
runpath_libdir := $(embedded_runpath_prefix)/$(libsubdir)
|
||||
@@ -162,18 +162,8 @@
|
||||
BZIP2_LIBS = $(if $(BZIP2_HOME),-L$(BZIP2_HOME)/$(libsubdir)) -lbz2
|
||||
BZIP2_RPATH_LINK = $(if $(BZIP2_HOME),$(call rpathlink,$(BZIP2_HOME)/$(libsubdir)))
|
||||
|
||||
-ifneq ($(DB_HOME),)
|
||||
- DB_FLAGS = -I$(DB_HOME)/include
|
||||
- DB_LIBS = -L$(DB_HOME)/$(libsubdir) -ldb_cxx
|
||||
- DB_RPATH_LINK = $(call rpathlink,$(DB_HOME)/$(libsubdir))
|
||||
-else
|
||||
- ifeq ($(shell if [ -d /usr/include/db46 -a -d /usr/$(libsubdir)/db46 ] ; then echo yes; fi), yes)
|
||||
- DB_FLAGS = -I/usr/include/db46
|
||||
- DB_LIBS = -L/usr/$(libsubdir)/db46 -ldb_cxx
|
||||
- else
|
||||
- DB_LIBS = -ldb_cxx
|
||||
- endif
|
||||
-endif
|
||||
+DB_FLAGS = -I/usr/include/db4.6
|
||||
+DB_LIBS = -L/usr/$(libsubdir) -ldb_cxx-4.6
|
||||
|
||||
EXPAT_FLAGS = $(if $(EXPAT_HOME),-I$(EXPAT_HOME)/include)
|
||||
EXPAT_LIBS = $(if $(EXPAT_HOME),-L$(EXPAT_HOME)/$(libsubdir)) -lexpat
|
||||
--- Makefile.orig 2008-05-21 13:42:32.000000000 -0400
|
||||
+++ Makefile 2008-05-21 13:42:50.000000000 -0400
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
include $(top_srcdir)/config/Make.rules
|
||||
|
||||
-SUBDIRS = config src include test demo
|
||||
+SUBDIRS = config src include
|
||||
|
||||
INSTALL_SUBDIRS = $(install_bindir) $(install_libdir) $(install_includedir) $(install_configdir)
|
||||
|
||||
-install:: install-common
|
||||
+install::
|
||||
@for subdir in $(INSTALL_SUBDIRS); \
|
||||
do \
|
||||
if test ! -d $$subdir ; \
|
@ -1,12 +0,0 @@
|
||||
diff -ur Ice-3.3.1-orig/cpp/src/IceSSL/Instance.cpp Ice-3.3.1/cpp/src/IceSSL/Instance.cpp
|
||||
--- Ice-3.3.1-orig/cpp/src/IceSSL/Instance.cpp 2009-03-20 19:52:14.000000000 +0200
|
||||
+++ Ice-3.3.1/cpp/src/IceSSL/Instance.cpp 2010-06-04 16:02:16.779755389 +0300
|
||||
@@ -989,7 +989,7 @@
|
||||
{
|
||||
Trace out(_logger, _securityTraceCategory);
|
||||
out << "SSL summary for " << (incoming ? "incoming" : "outgoing") << " connection\n";
|
||||
- SSL_CIPHER* cipher = SSL_get_current_cipher(ssl);
|
||||
+ const SSL_CIPHER* cipher = SSL_get_current_cipher(ssl);
|
||||
if(!cipher)
|
||||
{
|
||||
out << "unknown cipher\n";
|
@ -1,4 +1,3 @@
|
||||
DIST libevent-2.0.18-stable.tar.gz 840719 SHA256 44ed97277715b24ef3b36e93d8c1d39ae80c29c7723793911e22dc6e0c3c4acb SHA512 674f8f9d4d317b3ca3d5672d8833826b0984d39979d95a6a37ac95c128f01bbd3c6620601178c1dfa29dd7e427e965b3bd01067469e2d6ded1b666ed981b99fe WHIRLPOOL 151fb6e621614388d14d9eede0101ed06db6acf90dc3d1afe0fbb1ec0383a839a2990833ce620a612375c12b0b055a4180f7dbfea103a962ffa2bd0b16fc71ce
|
||||
DIST libevent-2.0.19-stable.tar.gz 842961 SHA256 1591fb411a67876a514a33df54b85417b31e01800284bcc6894fc410c3eaea21 SHA512 c3b4c95b7d120d656f422b041b6b03de250c8f38f1251c34378c424f7babf572584d7761a09eca7028d88522cb664d9cd24563396eab0bde790b08194e2be705 WHIRLPOOL e61a10f831082b082d8c3533481be755a53214609fd5ee138931e11f2640c903de1d203035fe8ca3b0cd909ca701170d1b88cb5186f3239162b5b04c58c9d336
|
||||
DIST libevent-2.0.20-stable.tar.gz 845446 SHA256 10698a0e6abb3ca00b1c9e8cfddc66933bcc4c9c78b5600a7064c4c3ef9c6a24 SHA512 e5527b8cbb6e88e6049dc28bd7c74f133f7decc849f54b3a099033448369d24a756d81b9829a12078711a5f378bd93ac61f975990a41006e36b6cb4d222a9775 WHIRLPOOL d3e4399413ca48f22460a7ca9b9289b0947b57bec0295ca0d9a1cfe99d78d50308f0e8695f654b47c882343da9573ed9fa136472df385b1e25cd0e0114b3416d
|
||||
DIST libevent-2.1.1-alpha.tar.gz 901846 SHA256 26ce17d91938fda67a98811d5c1360a6063b26fd3474e2b7b585c4db0e5d3eae SHA512 ef7b91888ad91fafa801016aad309d07ae296dc455386072071939d60aa73ae3b2837f60bf52fed4ece69ff6aafc3fa4c818a5b111f2a639096af03f4010209b WHIRLPOOL 6e9a208c38f958d1fbde97068fceedc86ef12c99a2ca7eb76988590624b8f4500068ea59098c15801dc99402702140e6fffe29b95af311afa96b739bafafdd62
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue