summaryrefslogtreecommitdiff
path: root/time/anacron
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-05-23 14:12:46 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-05-23 14:12:46 +0000
commitac40acf2e55a43e485de9d3ffea6f5ffedcd3f35 (patch)
treeb1708d97514872c686d736b60da6c578584d221e /time/anacron
parent0c30afd272f4c3cee098b1abc92b0091a5ad7408 (diff)
downloadpkgsrc-ac40acf2e55a43e485de9d3ffea6f5ffedcd3f35.tar.gz
Use VARBASE as the base for the spool directory to support non-root installs.
From Andreas Kusalananda Kähäri by mail to pkgsrc-users. Bump PKGREVISION.
Diffstat (limited to 'time/anacron')
-rw-r--r--time/anacron/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/time/anacron/Makefile b/time/anacron/Makefile
index 92e3999d9d5..e73225b4faf 100644
--- a/time/anacron/Makefile
+++ b/time/anacron/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2013/11/21 23:50:05 jmmv Exp $
+# $NetBSD: Makefile,v 1.15 2015/05/23 14:12:46 bsiegert Exp $
#
DISTNAME= anacron-2.3
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anacron/}
@@ -29,7 +29,8 @@ SUBST_CLASSES+= man
SUBST_MESSAGE.man= Setting up manpages.
SUBST_STAGE.man= pre-configure
SUBST_FILES.man= anacrontab.5 anacron.8
-SUBST_SED.man= -e 's|/etc/anacrontab|${PKG_SYSCONFDIR}/anacrontab|g'
+SUBST_SED.man= -e 's|/etc/anacrontab|${PKG_SYSCONFDIR}/anacrontab|g' \
+ -e 's|/var/spool/anacron|${VARBASE}/spool/anacron|g'
MAKE_FLAGS+= ANACRONTAB='${PKG_SYSCONFDIR}/anacrontab'
MAKE_FLAGS+= BINDIR='${PREFIX}/sbin'
@@ -40,7 +41,7 @@ MAKE_FLAGS+= INSTALL_PROGRAM=${INSTALL_PROGRAM:Q}
MAKE_FLAGS+= MANDIR='${PREFIX}/man'
MAKE_FLAGS+= PREFIX=${PREFIX:Q}
MAKE_FLAGS+= SHELL=${SH:Q}
-MAKE_FLAGS+= SPOOLDIR='/var/spool/anacron'
+MAKE_FLAGS+= SPOOLDIR='${VARBASE}/spool/anacron'
EGDIR= ${PREFIX}/share/examples/anacron
.if exists(${FILESDIR}/anacrontab.${OPSYS})
@@ -49,7 +50,7 @@ CONF_FILES= ${EGDIR}/anacrontab.${OPSYS} \
CONF_FILES_MODE= 0600
.endif
-OWN_DIRS= /var/spool/anacron
+OWN_DIRS= ${VARBASE}/spool/anacron
RCD_SCRIPTS= anacron