From b1018ec894ae1d9bf75f3d4bb36e2e5b478c4152 Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 14 Feb 2000 16:23:31 +0000 Subject: Make this work on NetBSD as well as Solaris. --- security/ddos-scan/Makefile | 10 +--------- security/ddos-scan/files/patch-sum | 3 +++ security/ddos-scan/patches/patch-aa | 21 +++++++++++++++++++++ 3 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 security/ddos-scan/files/patch-sum create mode 100644 security/ddos-scan/patches/patch-aa 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 -- cgit v1.2.3