-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
PKGBUILD
30 lines (28 loc) · 1.54 KB
/
PKGBUILD
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: Philipp Schmitt (philipp<at>schmitt<dot>co)
pkgname=pia-tools
pkgver=1.1.2
pkgrel=1
pkgdesc="OpenVPN hook for privateinternetaccess.com"
arch=("any")
url="https://github.com/pschmitt/pia-tools"
license=("GPL3")
depends=("transmission-cli" "bind-tools" "openvpn" "systemd" "sudo" "wget" "ufw" "unzip" "sed")
source=("pia-tools-$pkgver.tar.gz::https://github.com/pschmitt/pia-tools/archive/$pkgver.tar.gz")
sha256sums=('7245683f2c4eff290d6ed0c84386fa38534482a86cea202e1808e251db55bf2d')
install="${pkgname}.install"
package() {
cd "$pkgname-$pkgver"
install -Dm755 pia-tools "${pkgdir}/usr/bin/pia-tools"
install -Dm644 pia-tools.groff "${pkgdir}/usr/share/man/man1/pia-tools.1"
install -Dm644 pia@.service "${pkgdir}/usr/lib/systemd/system/pia@.service"
install -Dm644 pia-tools-update.service "${pkgdir}/usr/lib/systemd/system/pia-tools-update.service"
install -Dm644 pia-tools-update.timer "${pkgdir}/usr/lib/systemd/system/pia-tools-update.timer"
install -Dm644 pia_common "${pkgdir}/etc/openvpn/pia/pia_common"
install -Dm755 pia-up "${pkgdir}/etc/openvpn/pia/pia-up"
install -Dm755 pia-down "${pkgdir}/etc/openvpn/pia/pia-down"
install -Dm755 pia-up "${pkgdir}/etc/openvpn/pia/pia-up.custom.sample"
install -Dm755 pia-down "${pkgdir}/etc/openvpn/pia/pia-down.custom.sample"
# Activate the ovpn update service
install -d -m755 "${pkgdir}/usr/lib/systemd/system/multi-user.target.wants"
ln -s ../pia-tools-update.timer "${pkgdir}/usr/lib/systemd/system/multi-user.target.wants/pia-tools-update.timer"
}