summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/firewalld/files
diff options
context:
space:
mode:
authorCallaghan, Dan <dan.callaghan@opengear.com>2019-03-04 11:30:30 +1000
committerKhem Raj <raj.khem@gmail.com>2019-03-04 23:09:25 -0800
commitca0abecca9f5c199bf2ec78a70b9c910d0393cfb (patch)
treed6a043df9c8dc9e89d42ac5a29d4dfb1949e8175 /meta-networking/recipes-connectivity/firewalld/files
parent5242f52361703d11c9b2bd41ae1155e786f08f8b (diff)
downloadmeta-openembedded-ca0abecca9f5c199bf2ec78a70b9c910d0393cfb.tar.gz
firewalld: add new recipe
Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/firewalld/files')
-rw-r--r--meta-networking/recipes-connectivity/firewalld/files/0001-fix-building-in-a-separate-directory-outside-the-sou.patch77
-rw-r--r--meta-networking/recipes-connectivity/firewalld/files/firewalld.init48
2 files changed, 125 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/firewalld/files/0001-fix-building-in-a-separate-directory-outside-the-sou.patch b/meta-networking/recipes-connectivity/firewalld/files/0001-fix-building-in-a-separate-directory-outside-the-sou.patch
new file mode 100644
index 0000000000..3f34ff2e4c
--- /dev/null
+++ b/meta-networking/recipes-connectivity/firewalld/files/0001-fix-building-in-a-separate-directory-outside-the-sou.patch
@@ -0,0 +1,77 @@
1firewalld: fix building in a separate directory outside the source tree
2
3Upstream-Status: Submitted [https://github.com/firewalld/firewalld/pull/456]
4Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
5
6diff --git a/config/Makefile.am b/config/Makefile.am
7index 7048d2ee..5270d408 100644
8--- a/config/Makefile.am
9+++ b/config/Makefile.am
10@@ -377,11 +377,11 @@ install-config:
11 $(MKDIR_P) $(DESTDIR)$(sconfdir)/zones
12 $(MKDIR_P) $(DESTDIR)$(sconfdir)/helpers
13 $(MKDIR_P) $(DESTDIR)$(prefixlibdir)
14- cp -r icmptypes $(DESTDIR)$(prefixlibdir)
15- cp -r ipsets $(DESTDIR)$(prefixlibdir)
16- cp -r services $(DESTDIR)$(prefixlibdir)
17- cp -r zones $(DESTDIR)$(prefixlibdir)
18- cp -r helpers $(DESTDIR)$(prefixlibdir)
19+ cp -r $(srcdir)/icmptypes $(DESTDIR)$(prefixlibdir)
20+ cp -r $(srcdir)/ipsets $(DESTDIR)$(prefixlibdir)
21+ cp -r $(srcdir)/services $(DESTDIR)$(prefixlibdir)
22+ cp -r $(srcdir)/zones $(DESTDIR)$(prefixlibdir)
23+ cp -r $(srcdir)/helpers $(DESTDIR)$(prefixlibdir)
24
25 uninstall-config:
26 rmdir $(DESTDIR)$(sconfdir)/icmptypes
27diff --git a/doc/xml/Makefile.am b/doc/xml/Makefile.am
28index 8c93ab9c..d0313e3e 100644
29--- a/doc/xml/Makefile.am
30+++ b/doc/xml/Makefile.am
31@@ -69,7 +69,8 @@ edit = sed \
32 -e 's|\@PREFIX\@|$(prefix)|' \
33 -e 's|\@SYSCONFDIR\@|$(sysconfdir)|' \
34 -e 's|\@PACKAGE_STRING\@|$(PACKAGE_STRING)|' \
35- -e 's|\@IFCFGDIR\@|$(IFCFGDIR)|'
36+ -e 's|\@IFCFGDIR\@|$(IFCFGDIR)|' \
37+ -e 's|@SRCDIR@|$(srcdir)|'
38
39 transform-man.xsl: transform-man.xsl.in
40 $(edit) $< >$@
41diff --git a/doc/xml/firewall-cmd.xml.in b/doc/xml/firewall-cmd.xml.in
42index c2606553..24d77858 100644
43--- a/doc/xml/firewall-cmd.xml.in
44+++ b/doc/xml/firewall-cmd.xml.in
45@@ -1,9 +1,9 @@
46 <?xml version="1.0" encoding="utf-8"?>
47 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
48 [
49-<!ENTITY authors SYSTEM "authors.xml">
50-<!ENTITY seealso SYSTEM "seealso.xml">
51-<!ENTITY notes SYSTEM "notes.xml">
52+<!ENTITY authors SYSTEM "@SRCDIR@/authors.xml">
53+<!ENTITY seealso SYSTEM "@SRCDIR@/seealso.xml">
54+<!ENTITY notes SYSTEM "@SRCDIR@/notes.xml">
55 <!ENTITY errorcodes SYSTEM "errorcodes.xml">
56 ]>
57
58diff --git a/doc/xml/firewalld.xml.in b/doc/xml/firewalld.xml.in
59index de802059..3d319b04 100644
60--- a/doc/xml/firewalld.xml.in
61+++ b/doc/xml/firewalld.xml.in
62@@ -1,9 +1,9 @@
63 <?xml version="1.0" encoding="utf-8"?>
64 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
65 [
66-<!ENTITY authors SYSTEM "authors.xml">
67-<!ENTITY seealso SYSTEM "seealso.xml">
68-<!ENTITY notes SYSTEM "notes.xml">
69+<!ENTITY authors SYSTEM "@SRCDIR@/authors.xml">
70+<!ENTITY seealso SYSTEM "@SRCDIR@/seealso.xml">
71+<!ENTITY notes SYSTEM "@SRCDIR@/notes.xml">
72 ]>
73
74 <!--
75--
762.20.1
77
diff --git a/meta-networking/recipes-connectivity/firewalld/files/firewalld.init b/meta-networking/recipes-connectivity/firewalld/files/firewalld.init
new file mode 100644
index 0000000000..08e8930b97
--- /dev/null
+++ b/meta-networking/recipes-connectivity/firewalld/files/firewalld.init
@@ -0,0 +1,48 @@
1#!/bin/sh
2
3### BEGIN INIT INFO
4# Provides: firewalld
5# Required-Start: $syslog $local_fs messagebus
6# Required-Stop:
7# Default-Start: 2 3 4 5
8# Default-Stop: 0 1 6
9# Short-Description:
10# Description:
11### END INIT INFO
12
13. /etc/init.d/functions
14
15firewalld=/usr/sbin/firewalld
16pidfile=/var/run/firewalld.pid
17
18case "$1" in
19 start)
20 echo -n "Starting firewalld: "
21 start-stop-daemon --start --quiet --exec $firewalld
22 echo "."
23 ;;
24 stop)
25 echo -n "Stopping firewalld: "
26 start-stop-daemon --stop --quiet --pidfile $pidfile
27 echo "."
28 ;;
29 restart)
30 echo -n "Stopping firewalld: "
31 start-stop-daemon --stop --quiet --pidfile $pidfile
32 echo "."
33 echo -n "Starting firewalld: "
34 start-stop-daemon --start --quiet --exec $firewalld
35 echo "."
36 ;;
37 reload)
38 echo -n "Reloading firewalld: "
39 firewall-cmd --reload
40 echo "."
41 ;;
42 status)
43 firewall-cmd --state
44 ;;
45 *)
46 echo "Usage: /etc/init.d/firewalld {start|stop|restart|reload|status}" >&2
47 exit 1
48esac