Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-squid-3120
dba-squid-3120.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-squid-3120.spec of Package dba-squid-3120
# # spec file for package squid # %define real_name squid %define version 3.1.20 %define vers 3120 %define prefix /DBA/%{real_name}/%{version} %define maketest 0 Name: dba-%{real_name}-%{vers} Summary: Squid WWW proxy server Version: %{version} Release: 1 License: GPL v2 or later Url: http://www.squid-cache.org Group: Productivity/Networking/Web/Proxy AutoReqProv: on Source: http://www.squid-cache.org/Versions/v3/3.1/%{real_name}-%{version}.tar.bz2 Source1: dba-%{real_name}-rpmlintrc Source2: unsquid.pl BuildRoot: %{_tmppath}/%{real_name}-%{version}-build BuildRequires: db-devel BuildRequires: ed expat gcc-c++ libcap-devel libtool openldap2-devel pam-devel BuildRequires: openssl-devel cyrus-sasl-devel %if 0%{?suse_version} BuildRequires: libexpat-devel %else BuildRequires: expat-devel %endif %if 0%{?suse_version} || 0%{?fedora_version} || 0%{?centos_version} BuildRequires: opensp-devel sharutils %endif %if 0%{?sles_version} == 9 BuildRequires: heimdal-devel %else BuildRequires: krb5-devel %endif %if 0%{?suse_version} > 1030 || 0%{?fedora_version} > 8 BuildRequires: fdupes %endif %if 0%{?suse_version} >= 1130 BuildRequires: pkgconfig(libxml-2.0) %else BuildRequires: libxml2-devel %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description The stable version of the Squid WWW Proxy Server. Home page: http://www.squid-cache.org Authors: -------- Duane Wessels <wessels@ircache.net> %prep %setup -n %{real_name}-%{version} perl -pi -e 's%^#!/usr/local/bin/perl%#!/usr/bin/perl%g' `find -name "*.pl"` %build %if 0%{?suse_version} > 1010 ./bootstrap.sh autoreconf -fiv %endif export CFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF" export CXXFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF" export LDFLAGS='-Wl,-z,relro,-z,now -pie' ./configure --prefix=%{prefix} \ --with-dl \ --enable-storeio \ --enable-disk-io=AIO,Blocking,DiskDaemon,DiskThreads \ --enable-removal-policies=heap,lru \ --enable-icmp \ --enable-delay-pools \ --enable-esi \ --enable-icap-client \ --enable-useragent-log \ --enable-referer-log \ --enable-kill-parent-hack \ --enable-arp-acl \ --enable-ssl \ --enable-forw-via-db \ --enable-cache-digests \ --enable-linux-netfilter \ --with-large-files \ --enable-underscores \ --enable-auth=basic,digest,ntlm,negotiate \ %if 0%{?sles_version} == 10 --enable-basic-auth-helpers=DB,LDAP,MSNT,NCSA,PAM,POP3,SASL,SMB,getpwnam,multi-domain-NTLM,squid_radius_auth \ %else --enable-basic-auth-helpers=DB,LDAP,MSNT,NCSA,PAM,POP3,SASL,SMB,YP,getpwnam,multi-domain-NTLM,squid_radius_auth \ %endif --enable-ntlm-auth-helpers=fakeauth,no_check,smb_lm \ --enable-negotiate-auth-helpers=squid_kerb_auth \ --enable-digest-auth-helpers=eDirectory,ldap,password \ --enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group \ --enable-ntlm-fail-open \ --enable-stacktraces \ --enable-x-accelerator-vary \ --with-default-user=squid \ --disable-ident-lookups \ --enable-follow-x-forwarded-for # overwrite the number of open filedescriptors of configure to 4096 # to be backward compatible, but numbers above should not be overwritten if [ `awk '/SQUID_MAXFD/{print $3}' include/autoconf.h` -lt 4096 ]; then set +x echo "adapting SQUID_MAXFD to 4096" set -x perl -pi -e 's;(\#define SQUID_MAXFD) [0-9]+;$1 4096;' include/autoconf.h fi make %{?jobs:-j%jobs} %install %{__mkdir_p} %{buildroot}%{prefix} make install DESTDIR=$RPM_BUILD_ROOT SAMBAPREFIX=/usr install -m 755 %{SOURCE2} %{buildroot}%{prefix}/bin/ %if 0%{?rhel_version} >= 500 || 0%{?centos_version} >= 500 find %{buildroot}%{prefix} -name "smb_auth.pl" |xargs -i rm -f {} %endif %check %if %maketest make check %endif %clean %__rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{prefix} %{prefix}/bin %{prefix}/etc %{prefix}/libexec %{prefix}/sbin %{prefix}/share %changelog * Fri Jul 20 2012 Holger Manthey <holger.manthey@bertelsmann.de> - remove dependency to perl(Authen::Smb) for RHEL + CentOS * Wed Jun 13 2012 Holger Manthey <holger.manthey@bertelsmann.de> - inital version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor