diff options
author | tonio <tonio> | 2006-03-09 20:33:46 +0000 |
---|---|---|
committer | tonio <tonio> | 2006-03-09 20:33:46 +0000 |
commit | 867d80cf77999a29312c404bc9ca7ce2fcee0e52 (patch) | |
tree | 90b8cd402dc25e1d903a58a2a92c5679be7a08a1 /emulators | |
parent | 7742453e457c6a2fdabe72254b4b5d1f3f4c43e3 (diff) | |
download | pkgsrc-867d80cf77999a29312c404bc9ca7ce2fcee0e52.tar.gz |
Import openSUSE 10.0 base packages for Linux emulation
Add support for powerpc (but it does *not* work stable yet)
Diffstat (limited to 'emulators')
31 files changed, 558 insertions, 0 deletions
diff --git a/emulators/suse100_base/DESCR b/emulators/suse100_base/DESCR new file mode 100644 index 00000000000..62e5a3f87e9 --- /dev/null +++ b/emulators/suse100_base/DESCR @@ -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 --git a/emulators/suse100_base/INSTALL b/emulators/suse100_base/INSTALL new file mode 100644 index 00000000000..fbae38ccb8d --- /dev/null +++ b/emulators/suse100_base/INSTALL @@ -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 --git a/emulators/suse100_base/Makefile b/emulators/suse100_base/Makefile new file mode 100644 index 00000000000..cf9c3b25235 --- /dev/null +++ b/emulators/suse100_base/Makefile @@ -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 +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 --git a/emulators/suse100_base/Makefile.i386 b/emulators/suse100_base/Makefile.i386 new file mode 100644 index 00000000000..d6f5483b443 --- /dev/null +++ b/emulators/suse100_base/Makefile.i386 @@ -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 --git a/emulators/suse100_base/Makefile.powerpc b/emulators/suse100_base/Makefile.powerpc new file mode 100644 index 00000000000..adc7f01fa14 --- /dev/null +++ b/emulators/suse100_base/Makefile.powerpc @@ -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 --git a/emulators/suse100_base/Makefile.x86_64 b/emulators/suse100_base/Makefile.x86_64 new file mode 100644 index 00000000000..8b1a33af636 --- /dev/null +++ b/emulators/suse100_base/Makefile.x86_64 @@ -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 --git a/emulators/suse100_base/PLIST b/emulators/suse100_base/PLIST new file mode 100644 index 00000000000..232a2a70acb --- /dev/null +++ b/emulators/suse100_base/PLIST @@ -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 --git a/emulators/suse100_base/distinfo.i386 b/emulators/suse100_base/distinfo.i386 new file mode 100644 index 00000000000..4caf89135a0 --- /dev/null +++ b/emulators/suse100_base/distinfo.i386 @@ -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 --git a/emulators/suse100_base/distinfo.powerpc b/emulators/suse100_base/distinfo.powerpc new file mode 100644 index 00000000000..b84fa4535b5 --- /dev/null +++ b/emulators/suse100_base/distinfo.powerpc @@ -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 +SHA1 (suse100/ppc/libacl-2.2.31-3.ppc.rpm) = 7ef0ab8f409e3dde6d4926cb09f4fc50d6458cbd +RMD160 (suse100/ppc/libacl-2.2.31-3.ppc.rpm) = 52e9c96a76f79fef96f0a5d73c92793da7188e9b +Size (suse100/ppc/libacl-2.2.31-3.ppc.rpm) = 22610 bytes +SHA1 (suse100/ppc/libattr-2.4.24-2.ppc.rpm) = 4df934ae0eccc8f2acbb1151e4600cba4190a37e +RMD160 (suse100/ppc/libattr-2.4.24-2.ppc.rpm) = 9e3e7d40b27a310e367ca109fb3d16528f6dbc61 +Size (suse100/ppc/libattr-2.4.24-2.ppc.rpm) = 14503 bytes +SHA1 (suse100/ppc/libselinux-1.23.11-3.ppc.rpm) = d083391efe6e8ada440ddf5745f6b8dee3183410 +RMD160 (suse100/ppc/libselinux-1.23.11-3.ppc.rpm) = fe81f4ea5881bb3664ae2086333e710d4b10baf5 +Size (suse100/ppc/libselinux-1.23.11-3.ppc.rpm) = 74536 bytes +SHA1 (suse100/ppc/libstdc++-4.0.2_20050901-3.ppc.rpm) = 5f2e15b1fdb0550759191eae9f2834ecb72892ea +RMD160 (suse100/ppc/libstdc++-4.0.2_20050901-3.ppc.rpm) = de6487dc285531f9a9f794c5de5d1fb2644d1c5b +Size (suse100/ppc/libstdc++-4.0.2_20050901-3.ppc.rpm) = 339830 bytes +SHA1 (suse100/ppc/ncurses-5.4-71.ppc.rpm) = b3837e01c224e8dab67ce2d4b291fc4acd10047c +RMD160 (suse100/ppc/ncurses-5.4-71.ppc.rpm) = be4ae8ad89ec5fc817a9b23dbec3b06a10bbc970 +Size (suse100/ppc/ncurses-5.4-71.ppc.rpm) = 907518 bytes +SHA1 (suse100/ppc/readline-5.0-9.ppc.rpm) = f82a30b259aa0971c7c1621bd202f95af153b586 +RMD160 (suse100/ppc/readline-5.0-9.ppc.rpm) = 6274ad54aee3384a70f3590587ac432d49ffc61b +Size (suse100/ppc/readline-5.0-9.ppc.rpm) = 190420 bytes +SHA1 (suse100/ppc/zlib-1.2.3-3.ppc.rpm) = 732af9e98ab2f3fc7bb85b47bc3bee0de327eaa5 +RMD160 (suse100/ppc/zlib-1.2.3-3.ppc.rpm) = 953f30a35992480771d2d17d9f694a5b5c606f7f +Size (suse100/ppc/zlib-1.2.3-3.ppc.rpm) = 72735 bytes diff --git a/emulators/suse100_base/distinfo.x86_64 b/emulators/suse100_base/distinfo.x86_64 new file mode 100644 index 00000000000..4b0064713b7 --- /dev/null +++ b/emulators/suse100_base/distinfo.x86_64 @@ -0,0 +1,38 @@ +$NetBSD: distinfo.x86_64,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $ + +SHA1 (suse100/x86_64/aaa_base-10.0-28.x86_64.rpm) = 4f39b8fb16ed2dc2bd9d787863af83430b5ddb97 +RMD160 (suse100/x86_64/aaa_base-10.0-28.x86_64.rpm) = f81ba10742038775b3f2d526bbb9f5f15ad2c4bc +Size (suse100/x86_64/aaa_base-10.0-28.x86_64.rpm) = 305666 bytes +SHA1 (suse100/x86_64/bash-3.0-17.x86_64.rpm) = a66b8f27af5adbac37c25e099d8932835ea23414 +RMD160 (suse100/x86_64/bash-3.0-17.x86_64.rpm) = 7244e533f36965e09b29745e5a33ba5a4bfdd33b +Size (suse100/x86_64/bash-3.0-17.x86_64.rpm) = 752807 bytes +SHA1 (suse100/x86_64/coreutils-5.3.0-20.x86_64.rpm) = f9c8f688de7b1ecd621645bc4f4a05614e90694f +RMD160 (suse100/x86_64/coreutils-5.3.0-20.x86_64.rpm) = 783ac94109abe7f4a71a530377fafe6700c47eb2 +Size (suse100/x86_64/coreutils-5.3.0-20.x86_64.rpm) = 1871880 bytes +SHA1 (suse100/x86_64/glibc-2.3.5-40.x86_64.rpm) = a52b969a6307fd3d2d25204675687ff319aa05dd +RMD160 (suse100/x86_64/glibc-2.3.5-40.x86_64.rpm) = bb0ab8fb0d1d7e438d44ccb5df5873c359155919 +Size (suse100/x86_64/glibc-2.3.5-40.x86_64.rpm) = 2749726 bytes +SHA1 (suse100/x86_64/libgcc-4.0.2_20050901-3.x86_64.rpm) = 992bf59f5c55b2556bdfd31710a865b98e13fc7a +RMD160 (suse100/x86_64/libgcc-4.0.2_20050901-3.x86_64.rpm) = bb19c7c563b53c4517db70b9e774fb3999879012 +Size (suse100/x86_64/libgcc-4.0.2_20050901-3.x86_64.rpm) = 58420 bytes +SHA1 (suse100/x86_64/libacl-2.2.31-3.x86_64.rpm) = 947631b2941a29e47031d2e20c146658e587f936 +RMD160 (suse100/x86_64/libacl-2.2.31-3.x86_64.rpm) = 9d750cd7b93f784284e90597c9dcab0903016925 +Size (suse100/x86_64/libacl-2.2.31-3.x86_64.rpm) = 50431 bytes +SHA1 (suse100/x86_64/libattr-2.4.24-2.x86_64.rpm) = 9b9bd2b66cbe240d69568653758ac4dc154fd9e5 +RMD160 (suse100/x86_64/libattr-2.4.24-2.x86_64.rpm) = 352442957a9d67233d48593dba586d638a93dbf3 +Size (suse100/x86_64/libattr-2.4.24-2.x86_64.rpm) = 12937 bytes +SHA1 (suse100/x86_64/libselinux-1.23.11-3.x86_64.rpm) = 11dddb5e7b9b52389967e6e3ce3d2647e678ad60 +RMD160 (suse100/x86_64/libselinux-1.23.11-3.x86_64.rpm) = 1491b35edf961a2e9c5595655c4c97f8c1da89a7 +Size (suse100/x86_64/libselinux-1.23.11-3.x86_64.rpm) = 56840 bytes +SHA1 (suse100/x86_64/libstdc++-4.0.2_20050901-3.x86_64.rpm) = 86dab6c33b796337e664f36bcca652221b18d374 +RMD160 (suse100/x86_64/libstdc++-4.0.2_20050901-3.x86_64.rpm) = d0b1fb371abc37cac6a6e1c3e38c6c92db090c19 +Size (suse100/x86_64/libstdc++-4.0.2_20050901-3.x86_64.rpm) = 574902 bytes +SHA1 (suse100/x86_64/ncurses-5.4-71.x86_64.rpm) = 72357b8109c4679a7495b497fa50a5764e1b01ae +RMD160 (suse100/x86_64/ncurses-5.4-71.x86_64.rpm) = c213f61f5068d5c977be3649c6fe504e40bdbae9 +Size (suse100/x86_64/ncurses-5.4-71.x86_64.rpm) = 891746 bytes +SHA1 (suse100/x86_64/readline-5.0-9.x86_64.rpm) = dd474b0e0a976bc1b71edef721beffd97815c2da +RMD160 (suse100/x86_64/readline-5.0-9.x86_64.rpm) = a8071dfef66349617a552fbc512ea4019b7e4188 +Size (suse100/x86_64/readline-5.0-9.x86_64.rpm) = 188330 bytes +SHA1 (suse100/x86_64/zlib-1.2.3-3.x86_64.rpm) = 31ec71357faa048a9803d0be202cc4adc7639888 +RMD160 (suse100/x86_64/zlib-1.2.3-3.x86_64.rpm) = f2d6270b84a4b05f135544f4c01118f85898fd92 +Size (suse100/x86_64/zlib-1.2.3-3.x86_64.rpm) = 70998 bytes diff --git a/emulators/suse100_base/files/SuSE-release b/emulators/suse100_base/files/SuSE-release new file mode 100644 index 00000000000..247032986b2 --- /dev/null +++ b/emulators/suse100_base/files/SuSE-release @@ -0,0 +1,2 @@ +SuSE Linux @@VERSION@@ (@@ARCH@@) +VERSION = @@VERSION@@ diff --git a/emulators/suse100_base/files/linux-mkpwd.sh b/emulators/suse100_base/files/linux-mkpwd.sh new file mode 100644 index 00000000000..d751a771b8d --- /dev/null +++ b/emulators/suse100_base/files/linux-mkpwd.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: linux-mkpwd.sh,v 1.1.1.1 2006/03/09 20:34:10 tonio Exp $ + +SRCDIR=/etc +DESTDIR=@@EMULDIR@@/etc + +umask 22 +cd $DESTDIR +cp $SRCDIR/passwd . +sed s/^wheel:/root:/ <$SRCDIR/group >group + +umask 77 +awk -F: '{print($1":"$2":0:0:10000::::")}' <$SRCDIR/master.passwd >shadow +sed s/^wheel:/root:/ <$SRCDIR/group | +awk -F: '{print($1":*:root:root")}' >gshadow + +exit 0 diff --git a/emulators/suse100_compat/DESCR b/emulators/suse100_compat/DESCR new file mode 100644 index 00000000000..addf8028f9b --- /dev/null +++ b/emulators/suse100_compat/DESCR @@ -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 contains some old shared libraries required for backwards +compatibility. diff --git a/emulators/suse100_compat/Makefile b/emulators/suse100_compat/Makefile new file mode 100644 index 00000000000..6afdb7ea117 --- /dev/null +++ b/emulators/suse100_compat/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +DISTNAME= suse_compat-${SUSE_VERSION} +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SUSE100} +DISTFILES= ${RPMFILES} + +MAINTAINER= tonio@NetBSD.org +HOMEPAGE= http://www.suse.com/ +COMMENT= Linux compatibility package with old shared libraries + +DEPENDS+= suse_base>=${SUSE_VERSION}:../../emulators/suse91_base + +EXTRACT_ONLY= # empty +NO_BUILD= YES +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC + +.if exists(Makefile.${MACHINE_ARCH}) +.include "Makefile.${MACHINE_ARCH}" +DISTINFO_FILE= ${.CURDIR}/distinfo.${MACHINE_ARCH} +.endif + +.include "../../emulators/suse100_linux/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/suse100_compat/Makefile.i386 b/emulators/suse100_compat/Makefile.i386 new file mode 100644 index 00000000000..9f91efedf85 --- /dev/null +++ b/emulators/suse100_compat/Makefile.i386 @@ -0,0 +1,4 @@ +# $NetBSD: Makefile.i386,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +RPMFILES= compat-2004.11.13-4.${SUSE_ARCH}.rpm \ + compat-libstdc++-5.0.7-6.${SUSE_ARCH}.rpm diff --git a/emulators/suse100_compat/Makefile.powerpc b/emulators/suse100_compat/Makefile.powerpc new file mode 100644 index 00000000000..d31233a48a9 --- /dev/null +++ b/emulators/suse100_compat/Makefile.powerpc @@ -0,0 +1,4 @@ +# $NetBSD: Makefile.powerpc,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +RPMFILES= compat-2004.11.13-4.${SUSE_ARCH}.rpm \ + compat-libstdc++-5.0.7-6.${SUSE_ARCH}.rpm diff --git a/emulators/suse100_compat/Makefile.x86_64 b/emulators/suse100_compat/Makefile.x86_64 new file mode 100644 index 00000000000..8853bcae8ed --- /dev/null +++ b/emulators/suse100_compat/Makefile.x86_64 @@ -0,0 +1,4 @@ +# $NetBSD: Makefile.x86_64,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +RPMFILES= compat-2004.11.13-4.${SUSE_ARCH}.rpm \ + compat-libstdc++-5.0.7-6.${SUSE_ARCH}.rpm diff --git a/emulators/suse100_compat/distinfo.i386 b/emulators/suse100_compat/distinfo.i386 new file mode 100644 index 00000000000..6c5b86b19d5 --- /dev/null +++ b/emulators/suse100_compat/distinfo.i386 @@ -0,0 +1,8 @@ +$NetBSD: distinfo.i386,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +SHA1 (suse100/i586/compat-2004.11.13-4.i586.rpm) = 20a4574823be5b2a8a82a4b0988702baa1b618a5 +RMD160 (suse100/i586/compat-2004.11.13-4.i586.rpm) = 681d3a00970e232f7f37201dd1a8d842c3738043 +Size (suse100/i586/compat-2004.11.13-4.i586.rpm) = 1363979 bytes +SHA1 (suse100/i586/compat-libstdc++-5.0.7-6.i586.rpm) = 5bf42bac9c07f49d92861034eb06c05d31968116 +RMD160 (suse100/i586/compat-libstdc++-5.0.7-6.i586.rpm) = f4935251c3ef4aa67fd3d656248ab0185bc57636 +Size (suse100/i586/compat-libstdc++-5.0.7-6.i586.rpm) = 233040 bytes diff --git a/emulators/suse100_compat/distinfo.powerpc b/emulators/suse100_compat/distinfo.powerpc new file mode 100644 index 00000000000..43c133b61ca --- /dev/null +++ b/emulators/suse100_compat/distinfo.powerpc @@ -0,0 +1,8 @@ +$NetBSD: distinfo.powerpc,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +SHA1 (suse100/ppc/compat-2004.11.13-4.ppc.rpm) = d56387052cd865d0325e00dbba03f8086500a2cd +RMD160 (suse100/ppc/compat-2004.11.13-4.ppc.rpm) = 732dde7d78d1fb0a09f437aab47bda6cdeeda702 +Size (suse100/ppc/compat-2004.11.13-4.ppc.rpm) = 853476 bytes +SHA1 (suse100/ppc/compat-libstdc++-5.0.7-6.ppc.rpm) = 32d0566212edb261d12a396992ea82c08614fe11 +RMD160 (suse100/ppc/compat-libstdc++-5.0.7-6.ppc.rpm) = 43d526649a0d14861caf941321abbe1f7c6f39c5 +Size (suse100/ppc/compat-libstdc++-5.0.7-6.ppc.rpm) = 267312 bytes diff --git a/emulators/suse100_compat/distinfo.x86_64 b/emulators/suse100_compat/distinfo.x86_64 new file mode 100644 index 00000000000..ca6a213b302 --- /dev/null +++ b/emulators/suse100_compat/distinfo.x86_64 @@ -0,0 +1,8 @@ +$NetBSD: distinfo.x86_64,v 1.1.1.1 2006/03/09 20:34:38 tonio Exp $ + +SHA1 (suse100/x86_64/compat-2004.11.13-4.x86_64.rpm) = 5dcbd5f5c18630cce3be6770bf235ca6cd4ec248 +RMD160 (suse100/x86_64/compat-2004.11.13-4.x86_64.rpm) = cd4274f17e45a69909afe4e6315fa2d5a3d95c09 +Size (suse100/x86_64/compat-2004.11.13-4.x86_64.rpm) = 120440 bytes +SHA1 (suse100/x86_64/compat-libstdc++-5.0.7-6.x86_64.rpm) = 95ba61ed1d7c998c4f1177044a6047814a9671d8 +RMD160 (suse100/x86_64/compat-libstdc++-5.0.7-6.x86_64.rpm) = 98c43e40940efd442ff6c8a47cc47f711af69c1b +Size (suse100/x86_64/compat-libstdc++-5.0.7-6.x86_64.rpm) = 453853 bytes diff --git a/emulators/suse100_expat/DESCR b/emulators/suse100_expat/DESCR new file mode 100644 index 00000000000..9f2f36c8801 --- /dev/null +++ b/emulators/suse100_expat/DESCR @@ -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 require +expat shared libraries. diff --git a/emulators/suse100_expat/Makefile b/emulators/suse100_expat/Makefile new file mode 100644 index 00000000000..f7532545c3d --- /dev/null +++ b/emulators/suse100_expat/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +DISTNAME= suse_expat-${SUSE_VERSION} +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SUSE100} +DISTFILES= ${RPMFILES} + +MAINTAINER= tonio@NetBSD.org +HOMEPAGE= http://www.suse.com/ +COMMENT= Linux compatibility package for expat binaries + +DEPENDS+= suse_base>=${SUSE_VERSION}:../../emulators/suse100_base + +EXTRACT_ONLY= # empty +NO_BUILD= YES +LIBTOOLIZE_PLIST= NO +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC + +.if exists(Makefile.${MACHINE_ARCH}) +.include "Makefile.${MACHINE_ARCH}" +DISTINFO_FILE= ${.CURDIR}/distinfo.${MACHINE_ARCH} +.endif + +.include "../../emulators/suse100_linux/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/suse100_expat/Makefile.i386 b/emulators/suse100_expat/Makefile.i386 new file mode 100644 index 00000000000..ccb141d14e5 --- /dev/null +++ b/emulators/suse100_expat/Makefile.i386 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.i386,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +RPMFILES= expat-1.95.8-5.${SUSE_ARCH}.rpm diff --git a/emulators/suse100_expat/Makefile.powerpc b/emulators/suse100_expat/Makefile.powerpc new file mode 100644 index 00000000000..0038cf086b6 --- /dev/null +++ b/emulators/suse100_expat/Makefile.powerpc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.powerpc,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +RPMFILES= expat-1.95.8-5.${SUSE_ARCH}.rpm diff --git a/emulators/suse100_expat/Makefile.x86_64 b/emulators/suse100_expat/Makefile.x86_64 new file mode 100644 index 00000000000..e852bacc46e --- /dev/null +++ b/emulators/suse100_expat/Makefile.x86_64 @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.x86_64,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +RPMFILES= expat-1.95.8-5.${SUSE_ARCH}.rpm diff --git a/emulators/suse100_expat/distinfo.i386 b/emulators/suse100_expat/distinfo.i386 new file mode 100644 index 00000000000..6337520e385 --- /dev/null +++ b/emulators/suse100_expat/distinfo.i386 @@ -0,0 +1,5 @@ +$NetBSD: distinfo.i386,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +SHA1 (suse100/i586/expat-1.95.8-5.i586.rpm) = 530fed5152b62a434ad7fd188286894330e35171 +RMD160 (suse100/i586/expat-1.95.8-5.i586.rpm) = f0176be8227ad9e7ca3a7c881aa254510611e370 +Size (suse100/i586/expat-1.95.8-5.i586.rpm) = 174716 bytes diff --git a/emulators/suse100_expat/distinfo.powerpc b/emulators/suse100_expat/distinfo.powerpc new file mode 100644 index 00000000000..1351c89f34b --- /dev/null +++ b/emulators/suse100_expat/distinfo.powerpc @@ -0,0 +1,5 @@ +$NetBSD: distinfo.powerpc,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +SHA1 (suse100/ppc/expat-1.95.8-5.ppc.rpm) = f67841b0ae35d4bca589f502533911e19e1c4bc5 +RMD160 (suse100/ppc/expat-1.95.8-5.ppc.rpm) = 8542f175d1d65a0db1baa0fcc387c463e62711b4 +Size (suse100/ppc/expat-1.95.8-5.ppc.rpm) = 194025 bytes diff --git a/emulators/suse100_expat/distinfo.x86_64 b/emulators/suse100_expat/distinfo.x86_64 new file mode 100644 index 00000000000..d980efbb871 --- /dev/null +++ b/emulators/suse100_expat/distinfo.x86_64 @@ -0,0 +1,5 @@ +$NetBSD: distinfo.x86_64,v 1.1.1.1 2006/03/09 20:35:09 tonio Exp $ + +SHA1 (suse100/x86_64/expat-1.95.8-5.x86_64.rpm) = 00d012cecfc4cd51aa11f98b19444d3fc3330b14 +RMD160 (suse100/x86_64/expat-1.95.8-5.x86_64.rpm) = 5c2112713535d1fce2ac6f69908662310055f8ec +Size (suse100/x86_64/expat-1.95.8-5.x86_64.rpm) = 168529 bytes diff --git a/emulators/suse100_linux/Makefile.common b/emulators/suse100_linux/Makefile.common new file mode 100644 index 00000000000..6b9cbcc67b4 --- /dev/null +++ b/emulators/suse100_linux/Makefile.common @@ -0,0 +1,68 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2006/03/09 20:33:46 tonio Exp $ + +.include "../../emulators/suse100_linux/vars.mk" +.include "../../emulators/suse100_linux/arch.mk" + +ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-i386 NetBSD-3.99*-x86_64 \ + NetBSD-[2-9]*-powerpc \ + NetBSD-[4-9]*-x86_64 FreeBSD-*-i386 \ + DragonFly-*-i386 + +_SUSE_FTP_SUBDIR= distribution/SL-${SUSE_VERSION}-OSS/inst-source/suse/${SUSE_ARCH}/ + +MASTER_SITE_SUSE100?= ftp://suse.inode.at/opensuse/${_SUSE_FTP_SUBDIR} + +DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}/${SUSE_ARCH} + +WRKSRC?= ${WRKDIR} +MANCOMPRESSED?= yes + +EMULSUBDIR= emul/linux +EMULDIR= ${PREFIX}/${EMULSUBDIR} + +RPM2PKG= ${PREFIX}/sbin/rpm2pkg +BUILD_DEPENDS+= rpm2pkg>=2.1:../../pkgtools/rpm2pkg + +BUILD_DEFS+= RPMFILES +.if defined(RPMIGNOREPATH) +BUILD_DEFS+= RPMIGNOREPATH +.endif + +# The SuSE Linux packages have circular dependencies. +LDD?= ${TRUE} + +RPM2PKGSTRIP?= 1 +RPM2PKGARGS?= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR} +.if empty(RPM2PKGSTRIP:M0) +RPM2PKGARGS+= -s ${RPM2PKGSTRIP} +.endif +.for TEMP in ${RPMIGNOREPATH} +RPM2PKGARGS+= -i ${TEMP} +.endfor +.for TEMP in ${RPMFILES} +RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP} +.endfor + +.if !target(do-install) +do-install: + @if [ -f ${PKGDIR}/PLIST ]; then \ + ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \ + else \ + ${RM} -f ${PLIST_SRC}; \ + ${CP} ${PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${PLIST_SRC} ; \ + fi + ${RPM2PKG} ${RPM2PKGARGS} + @if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \ + ${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \ + ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}; \ + ${MV} -f ${PLIST_SRC} ${PLIST_SRC}.old; \ + ${GREP} -v '^@dirrm' ${PLIST_SRC}.old >${PLIST_SRC} || ${TRUE}; \ + ${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >>${PLIST_SRC}; \ + ${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \ + ${GREP} '^@dirrm' ${PLIST_SRC}.old >>${PLIST_SRC} || ${TRUE}; \ + ${RM} -f ${PLIST_SRC}.old; \ + fi +.endif + +show-shlib-type: + @${ECHO} linux-${MACHINE_ARCH} diff --git a/emulators/suse100_linux/arch.mk b/emulators/suse100_linux/arch.mk new file mode 100644 index 00000000000..a81df844cef --- /dev/null +++ b/emulators/suse100_linux/arch.mk @@ -0,0 +1,19 @@ +# $NetBSD: arch.mk,v 1.1.1.1 2006/03/09 20:33:46 tonio Exp $ + +.ifndef SUSE_ARCH_MK +SUSE_ARCH_MK=1 + +.include "../../mk/bsd.prefs.mk" + +.if ${MACHINE_ARCH} == "i386" +SUSE_ARCH?= i586 +SUSE_ARCH_DIR?= ${MACHINE_ARCH} +.elif ${MACHINE_ARCH} == "powerpc" +SUSE_ARCH?= ppc +.else +SUSE_ARCH?= ${MACHINE_ARCH} +.endif + +SUSE_ARCH_DIR?= ${SUSE_ARCH} + +.endif # SUSE_ARCH_MK diff --git a/emulators/suse100_linux/vars.mk b/emulators/suse100_linux/vars.mk new file mode 100644 index 00000000000..7f78258bdaf --- /dev/null +++ b/emulators/suse100_linux/vars.mk @@ -0,0 +1,9 @@ +# $NetBSD: vars.mk,v 1.1.1.1 2006/03/09 20:33:46 tonio Exp $ + +.ifndef SUSE_VARS_MK +SUSE_VARS_MK=1 + +SUSE_DIR_PREFIX= suse100 +SUSE_VERSION= 10.0 + +.endif # SUSE_VARS_MK |