blob: 08c98a389e7870f7453cb2667c7112f27507ea90 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Anselmo L. S. Melo <anselmolsm@gmail.com>
# Contributor: mortzu <me@mortzu.de>
# Contributor: David Manouchehri <d@32t.ca>
# Submitter: fluffylime <fluffylime@gmail.com>
pkgname=redsocks-git
pkgver=0.5.r7.g5df6a30
pkgrel=2
pkgdesc='Transparent redirector of any TCP connection to proxy using your firewall'
arch=('i686' 'x86_64')
url='http://darkk.net.ru/redsocks/'
license=('Apache')
depends=('libevent')
makedepends=('git')
conflicts=('redsocks')
provides=('redsocks')
install=redsocks.install
backup=('etc/redsocks.conf'
'etc/conf.d/redsocks'
'etc/iptables/redsocks.rules')
source=("$pkgname"::'git+https://github.com/darkk/redsocks.git'
'redsocks.conf'
'redsocks.tmpfiles'
'redsocks.rules'
'redsocks')
md5sums=('SKIP'
'ed8b0090ded9de0940b1cd7539c78422'
'9be5e8bea768b1a8fdec55a8e8af33fd'
'04702a7faf31d707d3df4c116bd58a6d'
'165271c067ed550e9c6da4439d29c5f7')
pkgver() {
cd "$pkgname"
git describe | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/release.//g'
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
install -Dm644 "$srcdir/redsocks" "$pkgdir/etc/conf.d/redsocks"
install -Dm644 "$srcdir/redsocks.conf" "$pkgdir/etc/redsocks.conf"
install -Dm644 "$srcdir/redsocks.rules" "$pkgdir/etc/iptables/redsocks.rules"
install -Dm644 "$srcdir/redsocks.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/redsocks.conf"
install -Dm755 "redsocks" "$pkgdir/usr/bin/redsocks"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/redsocks/README.md"
install -Dm644 "redsocks.service" "$pkgdir/usr/lib/systemd/system/redsocks.service"
install -Dm644 "redsocks.conf.example" "$pkgdir/usr/share/doc/redsocks/redsocks.conf.example"
}
|