diff options
author | tron <tron@pkgsrc.org> | 2002-04-04 10:07:57 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2002-04-04 10:07:57 +0000 |
commit | 712250c5f5f1c4d745758a61cf9843a25e095932 (patch) | |
tree | f3b200485bc782fc02213e4de4e34480fd7a5585 /emulators/suse64_base | |
parent | 0118d264e9325b2304bd2167762d5c046d73bc13 (diff) | |
download | pkgsrc-712250c5f5f1c4d745758a61cf9843a25e095932.tar.gz |
Import SuSE 6.4 packages as "suse64_*" to support the Linux emulation on
NetBSD 1.5 and 1.5.x systems.
Diffstat (limited to 'emulators/suse64_base')
-rw-r--r-- | emulators/suse64_base/DESCR | 5 | ||||
-rw-r--r-- | emulators/suse64_base/INSTALL | 34 | ||||
-rw-r--r-- | emulators/suse64_base/Makefile | 55 | ||||
-rw-r--r-- | emulators/suse64_base/PLIST | 11 | ||||
-rw-r--r-- | emulators/suse64_base/distinfo | 16 | ||||
-rw-r--r-- | emulators/suse64_base/files/ld.so.conf | 13 | ||||
-rw-r--r-- | emulators/suse64_base/files/linux-mkpwd.sh | 18 |
7 files changed, 152 insertions, 0 deletions
diff --git a/emulators/suse64_base/DESCR b/emulators/suse64_base/DESCR new file mode 100644 index 00000000000..62e5a3f87e9 --- /dev/null +++ b/emulators/suse64_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/suse64_base/INSTALL b/emulators/suse64_base/INSTALL new file mode 100644 index 00000000000..513d3d1d171 --- /dev/null +++ b/emulators/suse64_base/INSTALL @@ -0,0 +1,34 @@ +#!/bin/sh +# $NetBSD: INSTALL,v 1.1.1.1 2002/04/04 10:07:57 tron Exp $ + +emul=linux +if [ "$2" != "POST-INSTALL" ]; then exit 0; fi + +cat <<EOF +============================================================================== + +Do not forget to include COMPAT_LINUX and EXEC_ELF32 in your kernel +configuration file. (Linux binaries require these options in order to +work.) +EOF + +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 + +cat <<EOF + +============================================================================== +EOF diff --git a/emulators/suse64_base/Makefile b/emulators/suse64_base/Makefile new file mode 100644 index 00000000000..f5957fa11b2 --- /dev/null +++ b/emulators/suse64_base/Makefile @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/04/04 10:07:57 tron Exp $ + +DISTNAME= suse_base-${SUSE_VERSION} +PKGREVISION= 5 +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_SUSE:=a1/} \ + ftp://ftp.suse.com/pub/suse/i386/update/${SUSE_VERSION}/a1/ +DISTFILES= ${RPMFILES} + +MAINTAINER= tron@netbsd.org +HOMEPAGE= http://www.suse.com/ +COMMENT= Linux compatibility package + +CONFLICTS= linux_SuSE-5.3 linux_lib-2.4 +ONLY_FOR_PLATFORM= NetBSD-*-i386 + +EXTRACT_ONLY= # empty +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC + +RPMFILES= aaa_dir.rpm shlibs-2.1.3-204.i386.rpm \ + libz-1.1.3-575.i386.rpm \ + bash.rpm gppshare.rpm ncurses.rpm sh_utils.rpm +RPMIGNOREPATH= tmp usr/tmp var + +LINUX_LDD= ${PREFIX}/${EMULSUBDIR}/usr/bin/ldd + +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 + +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 + @${CP} ${WRKDIR}/PLIST ${PLIST_SRC} + ${RPM2PKG} ${RPM2PKGARGS} + ${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC} + ${INSTALL_DATA} ${FILESDIR}/ld.so.conf ${EMULDIR}/etc + ${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 "../suse64_linux/Makefile.common" diff --git a/emulators/suse64_base/PLIST b/emulators/suse64_base/PLIST new file mode 100644 index 00000000000..b173dc7b0b3 --- /dev/null +++ b/emulators/suse64_base/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/04 10:07:57 tron Exp $ +sbin/linux-mkpwd +@unexec ${RM} -f %D/@@EMULSUBDIR@@/etc/ld.so.cache +@@EMULSUBDIR@@/etc/ld.so.conf +@unexec cd %D/@@EMULSUBDIR@@/etc && ${RM} -f group gshadow passwd shadow +@exec ${MKDIR} -p %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 +@dirrm @@EMULSUBDIR@@/dev diff --git a/emulators/suse64_base/distinfo b/emulators/suse64_base/distinfo new file mode 100644 index 00000000000..4b153e08cf2 --- /dev/null +++ b/emulators/suse64_base/distinfo @@ -0,0 +1,16 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/04/04 10:07:58 tron Exp $ + +SHA1 (suse64/aaa_dir.rpm) = 3a4af536ea05f76310d6194b8fd9968779efc00e +Size (suse64/aaa_dir.rpm) = 19509 bytes +SHA1 (suse64/shlibs-2.1.3-204.i386.rpm) = 448bc2fd055603acfebe7b21a2aa27f09331b75d +Size (suse64/shlibs-2.1.3-204.i386.rpm) = 6616459 bytes +SHA1 (suse64/libz-1.1.3-575.i386.rpm) = 9e80841f564a4318a610c3006378d051f602a577 +Size (suse64/libz-1.1.3-575.i386.rpm) = 90659 bytes +SHA1 (suse64/bash.rpm) = 3c2b9bf7169cde8e9c2b9a930097b0abfc98e134 +Size (suse64/bash.rpm) = 763674 bytes +SHA1 (suse64/gppshare.rpm) = 33a2db525712b6e3115cc2ac34c5ab847f162117 +Size (suse64/gppshare.rpm) = 1431064 bytes +SHA1 (suse64/ncurses.rpm) = 837d7570c17a44233d5b04ebfbff54f8700291ff +Size (suse64/ncurses.rpm) = 2042603 bytes +SHA1 (suse64/sh_utils.rpm) = 27a0aacae80faf03f43b177f3c67b040b9e7f1fd +Size (suse64/sh_utils.rpm) = 418599 bytes diff --git a/emulators/suse64_base/files/ld.so.conf b/emulators/suse64_base/files/ld.so.conf new file mode 100644 index 00000000000..d1b22a388fb --- /dev/null +++ b/emulators/suse64_base/files/ld.so.conf @@ -0,0 +1,13 @@ +/lib-aout +/usr/X11R6/lib/Xaw95 +/usr/X11R6/lib/Xaw3d +/usr/X11R6/lib +/usr/X386/lib +/usr/i486-linux/lib +/usr/i486-linux-libc5/lib +/usr/i486-linux-libc6/lib +/usr/i486-linuxaout/lib +/usr/local/lib +/usr/openwin/lib +/opt/kde/lib +/opt/gnome/lib diff --git a/emulators/suse64_base/files/linux-mkpwd.sh b/emulators/suse64_base/files/linux-mkpwd.sh new file mode 100644 index 00000000000..49678703953 --- /dev/null +++ b/emulators/suse64_base/files/linux-mkpwd.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $NetBSD: linux-mkpwd.sh,v 1.1.1.1 2002/04/04 10:07:58 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 |