From 1282a2e1af49b8df3f245efdd640ab366efd7ae4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 8 Aug 2019 18:50:55 +0100 Subject: [PATCH] keepalived: Enable auto-start Signed-off-by: Michael Tremer --- lfs/keepalived | 2 +- src/paks/keepalived/install.sh | 31 +++++++++++++++++++++++++++++++ src/paks/keepalived/uninstall.sh | 27 +++++++++++++++++++++++++++ src/paks/keepalived/update.sh | 26 ++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/paks/keepalived/install.sh create mode 100644 src/paks/keepalived/uninstall.sh create mode 100644 src/paks/keepalived/update.sh diff --git a/lfs/keepalived b/lfs/keepalived index 2b3e800b6e..c18625f38f 100644 --- a/lfs/keepalived +++ b/lfs/keepalived @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = keepalived -PAK_VER = 6 +PAK_VER = 7 DEPS = "" diff --git a/src/paks/keepalived/install.sh b/src/paks/keepalived/install.sh new file mode 100644 index 0000000000..bc082a55ae --- /dev/null +++ b/src/paks/keepalived/install.sh @@ -0,0 +1,31 @@ +#!/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} + +# Enable autostart +ln -sf ../init.d/keepalived /etc/rc.d/rc0.d/K25keepalived +ln -sf ../init.d/keepalived /etc/rc.d/rc3.d/S35keepalived +ln -sf ../init.d/keepalived /etc/rc.d/rc6.d/K25keepalived diff --git a/src/paks/keepalived/uninstall.sh b/src/paks/keepalived/uninstall.sh new file mode 100644 index 0000000000..37c2e557ba --- /dev/null +++ b/src/paks/keepalived/uninstall.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 +make_backup ${NAME} +remove_files +rm -rfv /etc/rc.d/rc*.d/*keepalived diff --git a/src/paks/keepalived/update.sh b/src/paks/keepalived/update.sh new file mode 100644 index 0000000000..89c40d0d7c --- /dev/null +++ b/src/paks/keepalived/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