summaryrefslogtreecommitdiff
path: root/net/ntop2
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-09-07 22:22:18 +0000
committerjmmv <jmmv@pkgsrc.org>2004-09-07 22:22:18 +0000
commit46a1aefd21d868470b0f895beb84881713d937c0 (patch)
treed71247c315742cfb25f4232d3bfaeeb6c704a5f6 /net/ntop2
parentdd49dadba10cfdcd00b6c7564c04b17b81218da6 (diff)
downloadpkgsrc-46a1aefd21d868470b0f895beb84881713d937c0.tar.gz
Avoid invoking automake and autoconf, and instead patch configure directly.
This fixes the build of this package, which was failing because recent versions of automake do not accept some constructions used in it.
Diffstat (limited to 'net/ntop2')
-rw-r--r--net/ntop2/Makefile11
-rw-r--r--net/ntop2/distinfo3
-rw-r--r--net/ntop2/patches/patch-ab33
3 files changed, 36 insertions, 11 deletions
diff --git a/net/ntop2/Makefile b/net/ntop2/Makefile
index e07ddfc5107..a3ff0fde47e 100644
--- a/net/ntop2/Makefile
+++ b/net/ntop2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2004/05/05 03:02:01 snj Exp $
+# $NetBSD: Makefile,v 1.28 2004/09/07 22:22:18 jmmv Exp $
DISTNAME= ntop-2.2
PKGNAME= ntop2-2.2
@@ -21,7 +21,6 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
# --enable-micro-ntop causes compile to fail
-CONFIGURE_ARGS+= --enable-automake171
CONFIGURE_ARGS+= --enable-sslv3
CONFIGURE_ARGS+= --with-pcap-root=${BUILDLINK_PREFIX.libpcap}
CONFIGURE_ARGS+= --with-ossl-root=${BUILDLINK_PREFIX.openssl}
@@ -33,17 +32,9 @@ CONFIGURE_ARGS+= --with-libpng-root=${BUILDLINK_PREFIX.png}
PTHREAD_OPTS+= require
-pre-configure:
- cd ${WRKSRC} && ${ACLOCAL}
- cd ${WRKSRC} && ${LOCALBASE}/bin/libtoolize --automake
- cd ${WRKSRC} && ${AUTOHEADER}
- cd ${WRKSRC} && ${AUTOMAKE} -a --foreign -i
- cd ${WRKSRC} && ${AUTOCONF}
-
.include "../../databases/gdbm/buildlink3.mk"
.include "../../graphics/gdchart/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
-.include "../../mk/automake.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/ntop2/distinfo b/net/ntop2/distinfo
index 529048e62b8..610053fdeb6 100644
--- a/net/ntop2/distinfo
+++ b/net/ntop2/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2003/06/23 13:23:37 adam Exp $
+$NetBSD: distinfo,v 1.5 2004/09/07 22:22:18 jmmv Exp $
SHA1 (ntop-2.2.tgz) = 062d33668ca29dd22a97c3bf8cb3a142aff360cd
Size (ntop-2.2.tgz) = 2551153 bytes
SHA1 (patch-aa) = e464ffc668512c773d8f528673ec67346dfb487e
+SHA1 (patch-ab) = b9fbe28fe6eb39c0283190927b058e897cd8b135
diff --git a/net/ntop2/patches/patch-ab b/net/ntop2/patches/patch-ab
new file mode 100644
index 00000000000..6bd9872d79d
--- /dev/null
+++ b/net/ntop2/patches/patch-ab
@@ -0,0 +1,33 @@
+$NetBSD: patch-ab,v 1.1 2004/09/07 22:22:18 jmmv Exp $
+
+--- configure.orig 2003-04-14 20:41:50.000000000 +0200
++++ configure
+@@ -8080,6 +8080,28 @@ if test ".${OSSL_LIB}" != "." ||
+ fi
+ # Finished expansion of NTOP_APPEND_LIBS()
+
++ # Expansion of NTOP_APPEND_LIBS(${OSSL_LIB}, crypto)
++ if test ".${OSSL_LIB}" != "."; then
++ rc=`(echo $LIBS | grep '${OSSL_LIB} ' > /dev/null 2> /dev/null; echo $?)`
++ if [ $rc -eq 1 ]; then
++ case "${DEFINEOS}" in
++ DARWIN )
++ LIBS="$LIBS -L${OSSL_LIB} -L${OSSL_LIB}/lib"
++ ;;
++ * )
++ LIBS="$LIBS -L${OSSL_LIB}"
++ ;;
++ esac
++ fi
++ if test ".crypto" != "."; then
++ rc=`(echo $LIBS | grep '\-lcrypto ' > /dev/null 2> /dev/null; echo $?)`
++ if [ $rc -eq 1 ]; then
++ LIBS="$LIBS -lcrypto"
++ fi
++ fi
++ fi
++# Finished expansion of NTOP_APPEND_LIBS()
++
+ # Expansion of NTOP_APPEND_INCS(${OSSL_INCLUDE})
+ if test ".${OSSL_INCLUDE}" != "."; then
+ rc=`(echo $INCS | grep '${OSSL_INCLUDE}' > /dev/null 2> /dev/null; echo $?)`