diff options
-rw-r--r-- | emulators/linux_SuSE/Makefile | 82 | ||||
-rw-r--r-- | emulators/linux_SuSE/files/md5 | 9 | ||||
-rw-r--r-- | emulators/linux_SuSE/pkg/COMMENT | 1 | ||||
-rw-r--r-- | emulators/linux_SuSE/pkg/DESCR | 7 | ||||
-rw-r--r-- | emulators/linux_SuSE/pkg/INSTALL | 30 | ||||
-rw-r--r-- | emulators/linux_SuSE/pkg/PLIST | 188 | ||||
-rw-r--r-- | emulators/linux_SuSE/scripts/linux-mkpwd.sh | 18 | ||||
-rw-r--r-- | emulators/linux_SuSE/scripts/linux-rpm.sh | 25 |
8 files changed, 360 insertions, 0 deletions
diff --git a/emulators/linux_SuSE/Makefile b/emulators/linux_SuSE/Makefile new file mode 100644 index 00000000000..7bbecf02372 --- /dev/null +++ b/emulators/linux_SuSE/Makefile @@ -0,0 +1,82 @@ +# $NetBSD: Makefile,v 1.1.1.1 1998/10/31 00:18:47 tron Exp $ + +DISTNAME= SuSE-5.3 +PKGNAME= linux_SuSE-5.3 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.suse.com/pub/SuSE-Linux/5.3/suse/a1/ \ + ftp://ftp.cc.gatech.edu/pub/linux/distributions/suse/5.3/suse/a1/ \ + ftp://ftp.suse.com/pub/SuSE-Linux/5.3/suse/x1/ \ + ftp://ftp.cc.gatech.edu/pub/linux/distributions/suse/5.3/suse/a1/ +DISTFILES= ${BASE_RPM} ${EXTRA_RPM} +ONLY_FOR_ARCHS= i386 + +MAINTAINER= tron@netbsd.org +HOMEPAGE= http://www.suse.com/ + +DEPENDS+= rpm-2.5.1:../../misc/rpm + +CONFLICTS= linux_lib-2.4 + +DIST_SUBDIR= SuSE +MIRROR_DISTFILE= no + +EXTRACT_ONLY= # empty +NO_PATCH= yes +NO_CONFIGURE= yes +NO_WRKSUBDIR= yes +MANCOMPRESSED= yes +INSTALL_FILE= ${WRKDIR}/INSTALL +PLIST_SRC= ${WRKDIR}/PLIST + +BASE_RPM= aaa_dir.rpm shlibs.rpm ldso.rpm +EXTRA_RPM= gppshare.rpm shlibs6.rpm xshared.rpm xpm.rpm + +BINDIR= ${PREFIX}/sbin +EMULDIR= ${PREFIX}/emul/linux +LDSOCONFDIRS= /usr/X11R6/lib /usr/i486-linux-libc6/lib + +do-build: + @for FILE in ${PKGDIR}/INSTALL ${SCRIPTDIR}/*.sh; do \ + ${SED} -e 's#@@EMULDIR@@#${EMULDIR}#g' \ + <$$FILE >${WRKSRC}/`basename $$FILE`; \ + done + @${TOUCH} ${WRKSRC}/ld.so.conf +.for DIR in ${LDSOCONFDIRS} + @echo ${DIR} >>${WRKSRC}/ld.so.conf +.endfor + +do-install: + @cd ${WRKSRC}; \ + for FILE in *.sh; do \ + ${INSTALL_SCRIPT} $$FILE ${BINDIR}/`basename $$FILE .sh`; \ + done + @${MKDIR} ${EMULDIR}/dev ${EMULDIR}/var/pkg/lib/rpm + ${BINDIR}/linux-rpm -i ${DISTDIR}/${DIST_SUBDIR}/aaa_dir.rpm \ + 2>/dev/null + @${RM} -rf ${EMULDIR}/tmp ${EMULDIR}/usr/tmp \ + ${EMULDIR}/var/log ${EMULDIR}/var/run ${EMULDIR}/var/tmp + @find ${EMULDIR} -type d | tee ${WRKDIR}/DIRS | \ + ${AWK} '{print($$1"/.keep_me")}' | xargs ${TOUCH} + @find ${EMULDIR} -type f -name .keep_me | sort | \ + ${SED} -e 's#${PREFIX}/##' >${PLIST_SRC} + @${CAT} ${PKGDIR}/PLIST >>${PLIST_SRC} + @find ${EMULDIR} -type l | xargs ${RM} + @sort -r <${WRKDIR}/DIRS | \ + ${SED} -e 's#${PREFIX}/#@dirrm #' >>${PLIST_SRC} + @${LN} -fs /dev/sound ${EMULDIR}/dev/dsp + @mknod ${EMULDIR}/dev/null c 2 2 + @${CHMOD} 666 ${EMULDIR}/dev/null + @${BINDIR}/linux-mkpwd + @${INSTALL_DATA} ${WRKSRC}/ld.so.conf ${EMULDIR}/etc + ${BINDIR}/linux-rpm -i ${DISTDIR}/${DIST_SUBDIR}/shlibs.rpm + ${BINDIR}/linux-rpm -i --nodeps --noscripts \ + ${DISTDIR}/${DIST_SUBDIR}/ldso.rpm +.for RPM in ${EXTRA_RPM} + ${BINDIR}/linux-rpm -i ${DISTDIR}/${DIST_SUBDIR}/${RPM} +.endfor + @${EMULDIR}/sbin/ldconfig -r ${EMULDIR} || ${TRUE} + +post-install: + ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/linux_SuSE/files/md5 b/emulators/linux_SuSE/files/md5 new file mode 100644 index 00000000000..a34bb22a2ed --- /dev/null +++ b/emulators/linux_SuSE/files/md5 @@ -0,0 +1,9 @@ +$NetBSD: md5,v 1.1.1.1 1998/10/31 00:18:47 tron Exp $ + +MD5 (SuSE/aaa_dir.rpm) = e8d066f6008aab7dc419996a3fe38aeb +MD5 (SuSE/shlibs.rpm) = 44613e1590c4ba42582ea67bf2022d13 +MD5 (SuSE/ldso.rpm) = 6007a8e4e56f025710c8306009d5aefc +MD5 (SuSE/gppshare.rpm) = d6be0402cb84f104ee3cfb18c5caf8b5 +MD5 (SuSE/shlibs6.rpm) = 5167623acaea3fe8cfdb9fd6b05a399f +MD5 (SuSE/xshared.rpm) = b84742e63b448ab515ca8fbffd7fd5e0 +MD5 (SuSE/xpm.rpm) = c8d972987c8e9b11139bdec804cb9aa6 diff --git a/emulators/linux_SuSE/pkg/COMMENT b/emulators/linux_SuSE/pkg/COMMENT new file mode 100644 index 00000000000..5f069592b87 --- /dev/null +++ b/emulators/linux_SuSE/pkg/COMMENT @@ -0,0 +1 @@ +Linux compatibility package based on SuSE distribution diff --git a/emulators/linux_SuSE/pkg/DESCR b/emulators/linux_SuSE/pkg/DESCR new file mode 100644 index 00000000000..7afd3e3619f --- /dev/null +++ b/emulators/linux_SuSE/pkg/DESCR @@ -0,0 +1,7 @@ +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 aout and ELF binaries linked with libc 5 or libc 6. +However, there are no aout libraries included. You can add Linux RPM +packages to this package with "linux-rpm -i ..." and remove them with +"linux-rpm -e ..." again. diff --git a/emulators/linux_SuSE/pkg/INSTALL b/emulators/linux_SuSE/pkg/INSTALL new file mode 100644 index 00000000000..43f35049181 --- /dev/null +++ b/emulators/linux_SuSE/pkg/INSTALL @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 1998/10/31 00:18:47 tron Exp $ +# + +PKGNAME=$1 + +case $2 in + PRE-INSTALL) + ;; + POST-INSTALL) + if [ ! -e /emul/linux ] || \ + [ "`cd /emul/linux && ls -di .`" != \ + "`cd @@EMULDIR@@ && ls -di`" ] + then + echo "===> Please note the following:" + echo "" + echo -n "You must create a link \"/emul/linux\" " + echo "pointing to \"@@EMULDIR@@\"" + echo "to be able to use this package." + echo "" + fi + ;; + *) + echo "Unexpected Argument ${2}." + exit 1 + ;; +esac + +exit 0 diff --git a/emulators/linux_SuSE/pkg/PLIST b/emulators/linux_SuSE/pkg/PLIST new file mode 100644 index 00000000000..75e5df30314 --- /dev/null +++ b/emulators/linux_SuSE/pkg/PLIST @@ -0,0 +1,188 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1998/10/31 00:18:47 tron Exp $ +sbin/linux-mkpwd +sbin/linux-rpm +@exec ln -s /dev/sound %D/emul/linux/dev/dsp +@unexec rm -f %D/emul/linux/dev/dsp +@exec mknod %D/emul/linux/dev/null c 2 2 && chmod 666 %D/emul/linux/dev/null +@unexec rm -f %D/emul/linux/dev/null +emul/linux/etc/ld.so.cache +emul/linux/etc/ld.so.conf +@exec %D/sbin/linux-mkpwd +@unexec cd %D/emul/linux/etc && rm -f group gshadow passwd shadow +emul/linux/lib/ld-linux.so.1 +emul/linux/lib/ld-linux.so.1.9.9 +emul/linux/lib/ld-linux.so.2 +emul/linux/lib/ld.so +emul/linux/lib/ld.so.1.9.9 +emul/linux/lib/libc.so.5 +emul/linux/lib/libc.so.5.4.46 +emul/linux/lib/libdl.so.1 +emul/linux/lib/libdl.so.1.9.9 +emul/linux/lib/libm.so.5 +emul/linux/lib/libm.so.5.0.9 +emul/linux/sbin/ldconfig +emul/linux/usr/X11R6/bin/sxpm +emul/linux/usr/X11R6/include/X11/xpm.h +emul/linux/usr/X11R6/lib/libICE.so +emul/linux/usr/X11R6/lib/libICE.so.6 +emul/linux/usr/X11R6/lib/libICE.so.6.3 +emul/linux/usr/X11R6/lib/libPEX5.so +emul/linux/usr/X11R6/lib/libPEX5.so.6 +emul/linux/usr/X11R6/lib/libPEX5.so.6.0 +emul/linux/usr/X11R6/lib/libSM.so +emul/linux/usr/X11R6/lib/libSM.so.6 +emul/linux/usr/X11R6/lib/libSM.so.6.0 +emul/linux/usr/X11R6/lib/libX11.so +emul/linux/usr/X11R6/lib/libX11.so.6 +emul/linux/usr/X11R6/lib/libX11.so.6.1 +emul/linux/usr/X11R6/lib/libXIE.so +emul/linux/usr/X11R6/lib/libXIE.so.6 +emul/linux/usr/X11R6/lib/libXIE.so.6.0 +emul/linux/usr/X11R6/lib/libXaw.so +emul/linux/usr/X11R6/lib/libXaw.so.6 +emul/linux/usr/X11R6/lib/libXaw.so.6.1 +emul/linux/usr/X11R6/lib/libXext.so +emul/linux/usr/X11R6/lib/libXext.so.6 +emul/linux/usr/X11R6/lib/libXext.so.6.3 +emul/linux/usr/X11R6/lib/libXi.so +emul/linux/usr/X11R6/lib/libXi.so.6 +emul/linux/usr/X11R6/lib/libXi.so.6.0 +emul/linux/usr/X11R6/lib/libXmu.so +emul/linux/usr/X11R6/lib/libXmu.so.6 +emul/linux/usr/X11R6/lib/libXmu.so.6.0 +emul/linux/usr/X11R6/lib/libXp.so +emul/linux/usr/X11R6/lib/libXp.so.6 +emul/linux/usr/X11R6/lib/libXp.so.6.2 +emul/linux/usr/X11R6/lib/libXpm.a +emul/linux/usr/X11R6/lib/libXpm.so +emul/linux/usr/X11R6/lib/libXpm.so.4 +emul/linux/usr/X11R6/lib/libXpm.so.4.10 +emul/linux/usr/X11R6/lib/libXt.so +emul/linux/usr/X11R6/lib/libXt.so.6 +emul/linux/usr/X11R6/lib/libXt.so.6.0 +emul/linux/usr/X11R6/lib/libXtst.so +emul/linux/usr/X11R6/lib/libXtst.so.6 +emul/linux/usr/X11R6/lib/libXtst.so.6.1 +emul/linux/usr/X11R6/man/man1/sxpm.1x.gz +emul/linux/usr/bin/ldd +emul/linux/usr/i486-linux-libc6/lib/libBrokenLocale.so.1 +emul/linux/usr/i486-linux-libc6/lib/libEZ.so.1 +emul/linux/usr/i486-linux-libc6/lib/libEZ.so.1.3 +emul/linux/usr/i486-linux-libc6/lib/libICE.so.6 +emul/linux/usr/i486-linux-libc6/lib/libImlib.so.1 +emul/linux/usr/i486-linux-libc6/lib/libImlib.so.1.6 +emul/linux/usr/i486-linux-libc6/lib/libMesaGL.so.2 +emul/linux/usr/i486-linux-libc6/lib/libMesaGLU.so.2 +emul/linux/usr/i486-linux-libc6/lib/libMesaaux.so.2 +emul/linux/usr/i486-linux-libc6/lib/libMesatk.so.2 +emul/linux/usr/i486-linux-libc6/lib/libPEX5.so.6 +emul/linux/usr/i486-linux-libc6/lib/libSM.so.6 +emul/linux/usr/i486-linux-libc6/lib/libX11.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXIE.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXaw.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXaw3d.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXaw95.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXext.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXi.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXmu.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXp.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXpm.so.4 +emul/linux/usr/i486-linux-libc6/lib/libXt.so.6 +emul/linux/usr/i486-linux-libc6/lib/libXtst.so.6 +emul/linux/usr/i486-linux-libc6/lib/libbfd-2.9.1.0.4.so.0 +emul/linux/usr/i486-linux-libc6/lib/libc.so.6 +emul/linux/usr/i486-linux-libc6/lib/libcrypt.so.1 +emul/linux/usr/i486-linux-libc6/lib/libdb.so.3 +emul/linux/usr/i486-linux-libc6/lib/libdl.so.2 +emul/linux/usr/i486-linux-libc6/lib/libfbm.so.1 +emul/linux/usr/i486-linux-libc6/lib/libform.so.4 +emul/linux/usr/i486-linux-libc6/lib/libforms.so.0.88 +emul/linux/usr/i486-linux-libc6/lib/libg++.so.2.7.2 +emul/linux/usr/i486-linux-libc6/lib/libg++.so.2.7.2.8 +emul/linux/usr/i486-linux-libc6/lib/libg++.so.2.8 +emul/linux/usr/i486-linux-libc6/lib/libgdbm.so.1 +emul/linux/usr/i486-linux-libc6/lib/libgdk.so.1 +emul/linux/usr/i486-linux-libc6/lib/libgdk_imlib.so.1 +emul/linux/usr/i486-linux-libc6/lib/libgdk_imlib.so.1.6 +emul/linux/usr/i486-linux-libc6/lib/libgif.so.3.0 +emul/linux/usr/i486-linux-libc6/lib/libglib.so.1 +emul/linux/usr/i486-linux-libc6/lib/libgltt.so.2 +emul/linux/usr/i486-linux-libc6/lib/libglut.so.3 +emul/linux/usr/i486-linux-libc6/lib/libgpm.so.1 +emul/linux/usr/i486-linux-libc6/lib/libgtk.so.1 +emul/linux/usr/i486-linux-libc6/lib/libguile.so.2 +emul/linux/usr/i486-linux-libc6/lib/libgz.so.1 +emul/linux/usr/i486-linux-libc6/lib/libjpeg.so.6 +emul/linux/usr/i486-linux-libc6/lib/liblug.so.1 +emul/linux/usr/i486-linux-libc6/lib/libm.so.6 +emul/linux/usr/i486-linux-libc6/lib/libmenu.so.4 +emul/linux/usr/i486-linux-libc6/lib/libncurses.so.4 +emul/linux/usr/i486-linux-libc6/lib/libnsl.so.1 +emul/linux/usr/i486-linux-libc6/lib/libnss_compat.so.2 +emul/linux/usr/i486-linux-libc6/lib/libnss_db.so.2 +emul/linux/usr/i486-linux-libc6/lib/libnss_dns.so.2 +emul/linux/usr/i486-linux-libc6/lib/libnss_files.so.2 +emul/linux/usr/i486-linux-libc6/lib/libnss_hesiod.so.2 +emul/linux/usr/i486-linux-libc6/lib/libnss_nis.so.2 +emul/linux/usr/i486-linux-libc6/lib/libnss_nisplus.so.2 +emul/linux/usr/i486-linux-libc6/lib/libopcodes-2.9.1.0.4.so.0 +emul/linux/usr/i486-linux-libc6/lib/libpanel.so.4 +emul/linux/usr/i486-linux-libc6/lib/libpbm.so.1.0 +emul/linux/usr/i486-linux-libc6/lib/libpgm.so.1.0 +emul/linux/usr/i486-linux-libc6/lib/libpng.so.2 +emul/linux/usr/i486-linux-libc6/lib/libpnm.so.1.0 +emul/linux/usr/i486-linux-libc6/lib/libppm.so.1.0 +emul/linux/usr/i486-linux-libc6/lib/libpthread.so.0 +emul/linux/usr/i486-linux-libc6/lib/libpvm3.so.3 +emul/linux/usr/i486-linux-libc6/lib/libqimgio.so +emul/linux/usr/i486-linux-libc6/lib/libqimgio.so.0 +emul/linux/usr/i486-linux-libc6/lib/libqt.so.1 +emul/linux/usr/i486-linux-libc6/lib/libqt.so.1.33 +emul/linux/usr/i486-linux-libc6/lib/libradiusclient.so.0 +emul/linux/usr/i486-linux-libc6/lib/libresolv.so.2 +emul/linux/usr/i486-linux-libc6/lib/librt.so.1 +emul/linux/usr/i486-linux-libc6/lib/libstdc++.so.2.7.2 +emul/linux/usr/i486-linux-libc6/lib/libstdc++.so.2.7.2.8 +emul/linux/usr/i486-linux-libc6/lib/libstdc++.so.2.8 +emul/linux/usr/i486-linux-libc6/lib/libtcl7.4.so.1 +emul/linux/usr/i486-linux-libc6/lib/libtermcap.so.2 +emul/linux/usr/i486-linux-libc6/lib/libtiff.so.3 +emul/linux/usr/i486-linux-libc6/lib/libttf.so.2 +emul/linux/usr/i486-linux-libc6/lib/libutil.so.1 +emul/linux/usr/i486-linux-libc6/lib/libvga.so.1 +emul/linux/usr/i486-linux-libc6/lib/libvgagl.so.1 +emul/linux/usr/i486-linux-libc6/lib/libxdelta.so.0 +emul/linux/usr/i486-linux-libc6/lib/libz.so.1 +emul/linux/usr/include/dlfcn.h +emul/linux/usr/lib/lddstub +emul/linux/usr/lib/libc.so +emul/linux/usr/lib/libdl.so +emul/linux/usr/lib/libg++.so +emul/linux/usr/lib/libg++.so.27 +emul/linux/usr/lib/libg++.so.27.2.1 +emul/linux/usr/lib/libgnumalloc.so.5 +emul/linux/usr/lib/libm.so +emul/linux/usr/lib/libpthreads.so +emul/linux/usr/lib/libpthreads.so.1 +emul/linux/usr/lib/libpthreads.so.1.60.4 +emul/linux/usr/lib/libstdc++.so +emul/linux/usr/lib/libstdc++.so.27 +emul/linux/usr/lib/libstdc++.so.27.2.1 +emul/linux/usr/man/man1/ldd.1.gz +emul/linux/usr/man/man3/dlclose.3.gz +emul/linux/usr/man/man3/dlerror.3.gz +emul/linux/usr/man/man3/dlopen.3.gz +emul/linux/usr/man/man3/dlsym.3.gz +emul/linux/usr/man/man8/ld.so.8.gz +emul/linux/usr/man/man8/ldconfig.8.gz +emul/linux/var/pkg/lib/rpm/conflictsindex.rpm +emul/linux/var/pkg/lib/rpm/fileindex.rpm +emul/linux/var/pkg/lib/rpm/groupindex.rpm +emul/linux/var/pkg/lib/rpm/nameindex.rpm +emul/linux/var/pkg/lib/rpm/packages.rpm +emul/linux/var/pkg/lib/rpm/providesindex.rpm +emul/linux/var/pkg/lib/rpm/requiredby.rpm +emul/linux/var/pkg/lib/rpm/triggerindex.rpm +@dirrm emul/linux/usr/X11R6/include/X11 +@dirrm emul/linux/usr/i486-linux-libc6/lib +@dirrm emul/linux/usr/i486-linux-libc6 diff --git a/emulators/linux_SuSE/scripts/linux-mkpwd.sh b/emulators/linux_SuSE/scripts/linux-mkpwd.sh new file mode 100644 index 00000000000..134fb85c4c2 --- /dev/null +++ b/emulators/linux_SuSE/scripts/linux-mkpwd.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# $Id: linux-mkpwd.sh,v 1.1.1.1 1998/10/31 00:18:47 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 --git a/emulators/linux_SuSE/scripts/linux-rpm.sh b/emulators/linux_SuSE/scripts/linux-rpm.sh new file mode 100644 index 00000000000..74123a6b2be --- /dev/null +++ b/emulators/linux_SuSE/scripts/linux-rpm.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $Id: linux-rpm.sh,v 1.1.1.1 1998/10/31 00:18:47 tron Exp $ + +OPTS="--root @@EMULDIR@@" +for ARG +do + if [ "$ARG" = "-i" ] + then + OPTS="$OPTS --ignoreos" + fi +done + +if [ `whoami` != root ] +then + exec rpm $OPTS $* +fi + +mkdir -p @@EMULDIR@@/var/tmp +cp -p /etc/spwd.db @@EMULDIR@@/etc +rpm $OPTS $* +RC=$? +rm -rf @@EMULDIR@@/etc/spwd.db @@EMULDIR@@/var/tmp + +exit $RC |