summaryrefslogtreecommitdiff
path: root/net/sniffit
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-01-08 14:59:18 +0000
committerwiz <wiz@pkgsrc.org>2001-01-08 14:59:18 +0000
commitb659c3fd3a6d9ccd470662933b05c3ffb8498c65 (patch)
treee97c52fb7c5be53a91108e091a7fbc5f8836d135 /net/sniffit
parentbb5867ae67ad36ac1df9e12ad0fd37f384c7b490 (diff)
downloadpkgsrc-b659c3fd3a6d9ccd470662933b05c3ffb8498c65.tar.gz
USE_CURSES instead of DEPENDS on ncurses.
Diffstat (limited to 'net/sniffit')
-rw-r--r--net/sniffit/Makefile16
-rw-r--r--net/sniffit/files/patch-sum3
-rw-r--r--net/sniffit/patches/patch-ae13
3 files changed, 27 insertions, 5 deletions
diff --git a/net/sniffit/Makefile b/net/sniffit/Makefile
index 3fdc344ef1e..f0ed6a5282c 100644
--- a/net/sniffit/Makefile
+++ b/net/sniffit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2000/01/15 18:46:33 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2001/01/08 14:59:18 wiz Exp $
#
DISTNAME= sniffit.0.3.5
@@ -9,12 +9,12 @@ MASTER_SITES= http://reptile.rug.ac.be/~coder/sniffit/files/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://reptile.rug.ac.be/~coder/sniffit/sniffit.html
-DEPENDS= ncurses>=4.2:../../devel/ncurses
-
NOT_FOR_PLATFORM= *-*-alpha # severe LP64 loss
+USE_CURSES= yes
+REPLACE_NCURSES= ${WRKSRC}/configure
+
HAS_CONFIGURE= YES
-CONFIGURE_ENV+= NCURSES_LOCATION=${LOCALBASE}/include/ncurses.h
ALL_TARGET=
do-install:
@@ -22,4 +22,12 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/sniffit.5 ${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/sniffit.8 ${PREFIX}/man/man8
+.include "../../mk/bsd.prefs.mk"
+
+.if ${NEED_NCURSES} == "YES"
+CONFIGURE_ENV+= NCURSES_LOCATION=${LOCALBASE}/include/ncurses.h
+.else
+CONFIGURE_ENV+= NCURSES_LOCATION=no
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/net/sniffit/files/patch-sum b/net/sniffit/files/patch-sum
index 83deb3c1c68..4ec3d621bba 100644
--- a/net/sniffit/files/patch-sum
+++ b/net/sniffit/files/patch-sum
@@ -1,6 +1,7 @@
-$NetBSD: patch-sum,v 1.3 2000/10/11 01:59:07 dmcmahill Exp $
+$NetBSD: patch-sum,v 1.4 2001/01/08 14:59:19 wiz Exp $
MD5 (patch-aa) = 28b163e90241484ffcbe3a77f0a99f54
MD5 (patch-ab) = e4a0d9c74cdcc298912441a91ad06882
MD5 (patch-ac) = 9e946e5ec2f7aaceba66267a8c0ad688
MD5 (patch-ad) = a0b8eb99f84413bad972b537c825a191
+MD5 (patch-ae) = 045ad5a8cd7e7ddf5b83d06d16e10b80
diff --git a/net/sniffit/patches/patch-ae b/net/sniffit/patches/patch-ae
new file mode 100644
index 00000000000..5cd6a058eae
--- /dev/null
+++ b/net/sniffit/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2001/01/08 14:59:19 wiz Exp $
+
+--- sn_config.h.orig Fri Apr 18 11:33:58 1997
++++ sn_config.h
+@@ -9,7 +9,7 @@
+ #ifndef HAVE_SHMGET /* No Shared memory */
+ #undef INCLUDE_INTERFACE
+ #endif
+-#ifndef HAVE_LIBNCURSES /* ncurses not found */
++#if !defined(HAVE_LIBNCURSES) && !defined(HAVE_LIBCURSES) /* ncurses not found */
+ #undef INCLUDE_INTERFACE
+ #endif
+ #ifndef HAVE_NCURSES_H /* ncurses not found */