summaryrefslogtreecommitdiff
path: root/emulators/suse91_linux
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-07-13 10:31:13 +0000
committertron <tron@pkgsrc.org>2004-07-13 10:31:13 +0000
commitc4c7c2005044bafa7d2d6a99acfe6660f9fc42c3 (patch)
treea07280160cb5bb4f61b1ce60c59bc71f50cd38eb /emulators/suse91_linux
parent681b8c43493b945736679aa990d8b966bc5d3b87 (diff)
downloadpkgsrc-c4c7c2005044bafa7d2d6a99acfe6660f9fc42c3.tar.gz
Initial import of SuSE Linux 9.1 based packages for Linux emulation.
Warning: NetBSD's Linux emulation does *not* work stable with these packages.
Diffstat (limited to 'emulators/suse91_linux')
-rw-r--r--emulators/suse91_linux/Makefile.common62
-rw-r--r--emulators/suse91_linux/arch.mk19
2 files changed, 81 insertions, 0 deletions
diff --git a/emulators/suse91_linux/Makefile.common b/emulators/suse91_linux/Makefile.common
new file mode 100644
index 00000000000..0f6721f1a04
--- /dev/null
+++ b/emulators/suse91_linux/Makefile.common
@@ -0,0 +1,62 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/07/13 10:31:15 tron Exp $
+
+SUSE_VERSION= 9.1
+
+.include "../../emulators/suse91_linux/arch.mk"
+
+MASTER_SITE_SUSE91?= ftp://ftp.suse.com/pub/suse/${SUSE_ARCH_DIR}/9.1/suse/${SUSE_ARCH}/ \
+ ftp://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/${SUSE_ARCH_DIR}/9.1/suse/${SUSE_ARCH}/ \
+ ftp://gd.tuwien.ac.at/linux/suse.com/suse/${SUSE_ARCH_DIR}/9.1/suse/${SUSE_ARCH}/
+
+DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}/${SUSE_ARCH}
+
+WRKSRC?= ${WRKDIR}
+MANCOMPRESSED?= yes
+
+EMULSUBDIR= emul/linux
+EMULDIR= ${PREFIX}/${EMULSUBDIR}
+
+RPM2PKG= ${PREFIX}/sbin/rpm2pkg
+BUILD_DEPENDS+= rpm2pkg>=2.1:../../pkgtools/rpm2pkg
+
+BUILD_DEFS+= RPMFILES
+.if defined(RPMIGNOREPATH)
+BUILD_DEFS+= RPMIGNOREPATH
+.endif
+
+# The SuSE Linux packages have circular dependencies.
+LDD?= ${TRUE}
+
+RPM2PKGSTRIP?= 1
+RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR} \
+ -s ${RPM2PKGSTRIP}
+.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}; \
+ ${CP} ${_PKGSRCDIR}/emulators/suse_linux/PLIST_dynamic ${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}; \
+ ${MV} -f ${PLIST_SRC} ${PLIST_SRC}.old; \
+ ${GREP} -v '^@dirrm' ${PLIST_SRC}.old >${PLIST_SRC}; \
+ ${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}; \
+ ${GREP} '^@dirrm' ${PLIST_SRC}.old >>${PLIST_SRC}; \
+ ${RM} -f ${PLIST_SRC}.old; \
+ fi
+.endif
+
+show-shlib-type:
+ @${ECHO} linux-${MACHINE_ARCH}
diff --git a/emulators/suse91_linux/arch.mk b/emulators/suse91_linux/arch.mk
new file mode 100644
index 00000000000..c4db621bfeb
--- /dev/null
+++ b/emulators/suse91_linux/arch.mk
@@ -0,0 +1,19 @@
+# $NetBSD: arch.mk,v 1.1.1.1 2004/07/13 10:31:15 tron Exp $
+
+.ifndef SUSE_ARCH_MK
+SUSE_ARCH_MK=1
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+SUSE_ARCH?= i586
+SUSE_ARCH_DIR?= ${MACHINE_ARCH}
+.elif ${MACHINE_ARCH} == "powerpc"
+SUSE_ARCH?= ppc
+.else
+SUSE_ARCH?= ${MACHINE_ARCH}
+.endif
+
+SUSE_ARCH_DIR?= ${SUSE_ARCH}
+
+.endif # SUSE_ARCH_MK