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

24 lines
912 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: her ortam için hafif vekil sunucu
2017-04-15 21:17:08 +02:00
# URL: http://www.3proxy.ru/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2017-04-15 21:17:08 +02:00
2017-10-28 14:10:23 +02:00
isim=3proxy
surum=0.8.6
devir=1
kaynak=(https://github.com/z3APA3A/3proxy/archive/3proxy-$surum.tar.gz)
2017-04-15 21:17:08 +02:00
_prefix=/usr
_etcdir=/etc/3proxy
2017-10-27 23:59:41 +02:00
derle(){
2017-04-15 21:17:08 +02:00
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
}