4 pkgdesc="A tiny crossplatform proxy server"
6 url="http://www.3proxy.ru/"
9 source=("http://www.3proxy.ru/$pkgver/3proxy-$pkgver.tgz"
11 md5sums=('03790467a12e16ed8785ae688ecf9b68'
24 cd "$srcdir/3proxy-$pkgver"
26 cp Makefile.Linux Makefile.Linux~ && sed 's/^\(CFLAGS =\)/\1 -Werror-implicit-function-declaration /' Makefile.Linux~ > Makefile.Linux || return 1
31 make='make -f Makefile.Linux INSTALL=/bin/install'
32 $make prefix="$_prefix" ETCDIR="$_etcdir"
33 $make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}"
34 ( cd ${pkgdir}${_prefix}/bin && mv proxy 3proxy-proxy ) || return 1
35 rm -f ${pkgdir}${_etcdir}/counters ${pkgdir}${_etcdir}/passwd ${pkgdir}${_etcdir}/bandlimiters
36 install -D -m644 copying ${pkgdir}${_prefix}/share/licenses/$pkgname/copying
37 install -D -m644 cfg/3proxy.cfg.sample ${pkgdir}${_etcdir}/3proxy.cfg.sample
38 install -D -m644 cfg/counters.sample ${pkgdir}${_etcdir}/counters.sample