diff options
author | mrg <mrg@pkgsrc.org> | 2001-02-04 07:15:59 +0000 |
---|---|---|
committer | mrg <mrg@pkgsrc.org> | 2001-02-04 07:15:59 +0000 |
commit | d1dc28f14d07b9767b58178a767d0cb2d81cbf38 (patch) | |
tree | c6730179c8dca2326306c8272f097c317850c13b | |
parent | 1a31d4b4d02474b3ab9e7aed1b2615d59179faf2 (diff) | |
download | pkgsrc-d1dc28f14d07b9767b58178a767d0cb2d81cbf38.tar.gz |
initial import of netbsd32_compat15-1.0:
32-bit shared libraries for NetBSD 1.5 (and earlier) compatibility
this package is only available (useful) for sparc64.
-rw-r--r-- | emulators/netbsd32_compat15/Makefile | 69 | ||||
-rw-r--r-- | emulators/netbsd32_compat15/files/md5 | 3 | ||||
-rw-r--r-- | emulators/netbsd32_compat15/pkg/COMMENT | 1 | ||||
-rw-r--r-- | emulators/netbsd32_compat15/pkg/DEINSTALL | 32 | ||||
-rw-r--r-- | emulators/netbsd32_compat15/pkg/DESCR | 5 | ||||
-rw-r--r-- | emulators/netbsd32_compat15/pkg/INSTALL | 62 | ||||
-rw-r--r-- | emulators/netbsd32_compat15/pkg/PLIST | 117 |
7 files changed, 289 insertions, 0 deletions
diff --git a/emulators/netbsd32_compat15/Makefile b/emulators/netbsd32_compat15/Makefile new file mode 100644 index 00000000000..4005fbc070d --- /dev/null +++ b/emulators/netbsd32_compat15/Makefile @@ -0,0 +1,69 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/02/04 07:15:59 mrg Exp $ +# + +.if ${MACHINE_ARCH} == "sparc64" +MACHINE32_ARCH= sparc +.else +MACHINE32_ARCH= ${MACHINE_ARCH} +.endif + +DISTNAME= compat15-${MACHINE32_ARCH} +PKGNAME= netbsd32_compat15-1.0 +CATEGORIES= emulators +MASTER_SITES= ${MASTER_SITE_LOCAL} + +MAINTAINER= tv@netbsd.org +HOMEPAGE= http://www.netbsd.org/Releases/formal-1.5/index.html + +ONLY_FOR_PLATFORM= NetBSD-*-sparc64 + +NO_MTREE= # defined +SHLIB_HANDLING= NO + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +.include "../../mk/bsd.prefs.mk" + +EMULSUBDIR= emul/netbsd32 +COMPAT_LIBDIR= ${EMULSUBDIR}/usr/lib +COMPAT_LIBEXECDIR= ${EMULSUBDIR}/usr/libexec +COMPAT_XLIBDIR= ${EMULSUBDIR}/usr/X11R6/lib + +PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR} COMPAT_LIBEXECDIR=${COMPAT_LIBEXECDIR} COMPAT_XLIBDIR=${COMPAT_XLIBDIR} + +do-build: + ${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \ + -e "s,@COMPAT_LIBDIR@,${COMPAT_LIBDIR},g" \ + -e "s,@COMPAT_LIBEXECDIR@,${COMPAT_LIBEXECDIR},g" \ + -e "s,@COMPAT_XLIBDIR@,${COMPAT_XLIBDIR},g" \ + -e "s,@LDCONFIG@,${LDCONFIG},g" \ + < ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \ + -e "s,@OBJECT_FMT@,${OBJECT_FMT},g" \ + -e "s,@LDCONFIG@,${LDCONFIG},g" \ + < ${PKGDIR}/INSTALL > ${INSTALL_FILE} + +# XXX using pax to copy symlinks properly. +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBDIR} + (cd ${WRKDIR}/lib; pax -rwv lib*.so* ${PREFIX}/${COMPAT_LIBDIR}; \ + chown root:wheel ${PREFIX}/${COMPAT_LIBDIR}/lib*.so*; \ + chmod 555 ${PREFIX}/${COMPAT_LIBDIR}/lib*.so* ) + if [ -d ${WRKDIR}/X11R6/lib ]; then \ + ${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_XLIBDIR}; \ + (cd ${WRKDIR}/X11R6/lib; pax -rwv lib*.so* ${PREFIX}/${COMPAT_XLIBDIR}; \ + chown root:wheel ${PREFIX}/${COMPAT_XLIBDIR}/lib*.so*; \ + chmod 555 ${PREFIX}/${COMPAT_XLIBDIR}/lib*.so* ) \ + fi + if [ -d ${WRKDIR}/libexec ]; then \ + ${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBEXECDIR}; \ + (cd ${WRKDIR}/libexec; pax -rwv ld.*so ${PREFIX}/${COMPAT_LIBEXECDIR}; \ + chown root:wheel ${PREFIX}/${COMPAT_LIBEXECDIR}/ld.*so; \ + chmod 555 ${PREFIX}/${COMPAT_LIBEXECDIR}/ld.*so ) \ + fi + +post-install: + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/netbsd32_compat15/files/md5 b/emulators/netbsd32_compat15/files/md5 new file mode 100644 index 00000000000..6c52444db59 --- /dev/null +++ b/emulators/netbsd32_compat15/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/02/04 07:15:59 mrg Exp $ + +MD5 (compat15-sparc.tar.gz) = 2a1279e118acdb46469dcaf8a0c42302 diff --git a/emulators/netbsd32_compat15/pkg/COMMENT b/emulators/netbsd32_compat15/pkg/COMMENT new file mode 100644 index 00000000000..6e93c606c6f --- /dev/null +++ b/emulators/netbsd32_compat15/pkg/COMMENT @@ -0,0 +1 @@ +32-bit shared libraries for NetBSD 1.5 (and earlier) compatibility diff --git a/emulators/netbsd32_compat15/pkg/DEINSTALL b/emulators/netbsd32_compat15/pkg/DEINSTALL new file mode 100644 index 00000000000..12f7dd9ebee --- /dev/null +++ b/emulators/netbsd32_compat15/pkg/DEINSTALL @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2001/02/04 07:16:00 mrg Exp $ + +PKGNAME=$1 +STAGE=$2 + +case ${STAGE} in +DEINSTALL) + ;; +POST-DEINSTALL) + MACHINE_ARCH=@MACHINE_ARCH@ + COMPAT_LIBDIR=@COMPAT_LIBDIR@ + COMPAT_LIBEXECDIR=@COMPAT_LIBEXECDIR@ + COMPAT_XLIBDIR=@COMPAT_XLIBDIR@ + + rmdir -p ${PKG_PREFIX}/${COMPAT_LIBDIR} ${PKG_PREFIX}/${COMPAT_LIBEXECDIR} ${PKG_PREFIX}/${COMPAT_XLIBDIR} 2>/dev/null || true + + # clean up the symlink + rm -f /emul/netbsd32 + + # Regenerate the shared library cache. This should work on either + # a.out or on ELF with the 1.5 release. + # + ( @LDCONFIG@ || true ) >/dev/null 2>&1 + ;; +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/emulators/netbsd32_compat15/pkg/DESCR b/emulators/netbsd32_compat15/pkg/DESCR new file mode 100644 index 00000000000..6896be8f4a9 --- /dev/null +++ b/emulators/netbsd32_compat15/pkg/DESCR @@ -0,0 +1,5 @@ +This package supplies the user files necessary for full compatibility with +dynamically linked executables compiled under NetBSD 1.5, on a 32-bit +platform, running on a 64-bit host.. You still need the options COMPAT_15 +and COMPAT_NETBSD32 in your kernel configuration (and probably others; see +options(4) for more information) to make use of NetBSD 1.5 binaries. diff --git a/emulators/netbsd32_compat15/pkg/INSTALL b/emulators/netbsd32_compat15/pkg/INSTALL new file mode 100644 index 00000000000..587eb539c9b --- /dev/null +++ b/emulators/netbsd32_compat15/pkg/INSTALL @@ -0,0 +1,62 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/02/04 07:16:00 mrg Exp $ + +PKGNAME=$1 +STAGE=$2 + +case ${STAGE} in +PRE-INSTALL) + ;; +POST-INSTALL) + MACHINE_ARCH=@MACHINE_ARCH@ + OBJECT_FMT=@OBJECT_FMT@ + + # Only create the symlink on certain platform/object combinations. Note + # that sparc64 a.out compatibility lives in /emul/aout, not /emul/netbsd32. + # + create_emul_symlink=0 + if [ "${MACHINE_ARCH}" = "sparc64" ] + then + create_emul_symlink=1 + fi + + if [ ${create_emul_symlink} = 1 ] + then + # Create a symlink from /emul/aout --> ${PKG_PREFIX}/emul/aout + # if it doesn't already exist. Warn if we can't do this. + # + emul=netbsd32 + 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 + + # Regenerate the shared library cache. This should work on either + # a.out or on ELF with the 1.5 release. + # + ( @LDCONFIG@ || true ) >/dev/null 2>&1 + ;; +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/emulators/netbsd32_compat15/pkg/PLIST b/emulators/netbsd32_compat15/pkg/PLIST new file mode 100644 index 00000000000..250db156cd5 --- /dev/null +++ b/emulators/netbsd32_compat15/pkg/PLIST @@ -0,0 +1,117 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/04 07:16:00 mrg Exp $ +${COMPAT_LIBDIR}/libamu.so.1 +${COMPAT_LIBDIR}/libamu.so.1.1 +${COMPAT_LIBDIR}/libasn1.so.2 +${COMPAT_LIBDIR}/libasn1.so.2.0 +${COMPAT_LIBDIR}/libbz2.so.0 +${COMPAT_LIBDIR}/libbz2.so.0.0 +${COMPAT_LIBDIR}/libc.so.12 +${COMPAT_LIBDIR}/libc.so.12.62.1 +${COMPAT_LIBDIR}/libcom_err.so.3 +${COMPAT_LIBDIR}/libcom_err.so.3.0 +${COMPAT_LIBDIR}/libcrypt.so.0 +${COMPAT_LIBDIR}/libcrypt.so.0.0 +${COMPAT_LIBDIR}/libcrypto.so.0 +${COMPAT_LIBDIR}/libcrypto.so.0.2 +${COMPAT_LIBDIR}/libcurses.so.3 +${COMPAT_LIBDIR}/libcurses.so.3.6 +${COMPAT_LIBDIR}/libdes.so.5 +${COMPAT_LIBDIR}/libdes.so.5.1 +${COMPAT_LIBDIR}/libedit.so.2 +${COMPAT_LIBDIR}/libedit.so.2.3 +${COMPAT_LIBDIR}/libg2c.so.0 +${COMPAT_LIBDIR}/libg2c.so.0.0 +${COMPAT_LIBDIR}/libgnumalloc.so.0 +${COMPAT_LIBDIR}/libgnumalloc.so.0.0 +${COMPAT_LIBDIR}/libgssapi.so.0 +${COMPAT_LIBDIR}/libgssapi.so.0.4 +${COMPAT_LIBDIR}/libhdb.so.4 +${COMPAT_LIBDIR}/libhdb.so.4.1 +${COMPAT_LIBDIR}/libipsec.so.2 +${COMPAT_LIBDIR}/libipsec.so.2.0 +${COMPAT_LIBDIR}/libkadm.so.4 +${COMPAT_LIBDIR}/libkadm.so.4.0 +${COMPAT_LIBDIR}/libkadm5clnt.so.5 +${COMPAT_LIBDIR}/libkadm5clnt.so.5.1 +${COMPAT_LIBDIR}/libkadm5srv.so.6 +${COMPAT_LIBDIR}/libkadm5srv.so.6.0 +${COMPAT_LIBDIR}/libkafs.so.4 +${COMPAT_LIBDIR}/libkafs.so.4.0 +${COMPAT_LIBDIR}/libkdb.so.4 +${COMPAT_LIBDIR}/libkdb.so.4.0 +${COMPAT_LIBDIR}/libkrb.so.4 +${COMPAT_LIBDIR}/libkrb.so.4.0 +${COMPAT_LIBDIR}/libkrb5.so.11 +${COMPAT_LIBDIR}/libkrb5.so.11.1 +${COMPAT_LIBDIR}/libkstream.so.1 +${COMPAT_LIBDIR}/libkstream.so.1.0 +${COMPAT_LIBDIR}/libkvm.so.5 +${COMPAT_LIBDIR}/libkvm.so.5.1 +${COMPAT_LIBDIR}/libm.so.0 +${COMPAT_LIBDIR}/libm.so.0.1 +${COMPAT_LIBDIR}/libmenu.so.1 +${COMPAT_LIBDIR}/libmenu.so.1.0 +${COMPAT_LIBDIR}/libobjc.so.0 +${COMPAT_LIBDIR}/libobjc.so.0.0 +${COMPAT_LIBDIR}/libossaudio.so.0 +${COMPAT_LIBDIR}/libossaudio.so.0.0 +${COMPAT_LIBDIR}/libpcap.so.1 +${COMPAT_LIBDIR}/libpcap.so.1.1 +${COMPAT_LIBDIR}/libposix.so.0 +${COMPAT_LIBDIR}/libposix.so.0.1 +${COMPAT_LIBDIR}/libresolv.so.1 +${COMPAT_LIBDIR}/libresolv.so.1.0 +${COMPAT_LIBDIR}/libroken.so.8 +${COMPAT_LIBDIR}/libroken.so.8.1 +${COMPAT_LIBDIR}/libskey.so.1 +${COMPAT_LIBDIR}/libskey.so.1.0 +${COMPAT_LIBDIR}/libsl.so.1 +${COMPAT_LIBDIR}/libsl.so.1.0 +${COMPAT_LIBDIR}/libss.so.3 +${COMPAT_LIBDIR}/libss.so.3.0 +${COMPAT_LIBDIR}/libssl.so.1 +${COMPAT_LIBDIR}/libssl.so.1.0 +${COMPAT_LIBDIR}/libstdc++.so.2 +${COMPAT_LIBDIR}/libstdc++.so.2.0 +${COMPAT_LIBDIR}/libtelnet.so.3 +${COMPAT_LIBDIR}/libtelnet.so.3.0 +${COMPAT_LIBDIR}/libtermcap.so.0 +${COMPAT_LIBDIR}/libtermcap.so.0.4 +${COMPAT_LIBDIR}/libtermlib.so.0 +${COMPAT_LIBDIR}/libtermlib.so.0.4 +${COMPAT_LIBDIR}/libusb.so.0 +${COMPAT_LIBDIR}/libusb.so.0.0 +${COMPAT_LIBDIR}/libutil.so.5 +${COMPAT_LIBDIR}/libutil.so.5.2 +${COMPAT_LIBDIR}/libwrap.so.0 +${COMPAT_LIBDIR}/libwrap.so.0.2 +${COMPAT_LIBDIR}/libz.so.0 +${COMPAT_LIBDIR}/libz.so.0.2 +${COMPAT_XLIBDIR}/libICE.so.6 +${COMPAT_XLIBDIR}/libICE.so.6.3 +${COMPAT_XLIBDIR}/libPEX5.so.6 +${COMPAT_XLIBDIR}/libPEX5.so.6.0 +${COMPAT_XLIBDIR}/libSM.so.6 +${COMPAT_XLIBDIR}/libSM.so.6.0 +${COMPAT_XLIBDIR}/libX11.so.6 +${COMPAT_XLIBDIR}/libX11.so.6.1 +${COMPAT_XLIBDIR}/libXIE.so.6 +${COMPAT_XLIBDIR}/libXIE.so.6.0 +${COMPAT_XLIBDIR}/libXaw.so.6 +${COMPAT_XLIBDIR}/libXaw.so.6.1 +${COMPAT_XLIBDIR}/libXext.so.6 +${COMPAT_XLIBDIR}/libXext.so.6.3 +${COMPAT_XLIBDIR}/libXi.so.6 +${COMPAT_XLIBDIR}/libXi.so.6.0 +${COMPAT_XLIBDIR}/libXmu.so.6 +${COMPAT_XLIBDIR}/libXmu.so.6.0 +${COMPAT_XLIBDIR}/libXp.so.6 +${COMPAT_XLIBDIR}/libXp.so.6.2 +${COMPAT_XLIBDIR}/libXt.so.6 +${COMPAT_XLIBDIR}/libXt.so.6.0 +${COMPAT_XLIBDIR}/libXtst.so.6 +${COMPAT_XLIBDIR}/libXtst.so.6.1 +${COMPAT_XLIBDIR}/liboldX.so.6 +${COMPAT_XLIBDIR}/liboldX.so.6.0 +${COMPAT_LIBEXECDIR}/ld.so +${COMPAT_LIBEXECDIR}/ld.elf_so |