diff options
author | linimon <linimon@FreeBSD.org> | 2003-11-21 12:53:39 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2003-11-21 12:53:39 +0800 |
commit | c33886b8a300b2a115e0ff9049d2a18b0d2966f6 (patch) | |
tree | 4dab7dab0d1723a5c11f78dc61694020f48a2673 | |
parent | 22668f2d31d8e691a5c3a4ca0ae2ce2b17b18bf5 (diff) | |
download | freebsd-ports-gnome-c33886b8a300b2a115e0ff9049d2a18b0d2966f6.tar.gz freebsd-ports-gnome-c33886b8a300b2a115e0ff9049d2a18b0d2966f6.tar.zst freebsd-ports-gnome-c33886b8a300b2a115e0ff9049d2a18b0d2966f6.zip |
Changelog:
- 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 db4, db3 in ovdb.
Note for users:
inn 2.4.0 DOESN'T SUPPORT db4.1. If you want to use db4.1, use inn-stable
instead.
PR: ports/58394
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer)
-rw-r--r-- | news/inn/Makefile | 22 | ||||
-rw-r--r-- | news/inn/files/patch-configure | 49 |
2 files changed, 54 insertions, 17 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile index fdfbb8a7df17..4bb1bc5ab8dc 100644 --- a/news/inn/Makefile +++ b/news/inn/Makefile @@ -7,7 +7,7 @@ PORTNAME= inn PORTVERSION= 2.4.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= news ipv6 MASTER_SITES= ${MASTER_SITE_ISC} MASTER_SITE_SUBDIR= inn @@ -20,7 +20,7 @@ USE_GMAKE= yes USE_PERL5= yes USE_OPENSSL= yes -CONFLICTS= inn-* +CONFLICTS= inn-stable-* inn-current .if exists(/var/news) && !defined(PACKAGE_BUILDING) INN_NEWSSPOOL?=/var/news @@ -38,14 +38,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+= db4:${PORTSDIR}/databases/db4 +. if !defined(WITH_BDB_VER) +WITH_BDB_VER= 4 +. endif +. if (${WITH_BDB_VER} == 3) || (${WITH_BDB_VER} == 4) +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) @@ -134,7 +144,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 ; \ diff --git a/news/inn/files/patch-configure b/news/inn/files/patch-configure index 64ff492b9865..fec9814ed0d2 100644 --- a/news/inn/files/patch-configure +++ b/news/inn/files/patch-configure @@ -1,15 +1,42 @@ ---- configure.orig Mon Sep 22 11:31:16 2003 -+++ configure Mon Sep 22 11:32:15 2003 -@@ -5828,9 +5828,9 @@ +--- configure.orig Fri May 9 06:25:27 2003 ++++ configure Wed Oct 22 19:16:35 2003 +@@ -5826,36 +5826,9 @@ + done + done fi - if test x"$BERKELEY_DB_DIR" = xyes ; then - for v in db4 db3 db2 ; do +- if test x"$BERKELEY_DB_DIR" = xyes ; then +- for v in db4 db3 db2 ; do - if test -d "/usr/local/include/$v" ; then - BERKELEY_DB_LDFLAGS="-L/usr/local/lib" - BERKELEY_DB_CFLAGS="-I/usr/local/include/$v" -+ if test -d "${LOCALBASE}/include/$v" ; then -+ BERKELEY_DB_LDFLAGS="-L${LOCALBASE}/lib" -+ BERKELEY_DB_CFLAGS="-I${LOCALBASE}/include/$v" - BERKELEY_DB_LIB="-l$v" - echo "$ac_t""FreeBSD locations" 1>&6 - break +- BERKELEY_DB_LIB="-l$v" +- echo "$ac_t""FreeBSD locations" 1>&6 +- break +- fi +- done +- if test x"$BERKELEY_DB_LIB" = x ; then +- for v in db4 db3 db2 ; do +- if test -d "/usr/include/$v" ; then +- BERKELEY_DB_CFLAGS="-I/usr/include/$v" +- BERKELEY_DB_LIB="-l$v" +- echo "$ac_t""Linux locations" 1>&6 +- break +- fi +- done +- if test x"$BERKELEY_DB_LIB" = x ; then +- BERKELEY_DB_LIB=-ldb +- echo "$ac_t""trying -ldb" 1>&6 +- fi +- fi +- else +- BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib" +- BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include" +- BERKELEY_DB_LIB="-ldb" +- echo "$ac_t""$BERKELEY_DB_DIR" 1>&6 +- fi ++ BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib" ++ BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include/${DB_VER}" ++ BERKELEY_DB_LIB="-l${DB_VER}" + cat >> confdefs.h <<\EOF + #define USE_BERKELEY_DB 1 + EOF |