|
Lines 1-6
Link Here
|
| 1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.5.13.ebuild,v 1.6 2006/05/25 16:03:49 gmsoft Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/squid/squid-2.5.13.ebuild,v 1.1 2006/03/25 08:39:31 mrness Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils pam toolchain-funcs flag-o-matic |
5 |
inherit eutils pam toolchain-funcs flag-o-matic |
| 6 |
|
6 |
|
|
Lines 18-32
Link Here
|
| 18 |
|
18 |
|
| 19 |
LICENSE="GPL-2" |
19 |
LICENSE="GPL-2" |
| 20 |
SLOT="0" |
20 |
SLOT="0" |
| 21 |
KEYWORDS="~alpha ~amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86" |
21 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
| 22 |
IUSE="pam ldap ssl sasl snmp debug selinux underscores logrotate customlog zero-penalty-hit follow-xff" |
22 |
IUSE="pam ldap ssl sasl snmp debug selinux underscores logrotate customlog zero-penalty-hit follow-xff pf ipfilter" |
| 23 |
|
23 |
|
| 24 |
RDEPEND="pam? ( virtual/pam ) |
24 |
RDEPEND="pam? ( virtual/pam ) |
| 25 |
ldap? ( >=net-nds/openldap-2.1.26 ) |
25 |
ldap? ( >=net-nds/openldap-2.1.26 ) |
| 26 |
ssl? ( >=dev-libs/openssl-0.9.6m ) |
26 |
ssl? ( >=dev-libs/openssl-0.9.6m ) |
| 27 |
sasl? ( >=dev-libs/cyrus-sasl-1.5.27 ) |
27 |
sasl? ( >=dev-libs/cyrus-sasl-1.5.27 ) |
| 28 |
selinux? ( sec-policy/selinux-squid ) |
28 |
selinux? ( sec-policy/selinux-squid ) |
| 29 |
!mips? ( logrotate? ( app-admin/logrotate ) )" |
29 |
!mips? ( logrotate? ( app-admin/logrotate ) ) |
|
|
30 |
!kernel_linux? ( kernel_freebsd? ( pf? ( sys-freebsd/freebsd-pf ) ) )" |
| 31 |
|
| 30 |
DEPEND="${RDEPEND} dev-lang/perl" |
32 |
DEPEND="${RDEPEND} dev-lang/perl" |
| 31 |
|
33 |
|
| 32 |
S="${WORKDIR}/${S_PP}" |
34 |
S="${WORKDIR}/${S_PP}" |
|
Lines 67-78
Link Here
|
| 67 |
if use elibc_uclibc; then |
69 |
if use elibc_uclibc; then |
| 68 |
local basic_modules="getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" |
70 |
local basic_modules="getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" |
| 69 |
else |
71 |
else |
| 70 |
local basic_modules="getpwnam,YP,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" |
72 |
local basic_modules="getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM,winbind" |
| 71 |
fi |
73 |
fi |
| 72 |
|
74 |
|
| 73 |
use ldap && basic_modules="LDAP,${basic_modules}" |
75 |
use ldap && basic_modules="LDAP,${basic_modules}" |
| 74 |
use pam && basic_modules="PAM,${basic_modules}" |
76 |
use pam && basic_modules="PAM,${basic_modules}" |
| 75 |
use sasl && basic_modules="SASL,${basic_modules}" |
77 |
use sasl && basic_modules="SASL,${basic_modules}" |
|
|
78 |
if use kernel_linux; then |
| 79 |
basic_modules="YP,${basic_modules}" |
| 80 |
elif use kernel_freebsd && built_with_use sys-freebsd/freebsd-lib nis; then |
| 81 |
basic_modules="YP,${basic_modules}" |
| 82 |
elif use kernel_openbsd && built_with_use sys-openbsd/openbsd-lib nis; then |
| 83 |
basic_modules="YP,${basic_modules}" |
| 84 |
fi |
| 76 |
# SASL 1 / 2 Supported Natively |
85 |
# SASL 1 / 2 Supported Natively |
| 77 |
|
86 |
|
| 78 |
local ext_helpers="ip_user,unix_group,wbinfo_group,winbind_group" |
87 |
local ext_helpers="ip_user,unix_group,wbinfo_group,winbind_group" |
|
Lines 96-102
Link Here
|
| 96 |
myconf="${myconf} --enable-storeio='ufs,diskd,coss,aufs,null' " |
105 |
myconf="${myconf} --enable-storeio='ufs,diskd,coss,aufs,null' " |
| 97 |
myconf="${myconf} --enable-async-io " |
106 |
myconf="${myconf} --enable-async-io " |
| 98 |
fi |
107 |
fi |
| 99 |
|
108 |
|
|
|
109 |
# Support for BSD transparent proxying. |
| 110 |
if use kernel_linux; then |
| 111 |
myconf="${myconf} --enable-linux-netfilter" |
| 112 |
else |
| 113 |
if use pf; then |
| 114 |
myconf="${myconf} --enable-pf-transparent" |
| 115 |
elif use ipfilter; then |
| 116 |
myconf="${myconf} --enable-ipf-transparent" |
| 117 |
fi |
| 118 |
fi |
| 100 |
export CC=$(tc-getCC) |
119 |
export CC=$(tc-getCC) |
| 101 |
|
120 |
|
| 102 |
./configure \ |
121 |
./configure \ |
|
Lines 114-120
Link Here
|
| 114 |
--enable-basic-auth-helpers="${basic_modules}" \ |
133 |
--enable-basic-auth-helpers="${basic_modules}" \ |
| 115 |
--enable-external-acl-helpers="${ext_helpers}" \ |
134 |
--enable-external-acl-helpers="${ext_helpers}" \ |
| 116 |
--enable-ntlm-auth-helpers="SMB,fakeauth,no_check,winbind" \ |
135 |
--enable-ntlm-auth-helpers="SMB,fakeauth,no_check,winbind" \ |
| 117 |
--enable-linux-netfilter \ |
|
|
| 118 |
--enable-ident-lookups \ |
136 |
--enable-ident-lookups \ |
| 119 |
--enable-useragent-log \ |
137 |
--enable-useragent-log \ |
| 120 |
--enable-cache-digests \ |
138 |
--enable-cache-digests \ |