blob: 12f2511327e7f2ebbec91c2eb3f216dedfcbe09b (
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
|
# Maintainer: jamazi <jamazi@tutanota.com>
pkgname=jailbox-git
_pkgname=jailbox
pkgver=v0.5.0.r0.gd82c0be
pkgrel=2
pkgdesc="Torify the system with multiple tor exit nodes and load balance"
url="https://github.com/jamazi/jailbox.git"
license=("MIT")
depends=(tor iptables iproute2 bash)
makedepends=("git")
optdepends=("obfs4proxy: obfuscating pluggable transport proxy")
arch=("any")
source=("git+https://github.com/jamazi/${_pkgname}.git")
backup=(etc/${_pkgname}/{torrc,config})
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/-/.r/;s/-/./'
}
package() {
cd "$_pkgname"
install -Dm644 config "${pkgdir}"/etc/jailbox/config
install -dm755 "${pkgdir}"/etc/jailbox/config.d
install -Dm644 torrc "${pkgdir}"/etc/jailbox/torrc
install -Dm755 jailbox-start "${pkgdir}"/usr/bin/jailbox-start
install -Dm755 jailbox-stop "${pkgdir}"/usr/bin/jailbox-stop
install -Dm755 jailbox-post-start "${pkgdir}"/usr/bin/jailbox-post-start
install -Dm755 jailbox-pre-stop "${pkgdir}"/usr/bin/jailbox-pre-stop
install -Dm755 unjailbox "${pkgdir}"/usr/bin/unjailbox
install -Dm644 jailbox.service "${pkgdir}"/usr/lib/systemd/system/jailbox.service
}
|