summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormrauch <mrauch@pkgsrc.org>2003-02-27 22:04:08 +0000
committermrauch <mrauch@pkgsrc.org>2003-02-27 22:04:08 +0000
commit6d3aaab08dd2d0120a272ff781fee580e9a05849 (patch)
tree7e2386a008c5889b91a4c1f26b7826d42967bc88 /misc
parent55d7859cdf0acddb63b318138c6074049253ffb2 (diff)
downloadpkgsrc-6d3aaab08dd2d0120a272ff781fee580e9a05849.tar.gz
Automate the creation of /emul/linux/etc/mtab:
Use the code from Johnny (jlam) again, but do an additional copy at pre-install, because the file has to be present during do-install already.
Diffstat (limited to 'misc')
-rw-r--r--misc/openoffice-linux/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/misc/openoffice-linux/Makefile b/misc/openoffice-linux/Makefile
index 43cfa0818a1..469c9da9f77 100644
--- a/misc/openoffice-linux/Makefile
+++ b/misc/openoffice-linux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2003/02/27 20:59:20 mrauch Exp $
+# $NetBSD: Makefile,v 1.6 2003/02/27 22:04:08 mrauch Exp $
DISTNAME= OOo_1.0.2_LinuxIntel_install
PKGNAME= openoffice-linux-1.0.2
@@ -13,7 +13,6 @@ COMMENT= Integrated office productivity suite (binary pkg)
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}/install
-INTERACTIVE_STAGE= install
CONFLICTS+= staroffice-[0-9]*
CONFLICTS+= openoffice-[0-9]*
@@ -39,15 +38,16 @@ DISPLAY= ':2'
do-build:
+.if ${OPSYS} == "NetBSD"
+USE_PKGINSTALL= yes
+SUPPORT_FILES= /dev/null /emul/linux/etc/mtab
+.endif
+
pre-install: checkforx
${SED} -e "s|@@PREFIX@@|${PREFIX}|g" \
< ${FILESDIR}/oo_setup.resp > ${WRKSRC}/oo_setup.resp
. if ${OPSYS}=="NetBSD" && !exists(/emul/linux/etc/mtab)
- @${ECHO} 'Error: Before you are able to install and use this package,'
- @${ECHO} ' the file /emul/linux/etc/mtab must exist.'
- @${ECHO} ' Please create this file, e.g. by running'
- @${ECHO} ' "touch /emul/linux/etc/mtab".'
- @${FALSE}
+ ${CP} /dev/null /emul/linux/etc/mtab
. endif
do-install: