aboutsummaryrefslogtreecommitdiff
path: root/net/nocatauth-server/files
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-01-03 06:26:58 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-01-03 06:26:58 +0000
commitde7dcb54873ee7da6ab453a4d533966f5f93dc8f (patch)
tree755c1efa037f66333cb72a3cc19b7f50141d9554 /net/nocatauth-server/files
parent13dedb464a924cdb6b94ff4d675798a784c9fa40 (diff)
Notes
Diffstat (limited to 'net/nocatauth-server/files')
-rw-r--r--net/nocatauth-server/files/patch-Makefile33
-rw-r--r--net/nocatauth-server/files/patch-bin::detect-fw.sh11
2 files changed, 44 insertions, 0 deletions
diff --git a/net/nocatauth-server/files/patch-Makefile b/net/nocatauth-server/files/patch-Makefile
new file mode 100644
index 000000000000..b97b15bfbe91
--- /dev/null
+++ b/net/nocatauth-server/files/patch-Makefile
@@ -0,0 +1,33 @@
+--- Makefile.orig Sat May 17 15:35:14 2003
++++ Makefile Wed Nov 19 15:51:41 2003
+@@ -1,6 +1,6 @@
+ ### Install somewhere else if you've a mind (or aren't root).
+
+-PREFIX = /usr/local/nocat
++PREFIX ?= /usr/local/nocat
+
+ ### DESTDIR allows packagers to temporarily install somewhere else.
+
+@@ -35,7 +35,7 @@
+
+ check_fw:
+ @echo -n "Checking for firewall compatibility: "
+- @bin/detect-fw.sh bin || ( echo "Can't seem to find supported firewall software. Check your path?" && exit 255 )
++ @bin/detect-fw.sh ${FIREWALL} bin || ( echo "Can't seem to find supported firewall software. Check your path?" && exit 255 )
+
+ check_gpg:
+ @echo "Looking for gpg..."
+@@ -62,10 +62,10 @@
+ $(INSTALL) $(INST_GW) $(TARGET)
+
+ wrapper: check_fw
+- FW_BIN=`bin/detect-fw.sh | cut -d' ' -f1`; \
+- ln -sf fw-wrap bin/`basename $$FW_BIN`; \
++ FW_BIN=`bin/detect-fw.sh ${FIREWALL} bin | cut -d' ' -f1`; \
++ ln -sf fw-wrap bin/`basename ${FW_BIN}`; \
+ gcc -o bin/fw-wrap -Wall -DALLOWED_UID=\"$(WRAP_USER)\" \
+- -DFW_BINARY=\"$$FW_BIN\" \
++ -DFW_BINARY=\"${FW_BINARY}\" \
+ etc/fw-wrap.c
+ chmod u+s bin/fw-wrap
+
diff --git a/net/nocatauth-server/files/patch-bin::detect-fw.sh b/net/nocatauth-server/files/patch-bin::detect-fw.sh
new file mode 100644
index 000000000000..c8bc8dcf89b1
--- /dev/null
+++ b/net/nocatauth-server/files/patch-bin::detect-fw.sh
@@ -0,0 +1,11 @@
+--- bin/detect-fw.sh.orig Fri Aug 9 07:28:43 2002
++++ bin/detect-fw.sh Wed Nov 19 15:51:16 2003
+@@ -3,7 +3,7 @@
+ export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
+
+ # Have we been explicitly told which firewall scripts to install?
+-if [ -n "$1" -a -n "$2" -a -d "$2/$1" ]; then
++if [ -n "$1" -a -n "$2" ]; then
+ FIREWALL=$1
+ shift
+