diff options
author | tron <tron> | 2004-07-13 10:31:13 +0000 |
---|---|---|
committer | tron <tron> | 2004-07-13 10:31:13 +0000 |
commit | 24038e8bc7cbb4b00fc3e3bfc31887b9fee8f27d (patch) | |
tree | a07280160cb5bb4f61b1ce60c59bc71f50cd38eb /emulators/suse91_base | |
parent | c78be71a62accb242522ddf125c8771fc2dbb2fd (diff) | |
download | pkgsrc-24038e8bc7cbb4b00fc3e3bfc31887b9fee8f27d.tar.gz |
Initial import of SuSE Linux 9.1 based packages for Linux emulation.
Warning:
NetBSD's Linux emulation does *not* work stable with these packages.
Diffstat (limited to 'emulators/suse91_base')
-rw-r--r-- | emulators/suse91_base/DESCR | 5 | ||||
-rw-r--r-- | emulators/suse91_base/INSTALL | 68 | ||||
-rw-r--r-- | emulators/suse91_base/Makefile | 69 | ||||
-rw-r--r-- | emulators/suse91_base/PLIST | 14 | ||||
-rw-r--r-- | emulators/suse91_base/distinfo | 18 | ||||
-rw-r--r-- | emulators/suse91_base/files/SuSE-release | 2 | ||||
-rw-r--r-- | emulators/suse91_base/files/linux-mkpwd.sh | 18 |
7 files changed, 194 insertions, 0 deletions
diff --git a/emulators/suse91_base/DESCR b/emulators/suse91_base/DESCR new file mode 100644 index 00000000000..62e5a3f87e9 --- /dev/null +++ b/emulators/suse91_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/suse91_base/INSTALL b/emulators/suse91_base/INSTALL new file mode 100644 index 00000000000..c1e09085303 --- /dev/null +++ b/emulators/suse91_base/INSTALL @@ -0,0 +1,68 @@ +#!/bin/sh +# $NetBSD: INSTALL,v 1.1.1.1 2004/07/13 10:31:13 tron 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/suse91_base/Makefile b/emulators/suse91_base/Makefile new file mode 100644 index 00000000000..c3ca17f558d --- /dev/null +++ b/emulators/suse91_base/Makefile @@ -0,0 +1,69 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $ + +DISTNAME= suse_base-${SUSE_VERSION} +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SUSE91} +DISTFILES= ${RPMFILES} + +MAINTAINER= tron@NetBSD.org +HOMEPAGE= http://www.suse.com/ +COMMENT= Linux compatibility package + +CONFLICTS= linux_SuSE-5.3 linux_lib-2.4 linuxppc_lib-[0-9]* +ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-i386 FreeBSD-*-i386 + +NO_BUILDLINK= YES +EXTRACT_ONLY= # empty +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC + +RPMFILES= aaa_base-9.1-0.${SUSE_ARCH}.rpm \ + bash-2.05b-305.${SUSE_ARCH}.rpm \ + coreutils-5.2.1-23.${SUSE_ARCH}.rpm \ + glibc-2.3.3-98.${SUSE_ARCH}.rpm \ + libstdc++-3.3.3-41.${SUSE_ARCH}.rpm \ + ncurses-5.4-59.${SUSE_ARCH}.rpm \ + readline-4.3-306.${SUSE_ARCH}.rpm \ + zlib-1.2.1-70.${SUSE_ARCH}.rpm +RPMIGNOREPATH= tmp usr/tmp var + +LINUX_LDD= ${PREFIX}/${EMULSUBDIR}/usr/bin/ldd + +.include "../../mk/bsd.prefs.mk" + +do-build: + @for FILE in ${PKGDIR}/PLIST ${FILESDIR}/*.sh; do \ + ${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \ + -e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \ + <$$FILE >${WRKDIR}/`basename $$FILE`; \ + done + ${SED} -e 's#@@VERSION@@#${SUSE_VERSION}#g' \ + -e 's#@@ARCH@@#${SUSE_ARCH}#g' \ + <${FILESDIR}/SuSE-release >${WRKDIR}/SuSE-release + +do-install: + for FILE in ${WRKDIR}/*.sh; do \ + ${INSTALL_SCRIPT} $$FILE ${PREFIX}/sbin/`basename $$FILE .sh`; \ + done + ${INSTALL_DATA_DIR} ${EMULDIR}/dev + ${LN} -fs /dev/sound ${EMULDIR}/dev/dsp + ${LN} -fs /dev/null ${EMULDIR}/dev/null + ${LN} -fs /dev/tty ${EMULDIR}/dev/tty + @${CP} ${WRKDIR}/PLIST ${PLIST_SRC} + ${RPM2PKG} ${RPM2PKGARGS} + ${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC} + ${INSTALL_DATA} ${WRKDIR}/SuSE-release ${EMULDIR}/etc +.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} + ${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/suse91_linux/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/suse91_base/PLIST b/emulators/suse91_base/PLIST new file mode 100644 index 00000000000..10568afa11e --- /dev/null +++ b/emulators/suse91_base/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $ +sbin/linux-mkpwd +@unexec ${RM} -f %D/@@EMULSUBDIR@@/etc/ld.so.cache +@@EMULSUBDIR@@/etc/SuSE-release +@@EMULSUBDIR@@/usr/lib/libz.so.1 +@unexec cd %D/@@EMULSUBDIR@@/etc && ${RM} -f group gshadow passwd shadow +@exec ${MKDIR} %D/@@EMULSUBDIR@@/dev +@exec ln -s /dev/sound %D/@@EMULSUBDIR@@/dev/dsp +@unexec ${RM} -f %D/@@EMULSUBDIR@@/dev/dsp +@exec ln -s /dev/null %D/@@EMULSUBDIR@@/dev/null +@unexec ${RM} -f %D/@@EMULSUBDIR@@/dev/null +@exec ln -s /dev/tty %D/@@EMULSUBDIR@@/dev/tty +@unexec ${RM} -f %D/@@EMULSUBDIR@@/dev/tty +@dirrm @@EMULSUBDIR@@/dev diff --git a/emulators/suse91_base/distinfo b/emulators/suse91_base/distinfo new file mode 100644 index 00000000000..f587ce965ed --- /dev/null +++ b/emulators/suse91_base/distinfo @@ -0,0 +1,18 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $ + +SHA1 (suse91/i586/aaa_base-9.1-0.i586.rpm) = c15fcdc81a93c7d3056292d56b1376a0fdf20554 +Size (suse91/i586/aaa_base-9.1-0.i586.rpm) = 289379 bytes +SHA1 (suse91/i586/bash-2.05b-305.i586.rpm) = 51c41a86a19628af1e43c4b65ece8aa159bc9da7 +Size (suse91/i586/bash-2.05b-305.i586.rpm) = 636675 bytes +SHA1 (suse91/i586/coreutils-5.2.1-23.i586.rpm) = 801f63e5e347b19323d01e6a4460aaea60ddc14f +Size (suse91/i586/coreutils-5.2.1-23.i586.rpm) = 1982252 bytes +SHA1 (suse91/i586/glibc-2.3.3-98.i586.rpm) = bd12daad569a071dd8989d92b5e278aa168b0ab3 +Size (suse91/i586/glibc-2.3.3-98.i586.rpm) = 1455673 bytes +SHA1 (suse91/i586/libstdc++-3.3.3-41.i586.rpm) = 77341589e297e66fc793961d96a7b24df5893101 +Size (suse91/i586/libstdc++-3.3.3-41.i586.rpm) = 301785 bytes +SHA1 (suse91/i586/ncurses-5.4-59.i586.rpm) = 83fc26e2c55e75f347530ad19b01d23883a60738 +Size (suse91/i586/ncurses-5.4-59.i586.rpm) = 790419 bytes +SHA1 (suse91/i586/readline-4.3-306.i586.rpm) = 500c6665e66d0052a5d922d7db3f88f029c91853 +Size (suse91/i586/readline-4.3-306.i586.rpm) = 151357 bytes +SHA1 (suse91/i586/zlib-1.2.1-70.i586.rpm) = 7592cc5629f8c3c480bb943089c0e09481ac3f46 +Size (suse91/i586/zlib-1.2.1-70.i586.rpm) = 63453 bytes diff --git a/emulators/suse91_base/files/SuSE-release b/emulators/suse91_base/files/SuSE-release new file mode 100644 index 00000000000..247032986b2 --- /dev/null +++ b/emulators/suse91_base/files/SuSE-release @@ -0,0 +1,2 @@ +SuSE Linux @@VERSION@@ (@@ARCH@@) +VERSION = @@VERSION@@ diff --git a/emulators/suse91_base/files/linux-mkpwd.sh b/emulators/suse91_base/files/linux-mkpwd.sh new file mode 100644 index 00000000000..1fd4c3626bf --- /dev/null +++ b/emulators/suse91_base/files/linux-mkpwd.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: linux-mkpwd.sh,v 1.1.1.1 2004/07/13 10:31:14 tron 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 |