squid.paketlendi
This commit is contained in:
parent
0c61b8963b
commit
c7d720782a
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
/sbin/groupadd -g 90 squid
|
||||
/sbin/useradd -g squid -u 90 -d /var/squid -s /bin/false squid
|
||||
/bin/passwd -l squid
|
||||
install -d -m 0700 -o squid -g squid /var/{log/squid,squid}
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/squid: start/stop squid daemon
|
||||
#
|
||||
|
||||
SSD=/sbin/start-stop-daemon
|
||||
PROG=/usr/sbin/squid
|
||||
PID=/var/run/squid.pid
|
||||
OPTS="-Y"
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
$SSD --start --pidfile $PID --exec $PROG -- $OPTS
|
||||
;;
|
||||
stop)
|
||||
$SSD --stop --retry 10 --pidfile $PID --signal INT
|
||||
;;
|
||||
shutdown)
|
||||
$SSD --stop --retry 60 --pidfile $PID --signal TERM
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
reload)
|
||||
$SSD --stop --pidfile $PID --signal HUP
|
||||
;;
|
||||
status)
|
||||
$SSD --status --pidfile $PID
|
||||
case $? in
|
||||
0) echo "$PROG is running with pid $(cat $PID)" ;;
|
||||
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||
3) echo "$PROG is not running" ;;
|
||||
4) echo "Unable to determine the program status" ;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|shutdown|restart|reload|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
|
@ -0,0 +1,38 @@
|
|||
# Description: Fonksiyonel vwkil sunucu yazılımı
|
||||
# URL: http://www.squid-cache.org
|
||||
# Packager: milisarge
|
||||
# Depends on:
|
||||
|
||||
name=squid
|
||||
version=3.5.24
|
||||
release=1
|
||||
source=(http://www.squid-cache.org/Versions/v3/3.5/$name-$version.tar.xz
|
||||
squid_servisi)
|
||||
|
||||
build () {
|
||||
cd $name-$version
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/lib/squid \
|
||||
--localstatedir=/var \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-pidfile=/var/run/squid.pid \
|
||||
--with-swapdir=/var/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-linux-netfilter \
|
||||
--enable-storeio=ufs,aufs,diskd,rock \
|
||||
--enable-removal-policies=lru,heap \
|
||||
--with-large-files \
|
||||
--with-pthreads \
|
||||
--with-aufs-threads=16 \
|
||||
--disable-auto-locale
|
||||
|
||||
make all
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
rm -r $PKG/var/run
|
||||
find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
|
||||
install -D -m 755 $SRC/squid_servisi $PKG/etc/rc.d/init.d/squid
|
||||
}
|
Loading…
Reference in New Issue