Der taegliche Commit am Abend :D
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 10 Jan 2007 21:38:07 +0000 (21:38 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 10 Jan 2007 21:38:07 +0000 (21:38 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@389 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/rootfiles/common/ntp [new file with mode: 0644]
config/rootfiles/common/snort [new file with mode: 0644]
doc/packages-list.txt
lfs/squid-graph
src/initscripts/init.d/ntp [new file with mode: 0644]
src/initscripts/init.d/red
src/misc-progs/restartntpd.c

diff --git a/config/rootfiles/common/ntp b/config/rootfiles/common/ntp
new file mode 100644 (file)
index 0000000..5190231
--- /dev/null
@@ -0,0 +1,13 @@
+#etc/ntp
+etc/ntp.conf
+usr/bin/ntpd
+usr/bin/ntpdate
+usr/bin/ntpdc
+usr/bin/sntp
+#usr/man/man1/sntp.1
+usr/sbin/ntp-keygen
+usr/sbin/ntp-wait
+usr/sbin/ntpq
+usr/sbin/ntptime
+usr/sbin/ntptrace
+usr/sbin/tickadj
diff --git a/config/rootfiles/common/snort b/config/rootfiles/common/snort
new file mode 100644 (file)
index 0000000..5e78f2e
--- /dev/null
@@ -0,0 +1,56 @@
+#etc/snort
+etc/snort/attack-responses.rules
+etc/snort/backdoor.rules
+etc/snort/bad-traffic.rules
+etc/snort/chat.rules
+etc/snort/classification.config
+etc/snort/ddos.rules
+etc/snort/deleted.rules
+etc/snort/dns.rules
+etc/snort/dos.rules
+etc/snort/experimental.rules
+etc/snort/exploit.rules
+etc/snort/finger.rules
+etc/snort/ftp.rules
+etc/snort/icmp-info.rules
+etc/snort/icmp.rules
+etc/snort/imap.rules
+etc/snort/info.rules
+etc/snort/local.rules
+etc/snort/misc.rules
+etc/snort/multimedia.rules
+etc/snort/mysql.rules
+etc/snort/netbios.rules
+etc/snort/nntp.rules
+etc/snort/oracle.rules
+etc/snort/other-ids.rules
+etc/snort/p2p.rules
+etc/snort/policy.rules
+etc/snort/pop2.rules
+etc/snort/pop3.rules
+etc/snort/porn.rules
+etc/snort/reference.config
+etc/snort/rpc.rules
+etc/snort/rservices.rules
+etc/snort/scan.rules
+etc/snort/shellcode.rules
+etc/snort/smtp.rules
+etc/snort/snmp.rules
+etc/snort/snort.conf
+etc/snort/sql.rules
+etc/snort/telnet.rules
+etc/snort/tftp.rules
+etc/snort/unicode.map
+etc/snort/virus.rules
+etc/snort/web-attacks.rules
+etc/snort/web-cgi.rules
+etc/snort/web-client.rules
+etc/snort/web-coldfusion.rules
+etc/snort/web-frontpage.rules
+etc/snort/web-iis.rules
+etc/snort/web-misc.rules
+etc/snort/web-php.rules
+etc/snort/x11.rules
+#usr/man/man8/snort.8
+usr/sbin/snort
+var/log/snort
index 7afbc7a354dac14b310e880901c9da3687ab6dd8..cc2aca829654d8a8c55f507283dc68059eca9f1a 100644 (file)
 * spandsp-0.0.3pre24
 * squid-2.6.STABLE3
 * squid-graph-3.1
+* squid-graph-3.2
 * squidGuard-1.2.0
 * startscripts
 * stund_0.96_Aug13
index 26b6cb8895ca8051ac0a80c011a237c2f970ea4b..c82ac20876770f620d62635749500b3477f1d21e 100644 (file)
 
 include Config
 
-VER        = 3.1
+VER        = 3.2
 
 THISAPP    = squid-graph-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
 DL_FROM    = $(URL_IPFIRE)
-DIR_APP    = $(DIR_SRC)/$(THISAPP)
+DIR_APP    = $(DIR_SRC)/squid-graph
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
 ###############################################################################
@@ -42,7 +42,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = e9565daabc23599094ed2d0e9a984d5e
+$(DL_FILE)_MD5 = 7ed7d187f87bde1ec9dabe05f07053b5
 
 install : $(TARGET)
 
@@ -77,7 +77,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
            -e "s/\$$color{'hit'}  .*$$/\$$color{'hit'}  = ['99','33','33']; # graph hit line color/" \
            -e "s/\$$color{'miss'} .*$$/\$$color{'miss'} = ['33','99','33']; # graph miss line color/" \
            -e "s/\$$color{'ims'}  .*$$/\$$color{'ims'}  = ['99','33','99']; # graph ims hit line color/" \
-              bin/squid-graph > /usr/bin/squid-graph
+              squid-graph > /usr/bin/squid-graph
        chmod 755 /usr/bin/squid-graph
        -mkdir -p /srv/web/ipfire/html/sgraph
        @rm -rf $(DIR_APP)
diff --git a/src/initscripts/init.d/ntp b/src/initscripts/init.d/ntp
new file mode 100644 (file)
index 0000000..5cb6782
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Begin $rc_base/init.d/ntp
+
+#$LastChangedBy: bdubbs $
+#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+       start)
+               boot_mesg "Starting ntpd..."
+               ntpd -gqx
+               loadproc /usr/bin/ntpd
+               ;;
+
+       stop)
+               boot_mesg "Stopping ntpd..."
+               killproc /usr/bin/ntpd
+               ;;
+
+       restart)
+               $0 stop
+               sleep 1
+               $0 start
+               ;;
+
+       status)
+               statusproc /usr/bin/ntpd
+               ;;
+
+       *)
+               echo "Usage: $0 {start|stop|restart|status}"
+               exit 1
+               ;;
+esac
+
+# End $rc_base/init.d/ntp
index 3be287aa9a0463123e2de199269c4a52407a0fc5..a119a6cbe90b396a458247def71c7152a1336ff8 100644 (file)
@@ -83,7 +83,6 @@ sub doupdatesettings {
 
        # erase in case it was created once with 'persistent' selected but rc.red stop never used : SF1171610
        unlink ("${General::swroot}/red/iface");
-       }
 }
 
 # No output should be sent to the webclient
index ed04686737b96b1e7d7a0f580dd1c00276178310..b89916ce13ea9e9f5da3be6f97f4f6f107fc80a2 100644 (file)
@@ -1,42 +1,42 @@
-/* Ipcop helper program - restartntpd\r
- *\r
- * Starts or stops the ntpd daemon\r
- *\r
- * (c) Darren Critchley 2003\r
- * \r
- * $Id: restartntpd.c,v 1.5 2003/12/19 14:29:09 riddles Exp $\r
- * \r
- */\r
-         \r
-#include <stdio.h>\r
-#include <string.h>\r
-#include <unistd.h>\r
-#include <stdlib.h>\r
-#include <sys/types.h>\r
-#include <fcntl.h>\r
-#include "setuid.h"\r
-\r
-\r
-int main(void)\r
-{\r
-       int fd = -1;\r
-       int enable = 0;\r
-\r
-       if (!(initsetuid()))\r
-               exit(1);\r
-       \r
-       safe_system("/bin/killall ntpd 2> /dev/null");\r
-       sleep(3);\r
-\r
-       if ((fd = open(CONFIG_ROOT "/time/allowclients", O_RDONLY)) != -1)\r
-       {\r
-               close(fd);\r
-               enable = 1;\r
-       }\r
-\r
-       if (enable)\r
-       {\r
-               safe_system("/usr/bin/ntpd -Ap /var/run/ntpd.pid -u ntp:ntp");\r
-       }\r
-       return 0;\r
-}\r
+/* Ipcop helper program - restartntpd
+ *
+ * Starts or stops the ntpd daemon
+ *
+ * (c) Darren Critchley 2003
+ * 
+ * $Id: restartntpd.c,v 1.5 2003/12/19 14:29:09 riddles Exp $
+ * 
+ */
+         
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include "setuid.h"
+
+
+int main(void)
+{
+       int fd = -1;
+       int enable = 0;
+
+       if (!(initsetuid()))
+               exit(1);
+       
+       safe_system("/etc/rc.d/init.d/ntp stop 2> /dev/null");
+       sleep(3);
+
+       if ((fd = open(CONFIG_ROOT "/time/allowclients", O_RDONLY)) != -1)
+       {
+               close(fd);
+               enable = 1;
+       }
+
+       if (enable)
+       {
+               safe_system("/etc/rc.d/init.d/ntp start");
+       }
+       return 0;
+}