From 2e11506109fe3e04e25c2013856fbd6557c3d641 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 3 Jul 2013 10:31:53 +0200 Subject: [PATCH] igmpproxy: add igmpproxy.conf backup include. fixes #10375. --- config/backup/includes/igmpproxy | 1 + config/rootfiles/packages/igmpproxy | 1 + lfs/igmpproxy | 6 ++++-- src/paks/igmpproxy/install.sh | 27 +++++++++++++++++++++++++++ src/paks/igmpproxy/uninstall.sh | 28 ++++++++++++++++++++++++++++ src/paks/igmpproxy/update.sh | 26 ++++++++++++++++++++++++++ 6 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 config/backup/includes/igmpproxy create mode 100644 src/paks/igmpproxy/install.sh create mode 100644 src/paks/igmpproxy/uninstall.sh create mode 100644 src/paks/igmpproxy/update.sh diff --git a/config/backup/includes/igmpproxy b/config/backup/includes/igmpproxy new file mode 100644 index 000000000..dc47ad317 --- /dev/null +++ b/config/backup/includes/igmpproxy @@ -0,0 +1 @@ +/etc/igmpproxy.conf diff --git a/config/rootfiles/packages/igmpproxy b/config/rootfiles/packages/igmpproxy index 439c21f78..1b3452140 100644 --- a/config/rootfiles/packages/igmpproxy +++ b/config/rootfiles/packages/igmpproxy @@ -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 diff --git a/lfs/igmpproxy b/lfs/igmpproxy index 3e5fca9e3..fb1426fe5 100644 --- a/lfs/igmpproxy +++ b/lfs/igmpproxy @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2013 IPFire Team # # # # 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 index 000000000..31c5fecae --- /dev/null +++ b/src/paks/igmpproxy/install.sh @@ -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 . # +# # +############################################################################ +# +. /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 index 000000000..eb6ff5f9b --- /dev/null +++ b/src/paks/igmpproxy/uninstall.sh @@ -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 . # +# # +############################################################################ +# +. /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 index 000000000..89c40d0d7 --- /dev/null +++ b/src/paks/igmpproxy/update.sh @@ -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 . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh -- 2.39.2