###############################################################################
-# #
-# IPFire.org - A linux based firewall #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU General Public License as published by #
-# the Free Software Foundation, either version 3 of the License, or #
-# (at your option) any later version. #
-# #
-# This program is distributed in the hope that it will be useful, #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-# GNU General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-# #
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name = squid
+version = 3.1.12
+major_ver = 3.1
+release = 1
-PKG_NAME = squid
-PKG_VER = 3.1.12
-PKG_REL = 1
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups = Networking/Daemons
+url = http://www.squid-cache.org/
+license = GPLv2+
+summary = The Squid proxy caching server.
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS = Networking/Daemons
-PKG_URL = http://www.squid-cache.org/
-PKG_LICENSE = GPLv2+
-PKG_SUMMARY = The Squid proxy caching server.
-
-PKG_BUILD_DEPS+= gcc-c++ libxml2-devel openssl-devel openldap-devel samba-devel \
- iptables-devel $(PKG_DEPS) pam-devel libcap-devel
-PKG_DEPS += /usr/bin/smbclient
+description
+ Squid is a high-performance proxy caching server for Web clients,
+ supporting FTP, gopher, and HTTP data objects. Unlike traditional
+ caching software, Squid handles all requests in a single,
+ non-blocking, I/O-driven process. Squid keeps meta data and especially
+ hot objects cached in RAM, caches DNS lookups, supports non-blocking
+ DNS lookups, and implements negative caching of failed requests.
+end
-PKG_REQUIRES_FILTER = perl\(Authen::Smb\)
+source_dl = http://www.squid-cache.org/Versions/v3/%{major_ver}/
-define PKG_DESCRIPTION
- Squid is a high-performance proxy caching server for Web clients, \
- supporting FTP, gopher, and HTTP data objects. Unlike traditional \
- caching software, Squid handles all requests in a single, \
- non-blocking, I/O-driven process. Squid keeps meta data and especially \
- hot objects cached in RAM, caches DNS lookups, supports non-blocking \
- DNS lookups, and implements negative caching of failed requests.
+build
+ requires
+ gcc-c++
+ libxml2-devel
+ openssl-devel
+ openldap-devel
+ samba-devel
+ iptables-devel
+ pam-devel
+ libcap-devel
+ /usr/bin/smbclient
+ end
-endef
+ export PKG_REQUIRES_FILTER = perl\(Authen::Smb\)
-PKG_TARBALL = $(THISAPP).tar.gz
+ configure_options += \
+ --datadir=/usr/lib/squid \
+ --libexecdir=/usr/lib/squid \
+ --localstatedir=/var \
+ --sysconfdir=/etc/squid \
+ --enable-storeio="aufs,diskd,ufs" \
+ --enable-removal-policies="heap,lru" \
+ --enable-icmp \
+ --enable-delay-pools \
+ --disable-esi \
+ --disable-icap-client \
+ --enable-useragent-log \
+ --enable-referrer-log \
+ --disable-wccp \
+ --disable-wccpv2 \
+ --enable-kill-parent-hack \
+ --enable-snmp \
+ --enable-arp-acl \
+ --enable-ipf-transparent \
+ --enable-htcp \
+ --enable-ssl \
+ --enable-forw-via-db \
+ --disable-cache-digests \
+ --enable-poll \
+ --enable-select \
+ --disable-kqueue \
+ --enable-epoll \
+ --enable-http-violations \
+ --enable-linux-netfilter \
+ --disable-ident-lookups \
+ --enable-internal-dns \
+ --enable-auth=basic,ntlm \
+ --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
+ --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
+ --enable-ntlm-fail-open \
+ --with-filedescriptors=16384 \
+ --enable-unlinkd \
+ --with-pthreads \
+ --with-aio \
+ --with-dl \
+ --with-large-files
-CONFIGURE_OPTIONS += \
- --datadir=/usr/lib/squid \
- --libexecdir=/usr/lib/squid \
- --localstatedir=/var \
- --sysconfdir=/etc/squid \
- --enable-storeio="aufs,diskd,ufs" \
- --enable-removal-policies="heap,lru" \
- --enable-icmp \
- --enable-delay-pools \
- --disable-esi \
- --disable-icap-client \
- --enable-useragent-log \
- --enable-referrer-log \
- --disable-wccp \
- --disable-wccpv2 \
- --enable-kill-parent-hack \
- --enable-snmp \
- --enable-arp-acl \
- --enable-ipf-transparent \
- --enable-htcp \
- --enable-ssl \
- --enable-forw-via-db \
- --disable-cache-digests \
- --enable-poll \
- --enable-select \
- --disable-kqueue \
- --enable-epoll \
- --enable-http-violations \
- --enable-linux-netfilter \
- --disable-ident-lookups \
- --enable-internal-dns \
- --enable-auth=basic,ntlm \
- --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
- --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
- --enable-ntlm-fail-open \
- --with-filedescriptors=16384 \
- --enable-unlinkd \
- --with-pthreads \
- --with-aio \
- --with-dl \
- --with-large-files
+ install_cmds
+ rm -vf %{BUILDROOT}/etc/squid/errors
+ rmdir %{BUILDROOT}/var/logs
-define STAGE_INSTALL_CMDS
- rm -vf $(BUILDROOT)/etc/squid/errors
- rmdir $(BUILDROOT)/var/logs
+ mkdir -pv %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/log/squid
+ touch %{BUILDROOT}/var/log/squid/access.log
+ mkdir -pv %{BUILDROOT}/var/cache/squid
- -mkdir -pv $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/log/squid
- touch $(BUILDROOT)/var/log/squid/access.log
- -mkdir -pv $(BUILDROOT)/var/cache/squid
+ # What is this?????
+ #groupadd -r squid && useradd -r -g squid -d %{BUILDROOT}/var/cache/squid -s /bin/false -p '*' squid
+ #chown -Rv squid:squid %{BUILDROOT}/var/log/squid %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/cache/squid
+ #chmod 600 %{BUILDROOT}/var/cache/squid
+ #chown squid:squid %{BUILDROOT}/var/log/squid
+ end
+end
- # What is this?????
- #groupadd -r squid && useradd -r -g squid -d $(BUILDROOT)/var/cache/squid -s /bin/false -p '*' squid
- #chown -Rv squid:squid $(BUILDROOT)/var/log/squid $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/cache/squid
- #chmod 600 $(BUILDROOT)/var/cache/squid
- #chown squid:squid $(BUILDROOT)/var/log/squid
-endef
+packages
+ package %{name}
+ requires = /usr/bin/smbclient
+ end
+end