From b2bfed66639e7a420f377c61f71ff61fe37cdb51 Mon Sep 17 00:00:00 2001 From: iaroki Date: Thu, 9 Nov 2017 11:05:13 +0200 Subject: [PATCH] New package: 3proxy-0.8.11 --- srcpkgs/3proxy/files/3proxy/run | 2 ++ srcpkgs/3proxy/template | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 srcpkgs/3proxy/files/3proxy/run create mode 100644 srcpkgs/3proxy/template diff --git a/srcpkgs/3proxy/files/3proxy/run b/srcpkgs/3proxy/files/3proxy/run new file mode 100755 index 00000000000..bbdcd1a51bc --- /dev/null +++ b/srcpkgs/3proxy/files/3proxy/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec 3proxy /etc/3proxy/3proxy.cfg diff --git a/srcpkgs/3proxy/template b/srcpkgs/3proxy/template new file mode 100644 index 00000000000..79681da3668 --- /dev/null +++ b/srcpkgs/3proxy/template @@ -0,0 +1,24 @@ +# Template file for '3proxy' +pkgname=3proxy +version=0.8.11 +revision=1 +homepage="https://3proxy.ru" +distfiles="https://github.com/z3APA3A/3proxy/archive/$version.tar.gz" +short_desc="3proxy tiny proxy server" +maintainer="iaroki " +license="BSD" +checksum=fc4295e1a462baa61977fcc21747db7861c4e3d0dcca86cbaa3e06017e5c66c9 + +do_build() { + make -f Makefile.Linux CC=$CC LN=$CC +} + +do_install() { + make -f Makefile.Linux prefix=/usr ETCDIR=/etc/3proxy DESTDIR=$DESTDIR install +} + +post_install() { + vinstall cfg/3proxy.cfg.sample 644 /etc/3proxy + vlicense copying + vsv 3proxy +}