blob: 7a95a2d957124eb989a4c45900ca81bd6754eb3a (
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
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Niklas Baumstark <niklas.baumstark at gmail>
# Contributor: Renato Zannon <renato.riccieri at gmail>
# Contributor: Michael P <ptchinster@archlinux.us>
# Contributor: Achraf cherti <achrafcherti <at> gmail /dot/ com>
set -u
pkgname='redir'
pkgver='3.3'
pkgrel='1'
pkgdesc='Redirect TCP connections'
arch=('i686' 'x86_64')
#url='http://sammy.net/~sammy/hacks/'
url='https://github.com/troglobit/redir'
license=('GPL')
# tcp_wrappers is hard to set up and seems to not work right. running tcpdchk produces errors
depends=('glibc')
#depends+=('tcp_wrappers')
_verwatch=("${url}/releases.atom" "\s\+<title>${pkgname} v\([0-9.]\+\)</title>.*" 'f') # RSS
#source=("http://sammy.net/~sammy/hacks/${pkgname}-${pkgver}.tar.gz")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/troglobit/redir/archive/v${pkgver}.tar.gz")
sha256sums=('7311731097aabd390bd4d8f390980278b16b25d0bae8e21a9e768cd824f846f7')
build() {
set -u
cd "${pkgname}-${pkgver}"
[ -s 'configure' ] || sh 'autogen.sh'
[ -s 'Makefile' ] || ./configure -prefix='/usr'
#make clean
local _deps="${depends[@]}"
if [ "${_deps/tcp_wrappers/}" != "${_deps}" ]; then
make WRAP_CFLAGS=" -DUSE_TCP_WRAPPERS" WRAP_LIBS=" -lwrap"
else
make
fi
set +u
}
package() {
set -u
cd "${pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
set +u
}
set +u
|