blob: 1df106cebca55587af4c0cc5a891367b12eea659 (
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
|
# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>
pkgname=combust-git
_gitname=combust
pkgver=0.61.e4c95ce
pkgrel=1
pkgdesc='nftables firewall script with profiles'
arch=('any')
license=('MIT')
url='https://github.com/gavinhungry/combust'
depends=('nftables')
source=("${_gitname}::git+https://github.com/gavinhungry/${_gitname}.git#branch=master")
md5sums=('SKIP')
backup=('etc/combust.conf')
pkgver () {
cd "${srcdir}/${_gitname}"
echo "0.$(git rev-list --count HEAD).$(git describe --always | sed 's|-|.|g')"
}
package() {
cd "${srcdir}/${_gitname}"
install -d $pkgdir/etc/
install -d $pkgdir/usr/bin/
install -d $pkgdir/usr/lib/systemd/system/
install -m600 combust.conf "${pkgdir}"/etc/
install -m755 combust.sh "${pkgdir}"/usr/bin/combust
install -m644 combust.service "${pkgdir}"/usr/lib/systemd/system/
}
|