summaryrefslogtreecommitdiff
path: root/news/inn
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-01-04 10:32:40 +0000
committertron <tron@pkgsrc.org>2006-01-04 10:32:40 +0000
commit3009c305453326668d6d123eb05bf7cc6a11f49b (patch)
tree5b54f063126ceda2c06b880ffeeae8bc92059cc4 /news/inn
parent780cc4909826343259f54bf22786bdf3e7c03423 (diff)
downloadpkgsrc-3009c305453326668d6d123eb05bf7cc6a11f49b.tar.gz
Add optional Python support. Based on patches supplied by Anders Mundt Due
in PR pkg/32299.
Diffstat (limited to 'news/inn')
-rw-r--r--news/inn/Makefile16
-rw-r--r--news/inn/options.mk17
2 files changed, 26 insertions, 7 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile
index 10878b6ba6f..58063da6ea2 100644
--- a/news/inn/Makefile
+++ b/news/inn/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.76 2005/12/29 06:22:05 jlam Exp $
+# $NetBSD: Makefile,v 1.77 2006/01/04 10:32:40 tron Exp $
DISTNAME= inn-2.4.1
PKGREVISION= 8
@@ -52,11 +52,11 @@ INN_SPOOLDIRS= archive articles overview incoming incoming/bad \
OWN_DIRS= ${PREFIX}/etc/nntp
OWN_DIRS_PERMS= ${INN_DATA_DIR} ${INN_USER} ${INN_GROUP} 0775
-.for DIR in ${INN_DATADIRS}
-MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/${DIR} ${INN_USER} ${INN_GROUP} 0775
+.for dir in ${INN_DATADIRS}
+MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/${dir} ${INN_USER} ${INN_GROUP} 0775
.endfor
-.for DIR in ${INN_SPOOLDIRS}
-MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/spool/${DIR} ${INN_USER} ${INN_GROUP} 0775
+.for dir in ${INN_SPOOLDIRS}
+MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/spool/${dir} ${INN_USER} ${INN_GROUP} 0775
.endfor
CFILES= actsync.cfg actsync.ign buffindexed.conf \
@@ -66,8 +66,8 @@ CFILES= actsync.cfg actsync.ign buffindexed.conf \
motd.news news2mail.cf newsfeeds nnrpd.track \
nntpsend.ctl ovdb.conf overview.fmt passwd.nntp \
radius.conf readers.conf sasl.conf storage.conf
-.for FILE in ${CFILES}
-CONF_FILES_PERMS+= ${EXAMPLEDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \
+.for file in ${CFILES}
+CONF_FILES_PERMS+= ${EXAMPLEDIR}/${file} ${PKG_SYSCONFDIR}/${file} \
${INN_USER} ${INN_GROUP} 0664
.endfor
@@ -89,6 +89,8 @@ CONFIGURE_ARGS+= --with-sendmail=/usr/sbin/sendmail
GCC_REQD+= 2.95.3
.endif
+.include "options.mk"
+
post-patch:
${RM} -f ${WRKSRC}/samples/inn.conf.in.orig_dist
diff --git a/news/inn/options.mk b/news/inn/options.mk
new file mode 100644
index 00000000000..c76e3f71fbd
--- /dev/null
+++ b/news/inn/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2006/01/04 10:32:40 tron Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.inn
+PKG_SUPPORTED_OPTIONS= python
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Python support for INN
+###
+.if !empty(PKG_OPTIONS:Mpython)
+CONFIGURE_ARGS+= --with-python
+CONFIGURE_ENV+= _PATH_PYTHON=${PYTHONBIN:Q}
+
+.include "../../lang/python/application.mk"
+.endif