diff options
author | manu <manu@pkgsrc.org> | 2001-01-23 22:28:44 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2001-01-23 22:28:44 +0000 |
commit | 470e7732ed60b926e15211cd6c2f274b0762aca2 (patch) | |
tree | d9d7cf8167d6f96e03acabf17d79bfb6311a575b /emulators | |
parent | 22bb4d50cf761b48270a9348911134a48a83d931 (diff) | |
download | pkgsrc-470e7732ed60b926e15211cd6c2f274b0762aca2.tar.gz |
Libraries to run Linux binaries on powerpc
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/linuxppc_lib/Makefile | 116 | ||||
-rw-r--r-- | emulators/linuxppc_lib/files/md5 | 25 | ||||
-rw-r--r-- | emulators/linuxppc_lib/files/patch-sum | 3 | ||||
-rw-r--r-- | emulators/linuxppc_lib/ktrace.out | bin | 0 -> 858377 bytes | |||
-rw-r--r-- | emulators/linuxppc_lib/patches/patch-aa | 8 | ||||
-rw-r--r-- | emulators/linuxppc_lib/pkg/COMMENT | 1 | ||||
-rw-r--r-- | emulators/linuxppc_lib/pkg/DESCR | 5 |
7 files changed, 158 insertions, 0 deletions
diff --git a/emulators/linuxppc_lib/Makefile b/emulators/linuxppc_lib/Makefile new file mode 100644 index 00000000000..e10b5068eb5 --- /dev/null +++ b/emulators/linuxppc_lib/Makefile @@ -0,0 +1,116 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/01/23 22:28:44 manu Exp $ + +DISTNAME= linuxppc_lib-2000.q4.1 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.linuxppc.org/linuxppc-halloween/software/ +DISTFILES= glibc-2.1.3-15f.ppc.rpm glib-1.2.8-3.ppc.rpm \ + libjpeg-6b-13.ppc.rpm libpng-1.0.5-3.ppc.rpm \ + libstdc++-2.10.0-2n.ppc.rpm libtermcap-2.0.8-20.ppc.rpm \ + libtiff-3.5.5-2.ppc.rpm XFree86-libs-3.3.6-20b.ppc.rpm \ + zlib-1.1.3-6.ppc.rpm aalib-1.2-1.ppc.rpm \ + gnome-libs-1.2.8-0_helix_1.ppc.rpm imlib-1.9.8-4.ppc.rpm \ + krb5-libs-1.1.1-25.ppc.rpm ldconfig-1.9.5-16.ppc.rpm \ + libelf-0.6.4-4.ppc.rpm libghttp-1.0.7-0_helix_1.ppc.rpm \ + libglade-0.11-1.ppc.rpm libgtop-1.0.6-1.ppc.rpm \ + libjpeg6a-6a-5.ppc.rpm libpcap-0.4-19.ppc.rpm \ + librep-0.13.2-0_helix_1.ppc.rpm xpm-3.4k-1.ppc.rpm \ + libsigc++-1.0.1-0_helix_1.ppc.rpm + +MAINTAINER= p99dreyf@criens.u-psud.fr +HOMEPAGE= http://www.linuxppc.org/ + +BUILD_DEPENDS+= rpm2cpio:../../misc/rpm + +ONLY_FOR_PLATFORM= NetBSD-*-macppc NetBSD-*-powerpc NetBSD-*-prep \ + NetBSD-*-bebox NetBSD-*-ofppc NetBSD-*-amigappc + +SHLIB_HANDLING=NO +CHECK_SHLIBS= NO +WRKSRC= ${WRKDIR}/linuxppc_lib-2000.q4.1 +DIST_SUBDIR= linuxppc_lib +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC + +RPMFILES= ${DISTFILES} +RPM2CPIO= ${PREFIX}/bin/rpm2cpio +CPIO= cpio +SORT= sort +EMUL_LINUX= emul/linux + +do-extract: + ${MKDIR} ${WRKSRC} + cd ${WRKSRC}; for i in ${RPMFILES}; do \ + ${ECHO} -n "Extracting $$i... " ; \ + ${RPM2CPIO} ${DISTDIR}/${DIST_SUBDIR}/$$i | ${CPIO} -u -d -i ;\ + done ; \ + +do-build: + ${RM} -f ${WRKSRC}/etc/*.orig + +do-install: + ${RM} -f ${WRKDIR}/PLIST_DYNAMIC + ${MKDIR} ${PREFIX}/${EMUL_LINUX} + for d in `${FIND} ${WRKSRC}/etc -type d | ${SORT} -r`; do \ + target=`${ECHO} $$d | ${SED} 's|${WRKSRC}|${PREFIX}/${EMUL_LINUX}|'`; \ + files=`${LS} -l $$d | \ + ${AWK} -v d=$$d '{if ($$0~/^-/) {print d "/" $$9}}'` ; \ + links=`${LS} -l $$d | \ + ${AWK} -v d=$$d '{if ($$0~/^l/) {print d "/" $$9}}'` ; \ + ${MKDIR} $$target ; \ + if [ "x$$links" != "x" ] ; then \ + ${ECHO} "$$links" ; \ + for l in $$links ; do \ + name=`${ECHO} $$l | ${SED} 's|^.*/\([^/]*\)$$|\1|'` ; \ + ${LN} -sf `${LS} -l $$l | ${AWK} '{print $$11}'` $$target/$$name ; \ + done ; \ + ${ECHO} $$links | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \ + ${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \ + fi; \ + if [ "x$$files" != "x" ] ; then \ + ${ECHO} "$$files" ; \ + ${INSTALL} -c -o root -g wheel -m 644 $$files $$target/ ; \ + ${ECHO} $$files | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \ + ${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \ + fi; \ + ${ECHO} $$target | ${SED} 's|${PREFIX}/|@dirrm |' >> \ + ${WRKDIR}/PLIST_DYNAMIC ; \ + done; + for d in `${FIND} ${WRKSRC}/lib ${WRKSRC}/usr/lib \ + ${WRKSRC}/usr/X11R6/lib ${WRKSRC}/usr/kerberos/lib \ + ${WRKSRC}/usr/share -type d | ${SORT} -r`; do \ + target=`${ECHO} $$d | ${SED} 's|${WRKSRC}|${PREFIX}/${EMUL_LINUX}|'`; \ + files=`${LS} -l $$d | \ + ${AWK} -v d=$$d '{if ($$0~/^-/) {print d "/" $$9}}'` ; \ + links=`${LS} -l $$d | \ + ${AWK} -v d=$$d '{if ($$0~/^l/) {print d "/" $$9}}'` ; \ + ${MKDIR} $$target ; \ + if [ "x$$links" != "x" ] ; then \ + ${ECHO} "$$links" ; \ + for l in $$links ; do \ + name=`${ECHO} $$l | ${SED} 's|^.*/\([^/]*\)$$|\1|'` ; \ + ${LN} -sf `${LS} -l $$l | ${AWK} '{print $$11}'` $$target/$$name ; \ + done ; \ + ${ECHO} $$links | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \ + ${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \ + fi; \ + if [ "x$$files" != "x" ] ; then \ + ${ECHO} "$$files" ; \ + ${INSTALL} -c -o root -g wheel -m 755 $$files $$target/ ; \ + ${ECHO} $$files | ${SED} 's|${WRKSRC}|${EMUL_LINUX}|g' | \ + ${TR} ' ' '\n' >> ${WRKDIR}/PLIST_DYNAMIC ; \ + fi ; \ + ${ECHO} $$target | ${SED} 's|${PREFIX}/|@dirrm |' >> \ + ${WRKDIR}/PLIST_DYNAMIC ; \ + done; + ${INSTALL} -c -o root -g wheel -m 755 ${WRKSRC}/sbin/ldconfig \ + ${PREFIX}/sbin/ldconfig-linux + ${ECHO} "sbin/ldconfig-linux" >> ${WRKDIR}/PLIST_DYNAMIC + ${TOUCH} ${PREFIX}/${EMUL_LINUX}/etc/ld.so.cache~ + ${PREFIX}/sbin/ldconfig-linux -v | \ + ${SED} -n '/^\/.*:$$/h; /(changed)$$/{G; \ + s|[[:blank:]]\([^ ]\{1,\}\) =>.*\n/\(.*\):$$|${EMUL_LINUX}/\2/\1|p;}' \ + >> ${WRKDIR}/PLIST_DYNAMIC + ${ECHO} "${EMUL_LINUX}/etc/ld.so.cache" >> ${WRKDIR}/PLIST_DYNAMIC + ${SORT} -r ${WRKDIR}/PLIST_DYNAMIC > ${WRKDIR}/PLIST_DYNAMIC.sorted + ${MV} ${WRKDIR}/PLIST_DYNAMIC.sorted ${WRKDIR}/PLIST_DYNAMIC + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/linuxppc_lib/files/md5 b/emulators/linuxppc_lib/files/md5 new file mode 100644 index 00000000000..f870d4dc549 --- /dev/null +++ b/emulators/linuxppc_lib/files/md5 @@ -0,0 +1,25 @@ +$NetBSD: md5,v 1.1.1.1 2001/01/23 22:29:48 manu Exp $ + +MD5 (linuxppc_lib/glibc-2.1.3-15f.ppc.rpm) = d6987ba1c4327776b09ba3771b0ddfe9 +MD5 (linuxppc_lib/glib-1.2.8-3.ppc.rpm) = 95e9ef3aa57bf1b3096cd71c25568c8c +MD5 (linuxppc_lib/libjpeg-6b-13.ppc.rpm) = e4d144b38459fa5dc93a04c5106fd17f +MD5 (linuxppc_lib/libpng-1.0.5-3.ppc.rpm) = 569e1ce68577705028b6067f262aaa7f +MD5 (linuxppc_lib/libstdc++-2.10.0-2n.ppc.rpm) = b3f590e7641f4be9a794474d8266603d +MD5 (linuxppc_lib/libtermcap-2.0.8-20.ppc.rpm) = 815c427badcd8c0cb1be80f713213fcc +MD5 (linuxppc_lib/libtiff-3.5.5-2.ppc.rpm) = bf5ca3261e0cc00205768fc77021b5e6 +MD5 (linuxppc_lib/XFree86-libs-3.3.6-20b.ppc.rpm) = b822ccc11675a2afd258a33050d4da15 +MD5 (linuxppc_lib/zlib-1.1.3-6.ppc.rpm) = 48c9234f85e7ba494e44a559498cb145 +MD5 (linuxppc_lib/aalib-1.2-1.ppc.rpm) = 5921b4d6a7f592d43be71b1cf67c7fef +MD5 (linuxppc_lib/gnome-libs-1.2.8-0_helix_1.ppc.rpm) = 81289164c4c46421ec0a69f0a8c2dc60 +MD5 (linuxppc_lib/imlib-1.9.8-4.ppc.rpm) = aef99372932bbc8b88a4d63ec6d42c68 +MD5 (linuxppc_lib/krb5-libs-1.1.1-25.ppc.rpm) = 2694ed9272adc4749c0296472697dff8 +MD5 (linuxppc_lib/ldconfig-1.9.5-16.ppc.rpm) = 120aa77bf0306e55ffa928c97112e96f +MD5 (linuxppc_lib/libelf-0.6.4-4.ppc.rpm) = 99d0ed6ec2b6597d432657e288894669 +MD5 (linuxppc_lib/libghttp-1.0.7-0_helix_1.ppc.rpm) = be67854c2a57c60713a533fc4d22aa55 +MD5 (linuxppc_lib/libglade-0.11-1.ppc.rpm) = 4d67459d17864f532cfc69db46cf0411 +MD5 (linuxppc_lib/libgtop-1.0.6-1.ppc.rpm) = 76395f824b2a98aea6e2949f4e032f63 +MD5 (linuxppc_lib/libjpeg6a-6a-5.ppc.rpm) = c11d224c80f4890f382fdfbcc4655b1d +MD5 (linuxppc_lib/libpcap-0.4-19.ppc.rpm) = 82d113d6d78baa41c1b2551a30849113 +MD5 (linuxppc_lib/librep-0.13.2-0_helix_1.ppc.rpm) = a0ff7bf81626fb63055566a267551968 +MD5 (linuxppc_lib/xpm-3.4k-1.ppc.rpm) = 1a4a7d34561732c4e8b2fcee5cc69afa +MD5 (linuxppc_lib/libsigc++-1.0.1-0_helix_1.ppc.rpm) = 2d41e23ffc3c62345957325989361ef8 diff --git a/emulators/linuxppc_lib/files/patch-sum b/emulators/linuxppc_lib/files/patch-sum new file mode 100644 index 00000000000..b8f167e23ed --- /dev/null +++ b/emulators/linuxppc_lib/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/01/23 22:29:48 manu Exp $ + +MD5 (patch-aa) = 9a053c202c6fed843490faeadabe42ed diff --git a/emulators/linuxppc_lib/ktrace.out b/emulators/linuxppc_lib/ktrace.out Binary files differnew file mode 100644 index 00000000000..30549fcc89d --- /dev/null +++ b/emulators/linuxppc_lib/ktrace.out diff --git a/emulators/linuxppc_lib/patches/patch-aa b/emulators/linuxppc_lib/patches/patch-aa new file mode 100644 index 00000000000..d9934bc5e88 --- /dev/null +++ b/emulators/linuxppc_lib/patches/patch-aa @@ -0,0 +1,8 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/01/23 22:29:48 manu Exp $ +--- etc/ld.so.conf.orig Sun Jan 14 22:29:50 2001 ++++ etc/ld.so.conf Sun Jan 14 22:30:05 2001 +@@ -0,0 +1,4 @@ ++/lib ++/usr/lib ++/usr/local/lib ++/usr/X11R6/lib diff --git a/emulators/linuxppc_lib/pkg/COMMENT b/emulators/linuxppc_lib/pkg/COMMENT new file mode 100644 index 00000000000..76b7c18481e --- /dev/null +++ b/emulators/linuxppc_lib/pkg/COMMENT @@ -0,0 +1 @@ +libraries to run Linux binaries on NetBSD/powerpc (includes X11) diff --git a/emulators/linuxppc_lib/pkg/DESCR b/emulators/linuxppc_lib/pkg/DESCR new file mode 100644 index 00000000000..36175e17af1 --- /dev/null +++ b/emulators/linuxppc_lib/pkg/DESCR @@ -0,0 +1,5 @@ +These libraries are part of the Linux compatibility options +for NetBSD/powerpc. + +The kernel option `COMPAT_LINUX' needs to be in your kernel config +file for this to work as well. |