summaryrefslogtreecommitdiff
path: root/package/portsentry
diff options
context:
space:
mode:
Diffstat (limited to 'package/portsentry')
-rw-r--r--package/portsentry/Config.in9
-rw-r--r--package/portsentry/Makefile30
-rw-r--r--package/portsentry/ipkg/portsentry.conffiles1
-rw-r--r--package/portsentry/ipkg/portsentry.control4
-rw-r--r--package/portsentry/patches/100-conf_location.patch11
-rw-r--r--package/portsentry/patches/101-postsentry_c.patch12
6 files changed, 67 insertions, 0 deletions
diff --git a/package/portsentry/Config.in b/package/portsentry/Config.in
new file mode 100644
index 000000000..27095069b
--- /dev/null
+++ b/package/portsentry/Config.in
@@ -0,0 +1,9 @@
+config ADK_PACKAGE_PORTSENTRY
+ prompt "portsentry........................ Portscan protection utility"
+ tristate
+ default n
+ help
+ Software for protection against port scans
+
+ http://sourceforge.net/projects/sentrytools
+
diff --git a/package/portsentry/Makefile b/package/portsentry/Makefile
new file mode 100644
index 000000000..6fd433540
--- /dev/null
+++ b/package/portsentry/Makefile
@@ -0,0 +1,30 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= portsentry
+PKG_VERSION:= 1.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 3ebd3618ba9abfea2525e236bd44cebd
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=sentrytools/}
+
+WRKDIST= ${WRKDIR}/${PKG_NAME}_beta
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,PORTSENTRY,portsentry,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+ALL_TARGET:= linux
+MAKE_FLAGS+= CC="${TARGET_CC}" CFLAGS="${TCFLAGS}"
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_PORTSENTRY}/usr/bin \
+ ${IDIR_PORTSENTRY}/etc
+ ${INSTALL_DATA} ${WRKBUILD}/${PKG_NAME}.conf ${IDIR_PORTSENTRY}/etc/
+ ${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_PORTSENTRY}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/portsentry/ipkg/portsentry.conffiles b/package/portsentry/ipkg/portsentry.conffiles
new file mode 100644
index 000000000..9c0810ccb
--- /dev/null
+++ b/package/portsentry/ipkg/portsentry.conffiles
@@ -0,0 +1 @@
+/etc/portsentry.conf
diff --git a/package/portsentry/ipkg/portsentry.control b/package/portsentry/ipkg/portsentry.control
new file mode 100644
index 000000000..f05b282df
--- /dev/null
+++ b/package/portsentry/ipkg/portsentry.control
@@ -0,0 +1,4 @@
+Package: portsentry
+Priority: optional
+Section: net
+Description: Software for protection against port scans
diff --git a/package/portsentry/patches/100-conf_location.patch b/package/portsentry/patches/100-conf_location.patch
new file mode 100644
index 000000000..457c9c827
--- /dev/null
+++ b/package/portsentry/patches/100-conf_location.patch
@@ -0,0 +1,11 @@
+--- portsentry/portsentry_config.h 2003-05-23 20:10:13.000000000 +0200
++++ portsentry.old/portsentry_config.h 2005-07-09 21:21:15.000000000 +0200
+@@ -22,7 +22,7 @@
+
+ /* These are probably ok. Be sure you change the Makefile if you */
+ /* change the path */
+-#define CONFIG_FILE "/usr/local/psionic/portsentry/portsentry.conf"
++#define CONFIG_FILE "/etc/portsentry.conf"
+
+ /* The location of Wietse Venema's TCP Wrapper hosts.deny file */
+ #define WRAPPER_HOSTS_DENY "/etc/hosts.deny"
diff --git a/package/portsentry/patches/101-postsentry_c.patch b/package/portsentry/patches/101-postsentry_c.patch
new file mode 100644
index 000000000..e36bb2a12
--- /dev/null
+++ b/package/portsentry/patches/101-postsentry_c.patch
@@ -0,0 +1,12 @@
+--- portsentry/portsentry.c 2003-05-23 20:10:13.000000000 +0200
++++ portsentry.old/portsentry.c 2005-07-09 21:57:24.000000000 +0200
+@@ -1581,8 +1581,7 @@
+ Usage (void)
+ {
+ printf ("PortSentry - Port Scan Detector.\n");
+- printf ("Copyright 1997-2003 Craig H. Rowland <craigrowland at users dot
+-sourceforget dot net>\n");
++ printf ("Copyright 1997-2003 Craig H. Rowland <craigrowland at users dot sourceforget dot net>\n");
+ printf ("Licensing restrictions apply. Please see documentation\n");
+ printf ("Version: %s\n\n", VERSION);
+ #ifdef SUPPORT_STEALTH