aboutsummaryrefslogtreecommitdiff
path: root/security/portsentry/files
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-04-18 13:16:47 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-04-18 13:16:47 +0000
commite4c5d5f26ae6d1beee945a788b225938058235a2 (patch)
tree7df9b13224643d5fcf093f47d6f4c39a68c205c9 /security/portsentry/files
parenta9cf7529a0a59e4ffa14b13b291e20a6fc779d73 (diff)
downloadports-e4c5d5f26ae6d1beee945a788b225938058235a2.tar.gz
ports-e4c5d5f26ae6d1beee945a788b225938058235a2.zip
Notes
Diffstat (limited to 'security/portsentry/files')
-rw-r--r--security/portsentry/files/patch-aa17
-rw-r--r--security/portsentry/files/patch-ab17
-rw-r--r--security/portsentry/files/patch-ac18
-rw-r--r--security/portsentry/files/portsentry.sh.in17
4 files changed, 17 insertions, 52 deletions
diff --git a/security/portsentry/files/patch-aa b/security/portsentry/files/patch-aa
deleted file mode 100644
index 8497756dfcb4..000000000000
--- a/security/portsentry/files/patch-aa
+++ /dev/null
@@ -1,17 +0,0 @@
---- Makefile.orig Wed Jul 11 16:57:27 2001
-+++ Makefile Wed Sep 12 22:25:13 2001
-@@ -20,13 +20,12 @@
- #
- #
- # Generic compiler (usually linked to gcc on most platforms)
--CC = cc
-
- # GNU..
- #CC = gcc
-
- # Normal systems flags
--CFLAGS = -O -Wall
-+CFLAGS += -DPREFIX=\"${PREFIX}\"
-
- # Debug mode for portsentry
- #CFLAGS = -Wall -g -DNODAEMON -DDEBUG
diff --git a/security/portsentry/files/patch-ab b/security/portsentry/files/patch-ab
deleted file mode 100644
index 93df81b1777d..000000000000
--- a/security/portsentry/files/patch-ab
+++ /dev/null
@@ -1,17 +0,0 @@
---- portsentry.conf.orig Sun May 16 21:50:55 1999
-+++ portsentry.conf Sun May 16 21:51:27 1999
-@@ -80,11 +80,11 @@
- ######################
- #
- # Hosts to ignore
--IGNORE_FILE="/usr/local/psionic/portsentry/portsentry.ignore"
-+IGNORE_FILE="__PREFIX__/etc/portsentry.ignore"
- # Hosts that have been denied (running history)
--HISTORY_FILE="/usr/local/psionic/portsentry/portsentry.history"
-+HISTORY_FILE="__PREFIX__/etc/portsentry.history"
- # Hosts that have been denied this session only (temporary until next restart)
--BLOCKED_FILE="/usr/local/psionic/portsentry/portsentry.blocked"
-+BLOCKED_FILE="__PREFIX__/etc/portsentry.blocked"
-
- ###################
- # Response Options#
diff --git a/security/portsentry/files/patch-ac b/security/portsentry/files/patch-ac
deleted file mode 100644
index c0d1f04f67da..000000000000
--- a/security/portsentry/files/patch-ac
+++ /dev/null
@@ -1,18 +0,0 @@
---- portsentry_config.h.orig Sun May 16 21:52:00 1999
-+++ portsentry_config.h Sun May 16 21:52:54 1999
-@@ -29,9 +29,14 @@
- /************************************************************************/
-
-
-+/* Installation prefix */
-+#ifndef PREFIX
-+#define PREFIX "/usr/local"
-+#endif
-+
- /* 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 PREFIX"/etc/portsentry.conf"
-
- /* The location of Wietse Venema's TCP Wrapper hosts.deny file */
- #define WRAPPER_HOSTS_DENY "/etc/hosts.deny"
diff --git a/security/portsentry/files/portsentry.sh.in b/security/portsentry/files/portsentry.sh.in
new file mode 100644
index 000000000000..03d06b346d4c
--- /dev/null
+++ b/security/portsentry/files/portsentry.sh.in
@@ -0,0 +1,17 @@
+#/bin/sh
+PORTSENTRY="%%PREFIX%%/bin/portsentry"
+
+case "$1" in
+ start)
+ echo -n ' portsentry ('
+ ${PORTSENTRY} -tcp > /dev/null && echo -n 'tcp'
+ ${PORTSENTRY} -udp > /dev/null && echo -n ' udp'
+ echo -n ')'
+ ;;
+ stop)
+ killall `basename ${PORTSENTRY}`
+ ;;
+ *)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac