diff options
author | Shaun Amott <shaun@FreeBSD.org> | 2006-11-01 15:14:40 +0000 |
---|---|---|
committer | Shaun Amott <shaun@FreeBSD.org> | 2006-11-01 15:14:40 +0000 |
commit | e008bbf4d3b5b8237bbdb9cabb721269f105e437 (patch) | |
tree | 4fedf6b7d453815d61803c3cf8a3469995eab59f /news | |
parent | c3873d95bea2e3a543c4a1c034a971e16185f366 (diff) | |
download | ports-e008bbf4d3b5b8237bbdb9cabb721269f105e437.tar.gz ports-e008bbf4d3b5b8237bbdb9cabb721269f105e437.zip |
Fix database directory ownership / configure options.
Notes
Notes:
svn path=/head/; revision=176088
Diffstat (limited to 'news')
-rw-r--r-- | news/inn/Makefile | 3 | ||||
-rw-r--r-- | news/inn/files/pkg-install.in | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile index 9677d4e92177..76ab9ff2d26e 100644 --- a/news/inn/Makefile +++ b/news/inn/Makefile @@ -50,6 +50,7 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/man \ --with-tmp-dir=${INN_TMPDIR} \ --with-openssl=${OPENSSLBASE} \ --with-etc-dir=${INN_ETCDIR} \ + --with-db-dir=${INN_DBDIR} \ --enable-ipv6 .include <bsd.port.pre.mk> @@ -245,7 +246,7 @@ post-install: ${TOUCH} history ; \ ${CHMOD} 644 history ; \ ${CHOWN} news:news history ; \ - su -fm news -c "../bin/makedbz -i" ; \ + su -fm news -c "${INN_NEWSBASE}/bin/makedbz -i" ; \ for s in ${DBZ_FILES} ; do \ ${MV} history.n.$${s} history.$${s} ; \ done ; \ diff --git a/news/inn/files/pkg-install.in b/news/inn/files/pkg-install.in index 24307e0aa623..f083cdc46533 100644 --- a/news/inn/files/pkg-install.in +++ b/news/inn/files/pkg-install.in @@ -17,7 +17,9 @@ case $2 in PRE-INSTALL) echo "===> Checking for old database files" if [ ! -d ${DBDIR} ]; then + mkdir -p ${DBDIR} mkdir -p ${EGDIR}/db + chown news:news ${DBDIR} fi ;; CHECK-CONF) |