diff options
author | Geert Bevin <gbevin@gentoo.org> | 2002-02-01 15:51:50 +0000 |
---|---|---|
committer | Geert Bevin <gbevin@gentoo.org> | 2002-02-01 15:51:50 +0000 |
commit | 3254cd78db869e8c9a9e964e31b2252c724720a3 (patch) | |
tree | 915be378c5520573be91e7e8894497d9bf99c9a3 | |
parent | added --unmerge functionality (diff) | |
download | historical-3254cd78db869e8c9a9e964e31b2252c724720a3.tar.gz historical-3254cd78db869e8c9a9e964e31b2252c724720a3.tar.bz2 historical-3254cd78db869e8c9a9e964e31b2252c724720a3.zip |
added --unmerge functionality
-rw-r--r-- | sys-apps/portage/files/digest-portage-1.8.8 | 0 | ||||
-rw-r--r-- | sys-apps/portage/files/portage-1.8.8.tar.bz2 | bin | 0 -> 73695 bytes | |||
-rw-r--r-- | sys-apps/portage/portage-1.8.8.ebuild | 134 |
3 files changed, 134 insertions, 0 deletions
diff --git a/sys-apps/portage/files/digest-portage-1.8.8 b/sys-apps/portage/files/digest-portage-1.8.8 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/sys-apps/portage/files/digest-portage-1.8.8 diff --git a/sys-apps/portage/files/portage-1.8.8.tar.bz2 b/sys-apps/portage/files/portage-1.8.8.tar.bz2 Binary files differnew file mode 100644 index 000000000000..0a3eedfabdcf --- /dev/null +++ b/sys-apps/portage/files/portage-1.8.8.tar.bz2 diff --git a/sys-apps/portage/portage-1.8.8.ebuild b/sys-apps/portage/portage-1.8.8.ebuild new file mode 100644 index 000000000000..9681ba0d9816 --- /dev/null +++ b/sys-apps/portage/portage-1.8.8.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. Distributed under the terms +# of the GNU General Public License, v2 or later +# Author: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-1.8.8.ebuild,v 1.1 2002/02/01 15:51:50 gbevin Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Portage ports system" +SRC_URI="" +HOMEPAGE="http://www.gentoo.org" +#debianutils is for "readlink" + +if [ -z "`use build`" ] ; then + RDEPEND="sys-devel/spython sys-apps/debianutils" +fi + +src_unpack() { + #We are including the Portage bzipped tarball on CVS now, so that if a person's + #emerge gets hosed, they are not completely stuck. + cd ${WORKDIR}; tar xjf ${FILESDIR}/${P}.tar.bz2 +} + +src_compile() { + cd ${S}/src; gcc ${CFLAGS} tbz2tool.c -o tbz2tool + cd ${S}/src/sandbox + emake || die +} + +pkg_preinst() { + if [ -d /var/db/pkg/sys-apps/bash-2.05a ] && [ ! -d /var/db/pkg/sys-apps/bash-2.05a-r1 ] + then + eerror "You have to update your bash-2.05a installation." + eerror "Please execute 'emerge sys-apps/bash' as root" + eerror "before installing this version of portage." + die + fi +} + +src_install() { + #config files + cd ${S}/cnf + insinto /etc + doins make.globals make.conf + + #python modules + cd ${S}/pym + insinto /usr/lib/portage/pym + doins xpak.py portage.py + dodir /usr/lib/python2.0/site-packages + dosym ../../portage/pym/xpak.py /usr/lib/python2.0/site-packages/xpak.py + dosym ../../portage/pym/portage.py /usr/lib/python2.0/site-packages/portage.py + + # we gotta compile these modules + spython -c "import compileall; compileall.compile_dir('${D}/usr/lib/python2.0/site-packages')" || die + spython -O -c "import compileall; compileall.compile_dir('${D}/usr/lib/python2.0/site-packages')" || die + + #binaries, libraries and scripts + dodir /usr/lib/portage/bin + cd ${S}/bin + exeinto /usr/lib/portage/bin + doexe * + dosym emake /usr/lib/portage/bin/pmake + doexe ${S}/src/tbz2tool + + into /usr/lib/portage + dobin ${S}/src/sandbox/sandbox + dodir /usr/lib/portage/lib + exeinto /usr/lib/portage/lib + doexe ${S}/src/sandbox/libsandbox.so + insinto //usr/lib/portage/lib + doins ${S}/src/sandbox/sandbox.bashrc + #reset into + into /usr + + #symlinks + dodir /usr/bin /usr/sbin + dosym ../lib/portage/bin/emerge /usr/sbin/emerge + dosym ../lib/portage/bin/pkgmerge /usr/sbin/pkgmerge + dosym ../lib/portage/bin/ebuild /usr/sbin/ebuild + dosym ../lib/portage/bin/ebuild.sh /usr/sbin/ebuild.sh + #dosym /usr/lib/portage/bin/portage-maintain /usr/sbin/portage-maintain + dosym ../lib/portage/bin/env-update /usr/sbin/env-update + dosym ../lib/portage/bin/xpak /usr/bin/xpak + dosym ../lib/portage/bin/tbz2tool /usr/bin/tbz2tool + dosym newins /usr/lib/portage/bin/donewins + + # man pages + doman ${S}/man/*.[15] + + # temp dir creation + dodir /var/tmp + chmod 1777 ${D}/var/tmp + touch ${D}/var/tmp/.keep + + # create the initial profile symlink + if [ "`use build`" ] + then + #convenience; overwrite existing symlink + ln -sf ../usr/portage/profiles/default-1.0_rc6 ${D}/etc/make.profile + fi + + #documentation + dodoc ${S}/ChangeLog +} + +pkg_postinst() { + if [ ! -e ${ROOT}/etc/make.profile ] + then + cd ${ROOT}/etc + ln -s ../usr/portage/profiles/default-1.0_rc6 make.profile + fi + local x + for x in portage xpak + do + if [ -e ${ROOT}/usr/lib/python2.0/${x}.py ] + then + rm ${ROOT}/usr/lib/python2.0/${x}.py + rm ${ROOT}/usr/lib/python2.0/${x}.pyc + fi + done + + #remove possible previous sandbox files that could cause conflicts + if [ -d /usr/lib/sandbox ]; then + if [ -f /etc/ld.so.preload ]; then + mv /etc/ld.so.preload /etc/ld.so.preload_orig + grep -v libsandbox.so /etc/ld.so.preload_orig > /etc/ld.so.preload + rm /etc/ld.so.preload_orig + fi + + rm -f ${ROOT}/usr/lib/portage/bin/ebuild.sh.orig + rm -f ${ROOT}/usr/lib/portage/pym/portage.py.orig + rm -f ${ROOT}/usr/bin/sandbox + rm -rf ${ROOT}/usr/lib/sandbox + fi +} |