summaryrefslogtreecommitdiff
path: root/pcr/3proxy/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-01-02 07:37:16 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-01-02 07:40:53 -0300
commitf25df79ef8c9ba289d0ab8e111ada8de217c1f6e (patch)
tree0a9ee00f8d399544fffcdabc6d07fe1f84494178 /pcr/3proxy/PKGBUILD
parentca026b287990ffbf3a35e09ae447bea33243417a (diff)
downloadabslibre-f25df79ef8c9ba289d0ab8e111ada8de217c1f6e.tar.gz
abslibre-f25df79ef8c9ba289d0ab8e111ada8de217c1f6e.tar.bz2
abslibre-f25df79ef8c9ba289d0ab8e111ada8de217c1f6e.zip
3proxy: add new package to [pcr]
Diffstat (limited to 'pcr/3proxy/PKGBUILD')
-rw-r--r--pcr/3proxy/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/3proxy/PKGBUILD b/pcr/3proxy/PKGBUILD
new file mode 100644
index 000000000..524b4b439
--- /dev/null
+++ b/pcr/3proxy/PKGBUILD
@@ -0,0 +1,27 @@
+# Contributor (Arch): d0wn
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+pkgname=3proxy
+pkgver=0.8.8
+pkgrel=1
+pkgdesc='A tiny crossplatform proxy server'
+arch=('i686' 'x86_64')
+url='http://www.3proxy.ru/'
+license=(BSD)
+source=(https://github.com/z3APA3A/3proxy/archive/3proxy-$pkgver.tar.gz)
+md5sums=('5280e8b5654331d6ef4c367f5ad82b9c')
+_prefix=/usr
+_etcdir=/etc/3proxy
+package() {
+ cd $srcdir/3proxy-3proxy-$pkgver
+ cp Makefile.Linux Makefile.Linux~ && sed 's/^\(CFLAGS =\)/\1 -Werror-implicit-function-declaration /' Makefile.Linux~ > Makefile.Linux || return 1
+ make='make -f Makefile.Linux INSTALL=/usr/bin/install'
+ $make prefix="$_prefix" ETCDIR="$_etcdir"
+ $make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}"
+ ( cd ${pkgdir}${_prefix}/bin && mv proxy 3proxy-proxy ) || return 1
+ rm -f ${pkgdir}${_etcdir}/counters ${pkgdir}${_etcdir}/passwd ${pkgdir}${_etcdir}/bandlimiters
+ install -D -m644 copying ${pkgdir}${_prefix}/share/licenses/$pkgname/copying
+ install -D -m644 cfg/3proxy.cfg.sample ${pkgdir}${_etcdir}/3proxy.cfg.sample
+ install -D -m644 cfg/counters.sample ${pkgdir}${_etcdir}/counters.sample
+}