summaryrefslogtreecommitdiff
path: root/emulators/suse91_base
diff options
context:
space:
mode:
authorwiz <wiz>2004-10-02 01:26:19 +0000
committerwiz <wiz>2004-10-02 01:26:19 +0000
commitf6414a825375e83918ef02fbf92bdcad531e1585 (patch)
tree36d261df68209d3252302ba43e996121d01603da /emulators/suse91_base
parentfa299044fee6e9c6db806aa456971b8cbdab80ee (diff)
downloadpkgsrc-f6414a825375e83918ef02fbf92bdcad531e1585.tar.gz
Make ${EMULDIR}/etc/mtab point to ${EMULDIR}/proc/mounts, to make
df work at least if procfs -o linux is mount in ${EMULDIR}/proc. Add and remove proc dir. Bump PKGREVISION to 3.
Diffstat (limited to 'emulators/suse91_base')
-rw-r--r--emulators/suse91_base/Makefile8
-rw-r--r--emulators/suse91_base/PLIST4
2 files changed, 9 insertions, 3 deletions
diff --git a/emulators/suse91_base/Makefile b/emulators/suse91_base/Makefile
index ed2a14678cf..1cf13f0dafb 100644
--- a/emulators/suse91_base/Makefile
+++ b/emulators/suse91_base/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2004/08/30 00:00:25 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2004/10/02 01:26:19 wiz Exp $
DISTNAME= suse_base-${SUSE_VERSION}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SUSE91}
DISTFILES= ${RPMFILES}
@@ -57,12 +57,16 @@ do-install:
${RPM2PKG} ${RPM2PKGARGS}
${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC}
${INSTALL_DATA} ${WRKDIR}/SuSE-release ${EMULDIR}/etc
+ ${INSTALL_DATA_DIR} ${EMULDIR}/proc
+ ${LN} -fs ${EMULDIR}/proc/mounts ${EMULDIR}/etc/mtab
.if ${OPSYS} == "FreeBSD"
${BRANDELF} -t Linux ${EMULDIR}/sbin/ldconfig
.endif
${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" \
>>${PLIST_SRC}
+ ${ECHO} "@unexec ${RMDIR} %D/${EMULSUBDIR}/etc 2>/dev/null || ${TRUE}" \
+ >>${PLIST_SRC}
${SED} -e 's:#! :#! /${EMULSUBDIR}:' \
-e 's:^RTLD=:RTLD=/${EMULSUBDIR}:' \
< ${LINUX_LDD} > ${LINUX_LDD}.new
diff --git a/emulators/suse91_base/PLIST b/emulators/suse91_base/PLIST
index 10568afa11e..50621699660 100644
--- a/emulators/suse91_base/PLIST
+++ b/emulators/suse91_base/PLIST
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/13 10:31:14 tron Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/10/02 01:26:19 wiz Exp $
sbin/linux-mkpwd
@unexec ${RM} -f %D/@@EMULSUBDIR@@/etc/ld.so.cache
@@EMULSUBDIR@@/etc/SuSE-release
+@@EMULSUBDIR@@/etc/mtab
@@EMULSUBDIR@@/usr/lib/libz.so.1
+@dirrm @@EMULSUBDIR@@/proc
@unexec cd %D/@@EMULSUBDIR@@/etc && ${RM} -f group gshadow passwd shadow
@exec ${MKDIR} %D/@@EMULSUBDIR@@/dev
@exec ln -s /dev/sound %D/@@EMULSUBDIR@@/dev/dsp