From f55829cb5a9fe10fe9a00b9f2b347e0ad0acc862 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Sun, 20 Jan 2002 01:11:27 +0000 Subject: 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. --- sysutils/nut/Makefile | 7 ++++++- sysutils/nut22/Makefile | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'sysutils') diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile index e309cf7d148f..22d580cc6487 100644 --- a/sysutils/nut/Makefile +++ b/sysutils/nut/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 diff --git a/sysutils/nut22/Makefile b/sysutils/nut22/Makefile index e309cf7d148f..22d580cc6487 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 -- cgit v1.2.3