pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/news/inn Add optional Python support. Based on patches...
details: https://anonhg.NetBSD.org/pkgsrc/rev/befa4a6f368d
branches: trunk
changeset: 505516:befa4a6f368d
user: tron <tron%pkgsrc.org@localhost>
date: Wed Jan 04 10:32:40 2006 +0000
description:
Add optional Python support. Based on patches supplied by Anders Mundt Due
in PR pkg/32299.
diffstat:
news/inn/Makefile | 16 +++++++++-------
news/inn/options.mk | 17 +++++++++++++++++
2 files changed, 26 insertions(+), 7 deletions(-)
diffs (66 lines):
diff -r f049eb016045 -r befa4a6f368d news/inn/Makefile
--- a/news/inn/Makefile Wed Jan 04 08:58:47 2006 +0000
+++ b/news/inn/Makefile Wed Jan 04 10:32:40 2006 +0000
@@ -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 @@
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 @@
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 @@
GCC_REQD+= 2.95.3
.endif
+.include "options.mk"
+
post-patch:
${RM} -f ${WRKSRC}/samples/inn.conf.in.orig_dist
diff -r f049eb016045 -r befa4a6f368d news/inn/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/inn/options.mk Wed Jan 04 10:32:40 2006 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index