Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-proxy/squid: ChangeLog squid-2.6.18.ebuild
Date: Thu, 10 Jan 2008 20:46:29
Message-Id: E1JD4Hx-00065N-NZ@stork.gentoo.org
1 mrness 08/01/10 20:46:09
2
3 Modified: ChangeLog
4 Added: squid-2.6.18.ebuild
5 Log:
6 Version bump (#205240).
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.174 net-proxy/squid/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.174&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?rev=1.174&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/ChangeLog?r1=1.173&r2=1.174
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v
19 retrieving revision 1.173
20 retrieving revision 1.174
21 diff -u -r1.173 -r1.174
22 --- ChangeLog 20 Dec 2007 10:07:12 -0000 1.173
23 +++ ChangeLog 10 Jan 2008 20:46:09 -0000 1.174
24 @@ -1,6 +1,14 @@
25 # ChangeLog for net-proxy/squid
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.173 2007/12/20 10:07:12 mrness Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/ChangeLog,v 1.174 2008/01/10 20:46:09 mrness Exp $
30 +
31 +*squid-2.6.18 (10 Jan 2008)
32 +
33 + 10 Jan 2008; Alin Năstac <mrness@g.o>
34 + +files/squid-2.6.18-ToS_Hit_ToS_Preserve.patch,
35 + +files/squid-2.6.18-gentoo.patch, +files/squid-2.6.18-qos.patch,
36 + +squid-2.6.18.ebuild:
37 + Version bump (#205240).
38
39 *squid-3.0.1 (20 Dec 2007)
40
41
42
43
44 1.1 net-proxy/squid/squid-2.6.18.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.6.18.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/squid/squid-2.6.18.ebuild?rev=1.1&content-type=text/plain
48
49 Index: squid-2.6.18.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.6.18.ebuild,v 1.1 2008/01/10 20:46:09 mrness Exp $
54
55 WANT_AUTOCONF="latest"
56 WANT_AUTOMAKE="latest"
57
58 inherit eutils pam toolchain-funcs flag-o-matic autotools linux-info
59
60 #lame archive versioning scheme..
61 S_PMV="${PV%%.*}"
62 S_PV="${PV%.*}"
63 S_PL="${PV##*.}"
64 S_PL="${S_PL/_rc/-RC}"
65 S_PP="${PN}-${S_PV}.STABLE${S_PL}"
66
67 DESCRIPTION="A full-featured web proxy cache"
68 HOMEPAGE="http://www.squid-cache.org/"
69 SRC_URI="http://www.squid-cache.org/Versions/v${S_PMV}/${S_PV}/${S_PP}.tar.gz"
70
71 LICENSE="GPL-2"
72 SLOT="0"
73 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
74 IUSE="pam ldap samba sasl nis ssl snmp selinux logrotate qos zero-penalty-hit \
75 pf-transparent ipf-transparent \
76 elibc_uclibc kernel_linux"
77
78 DEPEND="pam? ( virtual/pam )
79 ldap? ( >=net-nds/openldap-2.3.35 )
80 ssl? ( >=dev-libs/openssl-0.9.8d )
81 sasl? ( >=dev-libs/cyrus-sasl-2.1.22 )
82 selinux? ( sec-policy/selinux-squid )
83 !x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
84 >=sys-libs/db-4
85 dev-lang/perl"
86 RDEPEND="${DEPEND}
87 samba? ( net-fs/samba )"
88
89 S="${WORKDIR}/${S_PP}"
90
91 pkg_setup() {
92 enewgroup squid 31
93 enewuser squid 31 -1 /var/cache/squid squid
94 }
95
96 src_unpack() {
97 unpack ${A} || die "unpack failed"
98 cd "${S}" || die "dir ${S} not found"
99
100 epatch "${FILESDIR}"/${P}-gentoo.patch
101 use zero-penalty-hit && epatch "${FILESDIR}"/${P}-ToS_Hit_ToS_Preserve.patch
102 use qos && epatch "${FILESDIR}"/${P}-qos.patch
103
104 sed -i -e 's%LDFLAGS="-g"%LDFLAGS=""%' configure.in
105
106 # disable lazy bindings on (some at least) suided basic auth programs
107 sed -i -e '$aAM_LDFLAGS = '$(bindnow-flags) \
108 helpers/basic_auth/*/Makefile.am
109
110 eautoreconf
111 }
112
113 src_compile() {
114 local basic_modules="getpwnam,NCSA,MSNT"
115 use samba && basic_modules="SMB,multi-domain-NTLM,${basic_modules}"
116 use ldap && basic_modules="LDAP,${basic_modules}"
117 use pam && basic_modules="PAM,${basic_modules}"
118 use sasl && basic_modules="SASL,${basic_modules}"
119 use nis && ! use elibc_uclibc && basic_modules="YP,${basic_modules}"
120
121 local ext_helpers="ip_user,session,unix_group"
122 use samba && ext_helpers="wbinfo_group,${ext_helpers}"
123 use ldap && ext_helpers="ldap_group,${ext_helpers}"
124
125 local ntlm_helpers="fakeauth"
126 use samba && ntlm_helpers="SMB,${ntlm_helpers}"
127
128 local myconf=""
129
130 # Support for uclibc #61175
131 if use elibc_uclibc; then
132 myconf="${myconf} --enable-storeio=ufs,diskd,aufs,null"
133 myconf="${myconf} --disable-async-io"
134 else
135 myconf="${myconf} --enable-storeio=ufs,diskd,coss,aufs,null"
136 myconf="${myconf} --enable-async-io"
137 fi
138
139 if use kernel_linux; then
140 myconf="${myconf} --enable-linux-netfilter"
141 if kernel_is ge 2 6 && linux_chkconfig_present EPOLL ; then
142 myconf="${myconf} --enable-epoll"
143 fi
144 elif use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
145 myconf="${myconf} --enable-kqueue"
146 if use pf-transparent; then
147 myconf="${myconf} --enable-pf-transparent"
148 elif use ipf-transparent; then
149 myconf="${myconf} --enable-ipf-transparent"
150 fi
151 fi
152
153 export CC=$(tc-getCC)
154
155 econf \
156 --sysconfdir=/etc/squid \
157 --libexecdir=/usr/libexec/squid \
158 --localstatedir=/var \
159 --datadir=/usr/share/squid \
160 --enable-auth="basic,digest,ntlm" \
161 --enable-removal-policies="lru,heap" \
162 --enable-digest-auth-helpers="password" \
163 --enable-basic-auth-helpers="${basic_modules}" \
164 --enable-external-acl-helpers="${ext_helpers}" \
165 --enable-ntlm-auth-helpers="${ntlm_helpers}" \
166 --enable-ident-lookups \
167 --enable-useragent-log \
168 --enable-cache-digests \
169 --enable-delay-pools \
170 --enable-referer-log \
171 --enable-arp-acl \
172 --with-pthreads \
173 --with-large-files \
174 --enable-htcp \
175 --enable-carp \
176 --enable-follow-x-forwarded-for \
177 --with-maxfd=8192 \
178 $(use_enable snmp) \
179 $(use_enable ssl) \
180 ${myconf} || die "econf failed"
181
182 emake || die "emake failed"
183 }
184
185 src_install() {
186 make DESTDIR="${D}" install || die "make install failed"
187
188 # need suid root for looking into /etc/shadow
189 fowners root:squid /usr/libexec/squid/ncsa_auth
190 fowners root:squid /usr/libexec/squid/pam_auth
191 fperms 4750 /usr/libexec/squid/ncsa_auth
192 fperms 4750 /usr/libexec/squid/pam_auth
193
194 # some cleanups
195 rm -f "${D}"/usr/bin/Run*
196
197 dodoc CONTRIBUTORS CREDITS ChangeLog QUICKSTART SPONSORS doc/*.txt \
198 helpers/ntlm_auth/no_check/README.no_check_ntlm_auth
199 newdoc helpers/basic_auth/SMB/README README.auth_smb
200 dohtml helpers/basic_auth/MSNT/README.html RELEASENOTES.html
201 newdoc helpers/basic_auth/LDAP/README README.auth_ldap
202 doman helpers/basic_auth/LDAP/*.8
203 dodoc helpers/basic_auth/SASL/squid_sasl_auth*
204
205 newpamd "${FILESDIR}/squid.pam" squid
206 newconfd "${FILESDIR}/squid.confd" squid
207 if use logrotate; then
208 newinitd "${FILESDIR}/squid.initd-logrotate" squid
209 insinto /etc/logrotate.d
210 newins "${FILESDIR}/squid.logrotate" squid
211 else
212 newinitd "${FILESDIR}/squid.initd" squid
213 exeinto /etc/cron.weekly
214 newexe "${FILESDIR}/squid.cron" squid.cron
215 fi
216
217 rm -rf "${D}"/var
218 diropts -m0755 -o squid -g squid
219 keepdir /var/cache/squid /var/log/squid
220 }
221
222 pkg_postinst() {
223 echo
224 ewarn "Squid authentication helpers have been installed suid root."
225 ewarn "This allows shadow based authentication (see bug #52977 for more)."
226 echo
227 ewarn "Be careful what type of cache_dir you select!"
228 ewarn " 'diskd' is optimized for high levels of traffic, but it might seem slow"
229 ewarn "when there isn't sufficient traffic to keep squid reasonably busy."
230 ewarn " If your traffic level is low to moderate, use 'aufs' or 'ufs'."
231 echo
232 ewarn "Squid can be configured to run in transparent mode like this:"
233 ewarn " ${HILITE}http_port internal-addr:3128 transparent${NORMAL}"
234 }
235
236
237
238 --
239 gentoo-commits@l.g.o mailing list