summaryrefslogtreecommitdiff
path: root/emulators/suse64_linux
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-04-04 10:07:57 +0000
committertron <tron@pkgsrc.org>2002-04-04 10:07:57 +0000
commit712250c5f5f1c4d745758a61cf9843a25e095932 (patch)
treef3b200485bc782fc02213e4de4e34480fd7a5585 /emulators/suse64_linux
parent0118d264e9325b2304bd2167762d5c046d73bc13 (diff)
downloadpkgsrc-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_linux')
-rw-r--r--emulators/suse64_linux/DESCR2
-rw-r--r--emulators/suse64_linux/Makefile28
-rw-r--r--emulators/suse64_linux/Makefile.common48
-rw-r--r--emulators/suse64_linux/PLIST2
4 files changed, 80 insertions, 0 deletions
diff --git a/emulators/suse64_linux/DESCR b/emulators/suse64_linux/DESCR
new file mode 100644
index 00000000000..055d187034a
--- /dev/null
+++ b/emulators/suse64_linux/DESCR
@@ -0,0 +1,2 @@
+Linux compatibility package collection based on the SuSE Linux distribution,
+take a look at "http://www.suse.com/" for more information about it.
diff --git a/emulators/suse64_linux/Makefile b/emulators/suse64_linux/Makefile
new file mode 100644
index 00000000000..01da67e954d
--- /dev/null
+++ b/emulators/suse64_linux/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/04/04 10:07:58 tron Exp $
+
+DISTNAME= suse_linux-6.4
+CATEGORIES= emulators
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.suse.com/
+COMMENT= Linux compatibility package collection
+
+DEPENDS+= suse_audio-6.4*:../suse64_audio
+DEPENDS+= suse_libc5-6.4*:../suse64_libc5
+DEPENDS+= suse_libjpeg-6.4*:../suse64_libjpeg
+DEPENDS+= suse_libpng-6.4*:../suse64_libpng
+DEPENDS+= suse_glx-6.4*:../suse64_glx
+DEPENDS+= suse_gtk-6.4*:../suse64_gtk
+DEPENDS+= suse_xforms-6.4*:../suse64_xforms
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+
+EXTRACT_ONLY= # empty
+NO_BUILD= yes
+NO_CHECKSUM= yes
+
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/suse64_linux/Makefile.common b/emulators/suse64_linux/Makefile.common
new file mode 100644
index 00000000000..16992eee2ce
--- /dev/null
+++ b/emulators/suse64_linux/Makefile.common
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2002/04/04 10:07:58 tron Exp $
+
+SUSE_VERSION= 6.4
+
+MASTER_SITE_SUSE= ftp://ftp.suse.com/pub/suse/i386/${SUSE_VERSION}/suse/
+
+DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}
+
+WRKSRC?= ${WRKDIR}
+MANCOMPRESSED?= yes
+
+EMULSUBDIR= emul/linux
+EMULDIR= ${PREFIX}/${EMULSUBDIR}
+
+RPM2PKG= ${PREFIX}/sbin/rpm2pkg
+BUILD_DEPENDS+= rpm2pkg>=1.2:../../pkgtools/rpm2pkg
+
+# The SuSE Linux packages have circular dependencies.
+LDD?= ${TRUE}
+
+RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
+.for TEMP in ${RPMIGNOREPATH}
+RPM2PKGARGS+= -i ${TEMP}
+.endfor
+.for TEMP in ${RPMFILES}
+RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP}
+.endfor
+
+.if !target(do-install)
+do-install:
+ @if [ -f ${PKGDIR}/PLIST ]; then \
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
+ else \
+ ${RM} -f ${PLIST_SRC}; \
+ fi
+ ${RPM2PKG} ${RPM2PKGARGS}
+ @if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \
+ ${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \
+ ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}; \
+ ${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >>${PLIST_SRC}; \
+ ${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \
+ fi
+.endif
+
+show-shlib-type:
+ @${ECHO} linux-${MACHINE_ARCH}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/suse64_linux/PLIST b/emulators/suse64_linux/PLIST
new file mode 100644
index 00000000000..883efd1d342
--- /dev/null
+++ b/emulators/suse64_linux/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/04 10:07:58 tron Exp $
+@comment this plist intentionally left empty