aboutsummaryrefslogtreecommitdiff
path: root/network/firewalld
diff options
context:
space:
mode:
authorstormtracknole <stormtracknole@gmail.com>2023-01-20 03:37:20 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-21 10:22:01 +0700
commit2fedd27c3bc4c78f812241d1c2910d547b681763 (patch)
tree1dc52467c2f7f498856f6e4c0f935e8ddd0b1b5b /network/firewalld
parent3995bc945d73e053e82aa09220bcb80499992197 (diff)
network/firewalld: Updated for version 1.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/firewalld')
-rw-r--r--network/firewalld/firewalld.SlackBuild8
-rw-r--r--network/firewalld/firewalld.info6
-rw-r--r--network/firewalld/init.patch2
-rw-r--r--network/firewalld/rc.FireWallD56
4 files changed, 10 insertions, 62 deletions
diff --git a/network/firewalld/firewalld.SlackBuild b/network/firewalld/firewalld.SlackBuild
index 7d5787c70897..ea3dde2fa383 100644
--- a/network/firewalld/firewalld.SlackBuild
+++ b/network/firewalld/firewalld.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=firewalld
-VERSION=${VERSION:-0.9.3}
+VERSION=${VERSION:-1.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -86,6 +86,7 @@ patch -p1 < $CWD/init.patch
PYTHON="/usr/bin/python3" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+./autogen.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -104,6 +105,9 @@ make install DESTDIR=$PKG
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+# We don't need systemd here.
+rm -rf $PKG/usr/lib/systemd
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -127,7 +131,7 @@ rm -rf $PKG/etc/rc.d/init.d
cat $CWD/rc.firewalld > $PKG/etc/rc.d/rc.firewalld.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING README doc/html $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README.md doc/html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/firewalld/firewalld.info b/network/firewalld/firewalld.info
index 9d8f3de71d47..ab19575730e9 100644
--- a/network/firewalld/firewalld.info
+++ b/network/firewalld/firewalld.info
@@ -1,8 +1,8 @@
PRGNAM="firewalld"
-VERSION="0.9.3"
+VERSION="1.3.0"
HOMEPAGE="https://github.com/firewalld/firewalld/"
-DOWNLOAD="https://github.com/firewalld/firewalld/releases/download/v0.9.3/firewalld-0.9.3.tar.gz"
-MD5SUM="2eb0577b6e96376c2a7ed4c07eb82434"
+DOWNLOAD="https://github.com/firewalld/firewalld/archive/refs/tags/v1.3.0.tar.gz#/firewalld-1.3.0.tar.gz"
+MD5SUM="bf75948ab628a86e1ab61ebfb8913bc9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python-slip decorator"
diff --git a/network/firewalld/init.patch b/network/firewalld/init.patch
index 0d03f9c45e95..a775133fabb0 100644
--- a/network/firewalld/init.patch
+++ b/network/firewalld/init.patch
@@ -1,4 +1,3 @@
-diff -Nur firewalld-0.8.6.orig/config/firewalld.init firewalld-0.8.6/config/firewalld.init
--- firewalld-0.8.6.orig/config/firewalld.init 2020-12-15 12:57:05.000000000 -0600
+++ firewalld-0.8.6/config/firewalld.init 2021-05-02 20:44:35.229976749 -0500
@@ -29,7 +29,7 @@
@@ -10,3 +9,4 @@ diff -Nur firewalld-0.8.6.orig/config/firewalld.init firewalld-0.8.6/config/fire
lockfile=/var/lock/subsys/$prog
+
diff --git a/network/firewalld/rc.FireWallD b/network/firewalld/rc.FireWallD
deleted file mode 100644
index aa0d91b3dcbf..000000000000
--- a/network/firewalld/rc.FireWallD
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Start/stop/restart firewalld.
-
-# Start firewalld:
-firewalld_start() {
- [ -r /etc/default/firewalld ] && source /etc/default/firewalld
- echo -n "Starting FireWallD daemon: /usr/sbin/firewalld "
- /usr/sbin/firewalld $FIREWALLD_ARGS
- echo
-}
-
-# Stop firewalld:
-firewalld_stop() {
- echo -n "Stopping FireWallD daemon..."
- if [ -r /var/run/firewalld.pid ]; then
- kill -HUP $(cat /var/run/firewalld.pid)
- rm -f /var/run/firewalld.pid
- else
- killall -HUP -q firewalld
- fi
- echo
-}
-
-# Restart firewalld:
-firewalld_restart() {
- firewalld_stop
- sleep 1
- firewalld_start
-}
-
-# Check if firewalld is running
-firewalld_status() {
- if [ -e /var/run/firewalld.pid ]; then
- echo "firewalld is running as pid $(cat /var/run/firewalld.pid)."
- else
- echo "firewalld is stopped."
- exit 1
- fi
-}
-
-case "$1" in
-'start')
- firewalld_start
- ;;
-'stop')
- firewalld_stop
- ;;
-'restart')
- firewalld_restart
- ;;
-'status')
- firewalld_status
- ;;
-*)
- echo "usage $0 start|stop|restart|status"
-esac