diff options
author | stormtracknole <stormtracknole@gmail.com> | 2020-03-20 19:11:39 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-03-20 19:11:39 +0700 |
commit | 4de5fb1d7a3290fb6a04369e993e9e500d48bb5e (patch) | |
tree | f98555f42e4cf005cc3b966ebb6efe6668a7c366 /network/firewalld/firewalld.SlackBuild | |
parent | 431e5229c4beec6bd98e135d446bc5bab5b376e4 (diff) |
network/firewalld: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/firewalld/firewalld.SlackBuild')
-rw-r--r-- | network/firewalld/firewalld.SlackBuild | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/network/firewalld/firewalld.SlackBuild b/network/firewalld/firewalld.SlackBuild index ad54c2372587..b244425797df 100644 --- a/network/firewalld/firewalld.SlackBuild +++ b/network/firewalld/firewalld.SlackBuild @@ -21,10 +21,18 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# ChangeLog +# +# Thu Mar 19 12:19:48 UTC 2020 +# +# * Added patch to change the source file from /etc/sysconfig to /etc/default +# in the provided /etc/init.d/firewalld file. +# PRGNAM=firewalld VERSION=${VERSION:-0.5.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,6 +77,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Let's patch the init.d script to use /etc/default instead of +# /etc/sysconfig to source arguments. +patch -p1 < $CWD/init.patch + ./autogen.sh CFLAGS="$SLKCFLAGS" \ @@ -95,8 +107,9 @@ mv $PKG/etc/sysconfig/firewalld $PKG/etc/sysconfig/firewalld.new mv $PKG/etc/sysconfig $PKG/etc/default mkdir -p $PKG/etc/rc.d -cat $CWD/rc.FireWallD > $PKG/etc/rc.d/rc.FireWallD.new +cat $CWD/rc.firewalld > $PKG/etc/rc.d/rc.firewalld.new +# 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 \ @@ -115,5 +128,8 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |