From fb06e45dac2e2eb9ddff29c324366ae0fb460325 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 20 Nov 2012 06:57:49 +0000 Subject: [PATCH] removed aur/squid, moved to community --- aur/squid/PKGBUILD | 102 ---------------------------------------- aur/squid/squid | 48 ------------------- aur/squid/squid.conf.d | 4 -- aur/squid/squid.cron | 9 ---- aur/squid/squid.install | 26 ---------- aur/squid/squid.pam | 4 -- aur/squid/squid.service | 13 ----- 7 files changed, 206 deletions(-) delete mode 100644 aur/squid/PKGBUILD delete mode 100755 aur/squid/squid delete mode 100644 aur/squid/squid.conf.d delete mode 100755 aur/squid/squid.cron delete mode 100644 aur/squid/squid.install delete mode 100644 aur/squid/squid.pam delete mode 100644 aur/squid/squid.service diff --git a/aur/squid/PKGBUILD b/aur/squid/PKGBUILD deleted file mode 100644 index 7e671ebb0..000000000 --- a/aur/squid/PKGBUILD +++ /dev/null @@ -1,102 +0,0 @@ -# $Id: PKGBUILD 161334 2012-06-09 22:30:24Z dreisner $ -# Contributor: Kevin Piche -# Contributor: Tom Newsom -# Maintainer: Mark Coolen - -pkgname="squid" -pkgver="3.2.2" -pkgrel="1" -pkgdesc="A full-featured Web proxy cache server." -arch=('i686' 'x86_64') -url="http://www.squid-cache.org" -depends=('openssl' 'pam' 'cron' 'perl' 'libltdl') -makedepends=('libcap') -license=('GPL') -backup=('etc/squid/squid.conf' - 'etc/squid/mime.conf' - 'etc/conf.d/squid') -install=squid.install - -#source=("http://www.squid-cache.org/Versions/v3/3.2/$pkgname-$pkgver.tar.bz2" -#source=( "$pkgname-$pkgver"'.tar.bz2' -source=("http://www.squid-cache.org/Versions/v3/3.2/$pkgname-$pkgver.tar.bz2" - 'squid' - 'squid.conf.d' - 'squid.pam' - 'squid.cron' - 'squid.service') - -#'c4d733a383c0508fd0746d64a2d7278a' -md5sums=('39d3f9d03cc0ea9e4d55cde02db18093' - '02f7b5bd793f778e40834fd6457d2199' - '2383772ef94efddc7b920628bc7ac5b0' - '270977cdd9b47ef44c0c427ab9034777' - 'b499c2b725aefd7bd60bec2f1a9de392' - '20e00e1aa1198786795f3da32db3c1d8') - -build() { - cd "$pkgname-$pkgver" - - # gcc 4.6 doesn't support -fhuge-objects. - sed '/^ HUGE_OBJECT_FLAG=/ s/"-fhuge-objects"//' -i configure - - # fix cache_dir, cache_dir size, and effective group. - sed '/^DEFAULT_SWAP_DIR/ s@/cache@/cache/squid@' -i src/Makefile.in - sed '/^#cache_dir/ s/100/256/ - /^NAME: cache_effective_group/ {n;n;s/none/proxy/}' -i src/cf.data.pre - -./configure \ - --prefix=/usr \ - --datadir=/usr/share/squid \ - --sysconfdir=/etc/squid \ - --libexecdir=/usr/lib/squid \ - --localstatedir=/var \ - --with-logdir=/var/log/squid \ - --with-pidfile=/run/squid.pid \ - --enable-auth \ - --enable-auth-basic \ - --enable-auth-ntlm \ - --enable-auth-digest \ - --enable-auth-negotiate \ - --enable-removal-policies="lru,heap" \ - --enable-storeio="aufs,ufs,diskd" \ - --enable-delay-pools \ - --enable-arp-acl \ - --enable-ssl \ - --enable-snmp \ - --enable-linux-netfilter \ - --enable-ident-lookups \ - --enable-useragent-log \ - --enable-cache-digests \ - --enable-referer-log \ - --enable-arp-acl \ - --enable-htcp \ - --enable-carp \ - --enable-epoll \ - --with-filedescriptors=4096 \ - --with-large-files \ - --enable-arp-acl \ - --with-default-user=proxy \ - --enable-async-io \ - --enable-truncate - - - - make -} - -package() { - make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install - - install -Dm755 "$srcdir"/squid "$pkgdir"/etc/rc.d/squid - install -Dm755 "$srcdir"/squid.cron "$pkgdir"/etc/cron.weekly/squid - install -Dm644 "$srcdir"/squid.conf.d "$pkgdir"/etc/conf.d/squid - install -Dm644 "$srcdir"/squid.pam "$pkgdir"/etc/pam.d/squid - - install -Dm644 "$srcdir/squid.service" "$pkgdir/usr/lib/systemd/system/squid.service" - - # random unneeded empty dir... - rmdir "$pkgdir/usr/include" -} - -# vim: ts=2 sw=2 et ft=sh diff --git a/aur/squid/squid b/aur/squid/squid deleted file mode 100755 index da5534427..000000000 --- a/aur/squid/squid +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -# source application-specific settings -[[ -f /etc/conf.d/squid ]] && . /etc/conf.d/squid - -. /etc/rc.conf -. /etc/rc.d/functions - -pidfile=/run/squid.pid -{ read -r PID /dev/null -if [[ $pid && ! /proc/$pid/exe -ef /usr/sbin/squid ]]; then - rm /run/squid.pid -fi - -case $1 in - start) - stat_busy "Starting squid" - if [[ $PID ]] || ! squid $SQUID_ARGS; then - stat_fail - else - add_daemon squid - stat_done - fi - ;; - - stop) - stat_busy "Stopping squid" - if [[ -z $PID ]] || ! squid -k shutdown &>/dev/null; then - stat_fail - else - # squid takes forever to shutdown all its listening FDs - while [[ /proc/$PID/exe -ef /usr/sbin/squid ]]; do - stat_append "." - sleep 3 - done - rm_daemon squid - stat_done - fi - ;; - - restart) - $0 stop - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/aur/squid/squid.conf.d b/aur/squid/squid.conf.d deleted file mode 100644 index ea248b76c..000000000 --- a/aur/squid/squid.conf.d +++ /dev/null @@ -1,4 +0,0 @@ -# -# Parameters to be passed to squid -# -SQUID_ARGS="-sYC" diff --git a/aur/squid/squid.cron b/aur/squid/squid.cron deleted file mode 100755 index c78e51105..000000000 --- a/aur/squid/squid.cron +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# exit without error if no pidfile exists -{ read pid /dev/null || exit 0 - -# make sure found PID really is a squid process -if [ /proc/$pid/exec -ef /usr/sbin/squid ]; then - /usr/sbin/squid -k rotate -fi diff --git a/aur/squid/squid.install b/aur/squid/squid.install deleted file mode 100644 index e7aa5ff68..000000000 --- a/aur/squid/squid.install +++ /dev/null @@ -1,26 +0,0 @@ -post_install() { - if [ -z "$(grep ^proxy: /etc/group)" ]; then - usr/sbin/groupadd -g 15 proxy &>/dev/null - fi - - id proxy &>/dev/null || \ - usr/sbin/useradd -u 15 -g proxy -d /var/empty proxy - - chown proxy.proxy var/{cache,log}/squid - -# cat << EOF -#Release notes: http://www.squid-cache.org/Versions/v3/3.1/RELEASENOTES.html -#EOF -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/userdel proxy &> /dev/null - if [ ! -z "$(grep ^proxy: /etc/group)" ]; then - usr/sbin/groupdel proxy &>/dev/null - fi -} - diff --git a/aur/squid/squid.pam b/aur/squid/squid.pam deleted file mode 100644 index df8a8104f..000000000 --- a/aur/squid/squid.pam +++ /dev/null @@ -1,4 +0,0 @@ -#/etc/pam.d/squid -# -auth required pam_unix.so -account required pam_unix.so diff --git a/aur/squid/squid.service b/aur/squid/squid.service deleted file mode 100644 index 9d41cc243..000000000 --- a/aur/squid/squid.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Web Proxy Cache Server -After=network.target - -[Service] -Type=forking -PIDFile=/run/squid.pid -ExecStart=/usr/sbin/squid -sYC -ExecStop=/usr/sbin/squid -k shutdown -ExecReload=/usr/sbin/squid -k reconfigure - -[Install] -WantedBy=multi-user.target