Revision: 6115
          http://ipcop.svn.sourceforge.net/ipcop/?rev=6115&view=rev
Author:   owes
Date:     2011-11-18 18:40:50 +0000 (Fri, 18 Nov 2011)
Log Message:
-----------
Bump version, prepare for next update.

Modified Paths:
--------------
    ipcop/trunk/make.sh

Added Paths:
-----------
    ipcop/trunk/updates/2.0.3/
    ipcop/trunk/updates/2.0.3/ROOTFILES.alpha-2.0.3
    ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3
    ipcop/trunk/updates/2.0.3/ROOTFILES.ppc-2.0.3
    ipcop/trunk/updates/2.0.3/ROOTFILES.sparc-2.0.3
    ipcop/trunk/updates/2.0.3/information.xml
    ipcop/trunk/updates/2.0.3/setup

Modified: ipcop/trunk/make.sh
===================================================================
--- ipcop/trunk/make.sh 2011-11-18 13:43:28 UTC (rev 6114)
+++ ipcop/trunk/make.sh 2011-11-18 18:40:50 UTC (rev 6115)
@@ -50,15 +50,15 @@
 SNAME="ipcop"
 
 # This is the IPCop version number for the release.
-VERSION=2.0.2
+VERSION=2.0.3
 
 # VERSIONSTEP is only used when the update is split into 2 versions/packages.
 #VERSIONSTEP=1.9.18
 
 # This is the last official IPCop version number. Needed for ./make.sh 
newupdate.
-PREVIOUSVERSION=2.0.1
+PREVIOUSVERSION=2.0.2
 # This is the SVN revision number for the last IPCop version. Needed for 
ChangeLog.
-PREVIOUSSVNREV=6042
+PREVIOUSSVNREV=6114
 
 # Just an arbitrary name for the downloadable, prebuilt toolchain (if you want 
to save time compiling).
 TOOLCHAINVERSION=1.9.17

Added: ipcop/trunk/updates/2.0.3/ROOTFILES.alpha-2.0.3
===================================================================
--- ipcop/trunk/updates/2.0.3/ROOTFILES.alpha-2.0.3                             
(rev 0)
+++ ipcop/trunk/updates/2.0.3/ROOTFILES.alpha-2.0.3     2011-11-18 18:40:50 UTC 
(rev 6115)
@@ -0,0 +1 @@
+## please place IPCop files first, then packages sorted by alphabetical order

Added: ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3
===================================================================
--- ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3                              
(rev 0)
+++ ipcop/trunk/updates/2.0.3/ROOTFILES.i486-2.0.3      2011-11-18 18:40:50 UTC 
(rev 6115)
@@ -0,0 +1 @@
+## please place IPCop files first, then packages sorted by alphabetical order

Added: ipcop/trunk/updates/2.0.3/ROOTFILES.ppc-2.0.3
===================================================================
--- ipcop/trunk/updates/2.0.3/ROOTFILES.ppc-2.0.3                               
(rev 0)
+++ ipcop/trunk/updates/2.0.3/ROOTFILES.ppc-2.0.3       2011-11-18 18:40:50 UTC 
(rev 6115)
@@ -0,0 +1 @@
+## please place IPCop files first, then packages sorted by alphabetical order

Added: ipcop/trunk/updates/2.0.3/ROOTFILES.sparc-2.0.3
===================================================================
--- ipcop/trunk/updates/2.0.3/ROOTFILES.sparc-2.0.3                             
(rev 0)
+++ ipcop/trunk/updates/2.0.3/ROOTFILES.sparc-2.0.3     2011-11-18 18:40:50 UTC 
(rev 6115)
@@ -0,0 +1 @@
+## please place IPCop files first, then packages sorted by alphabetical order

Added: ipcop/trunk/updates/2.0.3/information.xml
===================================================================
--- ipcop/trunk/updates/2.0.3/information.xml                           (rev 0)
+++ ipcop/trunk/updates/2.0.3/information.xml   2011-11-18 18:40:50 UTC (rev 
6115)
@@ -0,0 +1,11 @@
+<ipcop>
+    <update>
+        <version>2.0.3</version>
+        <releasedate>2011-mm-dd</releasedate>
+        <size>0</size>
+        <description>Description (needs modification, shortly before release 
at the latest).</description>
+        <previousversion>2.0.2</previousversion>
+        <installdate>INSTALLDATE</installdate>
+        <latest />
+    </update>
+</ipcop>

Added: ipcop/trunk/updates/2.0.3/setup
===================================================================
--- ipcop/trunk/updates/2.0.3/setup                             (rev 0)
+++ ipcop/trunk/updates/2.0.3/setup     2011-11-18 18:40:50 UTC (rev 6115)
@@ -0,0 +1,93 @@
+#!/bin/bash
+#
+# Upgrade IPCop
+#
+
+UPGRADEVERSION=2.0.3
+PREVIOUSVERSION=2.0.2
+
+
+msg() {
+    /usr/bin/logger -t installpackage "$*"
+    /bin/echo "$*"
+}
+
+
+# Verify architecture
+MACHINE=`/usr/bin/perl -e "require '/usr/lib/ipcop/general-functions.pl';print 
\\$General::machine;"`
+if [ "$MACHINE" != `/bin/cat ./ARCH` ]; then
+    msg "Update for wrong architecture: `/bin/cat ./ARCH`! We are: $MACHINE. 
Aborting installation."
+    exit 1
+fi
+
+# Verify version, note we also accept replaying an upgrade
+CURRENTVERSION=`/usr/bin/perl -e "require 
'/usr/lib/ipcop/general-functions.pl';print \\$General::version;"`
+if [ "$CURRENTVERSION" != "$PREVIOUSVERSION" -a "$CURRENTVERSION" != 
"$UPGRADEVERSION" ]; then
+    msg "IPCop v$PREVIOUSVERSION or v$UPGRADEVERSION not running. Aborting 
installation."
+    exit 1
+fi
+
+#####
+#
+# Add version specific handling *before* unpacking the patch here.
+# For example stopping dnsmasq(required before update), squid, etc...
+#
+#####
+
+
+
+#####
+#
+# End of version specific handling. Continue with universal stuff.
+#
+#####
+
+FAILURE=0
+/bin/tar -zxpf patch.tar.gz -C /
+FAILURE=$?
+if [ $FAILURE -ne 0 ]; then
+    msg "Error extracting patch.tar.gz $1, need more free space on disk. 
Aborting."
+    exit 4 # ERRORTAR
+fi
+
+# Modify or remove line below, depending on update
+# Update bootloader config
+# /usr/local/sbin/updatekernel.pl --add 2.6.32-2 --keep 2.6.32-1 --remove 
2.6.32-0
+
+# Modify or remove line below, depending on update
+# Create the new initramfs
+# /sbin/mkinitramfs --with-kernel=2.6.32-2 --with-firmware --many-modules 
--with-list=/etc/modules.initramfs
+
+# Adjust the changed config files
+# /usr/local/bin/upgrade.sh
+
+# Remove old libraries (version specific)
+# /bin/rm -f .....
+
+# For new shared libs. May not always be required, but makes sure we do not 
forget
+/sbin/ldconfig
+
+#####
+#
+# Add version specific handling *after* unpacking the patch here.
+# For example restarting apache, squid, etc...
+#
+#####
+
+
+
+#####
+#
+# End of version specific handling. Continue with universal stuff.
+#
+#####
+
+# Patch general-functions.pl
+/bin/sed -i -e "s+^\(\$General::version\s*=\s*\).*+\1'$UPGRADEVERSION';+" 
/usr/lib/ipcop/general-functions.pl
+# Patch /etc/issue
+/bin/sed -i -e "s+$PREVIOUSVERSION+$UPGRADEVERSION+" /etc/issue
+
+# Update menu
+/usr/local/bin/updatemenu.pl
+
+msg "$UPGRADEVERSION update installed."

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to