milis/talimatname/genel/3/3proxy/talimat

24 lines
912 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: her ortam için hafif vekil sunucu
# URL: http://www.3proxy.ru/
# Paketçi: milisarge
# Gerekler:
isim=3proxy
surum=0.8.6
devir=1
kaynak=(https://github.com/z3APA3A/3proxy/archive/3proxy-$surum.tar.gz)
_prefix=/usr
_etcdir=/etc/3proxy
derle(){
cd "$SRC/3proxy-3proxy-0.8.6"
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="$PKG" ETCDIR="${PKG}${_etcdir}"
( cd ${PKG}${_prefix}/bin && mv proxy 3proxy-proxy ) || return 1
rm -f ${PKG}${_etcdir}/counters ${PKG}${_etcdir}/passwd ${PKG}${_etcdir}/bandlimiters
install -D -m644 cfg/3proxy.cfg.sample ${PKG}${_etcdir}/3proxy.cfg.sample
install -D -m644 cfg/counters.sample ${PKG}${_etcdir}/counters.sample
}