pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators Initial import of SuSE Linux 9.1 based packa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f2f54f68381f
branches: trunk
changeset: 477946:f2f54f68381f
user: tron <tron%pkgsrc.org@localhost>
date: Tue Jul 13 10:31:13 2004 +0000
description:
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:
emulators/suse91_base/DESCR | 5 ++
emulators/suse91_base/INSTALL | 68 +++++++++++++++++++++++++++++
emulators/suse91_base/Makefile | 69 ++++++++++++++++++++++++++++++
emulators/suse91_base/PLIST | 14 ++++++
emulators/suse91_base/distinfo | 18 +++++++
emulators/suse91_base/files/SuSE-release | 2 +
emulators/suse91_base/files/linux-mkpwd.sh | 18 +++++++
emulators/suse91_compat/DESCR | 5 ++
emulators/suse91_compat/Makefile | 25 ++++++++++
emulators/suse91_compat/distinfo | 4 +
emulators/suse91_gtk/DESCR | 5 ++
emulators/suse91_gtk/Makefile | 25 ++++++++++
emulators/suse91_gtk/distinfo | 6 ++
emulators/suse91_linux/Makefile.common | 62 ++++++++++++++++++++++++++
emulators/suse91_linux/arch.mk | 19 ++++++++
emulators/suse91_x11/DESCR | 5 ++
emulators/suse91_x11/Makefile | 26 +++++++++++
emulators/suse91_x11/distinfo | 4 +
18 files changed, 380 insertions(+), 0 deletions(-)
diffs (truncated from 452 to 300 lines):
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_base/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/DESCR Tue Jul 13 10:31:13 2004 +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 b68267bc6d64 -r f2f54f68381f emulators/suse91_base/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/INSTALL Tue Jul 13 10:31:13 2004 +0000
@@ -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 -r b68267bc6d64 -r f2f54f68381f emulators/suse91_base/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/Makefile Tue Jul 13 10:31:13 2004 +0000
@@ -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@localhost
+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 -r b68267bc6d64 -r f2f54f68381f emulators/suse91_base/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/PLIST Tue Jul 13 10:31:13 2004 +0000
@@ -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 -r b68267bc6d64 -r f2f54f68381f emulators/suse91_base/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/distinfo Tue Jul 13 10:31:13 2004 +0000
@@ -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 -r b68267bc6d64 -r f2f54f68381f emulators/suse91_base/files/SuSE-release
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/files/SuSE-release Tue Jul 13 10:31:13 2004 +0000
@@ -0,0 +1,2 @@
+SuSE Linux @@VERSION@@ (@@ARCH@@)
+VERSION = @@VERSION@@
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_base/files/linux-mkpwd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_base/files/linux-mkpwd.sh Tue Jul 13 10:31:13 2004 +0000
@@ -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
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_compat/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_compat/DESCR Tue Jul 13 10:31:13 2004 +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 contains some old shared libraries required for backwards
+compatibility.
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_compat/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_compat/Makefile Tue Jul 13 10:31:13 2004 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $
+
+DISTNAME= compat-2004.4.2-3.${SUSE_ARCH}
+PKGNAME= suse_compat-${SUSE_VERSION}
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SUSE}
+EXTRACT_SUFX= .rpm
+
+MAINTAINER= tron%NetBSD.org@localhost
+HOMEPAGE= http://www.suse.com/
+COMMENT= Linux compatibility package with old shared libraries
+
+DEPENDS+= suse_base>=${SUSE_VERSION}:../../emulators/suse91_base
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386 FreeBSD-*-i386
+
+EXTRACT_ONLY= # empty
+NO_BUILD= YES
+NO_BUILDLINK= YES
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+
+RPMFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+.include "../../emulators/suse91_linux/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_compat/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_compat/distinfo Tue Jul 13 10:31:13 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $
+
+SHA1 (suse91/i586/compat-2004.4.2-3.i586.rpm) = 837f2272da26f8efe242e33724370d45cc2c5a74
+Size (suse91/i586/compat-2004.4.2-3.i586.rpm) = 1806417 bytes
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_gtk/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_gtk/DESCR Tue Jul 13 10:31:13 2004 +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 require
+GTK shared libraries.
diff -r b68267bc6d64 -r f2f54f68381f emulators/suse91_gtk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse91_gtk/Makefile Tue Jul 13 10:31:13 2004 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $
+
+DISTNAME= suse_gtk-${SUSE_VERSION}
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SUSE91}
+DISTFILES= ${RPMFILES}
+
+MAINTAINER= tron%NetBSD.org@localhost
+HOMEPAGE= http://www.suse.com/
+COMMENT= Linux compatibility package for GTK binaries
+
+DEPENDS+= suse_x11>=${SUSE_VERSION}:../../emulators/suse91_x11
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386 FreeBSD-*-i386
+
+EXTRACT_ONLY= # empty
+NO_BUILD= YES
+NO_BUILDLINK= YES
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
Home |
Main Index |
Thread Index |
Old Index