pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators Import openSUSE 10.0 base packages for Linux...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5be20c8751da
branches: trunk
changeset: 509419:5be20c8751da
user: tonio <tonio%pkgsrc.org@localhost>
date: Thu Mar 09 20:33:46 2006 +0000
description:
Import openSUSE 10.0 base packages for Linux emulation
Add support for powerpc (but it does *not* work stable yet)
diffstat:
emulators/suse100_base/DESCR | 5 +
emulators/suse100_base/INSTALL | 68 +++++++++++++++++++++++++
emulators/suse100_base/Makefile | 77 +++++++++++++++++++++++++++++
emulators/suse100_base/Makefile.i386 | 14 +++++
emulators/suse100_base/Makefile.powerpc | 14 +++++
emulators/suse100_base/Makefile.x86_64 | 16 ++++++
emulators/suse100_base/PLIST | 15 +++++
emulators/suse100_base/distinfo.i386 | 38 ++++++++++++++
emulators/suse100_base/distinfo.powerpc | 38 ++++++++++++++
emulators/suse100_base/distinfo.x86_64 | 38 ++++++++++++++
emulators/suse100_base/files/SuSE-release | 2 +
emulators/suse100_base/files/linux-mkpwd.sh | 18 ++++++
emulators/suse100_compat/DESCR | 5 +
emulators/suse100_compat/Makefile | 24 +++++++++
emulators/suse100_compat/Makefile.i386 | 4 +
emulators/suse100_compat/Makefile.powerpc | 4 +
emulators/suse100_compat/Makefile.x86_64 | 4 +
emulators/suse100_compat/distinfo.i386 | 8 +++
emulators/suse100_compat/distinfo.powerpc | 8 +++
emulators/suse100_compat/distinfo.x86_64 | 8 +++
emulators/suse100_expat/DESCR | 5 +
emulators/suse100_expat/Makefile | 25 +++++++++
emulators/suse100_expat/Makefile.i386 | 3 +
emulators/suse100_expat/Makefile.powerpc | 3 +
emulators/suse100_expat/Makefile.x86_64 | 3 +
emulators/suse100_expat/distinfo.i386 | 5 +
emulators/suse100_expat/distinfo.powerpc | 5 +
emulators/suse100_expat/distinfo.x86_64 | 5 +
emulators/suse100_linux/Makefile.common | 68 +++++++++++++++++++++++++
emulators/suse100_linux/arch.mk | 19 +++++++
emulators/suse100_linux/vars.mk | 9 +++
31 files changed, 558 insertions(+), 0 deletions(-)
diffs (truncated from 682 to 300 lines):
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/DESCR Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,5 @@
+Linux compatibility package based on the SuSE Linux distribution, take a
+look at "http://www.suse.com/" for more information about it.
+
+This package supports running ELF binaries linked with glibc2 which don't
+require X11 shared libraries.
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/INSTALL Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,68 @@
+#!/bin/sh
+# $NetBSD: INSTALL,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+if [ "$2" != "POST-INSTALL" ]; then exit 0; fi
+emul=linux
+OPSYS=`/usr/bin/uname -s`
+
+cat <<EOF
+==============================================================================
+
+EOF
+
+if [ "$OPSYS" = "NetBSD" ]; then
+ cat <<-EOF
+ Do not forget to include COMPAT_LINUX (and EXEC_ELF32 on NetBSD systems older
+ than 1.5) in your kernel configuration file. (Linux binaries require these
+ options in order to work.)
+ EOF
+fi
+
+if [ "$OPSYS" = "FreeBSD" ]; then
+ cat <<-EOF
+ Do not forget to include COMPAT_LINUX in your kernel configuration file.
+ You also need to load "linux.ko" kernel module (using kldload(8) or by
+ setting linux_enable="yes" in /etc/rc.conf.
+ EOF
+fi
+
+if [ "$OPSYS" = "NetBSD" ]; then
+ if [ "`cd /etc && cd ${PKG_PREFIX}/emul/$emul 2>/dev/null && pwd -P`" != \
+ "`cd / && cd /emul/$emul 2>/dev/null && pwd -P`" ]; then
+ if [ -e /emul/$emul -o -L /emul/$emul ] || \
+ [ \( -e /emul -o -L /emul \) -a ! -d /emul ]; then
+ cat <<-EOF
+
+ IMPORTANT: You must create a symbolic link from /emul/$emul to
+ ${PKG_PREFIX}/emul/$emul in order for this package to work properly.
+ (It seems there is something else located at /emul/$emul.)
+ EOF
+ else
+ mkdir -p /emul
+ ln -sf ${PKG_PREFIX}/emul/$emul /emul/$emul
+ fi
+ fi
+fi
+
+if [ "$OPSYS" = "FreeBSD" ]; then
+ if [ "`cd /etc && cd ${PKG_PREFIX}/emul/$emul 2>/dev/null && pwd -P`" != \
+ "`cd / && cd /compat/$emul 2>/dev/null && pwd -P`" ]; then
+ if [ -e /compat/$emul -o -L /compat/$emul ] || \
+ [ \( -e /compat -o -L /compat \) -a ! -d /compat ]; then
+ cat <<-EOF
+
+ IMPORTANT: You must create a symbolic link from /compat/$emul to
+ ${PKG_PREFIX}/emul/$emul in order for this package to work properly.
+ (It seems there is something else located at /compat/$emul.)
+ EOF
+ else
+ mkdir -p /compat
+ ln -sf ${PKG_PREFIX}/emul/$emul /compat/$emul
+ fi
+ fi
+fi
+
+cat <<EOF
+
+==============================================================================
+EOF
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/Makefile Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,77 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+DISTNAME= suse_base-${SUSE_VERSION}
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SUSE100}
+DISTFILES= ${RPMFILES}
+
+MAINTAINER= tonio%NetBSD.org@localhost
+HOMEPAGE= http://www.suse.com/
+COMMENT= Linux compatibility package
+
+CONFLICTS= linux_SuSE-5.3 linux_lib-2.4 linuxppc_lib-[0-9]*
+
+EXTRACT_ONLY= # empty
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+PLIST_SUBST+= EMULSUBDIR=${EMULSUBDIR:Q} LINUX_LIB=${LINUX_LIB:Q}
+
+.if exists(Makefile.${MACHINE_ARCH})
+.include "Makefile.${MACHINE_ARCH}"
+DISTINFO_FILE= ${.CURDIR}/distinfo.${MACHINE_ARCH}
+.endif
+
+RPMIGNOREPATH= ./etc/bash.bashrc ./etc/bash_completion.d \
+ ./etc/cron.daily ./etc/csh.cshrc ./etc/csh.login \
+ ./etc/inittab ./etc/hushlogins ./etc/java \
+ ./etc/mailcap ./etc/mime.types ./etc/nsswitch.conf \
+ ./etc/pam.d ./etc/profile ./etc/profile.dos \
+ ./etc/rc.d.README ./etc/rpc ./etc/shells ./etc/ttytype
+
+LINUX_LDD= ${PREFIX}/${EMULSUBDIR}/usr/bin/ldd
+LINUX_LIB?= lib
+
+.include "../../mk/bsd.prefs.mk"
+
+INSTALLATION_DIRS= sbin
+
+do-build:
+ @for FILE in ${FILESDIR}/SuSE-release ${FILESDIR}/*.sh; do \
+ ${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \
+ -e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \
+ -e 's#@@LINUX_LIB@@#${LINUX_LIB}#g' \
+ -e 's#@@VERSION@@#${SUSE_VERSION}#g' \
+ -e 's#@@ARCH@@#${SUSE_ARCH}#g' \
+ $$FILE >${WRKDIR}/`basename $$FILE`; \
+ done
+
+do-install:
+ for FILE in ${WRKDIR}/*.sh; do \
+ ${INSTALL_SCRIPT} $$FILE ${PREFIX}/sbin/`basename $$FILE .sh`; \
+ done
+ ${INSTALL_DATA_DIR} ${EMULDIR}/dev
+ ${INSTALL_DATA} /dev/MAKEDEV ${EMULDIR}/dev
+ cd ${EMULDIR}/dev && ${SH} ./MAKEDEV std audio
+ cd ${EMULDIR}/dev && ${LN} -fs sound dsp
+ @${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+ ${RPM2PKG} ${RPM2PKGARGS}
+ ${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC}
+ ${INSTALL_DATA} ${WRKDIR}/SuSE-release ${EMULDIR}/etc
+ ${INSTALL_DATA_DIR} ${EMULDIR}/proc
+ ${LN} -fs ${EMULDIR}/proc/mounts ${EMULDIR}/etc/mtab
+.if ${OPSYS} == "FreeBSD"
+ ${BRANDELF} -t Linux ${EMULDIR}/sbin/ldconfig
+.endif
+ ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
+ ${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" \
+ >>${PLIST_SRC}
+ ${ECHO} "@unexec ${RMDIR} %D/${EMULSUBDIR}/etc 2>/dev/null || ${TRUE}" \
+ >>${PLIST_SRC}
+ ${SED} -e 's:#! :#! /${EMULSUBDIR}:' \
+ -e 's:^RTLD=:RTLD=/${EMULSUBDIR}:' \
+ < ${LINUX_LDD} > ${LINUX_LDD}.new
+ ${MV} ${LINUX_LDD}.new ${LINUX_LDD}
+ ${CHMOD} +x ${LINUX_LDD}
+ @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} - POST-INSTALL
+
+.include "../../emulators/suse100_linux/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/Makefile.i386
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/Makefile.i386 Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile.i386,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+RPMFILES= aaa_base-10.0-28.${SUSE_ARCH}.rpm \
+ bash-3.0-17.${SUSE_ARCH}.rpm \
+ coreutils-5.3.0-20.${SUSE_ARCH}.rpm \
+ glibc-2.3.5-40.${SUSE_ARCH}.rpm \
+ libgcc-4.0.2_20050901-3.${SUSE_ARCH}.rpm \
+ libacl-2.2.31-3.${SUSE_ARCH}.rpm \
+ libattr-2.4.24-2.${SUSE_ARCH}.rpm \
+ libselinux-1.23.11-3.${SUSE_ARCH}.rpm \
+ libstdc++-4.0.2_20050901-3.${SUSE_ARCH}.rpm \
+ ncurses-5.4-71.${SUSE_ARCH}.rpm \
+ readline-5.0-9.${SUSE_ARCH}.rpm \
+ zlib-1.2.3-3.${SUSE_ARCH}.rpm
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/Makefile.powerpc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/Makefile.powerpc Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile.powerpc,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+RPMFILES= aaa_base-10.0-28.${SUSE_ARCH}.rpm \
+ bash-3.0-17.${SUSE_ARCH}.rpm \
+ coreutils-5.3.0-20.${SUSE_ARCH}.rpm \
+ glibc-2.3.5-40.${SUSE_ARCH}.rpm \
+ libgcc-4.0.2_20050901-3.${SUSE_ARCH}.rpm \
+ libacl-2.2.31-3.${SUSE_ARCH}.rpm \
+ libattr-2.4.24-2.${SUSE_ARCH}.rpm \
+ libselinux-1.23.11-3.${SUSE_ARCH}.rpm \
+ libstdc++-4.0.2_20050901-3.${SUSE_ARCH}.rpm \
+ ncurses-5.4-71.${SUSE_ARCH}.rpm \
+ readline-5.0-9.${SUSE_ARCH}.rpm \
+ zlib-1.2.3-3.${SUSE_ARCH}.rpm
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/Makefile.x86_64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/Makefile.x86_64 Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile.x86_64,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+RPMFILES= aaa_base-10.0-28.${SUSE_ARCH}.rpm \
+ bash-3.0-17.${SUSE_ARCH}.rpm \
+ coreutils-5.3.0-20.${SUSE_ARCH}.rpm \
+ glibc-2.3.5-40.${SUSE_ARCH}.rpm \
+ libgcc-4.0.2_20050901-3.${SUSE_ARCH}.rpm \
+ libacl-2.2.31-3.${SUSE_ARCH}.rpm \
+ libattr-2.4.24-2.${SUSE_ARCH}.rpm \
+ libselinux-1.23.11-3.${SUSE_ARCH}.rpm \
+ libstdc++-4.0.2_20050901-3.${SUSE_ARCH}.rpm \
+ ncurses-5.4-71.${SUSE_ARCH}.rpm \
+ readline-5.0-9.${SUSE_ARCH}.rpm \
+ zlib-1.2.3-3.${SUSE_ARCH}.rpm
+
+LINUX_LIB= lib64
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/PLIST Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+sbin/linux-mkpwd
+@unexec ${RM} -f %D/${EMULSUBDIR}/etc/ld.so.cache
+${EMULSUBDIR}/etc/SuSE-release
+${EMULSUBDIR}/etc/mtab
+${EMULSUBDIR}/usr/${LINUX_LIB}/libz.so.1
+@exec ${MKDIR} %D/${EMULSUBDIR}/proc
+@dirrm ${EMULSUBDIR}/proc
+@unexec cd %D/${EMULSUBDIR}/etc && ${RM} -f group gshadow passwd shadow
+@exec ${MKDIR} %D/${EMULSUBDIR}/dev
+@exec cp -p /dev/MAKEDEV %D/${EMULSUBDIR}/dev
+@exec cd %D/${EMULSUBDIR}/dev && sh ./MAKEDEV std audio
+@exec cd %D/${EMULSUBDIR}/dev && ln -s sound dsp
+@unexec ${RM} -f %D/${EMULSUBDIR}/dev/*
+@dirrm ${EMULSUBDIR}/dev
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/distinfo.i386
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/distinfo.i386 Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,38 @@
+$NetBSD: distinfo.i386,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+SHA1 (suse100/i586/aaa_base-10.0-28.i586.rpm) = 5581a95f8026ea96d112945fae6011e251687043
+RMD160 (suse100/i586/aaa_base-10.0-28.i586.rpm) = d6b4fb4675c7ccfb8eabc7ab55b703926f31c82b
+Size (suse100/i586/aaa_base-10.0-28.i586.rpm) = 305412 bytes
+SHA1 (suse100/i586/bash-3.0-17.i586.rpm) = da1c7dadd994ec05517e244fa6d146efa532c280
+RMD160 (suse100/i586/bash-3.0-17.i586.rpm) = 13a8711d7dead670c937e78ba131ea4f208537f3
+Size (suse100/i586/bash-3.0-17.i586.rpm) = 723927 bytes
+SHA1 (suse100/i586/coreutils-5.3.0-20.i586.rpm) = b02b7efbbc2b667853bc28a083ce8ff2589f3906
+RMD160 (suse100/i586/coreutils-5.3.0-20.i586.rpm) = 1bd65aede5544a7b71ccf0830b2f06043b7096b1
+Size (suse100/i586/coreutils-5.3.0-20.i586.rpm) = 1838998 bytes
+SHA1 (suse100/i586/glibc-2.3.5-40.i586.rpm) = f640f4e2b1c8743b0c07368450ad25493a681cbe
+RMD160 (suse100/i586/glibc-2.3.5-40.i586.rpm) = e5ec89f76b3275790f9185af582f14e39ea58ede
+Size (suse100/i586/glibc-2.3.5-40.i586.rpm) = 2477929 bytes
+SHA1 (suse100/i586/libgcc-4.0.2_20050901-3.i586.rpm) = 89fade3a892f0a08e0a26c5ece036e964a15288d
+RMD160 (suse100/i586/libgcc-4.0.2_20050901-3.i586.rpm) = 7d95f23930e0e6fe23862d6aaf242f7a81c2ff4d
+Size (suse100/i586/libgcc-4.0.2_20050901-3.i586.rpm) = 33950 bytes
+SHA1 (suse100/i586/libacl-2.2.31-3.i586.rpm) = b627beb8726055ac4e3d84ce18aaa578f0122df2
+RMD160 (suse100/i586/libacl-2.2.31-3.i586.rpm) = e794971f62a43bbf453b3348f658241a5ab89e08
+Size (suse100/i586/libacl-2.2.31-3.i586.rpm) = 47601 bytes
+SHA1 (suse100/i586/libattr-2.4.24-2.i586.rpm) = f7b231d242de063d7773a9e2e66c2071fdadb9c8
+RMD160 (suse100/i586/libattr-2.4.24-2.i586.rpm) = 499a3350ea9f5213dc5e0fc1a5ab03d414a55fdd
+Size (suse100/i586/libattr-2.4.24-2.i586.rpm) = 12032 bytes
+SHA1 (suse100/i586/libselinux-1.23.11-3.i586.rpm) = ccededbee7740d2a50722329d1686ac6be88ec0d
+RMD160 (suse100/i586/libselinux-1.23.11-3.i586.rpm) = aafaccec07de8f4076e5a025215ed0f106dec11d
+Size (suse100/i586/libselinux-1.23.11-3.i586.rpm) = 53025 bytes
+SHA1 (suse100/i586/libstdc++-4.0.2_20050901-3.i586.rpm) = d8289887b7dd516f24969541eccb69968ce4caa0
+RMD160 (suse100/i586/libstdc++-4.0.2_20050901-3.i586.rpm) = 9e29faa5c0b2dce5847edb8a3f3f8314506ff2c4
+Size (suse100/i586/libstdc++-4.0.2_20050901-3.i586.rpm) = 296625 bytes
+SHA1 (suse100/i586/ncurses-5.4-71.i586.rpm) = f16eb374cbf81a84cb2075bc9b8621881116bdf4
+RMD160 (suse100/i586/ncurses-5.4-71.i586.rpm) = 7cbd438a5ddd7038debd44304b639c3e165b1798
+Size (suse100/i586/ncurses-5.4-71.i586.rpm) = 835298 bytes
+SHA1 (suse100/i586/readline-5.0-9.i586.rpm) = 3f5499f7c172cd839ff3d6d00ff405837944190d
+RMD160 (suse100/i586/readline-5.0-9.i586.rpm) = 652c5f826d5e53da1483153c21d94643b8f9f1df
+Size (suse100/i586/readline-5.0-9.i586.rpm) = 176245 bytes
+SHA1 (suse100/i586/zlib-1.2.3-3.i586.rpm) = 2c459f788462ce67cc2497518ce5c1992b29128a
+RMD160 (suse100/i586/zlib-1.2.3-3.i586.rpm) = cb6a14354425e7517435253e3e7b1f9a8ec6b16e
+Size (suse100/i586/zlib-1.2.3-3.i586.rpm) = 68589 bytes
diff -r eb62867be343 -r 5be20c8751da emulators/suse100_base/distinfo.powerpc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_base/distinfo.powerpc Thu Mar 09 20:33:46 2006 +0000
@@ -0,0 +1,38 @@
+$NetBSD: distinfo.powerpc,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $
+
+SHA1 (suse100/ppc/aaa_base-10.0-28.ppc.rpm) = 3a3409f69bf7e33087a72e0596fe0ab809b23ec6
+RMD160 (suse100/ppc/aaa_base-10.0-28.ppc.rpm) = 1e285d4cb74576dd86e6dc146f07f39fc490f54c
+Size (suse100/ppc/aaa_base-10.0-28.ppc.rpm) = 305698 bytes
+SHA1 (suse100/ppc/bash-3.0-17.ppc.rpm) = 8bd1b97f51812ad66e91e254267b943eddd8ccf1
+RMD160 (suse100/ppc/bash-3.0-17.ppc.rpm) = c72f9c7a750a0f4866c83deef0b3b12446f2d3ad
+Size (suse100/ppc/bash-3.0-17.ppc.rpm) = 762907 bytes
+SHA1 (suse100/ppc/coreutils-5.3.0-20.ppc.rpm) = 70949e038544459958c9af9b8e3c2143ee047d03
+RMD160 (suse100/ppc/coreutils-5.3.0-20.ppc.rpm) = 069a8693dbbbc62f11789ad67c3a1f402be36678
+Size (suse100/ppc/coreutils-5.3.0-20.ppc.rpm) = 2076132 bytes
+SHA1 (suse100/ppc/glibc-2.3.5-40.ppc.rpm) = 95d25c9eb893f764b7acb3ec3b536a94f5637c1d
+RMD160 (suse100/ppc/glibc-2.3.5-40.ppc.rpm) = 08dad873481db095160cdc6839145dab0bad5e47
+Size (suse100/ppc/glibc-2.3.5-40.ppc.rpm) = 2940751 bytes
+SHA1 (suse100/ppc/libgcc-4.0.2_20050901-3.ppc.rpm) = 374e5107029ca305c7aafaddd5d3fc5db8181e26
+RMD160 (suse100/ppc/libgcc-4.0.2_20050901-3.ppc.rpm) = 9c1f5488fe4eabe9900f73608a86cd8c4eb38060
+Size (suse100/ppc/libgcc-4.0.2_20050901-3.ppc.rpm) = 47140 bytes
Home |
Main Index |
Thread Index |
Old Index