pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[patch] time/anacron spooldir location
Hi,
I am an non-root user of pkgsrc and I thought that anacron
(time/anacron) would be suitable for doing some periodic cleanup work
for me.
I noticed, however, that the port tries to use /var/spool as its
spooldir, which for me won't work at all since I don't have write
permissions there.
I don't know if there's some policy against using ${PREFIX}/var/spool in
pkgsrc, but here's a simple patch for anacron that makes it work for me
(see attachment).
Cheers,
--
:: Andreas Kusalananda Kähäri, Bioinformatics Developer, BILS,
:: Uppsala University, Sweden
::----------------------------------------------------------------------
Index: Makefile
===================================================================
RCS file: /Volumes/NetBSD-pkgsrc/pkgsrc-cvs/pkgsrc/time/anacron/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile 21 Nov 2013 23:50:05 -0000 1.14
+++ Makefile 7 May 2015 10:29:52 -0000
@@ -2,7 +2,7 @@
#
DISTNAME= anacron-2.3
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anacron/}
@@ -40,7 +40,7 @@
MAKE_FLAGS+= MANDIR='${PREFIX}/man'
MAKE_FLAGS+= PREFIX=${PREFIX:Q}
MAKE_FLAGS+= SHELL=${SH:Q}
-MAKE_FLAGS+= SPOOLDIR='/var/spool/anacron'
+MAKE_FLAGS+= SPOOLDIR='${PREFIX}/var/spool/anacron'
EGDIR= ${PREFIX}/share/examples/anacron
.if exists(${FILESDIR}/anacrontab.${OPSYS})
@@ -49,7 +49,7 @@
CONF_FILES_MODE= 0600
.endif
-OWN_DIRS= /var/spool/anacron
+OWN_DIRS= ${PREFIX}/var/spool/anacron
RCD_SCRIPTS= anacron
Home |
Main Index |
Thread Index |
Old Index