diff options
Diffstat (limited to 'news/inn/Makefile')
-rw-r--r-- | news/inn/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile index 1c472776a927..9c52e9c407ea 100644 --- a/news/inn/Makefile +++ b/news/inn/Makefile @@ -40,7 +40,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 @@ -94,7 +95,6 @@ PLIST_SUB= SUB_WITH_TAGGED_HASH="@comment " PLIST_SUB+= SUB_WITHOUT_TAGGED_HASH="" .endif - EXTRA= CONTRIBUTORS HACKING INSTALL LICENSE MANIFEST NEWS README TODO HEADERS= clibrary.h config.h dbz.h libinn.h storage.h @@ -122,6 +122,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 @@ -146,7 +154,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 ; \ |