aboutsummaryrefslogtreecommitdiffstats
path: root/news/inn-stable/Makefile
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-02-27 00:20:51 +0800
committerclement <clement@FreeBSD.org>2004-02-27 00:20:51 +0800
commit9336081b168c8a647185b46c7965cd31a8edb5bb (patch)
tree45406ac06126bd8bc2efc39bb15ec4080b081037 /news/inn-stable/Makefile
parent79f6f72735eadd4a59448fdcb9b99b85885a83b2 (diff)
downloadfreebsd-ports-gnome-9336081b168c8a647185b46c7965cd31a8edb5bb.tar.gz
freebsd-ports-gnome-9336081b168c8a647185b46c7965cd31a8edb5bb.tar.zst
freebsd-ports-gnome-9336081b168c8a647185b46c7965cd31a8edb5bb.zip
- Add WITH_STANDARD_ETC knob
If you define WITH_STANDARD_ETC inn config files are put in ${PREFIX}/etc/inn Requested by: Jochen Gensch <incmc@gmx.de> (PR 61974)
Diffstat (limited to 'news/inn-stable/Makefile')
-rw-r--r--news/inn-stable/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/news/inn-stable/Makefile b/news/inn-stable/Makefile
index e73e4792e921..df7da01ed9f6 100644
--- a/news/inn-stable/Makefile
+++ b/news/inn-stable/Makefile
@@ -45,7 +45,8 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/man \
--with-perl \
--with-tmp-dir=${INN_NEWSSPOOL}/tmp \
--with-openssl=${OPENSSLBASE} \
- --enable-ipv6
+ --enable-ipv6 \
+ --with-etc-dir=${ETC_DIR}
.if defined(WITH_BERKELEYDB)
CONFIGURE_ARGS+= --with-berkeleydb=${LOCABASE}
@@ -126,6 +127,14 @@ MAN8= actsync.8 actsyncd.8 archive.8 auth_smb.8 batcher.8 buffchan.8 \
.include <bsd.port.pre.mk>
+.if defined(WITH_STANDARD_ETC)
+ETC_DIR= ${PREFIX}/etc/inn
+PLIST_SUB+= ETCDIR=etc/inn
+.else
+ETC_DIR= ${PREFIX}/news/etc
+PLIST_SUB+= ETCDIR=news/etc
+.endif
+
post-patch:
.if defined(WITH_TCL)
@${REINPLACE_CMD} -e 's!<tcl.h>!<tcl8.3/tcl.h>!' ${WRKSRC}/innd/innd.h
@@ -150,7 +159,7 @@ post-install:
s+!!PREFIX!!+${PREFIX}+g && ${CHMOD} +x ${PREFIX}/etc/rc.d/innd.sh
@${CHOWN} root:news ${PREFIX}/news/bin/auth/passwd/ckpasswd
@${CHMOD} 4755 ${PREFIX}/news/bin/auth/passwd/ckpasswd
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF ${ETC_DIR}
@(if [ ! -f ${PREFIX}/news/db/history ] ; then \
${ECHO} 'Creating empty history database...' ; \
cd ${PREFIX}/news/db ; \