LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0001-fillup-install.patch of Package shorewall (Project security:netfilter)

From ed7338223d29d91b5d4dc2e6ab09c650286136f1 Mon Sep 17 00:00:00 2001
From: Togan Muftuoglu <toganm@opensuse.org>
Date: Thu, 3 Oct 2013 19:49:17 +0200
Subject: [PATCH] fillup install

openSUSE uses fillup to add or remove /etc/sysconfig/ items. This commit
provides this approach to Shorewall-init install file

Signed-off-by: Togan Muftuoglu <toganm@opensuse.org>
---
 install.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/install.sh b/install.sh
index 4b659df..30fc80e 100755
--- a/install.sh
+++ b/install.sh
@@ -392,10 +392,16 @@ else
 	fi
     fi
 
+    if [ $HOST = suse ]; then
+    mkdir -p ${DESTDIR}/var/adm/fillup-templates
+    install_file sysconfig ${DESTDIR}/var/adm/fillup-templates/sysconfig.shorewall-init 0644
+    else
+
     if [ -n "$SYSCONFFILE" -a ! -f ${DESTDIR}${SYSCONFDIR}/${PRODUCT} ]; then
 	run_install $OWNERSHIP -m 0644 ${SYSCONFFILE} ${DESTDIR}${SYSCONFDIR}/$PRODUCT
 	echo "$SYSCONFFILE installed in ${DESTDIR}${SYSCONFDIR}/${PRODUCT}"
     fi
+    fi
 
     [ $HOST = suse ] && IFUPDOWN=ifupdown.suse.sh || IFUPDOWN=ifupdown.fedora.sh
 fi
-- 
1.8.4