void-packages/srcpkgs/3proxy/template

27 lines
707 B
Bash

# Template file for '3proxy'
pkgname=3proxy
version=0.8.13
revision=1
short_desc="3proxy tiny proxy server"
maintainer="iaroki <iaroki@protonmail.com>"
license="BSD-3-Clause"
homepage="https://3proxy.ru"
distfiles="https://github.com/z3APA3A/3proxy/archive/${version}.tar.gz"
checksum=a6d3cf9dd264315fa6ec848f6fe6c9057db005ce4ca8ed1deb00f6e1c3900f88
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
vinstall cfg/counters.sample 644 /etc/3proxy
vlicense copying
vsv 3proxy
mv ${DESTDIR}/usr/bin/proxy ${DESTDIR}/usr/bin/3proxy-proxy
}