talimat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Tanım: Fonksiyonel vekil sunucu yazılımı
  2. # URL: http://www.squid-cache.org
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: ağ
  6. isim=squid
  7. surum=3.5.24
  8. devir=2
  9. kaynak=(http://www.squid-cache.org/Versions/v3/3.5/$isim-$surum.tar.xz
  10. squid_servisi)
  11. derle() {
  12. cd $isim-$surum
  13. ./configure --prefix=/usr \
  14. --sysconfdir=/etc/squid \
  15. --libexecdir=/usr/lib/squid \
  16. --localstatedir=/var \
  17. --datadir=/usr/share/squid \
  18. --with-logdir=/var/log/squid \
  19. --with-pidfile=/var/run/squid.pid \
  20. --with-swapdir=/var/squid \
  21. --with-default-user=squid \
  22. --enable-linux-netfilter \
  23. --enable-storeio=ufs,aufs,diskd,rock \
  24. --enable-removal-policies=lru,heap \
  25. --with-large-files \
  26. --with-pthreads \
  27. --with-aufs-threads=16 \
  28. --disable-auto-locale \
  29. --with-openssl \
  30. --enable-ssl-crtd
  31. make all
  32. make DESTDIR=$PKG install
  33. rm -r $PKG/var/run
  34. find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r
  35. install -D -m 755 $SRC/squid_servisi $PKG/etc/rc.d/init.d/squid
  36. }