diff options
author | 2003-01-31 23:18:49 +0000 | |
---|---|---|
committer | 2003-01-31 23:18:49 +0000 | |
commit | 0755b4c5ced3ef9bb1c95227b357d9027c7e7670 (patch) | |
tree | 3e0b2c242e3ee244610efc7b995fb09f08c3d096 | |
parent | install packer.h. fixes #12441 (diff) | |
download | gentoo-2-0755b4c5ced3ef9bb1c95227b357d9027c7e7670.tar.gz gentoo-2-0755b4c5ced3ef9bb1c95227b357d9027c7e7670.tar.bz2 gentoo-2-0755b4c5ced3ef9bb1c95227b357d9027c7e7670.zip |
Version bump which now supports cyrus-sasl2
-rw-r--r-- | net-www/squid/ChangeLog | 9 | ||||
-rw-r--r-- | net-www/squid/files/digest-squid-2.5.1-r2 | 1 | ||||
-rw-r--r-- | net-www/squid/squid-2.5.1-r2.ebuild | 153 |
3 files changed, 162 insertions, 1 deletions
diff --git a/net-www/squid/ChangeLog b/net-www/squid/ChangeLog index 9c292eb4f024..6a1b113ad475 100644 --- a/net-www/squid/ChangeLog +++ b/net-www/squid/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-www/squid # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-www/squid/ChangeLog,v 1.12 2002/12/14 06:02:25 woodchip Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/squid/ChangeLog,v 1.13 2003/01/31 23:18:49 raker Exp $ + +*squid-2.5.1-r2 (31 Jan 2003) + + 31 Jan 2003; Nick Hadaway <raker@gentoo.org> squid-2.5.1-r2.ebuild, + files/digest-squid-2.5.1-r2 : + Added logic so if sasl2 is installed, squid uses it. A couple + of sed statements are included to adjust incompatible code. 14 Dec 2002; Donny Davies <woodchip@gentoo.org> : #8738. diff --git a/net-www/squid/files/digest-squid-2.5.1-r2 b/net-www/squid/files/digest-squid-2.5.1-r2 new file mode 100644 index 000000000000..71ee1aa5cce7 --- /dev/null +++ b/net-www/squid/files/digest-squid-2.5.1-r2 @@ -0,0 +1 @@ +MD5 c83e3f4f0313529a2bc4b5dd6f651544 squid-2.5.STABLE1.tar.bz2 1006600 diff --git a/net-www/squid/squid-2.5.1-r2.ebuild b/net-www/squid/squid-2.5.1-r2.ebuild new file mode 100644 index 000000000000..1f059f7e98ab --- /dev/null +++ b/net-www/squid/squid-2.5.1-r2.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/squid/squid-2.5.1-r2.ebuild,v 1.1 2003/01/31 23:18:49 raker Exp $ + +IUSE="pam ldap ssl sasl snmp" + +#lame archive versioning scheme.. +S_PV=${PV%.*} +S_PL=${PV##*.} +S_PP=${PN}-${S_PV}.STABLE${S_PL} + +DESCRIPTION="A caching web proxy, with advanced features" +HOMEPAGE="http://www.squid-cache.org/" + +S=${WORKDIR}/${S_PP} +SRC_URI="ftp://ftp.squid-cache.org/pub/squid-2/STABLE/${S_PP}.tar.bz2" + +RDEPEND="virtual/glibc + pam? ( >=sys-libs/pam-0.72 ) + ldap? ( >=net-nds/openldap-2.0.25 ) + ssl? ( >=dev-libs/openssl-0.9.6g ) + sasl? ( >=dev-libs/cyrus-sasl-1.5.27 )" +DEPEND="${RDEPEND} sys-devel/perl" +LICENSE="GPL-2" +KEYWORDS="x86 ~ppc ~sparc ~alpha" +SLOT="0" + +src_unpack() { + unpack ${A} || die + cd ${S} || die + + #do NOT just remove this patch. yes, it's here for a reason. + #woodchip@gentoo.org (07 Nov 2002) + patch -p1 <${FILESDIR}/${P}-gentoo.diff || die + + #hmm #10865 + cd helpers/external_acl/ldap_group + cp Makefile.in Makefile.in.orig + sed -e 's%^\(LINK =.*\)\(-o.*\)%\1\$(XTRA_LIBS) \2%' \ + Makefile.in.orig > Makefile.in + + if [ -z "$DEBUGBUILD" ] + then + cd ${S} + mv configure.in configure.in.orig + sed -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in.orig > configure.in + autoconf || die + fi +} + +src_compile() { + local basic_modules="getpwnam,YP,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" + use ldap && basic_modules="LDAP,${basic_modules}" + use pam && basic_modules="PAM,${basic_modules}" + if [ `use sasl` ]; then + basic_modules="SASL,${basic_modules}" + if [ -f /usr/include/sasl/sasl.h ]; then + cd ${S}/helpers/basic_auth/SASL/ + cp sasl_auth.c sasl_auth.c.orig + sed \ + -e "s:sasl.h:sasl/sasl.h:" \ + -e "s:NULL, NULL, NULL:NULL, NULL, NULL, NULL, NULL:" \ + -e "s:strlen(password), \&errstr:strlen(password):" \ + < sasl_auth.c.orig > sasl_auth.c + cp Makefile.in Makefile.in.orig + sed -e "s:-lsasl:-lsasl2:" \ + < Makefile.in.orig > Makefile.in + cd ${S} + fi + fi + + local ext_helpers="ip_user,unix_group,wbinfo_group,winbind_group" + use ldap && ext_helpers="ldap_group,${ext_helpers}" + + local myconf="" + use snmp && myconf="${myconf} --enable-snmp" || myconf="${myconf} --disable-snmp" + use ssl && myconf="${myconf} --enable-ssl" || myconf="${myconf} --disable-ssl" + + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --exec-prefix=/usr \ + --sbindir=/usr/sbin \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/squid \ + --libexecdir=/usr/lib/squid \ + \ + --enable-auth="basic,digest,ntlm" \ + --enable-removal-policies="lru,heap" \ + --enable-digest-auth-helpers="password" \ + --enable-storeio="ufs,diskd,coss,aufs,null" \ + --enable-basic-auth-helpers=${basic_modules} \ + --enable-external-acl-helpers=${ext_helpers} \ + --enable-ntlm-auth-helpers="SMB,fakeauth,no_check,winbind" \ + --enable-linux-netfilter \ + --disable-ident-lookups \ + --enable-useragent-log \ + --enable-cache-digests \ + --enable-delay-pools \ + --enable-referer-log \ + --enable-async-io \ + --enable-truncate \ + --enable-arp-acl \ + --with-pthreads \ + --enable-htcp \ + --enable-carp \ + --enable-poll \ + --host=${CHOST} ${myconf} || die "bad ./configure" + #--enable-icmp + + mv include/autoconf.h include/autoconf.h.orig + sed -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 4096:" \ + include/autoconf.h.orig > include/autoconf.h + + emake || die "compile problem" +} + +src_install() { + make DESTDIR=${D} install || die + + #--enable-icmp + #make -C src install-pinger libexecdir=${D}/usr/lib/squid || die + #chown root.squid ${D}/usr/lib/squid/pinger + #chmod 4750 ${D}/usr/lib/squid/pinger + + #some clean ups + rm -rf ${D}/var + mv ${D}/usr/bin/Run* ${D}/usr/lib/squid + + #simply switch this symlink to choose the desired language.. + dosym /usr/lib/squid/errors/English /etc/squid/errors + + dodoc README QUICKSTART CONTRIBUTORS COPYRIGHT COPYING \ + CREDITS ChangeLog doc/*.txt \ + helpers/ntlm_auth/no_check/README.no_check_ntlm_auth + newdoc helpers/basic_auth/SMB/README README.auth_smb + dohtml helpers/basic_auth/MSNT/README.html + newdoc helpers/basic_auth/LDAP/README README.auth_ldap + doman helpers/basic_auth/LDAP/*.8 + dodoc helpers/basic_auth/SASL/squid_sasl_auth* + + insinto /etc/pam.d ; newins ${FILESDIR}/squid.pam squid + exeinto /etc/init.d ; newexe ${FILESDIR}/squid.rc6 squid + insinto /etc/conf.d ; newins ${FILESDIR}/squid.confd squid + exeinto /etc/cron.weekly ; doins ${FILESDIR}/squid.cron +} + +pkg_postinst() { + # empty dirs.. + install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid + install -m0755 -o squid -g squid -d ${ROOT}/var/log/squid +} |