From 85648f0a0dda6d1076c5d27471885ae215f96fcd Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sun, 19 Nov 2006 10:57:13 +0000 Subject: [PATCH] Fix missing function prototype definition --- debian/changelog | 8 +++++++ debian/control | 2 +- debian/patches/00list | 1 + debian/patches/01_fix_prototyp.dpatch | 31 +++++++++++++++++++++++++++ debian/rules | 6 ++++-- 5 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 debian/patches/00list create mode 100755 debian/patches/01_fix_prototyp.dpatch diff --git a/debian/changelog b/debian/changelog index a31730d..4d372c4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +dns-flood-detector (1.10-4) unstable; urgency=low + + * included fix_prototyp patch provided by "dann frazier " + (Closes: #399283). + * build depend to dpatch + + -- Jan Wagner Sun, 19 Nov 2006 10:18:55 +0100 + dns-flood-detector (1.10-3) unstable; urgency=low * using killall in init script to get daemon stopped diff --git a/debian/control b/debian/control index e6850f0..175e510 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: dns-flood-detector Section: net Priority: optional Maintainer: Jan Wagner -Build-Depends: debhelper (>= 5), libpcap0.8-dev +Build-Depends: debhelper (>= 5), dpatch, libpcap0.8-dev Standards-Version: 3.7.2 Package: dns-flood-detector diff --git a/debian/patches/00list b/debian/patches/00list new file mode 100644 index 0000000..3220968 --- /dev/null +++ b/debian/patches/00list @@ -0,0 +1 @@ +01_fix_prototyp.dpatch diff --git a/debian/patches/01_fix_prototyp.dpatch b/debian/patches/01_fix_prototyp.dpatch new file mode 100755 index 0000000..e819b18 --- /dev/null +++ b/debian/patches/01_fix_prototyp.dpatch @@ -0,0 +1,31 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 01_fix_prototyp.dpatch by dann frazier +## +## DP: fix missing function prototype definition + +@DPATCH@ + +--- dns-flood-detector-1.10/dns_flood_detector.c~ 2003-12-29 20:53:38.000000000 -0700 ++++ dns-flood-detector-1.10/dns_flood_detector.c 2006-11-18 17:38:47.000000000 -0700 +@@ -79,11 +79,13 @@ + #include + #include + #include ++#include + #include + #include + #include + #include + #include ++#include + #ifdef __bsdi__ + #include + #else +@@ -99,6 +101,7 @@ + #include + #include + #include ++#include + #include "dns_flood_detector.h" + + // global variables and their defaults diff --git a/debian/rules b/debian/rules index 1bec93c..d2b64f4 100755 --- a/debian/rules +++ b/debian/rules @@ -4,6 +4,8 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpatch/dpatch.make + CFLAGS += -D_BSD_SOURCE -Wall -g LDLIBS += -lpcap -lpthread -lm @@ -14,14 +16,14 @@ else endif build: build-stamp -build-stamp: +build-stamp: patch-stamp dh_testdir # Add here commands to compile the package. $(CC) $(CFLAGS) dns_flood_detector.c $(LDLIBS) -o dns_flood_detector touch $@ -clean: +clean: unpatch dh_testdir dh_testroot rm -f build-stamp