Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 1 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 2 | SUMMARY = "Uncomplicated Firewall" |
| 3 | DESCRIPTION = "UFW stands for Uncomplicated Firewall, and is program for \ |
| 4 | managing a netfilter firewall. It provides a command line interface and aims \ |
| 5 | to be uncomplicated and easy to use." |
| 6 | HOMEPAGE = "https://launchpad.net/ufw" |
| 7 | SECTION = "net" |
| 8 | LICENSE = "GPLv3" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" |
| 10 | |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 11 | SRC_URI = "https://launchpad.net/ufw/0.36/0.36/+download/ufw-0.36.tar.gz \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | file://0001-optimize-boot.patch \ |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 13 | file://0002-add-an-option-to-specify-iptables-location.patch \ |
| 14 | file://0003-only-make-one-reference-to-env.patch \ |
| 15 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | |
| 17 | UPSTREAM_CHECK_URI = "https://launchpad.net/ufw" |
| 18 | |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 19 | SRC_URI[md5sum] = "6d8ab1506da21ae003f4628f93d05781" |
| 20 | SRC_URI[sha256sum] = "754b22ae5edff0273460ac9f57509c3938187e0cf4fb9692c6a02833fff33cfc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 22 | inherit setuptools3 features_check systemd update-rc.d |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | RDEPENDS:${PN} = " \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 25 | iptables \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 26 | python3 \ |
| 27 | python3-modules \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 28 | " |
| 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | RRECOMMENDS:${PN} = " \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 31 | kernel-module-ipv6 \ |
| 32 | kernel-module-nf-conntrack-ipv6 \ |
| 33 | kernel-module-nf-log-common \ |
| 34 | kernel-module-nf-log-ipv4 \ |
| 35 | kernel-module-nf-log-ipv6 \ |
| 36 | kernel-module-nf-addrtype \ |
| 37 | kernel-module-nf-limit \ |
| 38 | kernel-module-nf-log \ |
| 39 | kernel-module-nf-recent \ |
| 40 | " |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | do_install:append() { |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 43 | install -d ${D}${systemd_unitdir}/system/ |
| 44 | install -m 0644 ${S}/doc/systemd.example ${D}${systemd_unitdir}/system/ufw.service |
| 45 | |
| 46 | install -d ${D}${sysconfdir}/init.d/ |
| 47 | install -m 0755 ${S}/doc/initscript.example ${D}${sysconfdir}/init.d/ufw |
| 48 | } |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | SYSTEMD_SERVICE:${PN} = "ufw.service" |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 51 | |
| 52 | INITSCRIPT_NAME = "ufw" |
| 53 | INITSCRIPT_PARAMS = "defaults" |
| 54 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 55 | # Certain items are explicitly put under /lib, not base_libdir when installed. |
| 56 | # |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 57 | FILES:${PN} += " \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 58 | ${sbindir}/* \ |
| 59 | ${datadir}/ufw/* \ |
| 60 | /lib/ufw/* \ |
| 61 | ${sysconfdir}/ufw/* \ |
| 62 | ${sysconfdir}/default/ufw \ |
| 63 | " |
| 64 | |
| 65 | REQUIRED_DISTRO_FEATURES = "ipv6" |
| 66 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 67 | DISTUTILS_BUILD_ARGS:append = " --iptables-dir /usr/sbin" |
| 68 | DISTUTILS_INSTALL_ARGS:append = " --iptables-dir /usr/sbin" |