CVS: moonbase/security/portsentry BUILD,1.2,1.3
sofar at lunar-linux.org
sofar at lunar-linux.org
Sun Aug 3 12:50:04 GMT 2003
Update of /var/cvs/lunar/moonbase/security/portsentry
In directory dbguin.lunar-linux.org:/tmp/cvs-serv29735
Modified Files:
BUILD
Log Message:
Adding init.d wrappers for portsentry: a portsentry.modes default file for better hinting how to startup portsentry, and a proper init.d script that doesn't need any editing. Should make portsentry a lot easier to install!
Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/security/portsentry/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD 17 Jan 2003 12:09:14 -0000 1.2
+++ BUILD 3 Aug 2003 12:50:02 -0000 1.3
@@ -10,18 +10,24 @@
sedit "s/CFLAGS = -O -Wall/CFLAGS := -O -Wall \$\(CFLAGS\)/" \
Makefile
- make linux &&
- prepare_install &&
- cp portsentry /usr/sbin &&
- mkdir -p /etc/portsentry &&
+ make linux &&
+ prepare_install &&
+ cp portsentry /usr/sbin &&
+ mkdir -p /etc/portsentry &&
+ chmod 700 /etc/portsentry &&
- if ! [ -f /etc/portsentry/portsentry.conf ]; then
- sedit "s:/usr/local/psionic:/etc:" portsentry.conf
- cp portsentry.conf /etc/portsentry
- fi &&
+ if ! [ -f /etc/portsentry/portsentry.conf ] ; then
+ sedit "s:/usr/local/psionic:/etc:" portsentry.conf
+ install -m600 portsentry.conf /etc/portsentry
+ fi &&
- if ! [ -f /etc/portsentry/portsentry.ignore ]; then
- cp portsentry.ignore /etc/portsentry/portsentry.ignore
+ if ! [ -f /etc/portsentry/portsentry.ignore ] ; then
+ install -m600 portsentry.ignore /etc/portsentry/portsentry.ignore
+ fi &&
+
+ if [ ! -f /etc/portsentry/portsentry.modes ] ; then
+ echo -e "# default portsentry modes:\natcp\naudp" > /etc/portsentry/portsentry.modes
+ chmod 600 /etc/portsentry/portsentry.modes
fi
) > $C_FIFO 2>&1
More information about the Lunar-commits
mailing list