diff options
author | shaun <shaun@FreeBSD.org> | 2006-11-01 15:14:40 +0000 |
---|---|---|
committer | shaun <shaun@FreeBSD.org> | 2006-11-01 15:14:40 +0000 |
commit | fca5089b7e186f2ebf6f3ae86436ce1d72fade34 (patch) | |
tree | 6d8614cf2380b0ec0429506b0b3a31b0bb7d8960 /news | |
parent | b3a8ad8c58850755c36db073b05888e7188d6e9d (diff) | |
download | FreeBSD-ports-fca5089b7e186f2ebf6f3ae86436ce1d72fade34.zip FreeBSD-ports-fca5089b7e186f2ebf6f3ae86436ce1d72fade34.tar.gz |
Fix database directory ownership / configure options.
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 9677d4e..76ab9ff 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 24307e0..f083cdc 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) |