mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 19:37:14 +08:00
ufw, corrected dependencies
This commit is contained in:
parent
ca2776c974
commit
8d87cbd608
43
ufw/PKGBUILD
Normal file
43
ufw/PKGBUILD
Normal file
@ -0,0 +1,43 @@
|
||||
#
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=ufw
|
||||
pkgver=0.30
|
||||
pkgrel=1
|
||||
pkgdesc="Uncomplicated and easy to use CLI tool for managing a netfilter firewall"
|
||||
arch=('any')
|
||||
url="https://launchpad.net/ufw"
|
||||
license=('GPL3')
|
||||
depends=('iptables' 'python')
|
||||
backup=('etc/ufw/before.rules'
|
||||
'etc/ufw/before6.rules'
|
||||
'etc/ufw/after.rules'
|
||||
'etc/ufw/after6.rules'
|
||||
'etc/ufw/ufw.conf'
|
||||
'etc/ufw/user.rules'
|
||||
'etc/ufw/sysctl.conf'
|
||||
'etc/default/ufw'
|
||||
'lib/ufw/user.rules'
|
||||
'lib/ufw/user6.rules')
|
||||
source=(http://launchpad.net/${pkgname}/${pkgver}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz \
|
||||
$pkgname.rc)
|
||||
md5sums=('589e687e24dbf64cf3008d4fd1c945b0'
|
||||
'e15e82645bcb61e85ecc6e6c7c2fc46e')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
python2 setup.py install --root=${pkgdir}
|
||||
|
||||
install -Dm755 ${srcdir}/$pkgname.rc ${pkgdir}/etc/rc.d/$pkgname
|
||||
|
||||
install -D -m755 ${pkgdir}/usr/sbin/$pkgname ${pkgdir}/usr/bin/$pkgname
|
||||
rm -rf ${pkgdir}/usr/sbin
|
||||
chmod 644 ${pkgdir}/etc/ufw/*.rules ${pkgdir}/lib/ufw/*.rules
|
||||
}
|
Loading…
Reference in New Issue
Block a user