summaryrefslogtreecommitdiff
path: root/security/hostsentry/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/hostsentry/files')
-rw-r--r--security/hostsentry/files/patch-Makefile27
-rw-r--r--security/hostsentry/files/patch-aa2
-rw-r--r--security/hostsentry/files/patch-hostSentryLog24
-rw-r--r--security/hostsentry/files/patch-hostsentry-conf35
4 files changed, 87 insertions, 1 deletions
diff --git a/security/hostsentry/files/patch-Makefile b/security/hostsentry/files/patch-Makefile
new file mode 100644
index 000000000000..4e1a0d7c276b
--- /dev/null
+++ b/security/hostsentry/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- Makefile.orig Thu Mar 25 23:06:01 1999
++++ Makefile Sat Jul 3 22:03:13 2004
+@@ -4,7 +4,8 @@
+ #
+ # $Id: Makefile,v 1.4 1999/03/22 05:32:24 crowland Exp crowland $
+
+-INSTALLDIR = /usr/local/abacus/hostsentry
++INSTALLDIR = /usr/local/lib/hostsentry
++CONFIGDIR = /usr/local/etc/hostsentry
+
+
+ all:
+@@ -20,8 +21,13 @@
+ @echo "Installing HostSentry in: $(INSTALLDIR)"
+ install -d -g 0 -o root -m 0700 $(INSTALLDIR)
+ install -d -g 0 -o root -m 0700 $(INSTALLDIR)/modules
+- install -g 0 -o root -m 0700 host* $(INSTALLDIR)
++ install -g 0 -o root -m 0700 host*.py $(INSTALLDIR)
+ install -g 0 -o root -m 0700 module* $(INSTALLDIR)/modules
++ install -d -g 0 -o root -m 0700 $(CONFIGDIR)
++ install -g 0 -o root -m 0600 hostsentry.action $(CONFIGDIR)/hostsentry.action-dist
++ install -g 0 -o root -m 0600 hostsentry.conf $(CONFIGDIR)/hostsentry.conf-dist
++ install -g 0 -o root -m 0600 hostsentry.ignore $(CONFIGDIR)/hostsentry.ignore-dist
++ install -g 0 -o root -m 0600 hostsentry.modules $(CONFIGDIR)/hostsentry.modules-dist
+ @echo ""
+ @echo ""
+
diff --git a/security/hostsentry/files/patch-aa b/security/hostsentry/files/patch-aa
index 3d5e31e60ccc..fb50e7ffaeb9 100644
--- a/security/hostsentry/files/patch-aa
+++ b/security/hostsentry/files/patch-aa
@@ -5,7 +5,7 @@
# This is the default config file. I'll make this more
# accessible in the future.
-CONFIG='/usr/local/abacus/hostsentry/hostsentry.conf'
-+CONFIG='/usr/local/etc/hostsentry.conf'
++CONFIG='/usr/local/etc/hostsentry/hostsentry.conf'
class hostSentryConfig(hostSentryCore):
diff --git a/security/hostsentry/files/patch-hostSentryLog b/security/hostsentry/files/patch-hostSentryLog
new file mode 100644
index 000000000000..ce02c7ba3ae2
--- /dev/null
+++ b/security/hostsentry/files/patch-hostSentryLog
@@ -0,0 +1,24 @@
+--- hostSentryLog.py.orig Sat Jul 3 21:56:35 2004
++++ hostSentryLog.py Sat Jul 3 21:56:40 2004
+@@ -26,7 +26,7 @@
+ #
+ # $Id: hostSentryLog.py,v 1.1 1999/03/22 04:56:44 crowland Exp crowland $
+
+-from hostSentryCore import *
++#from hostSentryCore import *
+ import sys
+ import syslog
+ import hostSentryConfig
+@@ -44,10 +44,9 @@
+ if priority == '':
+ priority = syslog.LOG_INFO
+
+- syslog.openlog('hostSentry', syslog.LOG_PID, priority)
+- syslog.syslog(message)
++ syslog.openlog('hostSentry', syslog.LOG_PID, syslog.LOG_LOCAL1)
++ syslog.syslog(priority, message)
+ syslog.closelog()
+-
+
+ if __name__ == '__main__':
+ log('Test log message')
diff --git a/security/hostsentry/files/patch-hostsentry-conf b/security/hostsentry/files/patch-hostsentry-conf
new file mode 100644
index 000000000000..f170f0f16a9a
--- /dev/null
+++ b/security/hostsentry/files/patch-hostsentry-conf
@@ -0,0 +1,35 @@
+--- hostsentry.conf.orig Sat Jul 3 20:59:32 2004
++++ hostsentry.conf Sat Jul 3 21:00:39 2004
+@@ -27,13 +27,13 @@
+ # $Id: hostsentry.conf,v 1.3 1999/03/25 22:05:44 crowland Exp crowland $
+
+
+-IGNORE_FILE = "/usr/local/abacus/hostsentry/hostsentry.ignore"
+-ACTION_FILE = "/usr/local/abacus/hostsentry/hostsentry.action"
+-MODULE_FILE = "/usr/local/abacus/hostsentry/hostsentry.modules"
+-MODULE_PATH = "/usr/local/abacus/hostsentry/modules"
++IGNORE_FILE = "/usr/local/etc/hostsentry/hostsentry.ignore"
++ACTION_FILE = "/usr/local/etc/hostsentry/hostsentry.action"
++MODULE_FILE = "/usr/local/etc/hostsentry/hostsentry.modules"
++MODULE_PATH = "/usr/local/lib/hostsentry/modules"
+ WTMP_FILE = "/var/log/wtmp"
+-DB_FILE = "/usr/local/abacus/hostsentry/hostsentry.db"
+-DB_TTY_FILE = "/usr/local/abacus/hostsentry/hostsentry.tty.db"
++DB_FILE = "/usr/local/etc/hostsentry/hostsentry.db"
++DB_TTY_FILE = "/usr/local/etc/hostsentry/hostsentry.tty.db"
+
+
+ # WTMP formats vary between Unices. As a result you need to let HostSentry
+@@ -70,10 +70,10 @@
+ # I wrap native getutent() functions for Python.
+ #
+ # RedHat
+-WTMP_FORMAT = "384/8:32/44:32/76:256"
++#WTMP_FORMAT = "384/8:32/44:32/76:256"
+ # Slackware
+ #WTMP_FORMAT = "56/8:12/28:8/36:16"
+ # BSD variants
+-#WTMP_FORMAT = "36/0:8/8:8/16:16"
++WTMP_FORMAT = "36/0:8/8:8/16:16"
+
+