blob: 47bab3c619fe8ef607a0aee5e63e8b8f7ad36497 (
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
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Daniil Redchin <redchindaniil@gmail.com> <github.com/USSURATONCACHI>
pkgname=novpn
pkgver=1.3.1
pkgrel=1
pkgdesc="CLI tool to easily run programs with access to only one network device"
arch=('any')
url="https://github.com/USSURATONCACHI/novpn"
license=('Apache-2.0')
# Every single one is used and is essential
depends=('bash' 'firejail' 'iproute2' 'iptables' 'grep' 'gawk' 'coreutils' 'systemd')
makedepends=('coreutils')
install=novpn.install
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('c1c20ff5bebddb8bc6615d156cf052bdfa46cf892ff2f35ca8e01ef5e686639a')
package() {
novpn_srcdir="${srcdir}/novpn-${pkgver}/novpn_src"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/configure_default" "${pkgdir}/usr/bin/novpn_utils/configure_default"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/down" "${pkgdir}/usr/bin/novpn_utils/down"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/get_gateway" "${pkgdir}/usr/bin/novpn_utils/get_gateway"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/internal_add_rules" "${pkgdir}/usr/bin/novpn_utils/internal_add_rules"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/ip_offset" "${pkgdir}/usr/bin/novpn_utils/ip_offset"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/params" "${pkgdir}/usr/bin/novpn_utils/params"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/print_params" "${pkgdir}/usr/bin/novpn_utils/print_params"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/up" "${pkgdir}/usr/bin/novpn_utils/up"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_utils/wait_for_device" "${pkgdir}/usr/bin/novpn_utils/wait_for_device"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn" "${pkgdir}/usr/bin/novpn"
install -Dm755 "${novpn_srcdir}/usr/bin/novpn_ns" "${pkgdir}/usr/bin/novpn_ns"
install -Dm644 "${novpn_srcdir}/usr/lib/systemd/system/novpn.service" "${pkgdir}/usr/lib/systemd/system/novpn.service"
install -Dm644 "${novpn_srcdir}/usr/lib/systemd/system/novpn-keepalive.service" "${pkgdir}/usr/lib/systemd/system/novpn-keepalive.service"
install -Dm644 "${novpn_srcdir}/usr/lib/systemd/system/novpn-keepalive.timer" "${pkgdir}/usr/lib/systemd/system/novpn-keepalive.timer"
install -Dm644 "${novpn_srcdir}/etc/novpn" "${pkgdir}/etc/novpn"
}
|