summaryrefslogtreecommitdiff
path: root/pcr/firewalld-openrc/PKGBUILD
blob: d90d71b95df785882cb2b10db1ccebff2a2cf3ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer (Arch): Chris Cromer <chris@cromer.cl>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=firewalld-openrc
pkgver=1.0
pkgrel=2.2
pkgdesc="OpenRC scripts for firewalld."
arch=('any')
provides=('firewalld-openrc')
conflicts=('iptables-openrc')
pkgname=('firewalld-openrc')
depends=('firewalld' 'openrc')
url="https://github.com/cromerc/arch-openrc"
license=("GPL2")
source=("firewalld.init")
sha256sums=('96593cc0e8efcb60b0aa6b9e994dae31ec31cd812aca1145b7829b0a40e0dfa6')

_inst_initd(){
	install -Dm755 firewalld.init ${pkgdir}/etc/init.d/firewalld

	sed -e 's|/var/run|/run|g' \
		-e 's|/usr/sbin|/usr/bin|g' \
		-i ${pkgdir}/etc/init.d/$1
}

package_firewalld-openrc() {
	pkgdesc="OpenRC scripts for firewalld."
	depends=('firewalld' 'openrc')
	install=firewalld-openrc.install

	_inst_initd 'firewalld'
}