diff options
author | dougb <dougb@FreeBSD.org> | 2002-01-20 01:11:27 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2002-01-20 01:11:27 +0000 |
commit | c21d85004cce6fc26c450787bfd67208cc0bda41 (patch) | |
tree | c478300ee84adb7c2c960872c8cb2ec18a4f17ad /sysutils/nut22/Makefile | |
parent | ca79ecc65fcace3659572aa4eb0d75b9ee3a63c4 (diff) | |
download | FreeBSD-ports-c21d85004cce6fc26c450787bfd67208cc0bda41.zip FreeBSD-ports-c21d85004cce6fc26c450787bfd67208cc0bda41.tar.gz |
The safest way to handle nut's state and pid files is to have them all
sent to a directory that's writeable by user uucp. I generally configure
this manually myself when I install nut, and since there are so many
other things that need manual configuration, I never thought it was
a big deal. However, a user pointed out that it'd be nice if the thing
(well, at least this part of the thing) worked more or less out of
the box, so here you go.
This change adds a /var/db/nut directory that is owned by user uucp.
Diffstat (limited to 'sysutils/nut22/Makefile')
-rw-r--r-- | sysutils/nut22/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile index e309cf7..22d580c 100644 --- a/sysutils/nut22/Makefile +++ b/sysutils/nut22/Makefile @@ -14,8 +14,11 @@ MAINTAINER= DougB@FreeBSD.org GNU_CONFIGURE= yes CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \ + --localstatedir=/var/db/nut \ --with-modelpath=${PREFIX}/libexec/nut \ - --with-statepath=/var/db + --with-statepath=/var/db/nut \ + --with-altpidpath=/var/db/nut \ + --with-pidpath=/var/db/nut MAN5= ups.conf.5 upsd.conf.5 upsd.users.5 upsmon.conf.5 \ upssched.conf.5 @@ -48,6 +51,8 @@ pre-fetch: pre-install: @${MKDIR} ${PREFIX}/libexec/nut + @${MKDIR} /var/db/nut + @${CHOWN} uucp /var/db/nut NDOCDIR= ${PREFIX}/share/doc/nut |