2023-05-22 Fred Gleason <fredg@paravelsystems.com>

* Removed 'conf/firewalld.sh'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-05-22 10:21:41 -04:00
parent aa35a6f4ce
commit 3f59bc06e5
3 changed files with 2 additions and 44 deletions

View File

@ -24147,3 +24147,5 @@
resizeable.
2023-05-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'rivendell' service for firewalld(1).
2023-05-22 Fred Gleason <fredg@paravelsystems.com>
* Removed 'conf/firewalld.sh'.

View File

@ -25,16 +25,13 @@ install-exec-am:
cp @RIVENDELL_PAM_FILE@ $(DESTDIR)/etc/pam.d/rivendell
mkdir -p $(DESTDIR)/usr/lib/firewalld/services
cp rivendell-firewalld.xml $(DESTDIR)/usr/lib/firewalld/services/rivendell.xml
./firewalld.sh reload
uninstall:
rm -f $(DESTDIR)/$(sysconfdir)/rd-bin.conf
rm -f $(DESTDIR)/etc/pam.d/rivendell
rm -f $(DESTDIR)/usr/lib/firewalld/services/rivendell.xml
./firewalld.sh reload
EXTRA_DIST = asound.conf-sample\
firewalld.sh\
logrotate-sample\
rd-bin.conf.in\
rd.conf-sample\

View File

@ -1,41 +0,0 @@
#!/bin/bash
# firewalld.sh
#
# Control firewalld
#
# (C) Copyright 2023 Fred Gleason <fredg@paravelsystems.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
OPERATION=$1
if test $UID -eq 0 ; then
if test -z $FAKEROOTKEY ; then
if test $OPERATION = "reload" ; then
/bin/systemctl reload firewalld
fi
if test $OPERATION = "add" ; then
/bin/firewall-cmd --zone=public --add-service=rivendell --permanent
/bin/firewall-cmd --zone=work --add-service=rivendell --permanent
/bin/firewall-cmd --zone=home --add-service=rivendell --permanent
fi
if test $OPERATION = "remove" ; then
/bin/firewall-cmd --zone=public --remove-service=rivendell --permanent
/bin/firewall-cmd --zone=work --remove-service=rivendell --permanent
/bin/firewall-cmd --zone=home --remove-service=rivendell --permanent
fi
fi
fi