summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-02-14 16:23:31 +0000
committeragc <agc@pkgsrc.org>2000-02-14 16:23:31 +0000
commitb1018ec894ae1d9bf75f3d4bb36e2e5b478c4152 (patch)
tree26afacf19cca498b4094ea2a2cc0fba463f88e6b
parent5dccc7276f3979a2b42d18361cd14dbff095a9fe (diff)
downloadpkgsrc-b1018ec894ae1d9bf75f3d4bb36e2e5b478c4152.tar.gz
Make this work on NetBSD as well as Solaris.
-rw-r--r--security/ddos-scan/Makefile10
-rw-r--r--security/ddos-scan/files/patch-sum3
-rw-r--r--security/ddos-scan/patches/patch-aa21
3 files changed, 25 insertions, 9 deletions
diff --git a/security/ddos-scan/Makefile b/security/ddos-scan/Makefile
index cca671f85e2..3661ea2752f 100644
--- a/security/ddos-scan/Makefile
+++ b/security/ddos-scan/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/02/11 10:47:16 agc Exp $
+# $NetBSD: Makefile,v 1.2 2000/02/14 16:23:31 agc Exp $
#
DISTNAME= ddos_scan
@@ -13,14 +13,6 @@ HOMEPAGE= http://staff.washington.edu/dittrich/
DECOMPRESS_CMD= ${CAT}
ALL_TARGET= default dds
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "SunOS"
-MAKE_ENV+= CPPFLAGS=""
-.elif ${OPSYS} == "NetBSD"
-MAKE_ENV+= LIBS=""
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dds ${PREFIX}/sbin/dds
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dds
diff --git a/security/ddos-scan/files/patch-sum b/security/ddos-scan/files/patch-sum
new file mode 100644
index 00000000000..0966fb5f18d
--- /dev/null
+++ b/security/ddos-scan/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1 2000/02/14 16:23:31 agc Exp $
+
+MD5 (patch-aa) = 6f46f1afe4b28ae21d44981643d958d4
diff --git a/security/ddos-scan/patches/patch-aa b/security/ddos-scan/patches/patch-aa
new file mode 100644
index 00000000000..a62862fc981
--- /dev/null
+++ b/security/ddos-scan/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1 2000/02/14 16:23:32 agc Exp $
+
+Check which OS we're on, and use the correct LIBS and
+CPPFLAGS appropriately.
+
+--- Makefile 2000/02/14 16:14:21 1.1
++++ Makefile 2000/02/14 16:15:16
+@@ -4,7 +4,13 @@
+ CFLAGS=
+
+ # For Solaris 2.5.1 and above, uncomment the following line.
++
++OPSYS!= uname -s
++
++.if ${OPSYS} == "SunOS"
++CPPFLAGS=
+ LIBS=-lresolv -lsocket -lnsl
++.endif
+
+ default:
+ @clear