diff options
| author | coast <coasteen@proton.me> | 2026-10-12 14:41:07 +0330 |
|---|---|---|
| committer | coast <coasteen@proton.me> | 2026-10-12 14:41:07 +0330 |
| commit | 25922912c7e37f3bc3000e71b647e77677d8f2c5 (patch) | |
| tree | 8383c5569a668613eee384ee31ea8cddc2113ee5 /packages/net-firewall/ufw/ufw-0.36.2.exheres-0 | |
| download | exherbo-overlay-main.tar.gz exherbo-overlay-main.tar.bz2 exherbo-overlay-main.tar.xz exherbo-overlay-main.tar.zst | |
Diffstat (limited to 'packages/net-firewall/ufw/ufw-0.36.2.exheres-0')
| -rw-r--r-- | packages/net-firewall/ufw/ufw-0.36.2.exheres-0 | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/packages/net-firewall/ufw/ufw-0.36.2.exheres-0 b/packages/net-firewall/ufw/ufw-0.36.2.exheres-0 new file mode 100644 index 0000000..c55c871 --- /dev/null +++ b/packages/net-firewall/ufw/ufw-0.36.2.exheres-0 @@ -0,0 +1,57 @@ +# Copyright 2026 Gurov <thuggerthugger1@duck.com> +# Distributed under the terms of the GNU General Public License v2 + +require python [ blacklist="2 3.9 3.10" multibuild=false ] systemd-service + +SUMMARY="Uncomplicated firewall frontend for iptables" +HOMEPAGE="https://launchpad.net/ufw" +DOWNLOADS="${HOMEPAGE}/${PV%.*}/${PV}/+download/${PNV}.tar.gz" + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64" +RESTRICT="test" + +DEPENDENCIES=" + build: + dev-python/setuptools[python_abis:*(-)?] + sys-devel/gettext + + run: + net-firewall/iptables +" + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}/${PN}-0.36.1-move-path.patch" + "${FILES}/${PN}-0.36.1-dont-check-iptables.patch" + "${FILES}/${PN}-0.36.1-shebang.patch" + "${FILES}/${PN}-0.36-bash-completion.patch" + "${FILES}/${PN}-0.36.1-distutils.patch" +) + +src_compile() { + edo "${PYTHON}" -B setup.py install --prefix=/usr \ + --root="${WORK}/staging-root" --install-lib="$(python_get_sitedir)" \ + --no-compile +} + +src_install() { + edo cp -R "${WORK}/staging-root/." "${IMAGE}/" + + dodir /usr/$(exhost --target)/bin + edo mv "${IMAGE}/usr/sbin/ufw" "${IMAGE}/usr/$(exhost --target)/bin/ufw" + edo rmdir "${IMAGE}/usr/sbin" + edo sed -i "1c#! /usr/$(exhost --target)/bin/python$(python_get_abi)" \ + "${IMAGE}/usr/$(exhost --target)/bin/ufw" + + insinto /usr/share/bash-completion/completions + newins shell-completion/bash ufw + install_systemd_files + keepdir /etc/ufw/user + dodoc README + python_bytecompile +} + +pkg_postinst() { + ewarn "Allow remote SSH before enabling UFW; enabling it can interrupt your connection." +} |
