igmpproxy: add igmpproxy.conf backup include.
authorArne Fitzenreiter <Arne_F@ipfire.org>
Wed, 3 Jul 2013 08:31:53 +0000 (10:31 +0200)
committerArne Fitzenreiter <Arne_F@ipfire.org>
Wed, 3 Jul 2013 08:31:53 +0000 (10:31 +0200)
fixes #10375.

config/backup/includes/igmpproxy [new file with mode: 0644]
config/rootfiles/packages/igmpproxy
lfs/igmpproxy
src/paks/igmpproxy/install.sh [new file with mode: 0644]
src/paks/igmpproxy/uninstall.sh [new file with mode: 0644]
src/paks/igmpproxy/update.sh [new file with mode: 0644]

diff --git a/config/backup/includes/igmpproxy b/config/backup/includes/igmpproxy
new file mode 100644 (file)
index 0000000..dc47ad3
--- /dev/null
@@ -0,0 +1 @@
+/etc/igmpproxy.conf
index 439c21f781d758a59edf7300e83165c2ad34cccd..1b3452140d79e9c2be20ffc9c9a1c57a55a1dc53 100644 (file)
@@ -2,3 +2,4 @@ etc/igmpproxy.conf
 usr/local/sbin/igmpproxy
 #usr/local/share/man/man5/igmpproxy.conf.5
 #usr/local/share/man/man8/igmpproxy.8
+var/ipfire/backup/addons/includes/igmpproxy
index 3e5fca9e3f48bc2fcf5de2d542541697b308de82..fb1426fe561bdecb682ffaac8f1570a5fe69a25d 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2013   IPFire Team  <info@ipfire.org>                    #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = igmpproxy
-PAK_VER    = 3
+PAK_VER    = 4
 
 DEPS       = ""
 
@@ -86,5 +86,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && ./configure --sysconfdir=/etc
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
+       install -v -m 644 $(DIR_SRC)/config/backup/includes/igmpproxy \
+                        /var/ipfire/backup/addons/includes/igmpproxy
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
diff --git a/src/paks/igmpproxy/install.sh b/src/paks/igmpproxy/install.sh
new file mode 100644 (file)
index 0000000..31c5fec
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+extract_files
+restore_backup ${NAME}
+start_service --background ${NAME}
diff --git a/src/paks/igmpproxy/uninstall.sh b/src/paks/igmpproxy/uninstall.sh
new file mode 100644 (file)
index 0000000..eb6ff5f
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+stop_service ${NAME}
+extract_backup_includes
+make_backup ${NAME}
+remove_files
diff --git a/src/paks/igmpproxy/update.sh b/src/paks/igmpproxy/update.sh
new file mode 100644 (file)
index 0000000..89c40d0
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+############################################################################
+#                                                                          #
+# This file is part of the IPFire Firewall.                                #
+#                                                                          #
+# IPFire is free software; you can redistribute it and/or modify           #
+# it under the terms of the GNU General Public License as published by     #
+# the Free Software Foundation; either version 2 of the License, or        #
+# (at your option) any later version.                                      #
+#                                                                          #
+# IPFire is distributed in the hope that it will be useful,                #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
+# GNU General Public License for more details.                             #
+#                                                                          #
+# You should have received a copy of the GNU General Public License        #
+# along with IPFire; if not, write to the Free Software                    #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
+#                                                                          #
+# Copyright (C) 2007 IPFire-Team <info@ipfire.org>.                        #
+#                                                                          #
+############################################################################
+#
+. /opt/pakfire/lib/functions.sh
+./uninstall.sh
+./install.sh