aboutsummaryrefslogtreecommitdiff
path: root/news/inn-stable/Makefile
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2003-11-21 05:06:32 +0000
committerMark Linimon <linimon@FreeBSD.org>2003-11-21 05:06:32 +0000
commitc3bb92b4391a8332569f9472587dc3c5dcf37b17 (patch)
tree66d2e7da32b59f4ba72861518b58001c9b11de14 /news/inn-stable/Makefile
parent9c9ed0af7167e62be5f1398597bb8c6c278981b8 (diff)
downloadports-c3bb92b4391a8332569f9472587dc3c5dcf37b17.tar.gz
ports-c3bb92b4391a8332569f9472587dc3c5dcf37b17.zip
Changelog:
- Update to 20031022 snapshot (committer's note: almost entirely documentation updates although there are some very minor bugfixes) - set correctly inn tmpdir [PR 57859: thanks to G. Paul Ziemba" <p-fbsd-bugs@treehouse.napa.ca.us>] - fix PKG_PREFIX for pkg-install, now post install script knows correct prefix - add support for db41, db4, db3 in ovdb. PR: ports/58395 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer)
Notes
Notes: svn path=/head/; revision=94609
Diffstat (limited to 'news/inn-stable/Makefile')
-rw-r--r--news/inn-stable/Makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/news/inn-stable/Makefile b/news/inn-stable/Makefile
index e506814a0df0..d58cf5fbe0ed 100644
--- a/news/inn-stable/Makefile
+++ b/news/inn-stable/Makefile
@@ -7,7 +7,6 @@
PORTNAME= inn
PORTVERSION= ${SNAPSHOT}
-PORTREVISION= 1
CATEGORIES= news ipv6
MASTER_SITES= http://sheepkiller.nerim.net/ports/${PORTNAME}/ \
http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/
@@ -18,14 +17,14 @@ MAINTAINER= sheepkiller@cultdeadsheep.org
COMMENT= InterNetNews -- the Internet meets Netnews
BRANCH= stable
-SNAPSHOT= 20030922
+SNAPSHOT= 20031022
NO_LATEST_LINK= yes
USE_GMAKE= yes
USE_PERL5= yes
USE_OPENSSL= yes
-CONFLICTS= inn*
+CONFLICTS= inn-2.4.0* inn-current-*
.if exists(/var/news) && !defined(PACKAGE_BUILDING)
INN_NEWSSPOOL?=/var/news
@@ -43,14 +42,24 @@ CONFIGURE_ARGS+= --mandir=${PREFIX}/man \
--with-spool-dir=${INN_NEWSSPOOL} \
--with-log-dir=${INN_NEWSLOG} \
--with-perl \
- --with-tmp-path=${INN_NEWSSPOOL}/tmp \
+ --with-tmp-dir=${INN_NEWSSPOOL}/tmp \
--with-openssl=${OPENSSLBASE} \
--enable-ipv6
.if defined(WITH_BERKELEYDB)
-# We don't support other versions for the moment.
-CONFIGURE_ARGS+= --with-berkeleydb
-LIB_DEPENDS+= db41:${PORTSDIR}/databases/db41
+CONFIGURE_ARGS+= --with-berkeleydb=${LOCABASE}
+. if !defined(WITH_BDB_VER)
+WITH_BDB_VER= 41
+. endif
+. if (${WITH_BDB_VER} == 3) || (${WITH_BDB_VER} == 4) || (${WITH_BDB_VER} == 41)
+LIB_DEPENDS+= db${WITH_BDB_VER}:${PORTSDIR}/databases/db${WITH_BDB_VER}
+. elif ${WITH_BDB_VER} == 2
+BROKEN= "Does not compile with db2"
+. else
+BROKEN= "Unknown BerkeleyDB version"
+. endif
+CONFIGURE_ENV+= DB_VER=db${WITH_BDB_VER}
+CONFIGURE_ARGS+= --with-berkeleydb=${LOCALBASE}
.endif
.if defined(WITH_PYTHON)
@@ -89,7 +98,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
@@ -139,7 +147,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=${PKG_PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} CHECK-CONF
@(if [ ! -f ${PREFIX}/news/db/history ] ; then \
${ECHO} 'Creating empty history database...' ; \
cd ${PREFIX}/news/db ; \