mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
ufw: move to usr/bin; remove systemd support.
This commit is contained in:
parent
4d53b2ef74
commit
e83a526f4b
2 changed files with 3 additions and 16 deletions
|
@ -1,11 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=CLI Netfilter Manager
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/lib/ufw/ufw-init start
|
|
||||||
ExecStop=/usr/lib/ufw/ufw-init stop
|
|
||||||
RemainAfterExit=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,8 +1,7 @@
|
||||||
# Template file for 'ufw'
|
# Template file for 'ufw'
|
||||||
pkgname=ufw
|
pkgname=ufw
|
||||||
version=0.33
|
version=0.33
|
||||||
revision=3
|
revision=4
|
||||||
build_options="systemd"
|
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python iptables"
|
hostmakedepends="python iptables"
|
||||||
depends="${hostmakedepends}"
|
depends="${hostmakedepends}"
|
||||||
|
@ -17,8 +16,7 @@ distfiles="http://launchpad.net/ufw/${version}/${version}/+download/ufw-${versio
|
||||||
checksum=5f85a8084ad3539b547bec097286948233188c971f498890316dec170bdd1da8
|
checksum=5f85a8084ad3539b547bec097286948233188c971f498890316dec170bdd1da8
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
if [ "$build_option_systemd" ]; then
|
vmkdir usr/bin
|
||||||
vinstall ${FILESDIR}/ufw.service 644 usr/lib/systemd/system
|
|
||||||
fi
|
|
||||||
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/
|
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib/
|
||||||
|
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue