reorganisation of sample configuration files
authorxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Tue, 8 Jan 2008 15:28:15 +0000 (15:28 +0000)
committerxchaos <xchaos@251d49ef-1d17-4917-a970-b30cf55b089b>
Tue, 8 Jan 2008 15:28:15 +0000 (15:28 +0000)
git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@43 251d49ef-1d17-4917-a970-b30cf55b089b

prometheus.c
prometheus.debian
sample-configuration/README
sample-configuration/prometheus.conf
sample-configuration/prometheus.cron [deleted file]

index 96ce79705ebeaa45515dc191dab14a6399832f03..979516e1a7acc4ecc7b1f1f15a073e962189b4d4 100644 (file)
@@ -31,7 +31,7 @@
 \r
 #include "cll1.h"\r
 \r
-const char *version="0.7.7"; /*0.7.9 will be last development, 0.8.0 first stable */\r
+const char *version="0.7.7-1"; /*0.7.9 will be last development, 0.8.0 first stable */\r
 \r
 /* ======= Help screen is hopefuly self-documenting part of code :-) ======= */\r
 \r
index e6cff66d099bf37b0fb6799f6328a746bdf4880e..99cd5ef2dde1c1b5e4cf0977ee5c9d42cbfbb5d0 100755 (executable)
@@ -14,9 +14,6 @@ mkdir -p $DEBIAN_BASE/usr/share
 mkdir -p $DEBIAN_BASE/usr/share/man
 mkdir -p $DEBIAN_BASE/usr/share/man/man1
 mkdir -p $DEBIAN_BASE/usr/share/man/man5
-mkdir -p $DEBIAN_BASE/etc
-mkdir -p $DEBIAN_BASE/etc/cron.d
-mkdir -p $DEBIAN_BASE/etc/prometheus
 
 mkdir -p $DEBIAN_BASE/DEBIAN
 chmod 0755 $DEBIAN_BASE/DEBIAN
@@ -25,13 +22,19 @@ if ! [ -x prometheus ]; then
        make main
 fi
 
-# Data
+# Copy
 cp prometheus          $DEBIAN_BASE/usr/sbin
 cp prometheus.1                $DEBIAN_BASE/usr/share/man/man1
 cp prometheus.conf.5   $DEBIAN_BASE/usr/share/man/man5
-cp sample-configuration/prometheus.cron        $DEBIAN_BASE/etc/cron.d/prometheus
-cp sample-configuration/prometheus.conf        $DEBIAN_BASE/etc/prometheus
-cp sample-configuration/hosts          $DEBIAN_BASE/etc/prometheus
+cp -R etc              $DEBIAN_BASE/etc
+
+# .svn cleanup
+rm -rf $DEBIAN_BASE/etc/.svn
+rm -rf $DEBIAN_BASE/etc/*/.svn
+
+# Chmod a+x scripts
+chmod 755 $DEBIAN_BASE/etc/cron.d/prometheus
+chmod 755 $DEBIAN_BASE/etc/init.d/prometheus
 
 # Strip debug info from binary
 strip $DEBIAN_BASE/usr/sbin/prometheus
@@ -64,11 +67,11 @@ if [ -f  $DEB_PCK_NAME'.postrm' ]; then
        cp -R $DEB_PCK_NAME.postrm    $DEBIAN_BASE/DEBIAN/postrm
 fi
 
-# Asi zbytecne
-#for f in `find $DEBIAN_BASE -path ".svn*"`
-#do
-#    rm -R $f 2>/dev/null
-#done;
+# Cleanup
+for f in `find $DEBIAN_BASE/etc -path ".svn*"`
+do
+    rm -R $f 2>/dev/null
+done;
 
 # Momentalne se nepouziva
 #SIZEDU=`du -sk "$DEBIAN_BASE" | awk '{ print $1}'`
index da5075da746eeec7407875f6febfc3a1fef61231..1d094ae144b2a945d9664e20d685ee4cde6eabb0 100644 (file)
@@ -1,13 +1,13 @@
-How we use Prometheus QoS in Brevnov: 
+How do we use Prometheus QoS in Brevnov: 
 
-1) /etc/hosts
+1) /etc/prometheus/hosts
 
 1500+ IP addresses are asigned either guaranted speed classes 64, 128, 256 
 and 512 kbps, with various HTB ceil rates, using "via-prometheus-" keyword.
 Some of IP addresses are set to share connection speed with internet 
 gateway using "sharing-" keyword.
 
-2) /etc/prometheus.conf
+2) /etc/prometheus/prometheus.conf
 
 There are daily traffic quotas defined using "magic-relative-limit" value
 se to 8. This translates into 48h quota 1 GB for 64 kbps lines,
@@ -41,7 +41,7 @@ Both symetrical and asymetrical NAT is defined by another script file, in
 iptables nat table (-t nat). Prometheus QoS uses only iptables mangle 
 tables (-t mangle), see FAQ.
 
-4) /etc/crontab and related files
+4) /etc/cron.d/prometheus and related files
 
 Every hour, we run prometheus with -p switch to generate preview. On system
 boot, we run prometheus with -n switch to skip QoS free period.
index 8683ccfb1468fe5dd6ce185268ba6661840d3b8b..c2da92c88dc39df8295e16289a051da10ee484b9 100644 (file)
@@ -15,7 +15,7 @@ iptables              /sbin/iptables
 #==========================================================================
 #Filename of /etc/hosts - style IP address configuration file
 #--------------------------------------------------------------------------
-hosts                  /etc/hosts
+hosts                  /etc/prometheus/hosts
 #==========================================================================
 #Keywords found in /etc/host comments - syntax KEYWORD-MIN-MAX
 #Eg.:  192.168.1.2     mypc    #via-prometheus-256-512
@@ -41,8 +41,8 @@ wan-medium            100Mbit #Mbit|kbit
 #guranted upload and download bandwidth FROM your ISP (in kbps, please!)
 #asymetry settings will be automaticaly calculated from these values
 #--------------------------------------------------------------------------
-wan-download           30000   #kbps
-wan-upload             30000   #kbps
+wan-download           40000   #kbps
+wan-upload             40000   #kbps
 #==========================================================================
 #special QoS free zone (eg. free CZFree tranzit, etc.)
 #Apply QoS on HTTP proxy IP addres/port   
diff --git a/sample-configuration/prometheus.cron b/sample-configuration/prometheus.cron
deleted file mode 100644 (file)
index df4d54e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# Prometheus Cron file now made with 5% more love
-# (thanks to Danny for suggestion)
-
-0 0,1,7-23 * * *  root nice /usr/sbin/prometheus -p 1>/dev/null
-0 2 * * *  root /root/sbin/prometheus 1>/dev/null
This page took 0.212203 seconds and 4 git commands to generate.