summaryrefslogtreecommitdiff
path: root/emulators/suse_base
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2003-03-22 01:22:29 +0000
committerdillo <dillo@pkgsrc.org>2003-03-22 01:22:29 +0000
commitfd1103bddf442eb705630f028900a91c8fbf3364 (patch)
tree7d62b088c6c189091dd403cfd3d8fffd20d906cd /emulators/suse_base
parent6d6fdb9cd1931acf0cea2ebbea06da9b5b816dba (diff)
downloadpkgsrc-fd1103bddf442eb705630f028900a91c8fbf3364.tar.gz
install etc/SuSE-release, since some applications expect it.
bump pkgrevision closes PR 20267
Diffstat (limited to 'emulators/suse_base')
-rw-r--r--emulators/suse_base/Makefile8
-rw-r--r--emulators/suse_base/PLIST3
-rw-r--r--emulators/suse_base/files/SuSE-release2
3 files changed, 10 insertions, 3 deletions
diff --git a/emulators/suse_base/Makefile b/emulators/suse_base/Makefile
index 79779cf7116..f4178adf500 100644
--- a/emulators/suse_base/Makefile
+++ b/emulators/suse_base/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2003/03/01 10:46:39 jmc Exp $
+# $NetBSD: Makefile,v 1.37 2003/03/22 01:22:30 dillo Exp $
DISTNAME= suse_base-${SUSE_VERSION}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SUSE:=a1/} \
${MASTER_SITE_SUSE_UPD:=a1/}
@@ -39,6 +39,9 @@ do-build:
-e 's#@@EMULSUBDIR@@#${EMULSUBDIR}#g' \
<$$FILE >${WRKDIR}/`basename $$FILE`; \
done
+ ${SED} -e 's#@@VERSION@@#${SUSE_VERSION}#g' \
+ -e 's#@@ARCH@@#${SUSE_ARCH}#g' \
+ <${FILESDIR}/SuSE-release >${WRKDIR}/SuSE-release
do-install:
for FILE in ${WRKDIR}/*.sh; do \
@@ -50,6 +53,7 @@ do-install:
@${CP} ${WRKDIR}/PLIST ${PLIST_SRC}
${RPM2PKG} ${RPM2PKGARGS}
${ECHO} "@dirrm ${EMULSUBDIR}" >>${PLIST_SRC}
+ ${INSTALL_DATA} ${WRKDIR}/SuSE-release ${EMULDIR}/etc
${INSTALL_DATA} ${FILESDIR}/ld.so.conf ${EMULDIR}/etc
${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" \
diff --git a/emulators/suse_base/PLIST b/emulators/suse_base/PLIST
index a8091a8d265..9a2de5c7c24 100644
--- a/emulators/suse_base/PLIST
+++ b/emulators/suse_base/PLIST
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.4 2002/08/25 21:49:48 jlam Exp $
+@comment $NetBSD: PLIST,v 1.5 2003/03/22 01:22:30 dillo Exp $
sbin/linux-mkpwd
@unexec ${RM} -f %D/@@EMULSUBDIR@@/etc/ld.so.cache
+@@EMULSUBDIR@@/etc/SuSE-release
@@EMULSUBDIR@@/etc/ld.so.conf
@unexec cd %D/@@EMULSUBDIR@@/etc && ${RM} -f group gshadow passwd shadow
@exec ${MKDIR} %D/@@EMULSUBDIR@@/dev
diff --git a/emulators/suse_base/files/SuSE-release b/emulators/suse_base/files/SuSE-release
new file mode 100644
index 00000000000..247032986b2
--- /dev/null
+++ b/emulators/suse_base/files/SuSE-release
@@ -0,0 +1,2 @@
+SuSE Linux @@VERSION@@ (@@ARCH@@)
+VERSION = @@VERSION@@