parent
66b56e949b
commit
c454a888d1
@ -1,3 +1,4 @@
|
||||
DIST poppler-0.32.0.tar.xz 1609624 SHA256 4963e31ba5e17530a87b16588e22928bc044e8d28d02303dded981bff6725b98 SHA512 f68355a0242ce467b9d7d7f47cc0c3b08f015c38b147eaeddc392e693239bce2b1b3832bd5e5411f25edddab6d3cea8ca0be151372a86963610a4eae3ea50eee WHIRLPOOL bb56d497f435ccb78dfeb0125ca5d003d08769fe74e11da940f6f5399194698e1908c22d815129e6d1f1a7a9855a68ad7043a3bdd4779045fcf64dd97ade3d22
|
||||
DIST poppler-0.42.0.tar.xz 1674024 SHA256 9fef076ffe2a4f18a4e0da547d814ef5c5e6f8a283afe3387504a0bb1a418010 SHA512 ab8c86c28a2ac848bf118de7f20f57576ed4faa4ad06ae7d58590b951fb2b0ee8a728919ce2417592b467af7322c57ed0bff0288eced042fcf94a50d89c73c19 WHIRLPOOL 095986b44875847d471ecda35194eeb894051b689a754dc8ae55caa04100b4e2ebd57fe868008972502d27346eeb98699fa9660b414ececef4d0eafe53265736
|
||||
DIST poppler-0.43.0.tar.xz 1671368 SHA256 c720e26a26ee10b7ebc9e256d2ee7adcdb536cf85f9f1c4777a38f7f81fb2456 SHA512 e00422a875be2e9b8b16a268d31d1080f609ce070f553b2db8001fc71efebe44183d5e63f45b1111a99b106548809b1fe8474aca7710c20bc4c654968d42508b WHIRLPOOL 7eec0e630d829a69201d8a7b2078a5c7ebc22e0c18d96907a23408638abe0b07567da81eb5474d036035e8ef7f635d35aa6d224e11c6ba0eaa050ff6824dc665
|
||||
DIST poppler-0.44.0.tar.xz 1671900 SHA256 5b467ed26a55e1824da6bd86f5f562b1b45582069c03898c91f01ad5c6fa0eab SHA512 356bb8d5ba333dd86f2350dab3d18e7beddabc54f0449514248e7928e56bbcd8a5941bf817a12fc780810927425567fddbfacf723894414ae21814189b54c1f8 WHIRLPOOL abcaa306a7ac90eb39d161483225091e832f4c366ee166fcbda2b3fbb4287619de42234f15cd30e52b66f57c2af87137981dfbf2065478a4736298ee2ab7ac38
|
||||
|
@ -0,0 +1,144 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
CMAKE_WARN_UNUSED_CLI=1
|
||||
inherit cmake-utils toolchain-funcs xdg-utils
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
|
||||
SLOT="0/9999"
|
||||
else
|
||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0/61" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||
fi
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
IUSE="cairo cairo-qt cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils"
|
||||
|
||||
REQUIRED_USE="cairo-qt? ( qt4 )"
|
||||
|
||||
# No test data provided
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.6.0
|
||||
>=media-libs/freetype-2.3.9
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
dev-libs/glib:2
|
||||
>=x11-libs/cairo-1.10.0
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.32.1:= )
|
||||
)
|
||||
cairo-qt? ( >=x11-libs/cairo-1.10.0 )
|
||||
curl? ( net-misc/curl )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( media-libs/openjpeg:2= )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
nss? ( >=dev-libs/nss-3.19:0 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
qt4? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtxml:5
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
cjk? ( >=app-text/poppler-data-0.4.7 )
|
||||
"
|
||||
|
||||
DOCS=(AUTHORS NEWS README README-XPDF TODO)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch"
|
||||
"${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch"
|
||||
"${FILESDIR}/${PN}-0.28.1-respect-cflags.patch"
|
||||
"${FILESDIR}/${PN}-0.33.0-openjpeg2.patch"
|
||||
"${FILESDIR}/${PN}-0.40-FindQt4.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
# Clang doesn't grok this flag, the configure nicely tests that, but
|
||||
# cmake just uses it, so remove it if we use clang
|
||||
if [[ ${CC} == clang ]] ; then
|
||||
sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die
|
||||
fi
|
||||
|
||||
# Enable experimental patchset for subpixel font rendering using cairo
|
||||
# backend for poppler-qt4 from https://github.com/giddie/poppler-qt4-cairo-backend.
|
||||
if use cairo-qt; then
|
||||
ewarn "Enabling unsupported, experimental cairo-qt patchset. Please do not report bugs."
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0001-Cairo-backend-added-to-Qt4-wrapper.patch"
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0002-Setting-default-Qt4-backend-to-Cairo.patch"
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch"
|
||||
epatch "${FILESDIR}/cairo-qt-experimental/0004-Enabling-slight-hinting-in-Cairo-Backend.patch"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
xdg_environment_reset
|
||||
local mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT4_TESTS=OFF
|
||||
-DBUILD_QT5_TESTS=OFF
|
||||
-DBUILD_CPP_TESTS=OFF
|
||||
-DENABLE_SPLASH=ON
|
||||
-DENABLE_ZLIB=ON
|
||||
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
||||
-DENABLE_XPDF_HEADERS=ON
|
||||
-DENABLE_LIBCURL="$(usex curl)"
|
||||
-DENABLE_CPP="$(usex cxx)"
|
||||
-DENABLE_UTILS="$(usex utils)"
|
||||
-DSPLASH_CMYK=OFF
|
||||
-DUSE_FIXEDPOINT=OFF
|
||||
-DUSE_FLOAT=OFF
|
||||
-DWITH_Cairo="$(usex cairo)"
|
||||
-DWITH_GObjectIntrospection="$(usex introspection)"
|
||||
-DWITH_JPEG="$(usex jpeg)"
|
||||
-DWITH_NSS3="$(usex nss)"
|
||||
-DWITH_PNG="$(usex png)"
|
||||
-DWITH_Qt4="$(usex qt4)"
|
||||
$(cmake-utils_use_find_package qt5 Qt5Core)
|
||||
-DWITH_TIFF="$(usex tiff)"
|
||||
)
|
||||
if use jpeg2k; then
|
||||
mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
|
||||
fi
|
||||
if use lcms; then
|
||||
mycmakeargs+=(-DENABLE_CMS=lcms2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_CMS=)
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# live version doesn't provide html documentation
|
||||
if use cairo && use doc && [[ ${PV} != 9999 ]]; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/*
|
||||
fi
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
diff -Nur japitools-0.9.7/src/net/wuffies/japi/JapiantTask.java japitools-0.9.7_patched/src/net/wuffies/japi/JapiantTask.java
|
||||
--- japitools-0.9.7/src/net/wuffies/japi/JapiantTask.java 2006-10-23 02:42:44.000000000 +0300
|
||||
+++ japitools-0.9.7_patched/src/net/wuffies/japi/JapiantTask.java 2008-07-03 20:46:59.000000000 +0300
|
||||
@@ -130,7 +130,15 @@
|
||||
}
|
||||
|
||||
{
|
||||
- args.add(System.getProperty("java.home") + File.separator + "lib" + File.separator + "rt.jar");
|
||||
+ File rtJar=new File(System.getProperty("java.home") + File.separator + "lib" + File.separator + "rt.jar");
|
||||
+ if(rtJar.exists())
|
||||
+ args.add(System.getProperty("java.home") + File.separator + "lib" + File.separator + "rt.jar");
|
||||
+ File vmJar=new File(System.getProperty("java.home") + File.separator + "lib" + File.separator + "vm.jar");
|
||||
+ if(vmJar.exists())
|
||||
+ args.add(System.getProperty("java.home") + File.separator + "lib" + File.separator + "vm.jar");
|
||||
+ File coreJar=new File(System.getProperty("java.home") + File.separator + "lib" + File.separator + "core.jar");
|
||||
+ if(coreJar.exists())
|
||||
+ args.add(System.getProperty("java.home") + File.separator + "lib" + File.separator + "core.jar");
|
||||
}
|
||||
|
||||
{
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Java API compatibility testing tools"
|
||||
HOMEPAGE="http://sab39.netreach.com/japi/"
|
||||
|
||||
SRC_URI="http://www.kaffe.org/~stuart/japi/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-java/ant-core
|
||||
>=virtual/jdk-1.4
|
||||
test? (
|
||||
=dev-java/junit-3*
|
||||
dev-java/ant-junit
|
||||
)"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
epatch "${FILESDIR}"/${P}-classpath.patch
|
||||
|
||||
cd "${S}"/bin || die
|
||||
rm japize.bat || die
|
||||
sed -e "s:../share/java:../share/${PN}/lib:" -i * \
|
||||
|| die "Failed to correct the location of the jar file in perl scripts."
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant jar
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ANT_TASKS="ant-junit" eant test
|
||||
}
|
||||
src_install() {
|
||||
java-pkg_dojar share/java/*.jar
|
||||
dobin bin/*
|
||||
|
||||
if use doc; then
|
||||
cp -r design "${T}"
|
||||
dohtml "${T}"/design/{*.css,*.html}
|
||||
rm "${T}"/design/{*.css,*.html}
|
||||
dodoc "${T}"/design/*
|
||||
fi
|
||||
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -1 +1 @@
|
||||
Tue, 24 May 2016 05:41:08 +0000
|
||||
Tue, 24 May 2016 07:40:45 +0000
|
||||
|
@ -1 +1 @@
|
||||
Tue, 24 May 2016 05:41:08 +0000
|
||||
Tue, 24 May 2016 07:40:45 +0000
|
||||
|
@ -0,0 +1,15 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=>=media-libs/fontconfig-2.6.0 >=media-libs/freetype-2.3.9 sys-libs/zlib cairo? ( dev-libs/glib:2 >=x11-libs/cairo-1.10.0 introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) ) cairo-qt? ( >=x11-libs/cairo-1.10.0 ) curl? ( net-misc/curl ) jpeg? ( virtual/jpeg:0 ) jpeg2k? ( media-libs/openjpeg:2= ) lcms? ( media-libs/lcms:2 ) nss? ( >=dev-libs/nss-3.19:0 ) png? ( media-libs/libpng:0= ) qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtxml:5 ) tiff? ( media-libs/tiff:0 ) virtual/pkgconfig sys-devel/make >=dev-util/cmake-2.8.12
|
||||
DESCRIPTION=PDF rendering library based on the xpdf-3.0 code base
|
||||
EAPI=6
|
||||
HOMEPAGE=https://poppler.freedesktop.org/
|
||||
IUSE=cairo cairo-qt cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=>=media-libs/fontconfig-2.6.0 >=media-libs/freetype-2.3.9 sys-libs/zlib cairo? ( dev-libs/glib:2 >=x11-libs/cairo-1.10.0 introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) ) cairo-qt? ( >=x11-libs/cairo-1.10.0 ) curl? ( net-misc/curl ) jpeg? ( virtual/jpeg:0 ) jpeg2k? ( media-libs/openjpeg:2= ) lcms? ( media-libs/lcms:2 ) nss? ( >=dev-libs/nss-3.19:0 ) png? ( media-libs/libpng:0= ) qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtxml:5 ) tiff? ( media-libs/tiff:0 ) cjk? ( >=app-text/poppler-data-0.4.7 )
|
||||
REQUIRED_USE=cairo-qt? ( qt4 )
|
||||
RESTRICT=test
|
||||
SLOT=0/61
|
||||
SRC_URI=https://poppler.freedesktop.org/poppler-0.44.0.tar.xz
|
||||
_eclasses_=cmake-utils d6c1714cc58fd2168bf150f2a01f3801 eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e multilib d062ae4ba2fc40a19c11de2ad89b6616 toolchain-funcs d513d423d449877e49d99af3f7af7acb versionator 99ae9d758cbe7cfed19170e7d48f5a9c xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=d6a46e31ee48f806ee4e447f3b397e76
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile install preinst setup test unpack
|
||||
DEPEND=dev-java/ant-core >=virtual/jdk-1.4 test? ( =dev-java/junit-3* dev-java/ant-junit ) >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) >=dev-java/ant-core-1.8.2 >=dev-java/javatoolkit-0.3.0-r2
|
||||
DESCRIPTION=Java API compatibility testing tools
|
||||
EAPI=0
|
||||
HOMEPAGE=http://sab39.netreach.com/japi/
|
||||
IUSE=elibc_FreeBSD doc source test elibc_FreeBSD
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=>=virtual/jre-1.4 >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.kaffe.org/~stuart/japi/japitools-0.9.7.tar.gz
|
||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde java-ant-2 7c5d0c274d390745f5033754a319f515 java-pkg-2 b02dc1e46b3648e467b5fbdf7857cf28 java-utils-2 9a25f292ff66f8c2c00100ac0b15c54f multilib d062ae4ba2fc40a19c11de2ad89b6616 toolchain-funcs d513d423d449877e49d99af3f7af7acb versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=b22b717061c2490cd516a4eaa3c9608c
|
@ -1,14 +1,14 @@
|
||||
DEFINED_PHASES=compile install preinst prepare setup
|
||||
DEPEND=dev-java/ant-core:0 app-arch/unzip >=virtual/jdk-1.6 >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip )
|
||||
DEPEND=dev-java/ant-core:0 >=virtual/jdk-1.6 >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip )
|
||||
DESCRIPTION=Java API compatibility testing tools
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sab39.netreach.com/japi/
|
||||
IUSE=elibc_FreeBSD doc source elibc_FreeBSD
|
||||
KEYWORDS=~amd64 ~x86
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=dev-java/ant-core:0 >=virtual/jre-1.6 >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip )
|
||||
RESTRICT=test
|
||||
SLOT=0
|
||||
SRC_URI=http://www.kaffe.org/~stuart/japi/japitools-0.9.7.tar.gz
|
||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde java-pkg-2 b02dc1e46b3648e467b5fbdf7857cf28 java-pkg-simple bdf24e52707f01512ffea6d3aa05425b java-utils-2 9a25f292ff66f8c2c00100ac0b15c54f multilib d062ae4ba2fc40a19c11de2ad89b6616 toolchain-funcs d513d423d449877e49d99af3f7af7acb versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=67ad8d843fbcf156501eb9fec73cee37
|
||||
_md5_=d4298c69a2644a24883a417e03d36856
|
||||
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.10.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=dec777667ae8c8e5b65830d348e00051
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=alpha amd64 arm hppa ~ia64 ~mips ~ppc ppc64 ~sparc x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.12.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=beef8a32a625dff902c9cda74ae75619
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.14.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=8b6ed30b0fb6274ffd8f5352585393ef
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.16.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=8b6ed30b0fb6274ffd8f5352585393ef
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.16.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=dbed285e39d77ed27cfc88b7e5279566
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.6.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=4fac023c3069645d5f8ff414d5452eff
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.7.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=e90cd0ec12fdd60f5367dc0c13932b67
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.8.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=e10a802f6f817277d2abe5c00f4dbf63
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare pretend setup
|
||||
DEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 ecap? ( virtual/pkgconfig ) sys-apps/ed test? ( dev-util/cppunit ) !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=A full-featured web proxy cache
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.squid-cache.org/
|
||||
IUSE=caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test ecap esi ssl-crtd mysql postgres sqlite qos tproxy +htcp +wccp +wccpv2 pf-transparent ipf-transparent kqueue elibc_uclibc kernel_linux
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=caps? ( >=sys-libs/libcap-2.16 ) pam? ( virtual/pam ) ldap? ( net-nds/openldap ) kerberos? ( virtual/krb5 ) qos? ( net-libs/libnetfilter_conntrack ) ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 ) sasl? ( dev-libs/cyrus-sasl ) ecap? ( net-libs/libecap:1 ) esi? ( dev-libs/expat dev-libs/libxml2 ) !x86-fbsd? ( logrotate? ( app-admin/logrotate ) ) >=sys-libs/db-4:* dev-lang/perl dev-libs/libltdl:0 samba? ( net-fs/samba ) mysql? ( dev-perl/DBD-mysql ) postgres? ( dev-perl/DBD-Pg ) selinux? ( sec-policy/selinux-squid ) sqlite? ( dev-perl/DBD-SQLite ) !<=sci-biology/meme-4.8.1-r1
|
||||
REQUIRED_USE=tproxy? ( caps ) qos? ( caps )
|
||||
SLOT=0
|
||||
SRC_URI=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.9.tar.xz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e libtool 4890219c51da247200223277f993e054 linux-info fd1e29abbb02cbc49f1a14299846e9c4 multilib d062ae4ba2fc40a19c11de2ad89b6616 pam 3ecd5b75e39b0bb05a3183c08fcdfdb4 toolchain-funcs d513d423d449877e49d99af3f7af7acb user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=e10a802f6f817277d2abe5c00f4dbf63
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure install test
|
||||
DEPEND=dev-libs/libgcrypt:0 virtual/os-headers
|
||||
DESCRIPTION=Provides Remote-Console and System Management Software as per IPMI v1.5/2.0
|
||||
EAPI=6
|
||||
HOMEPAGE=https://www.gnu.org/software/freeipmi/
|
||||
IUSE=debug nagios
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-libs/libgcrypt:0 nagios? ( || ( net-analyzer/icinga net-analyzer/nagios ) dev-lang/perl ) sys-apps/openrc
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/freeipmi/freeipmi-1.5.2.tar.gz
|
||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde multilib d062ae4ba2fc40a19c11de2ad89b6616 toolchain-funcs d513d423d449877e49d99af3f7af7acb
|
||||
_md5_=29c7b7bc06b096c4b021bbc491809cc4
|
@ -0,0 +1,15 @@
|
||||
DEFINED_PHASES=compile install postinst postrm preinst prepare prerm pretend setup unpack
|
||||
DEPEND=app-eselect/eselect-opencl kernel_linux? ( >=sys-libs/glibc-2.6.1 ) tools? ( dev-libs/atk dev-libs/glib:2 dev-libs/jansson gtk3? ( x11-libs/gtk+:3 ) x11-libs/cairo x11-libs/gdk-pixbuf[X] x11-libs/gtk+:2 x11-libs/libX11 x11-libs/libXext x11-libs/libXrandr x11-libs/libXv x11-libs/libXxf86vm x11-libs/pango[X] ) X? ( >=app-eselect/eselect-opengl-1.0.9 app-misc/pax-utils ) kernel_linux? ( virtual/linux-sources ) kernel_linux? ( virtual/modutils ) sys-apps/sed kernel_linux? ( virtual/linux-sources ) sys-apps/pciutils virtual/pkgconfig
|
||||
DESCRIPTION=NVIDIA Accelerated Graphics Driver
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.nvidia.com/ http://www.nvidia.com/Download/Find.aspx
|
||||
IUSE=acpi compat +driver gtk3 kernel_FreeBSD kernel_linux +kms multilib pax_kernel static-libs +tools uvm wayland +X kernel_linux
|
||||
KEYWORDS=-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2 NVIDIA-r2
|
||||
RDEPEND=app-eselect/eselect-opencl kernel_linux? ( >=sys-libs/glibc-2.6.1 ) tools? ( dev-libs/atk dev-libs/glib:2 dev-libs/jansson gtk3? ( x11-libs/gtk+:3 ) x11-libs/cairo x11-libs/gdk-pixbuf[X] x11-libs/gtk+:2 x11-libs/libX11 x11-libs/libXext x11-libs/libXrandr x11-libs/libXv x11-libs/libXxf86vm x11-libs/pango[X] ) X? ( >=app-eselect/eselect-opengl-1.0.9 app-misc/pax-utils ) acpi? ( sys-power/acpid ) tools? ( !media-video/nvidia-settings ) wayland? ( dev-libs/wayland ) X? ( <x11-base/xorg-server-1.18.99:= >=x11-libs/libvdpau-1.0 multilib? ( >=x11-libs/libX11-1.6.2[abi_x86_32] >=x11-libs/libXext-1.3.2[abi_x86_32] ) ) kernel_linux? ( virtual/modutils )
|
||||
REQUIRED_USE=tools? ( X ) static-libs? ( tools )
|
||||
RESTRICT=bindist mirror
|
||||
SLOT=0/367
|
||||
SRC_URI=amd64-fbsd? ( http://us.download.nvidia.com/XFree86/FreeBSD-x86_64/367.18/NVIDIA-FreeBSD-x86_64-367.18.tar.gz ) amd64? ( http://us.download.nvidia.com/XFree86/Linux-x86_64/367.18/NVIDIA-Linux-x86_64-367.18.run ) x86-fbsd? ( http://us.download.nvidia.com/XFree86/FreeBSD-x86/367.18/NVIDIA-FreeBSD-x86-367.18.tar.gz ) x86? ( http://us.download.nvidia.com/XFree86/Linux-x86/367.18/NVIDIA-Linux-x86-367.18.run ) tools? ( ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-367.18.tar.bz2 )
|
||||
_eclasses_=eutils 792f83d5ec9536cb5ccef375469d8bde flag-o-matic d270fa247153df66074f795fa42dba3e linux-info fd1e29abbb02cbc49f1a14299846e9c4 linux-mod 4755518412586c2fd655ff6e55780bcb multilib d062ae4ba2fc40a19c11de2ad89b6616 nvidia-driver fe3e559a49de32cd7df5ae282f98d107 portability bb1a0ed8ea152b957d17339f01d4d7f5 readme.gentoo-r1 03878c06495db70bc36bd717383c09f7 toolchain-funcs d513d423d449877e49d99af3f7af7acb udev 73058269b3e70e34e084fa3981282338 unpacker 45d07319df5f40ee6af58418b0f930be user 906f3c8eb3a2350a4f1191a89baa3e46 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=2d955a1c17a960a8c0fc75883307e5d3
|
@ -1 +1 @@
|
||||
Tue, 24 May 2016 05:41:08 +0000
|
||||
Tue, 24 May 2016 07:40:45 +0000
|
||||
|
@ -1 +1 @@
|
||||
Tue May 24 05:40:12 UTC 2016
|
||||
Tue May 24 07:39:50 UTC 2016
|
||||
|
@ -1 +1 @@
|
||||
Tue, 24 May 2016 06:00:01 +0000
|
||||
Tue, 24 May 2016 08:00:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
1464068401 Tue 24 May 2016 05:40:01 AM UTC
|
||||
1464075601 Tue 24 May 2016 07:40:01 AM UTC
|
||||
|
@ -1 +1 @@
|
||||
Tue, 24 May 2016 05:41:08 +0000
|
||||
Tue, 24 May 2016 07:40:45 +0000
|
||||
|
@ -1,11 +1,3 @@
|
||||
DIST squid-3.5.10.tar.xz 2297452 SHA256 736e69fbddd6e985d2f85c995526f0a2bc4294c46dfb6737c0ccf09274a458b3 SHA512 b577cf90ccc240ae7be42df36cb592399a5f43b7a38df47f3df404aa4b6fb8ceaf568696251376fbc5e30686e6d5b77942852fb94e79d71676aaf35ffde17d21 WHIRLPOOL d422fcbf6d274fa4535c7bb2b8845e1f2f0d5ea42776a6ec517a34ceb87947b01c5412bec332fd634ed2fcef77e7de64fb138ef044fecfd00f3073c71c25513a
|
||||
DIST squid-3.5.11.tar.xz 2298436 SHA256 c26211b8e349fd9a5fd357da33074ff6523c111024dd3a5a1f77153538aa40cf SHA512 7d7557f949d7a5995eff4745f6bf58d3c4899b882828a83332e269c4396de8470d7847d76701f383fd889cf7990b8d5c9ace6d557d00a9dd4a8d326f9b116c09 WHIRLPOOL 47acb40ecdaee9ce166e8db0da8a9642125a6af8306b3fd47e29c2edb7e96242a9535f1dfb028310334863fe914458c8b3d6f0f0f9c26c1c44cf4fdea0b2ed02
|
||||
DIST squid-3.5.12.tar.xz 2299644 SHA256 8bc83f3869f7404aefb10883109e28443255cf6dde50a13904c7954619707a42 SHA512 2620f2b560df58c9a6ca5be38e91e7b67ee04a5a28de133ecd0fed232094570c453690a08a4835ad59ebf1cd002a6e6d7c7c4ea502b6d719d74f97111a5302d1 WHIRLPOOL 758c5f9d0a7dd8c87052008ec994966263f6fc956fdd9a254977f79bc2cccabe22e1dda6c6119f4e411ecec8ace9af8a5b86430ceccc075481e46955cc69dd25
|
||||
DIST squid-3.5.14.tar.xz 2315320 SHA256 79ec4cdd4f965314e6db8e3f6ddcebf2d24518edd790a68e0bd4d0a7735ace1b SHA512 0b500dbe36fb9cd487e6954244bad7fbebd2bd6af442d1c5f7ebf9c73d846a1b1c061b035afa3bf34709e41e0fef4c8023f0d1114e21b794591ee49fe8843a1f WHIRLPOOL 1c89b4aa961aa8c6b3c8f68662f506432b5f54922f49749d7977708f186bb4a842ef7182190c0ad403f4d3b0ac670d940044556db60dbcffae04dcb9b5b35738
|
||||
DIST squid-3.5.15.tar.xz 2315628 SHA256 9cfce3231c7b3b33816fc54414d8720a51ac5e723663e0685a8bb995b9f450d2 SHA512 b5a6b4bc94d007f475419123b7ff4cdf7d47a024b859d2f7de0952115285114f06fd389fc6f463c21a1ce7d41e06227972bd802bafd2704cf0814afdee893dde WHIRLPOOL a8c73ac1a9a36b405cfb2d804ad51e673ffc812e561860f5b2775b468fcebc84834842ae4f55d4be928936f1750ea54b54d788149758a362282e1287696fe094
|
||||
DIST squid-3.5.16.tar.xz 2317320 SHA256 e73d821180eed8bed230f357c680c0b19f1efa51a24725e810f2b48a2079d385 SHA512 117cf70dd87aff0c0db209648c43a8c2f056c87331133948a799715748a28133df32cf6982251a8c1366c960bbda2bd2d33287df0df7c642632723c6dbedc8cf WHIRLPOOL 2b44e2066f728a5b5218969896aaf2373a468a94ac1f0e9d23947b5bcf0933f6af72c219f822e34f88fdc90423b7619de81c6fa9130ed6f7539055e88e546006
|
||||
DIST squid-3.5.17.tar.xz 2318216 SHA256 cb04e34f6ec80a5ae6caaef042703c841d3803c4c280e75eff12a5a6c84951a2 SHA512 7531c208278ee42b9e34b4e49a249bb033389207546cf0172a2657d60d08146d36ee8f9296e16eea13c552bad01f3ef8592b1486556756edb0b3304b17306661 WHIRLPOOL 4aaf4108c1223f16e1b544244d26288cc96ee5f17b3322070fa35dc3069e588a1270df1531104554e7ac8b0316bc722edb812d0a41b871ec50020e514ef0d411
|
||||
DIST squid-3.5.6.tar.xz 2291152 SHA256 cd080e8d5eaabebf6808792751322bd05f2a9c8fe4377f54c7155682ef6c38d5 SHA512 f6c2550cdb5b2f3317105c986caddf06d010bffa0c61d065cffcde72e5bc30c4608486c79c4b25418dfb9f0a8d7ef1d2fabb6b07d1f0262a19fafc945af98bef WHIRLPOOL 863c6f73c3c26737d98cbff15afa5b6630310226ee9ec10a3e38f646b1416137e998f9bb1e5b492e5871129aed3c98e729b3a757d35088162e671d310a887336
|
||||
DIST squid-3.5.7.tar.xz 2294580 SHA256 ec6f861bddee007b1dd320667a26ddc9ff76847bbe4cbb59c0134588e65c8699 SHA512 13757da759c1a64fe13d451cff40c4ae30b18c2939f6971b4ef25e24b771ea973e3357f05ec89fccff51acc9e2c77418880b05f6020d58b7633141b928aaf349 WHIRLPOOL 9ce722647f6144ae5192a0a177d5d085252039eed3a7cbdf1fcb638c32097bf21710db71044448fc98bdba7c15daefb79dee5912b4d0c41cbc0e0b0fda695ee1
|
||||
DIST squid-3.5.8.tar.xz 2295644 SHA256 f402a21d4fae8b3e9df13683dc530366e4b1753df21e91c05a0a9514a1abfc62 SHA512 df371934b141fd0e57223ef2a801b71ae2c88c918e1ebd17a82105d33a8f6d439da65cd6437b42a3857f0d64ce461ea31d01299d452ede3650a44cf6826e16e1 WHIRLPOOL 9ca3f07b3068a439299b30e8be924208bc36e336f7929c593563bf6dadf9eaaa051c213e34eafc1ec6db43540b61367bd666c7c172e370d600aa6823779bd192
|
||||
DIST squid-3.5.9.tar.xz 2296384 SHA256 9e9a3dc16e6f97258f2c3589dc6163bec20fb9369aec1fe03612dbca76d185d3 SHA512 e9db2eb1674feb4242c5498d24c44ba53eb1ac8df71465301a6e2462051788b45d38e779edc38a944c7ac903bfef0dde52a9b0e167ef15d71084b7b6e405c666 WHIRLPOOL 48c9866f36882051072fde81521189c463d35a72954f0d891b0f65f7caa49f078b1ad5229244b3c9bd51e8c4f07c947313eacffc3d94ac211c95f432deed3657
|
||||
DIST squid-3.5.19.tar.xz 2318720 SHA256 c4b8a2efb85acc600e506605f175298ce3324048e60f4708926d354fe4b5c7a0 SHA512 b2e70845d87a3a3d57b8ff08c6fb21137cedc75c8076a8e004a4b4031a7045d13f13de2b2aa98435e39770aefe1db838538ed62fc4169f83797c99fc0883f650 WHIRLPOOL 73ce9e63bbf5d494ff40b2379930e2723f01507782b3c332ea0e2b3d1c813c914fdfea47d22f9b004d0bac5a826928b5e47fa0fdb190c2be5235e1c51c25c575
|
||||
|
@ -1,131 +0,0 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index a863327..deb44ed 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -26,9 +26,9 @@ PRESET_CFLAGS="$CFLAGS"
|
||||
PRESET_LDFLAGS="$LDFLAGS"
|
||||
|
||||
dnl Set default LDFLAGS
|
||||
-if test "x$LDFLAGS" = "x" ; then
|
||||
- LDFLAGS="-g"
|
||||
-fi
|
||||
+dnl if test "x$LDFLAGS" = "x" ; then
|
||||
+dnl LDFLAGS="-g"
|
||||
+dnl fi
|
||||
|
||||
# Check for GNU cc
|
||||
AC_PROG_CC
|
||||
diff --git a/helpers/basic_auth/SMB/basic_smb_auth.sh b/helpers/basic_auth/SMB/basic_smb_auth.sh
|
||||
index 2a1abb3..b3ebb7a 100755
|
||||
--- a/helpers/basic_auth/SMB/basic_smb_auth.sh
|
||||
+++ b/helpers/basic_auth/SMB/basic_smb_auth.sh
|
||||
@@ -24,7 +24,7 @@ read NMBCAST
|
||||
read AUTHSHARE
|
||||
read AUTHFILE
|
||||
read SMBUSER
|
||||
-read SMBPASS
|
||||
+read -r SMBPASS
|
||||
|
||||
# Find domain controller
|
||||
echo "Domain name: $DOMAINNAME"
|
||||
@@ -47,7 +47,7 @@ else
|
||||
addropt=""
|
||||
fi
|
||||
echo "Query address options: $addropt"
|
||||
-dcip=`nmblookup $addropt "$PASSTHROUGH#1c" | awk '/^[0-9.]+ / { print $1 ; exit }'`
|
||||
+dcip=`nmblookup $addropt "$PASSTHROUGH#1c" | awk '/^[0-9.]+\..+ / { print $1 ; exit }'`
|
||||
echo "Domain controller IP address: $dcip"
|
||||
[ -n "$dcip" ] || exit 1
|
||||
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index 6b69267..10f506a 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -867,8 +867,8 @@ DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
|
||||
DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
|
||||
DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
|
||||
DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
|
||||
-DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
|
||||
-DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
|
||||
+DEFAULT_NETDB_FILE = $(localstatedir)/lib/squid/netdb.state
|
||||
+DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/squid/ssl_db
|
||||
DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
|
||||
DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
|
||||
DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
|
||||
diff --git a/src/debug.cc b/src/debug.cc
|
||||
index 64ab0ba..062119a 100644
|
||||
--- a/src/debug.cc
|
||||
+++ b/src/debug.cc
|
||||
@@ -450,7 +450,7 @@ _db_init(const char *logfile, const char *options)
|
||||
#if HAVE_SYSLOG && defined(LOG_LOCAL4)
|
||||
|
||||
if (Debug::log_syslog)
|
||||
- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, syslog_facility);
|
||||
+ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, syslog_facility);
|
||||
|
||||
#endif /* HAVE_SYSLOG */
|
||||
|
||||
diff --git a/src/main.cc b/src/main.cc
|
||||
index d6eb01a..0b93f0e 100644
|
||||
--- a/src/main.cc
|
||||
+++ b/src/main.cc
|
||||
@@ -1657,7 +1657,7 @@ watch_child(char *argv[])
|
||||
if (!IamMasterProcess())
|
||||
return;
|
||||
|
||||
- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4);
|
||||
+ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_LOCAL4);
|
||||
|
||||
if ((pid = fork()) < 0)
|
||||
syslog(LOG_ALERT, "fork failed: %s", xstrerror());
|
||||
@@ -1720,7 +1720,7 @@ watch_child(char *argv[])
|
||||
|
||||
if ((pid = fork()) == 0) {
|
||||
/* child */
|
||||
- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4);
|
||||
+ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_LOCAL4);
|
||||
prog = argv[0];
|
||||
argv[0] = const_cast<char*>(kid.name().termedBuf());
|
||||
execvp(prog, argv);
|
||||
@@ -1733,7 +1733,7 @@ watch_child(char *argv[])
|
||||
}
|
||||
|
||||
/* parent */
|
||||
- openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4);
|
||||
+ openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_LOCAL4);
|
||||
|
||||
squid_signal(SIGINT, SIG_IGN, SA_RESTART);
|
||||
|
||||
--- a/src/cf.data.pre 2013-04-29 11:17:59.256167134 +0300
|
||||
+++ b/src/cf.data.pre 2013-04-29 11:20:17.043924313 +0300
|
||||
@@ -1019,6 +1019,7 @@
|
||||
acl Safe_ports port 488 # gss-http
|
||||
acl Safe_ports port 591 # filemaker
|
||||
acl Safe_ports port 777 # multiling http
|
||||
+acl Safe_ports port 901 # SWAT
|
||||
acl CONNECT method CONNECT
|
||||
NOCOMMENT_END
|
||||
DOC_END
|
||||
@@ -5300,11 +5301,11 @@
|
||||
|
||||
NAME: cache_mgr
|
||||
TYPE: string
|
||||
-DEFAULT: webmaster
|
||||
+DEFAULT: root
|
||||
LOC: Config.adminEmail
|
||||
DOC_START
|
||||
Email-address of local cache manager who will receive
|
||||
- mail if the cache dies. The default is "webmaster".
|
||||
+ mail if the cache dies. The default is "root".
|
||||
DOC_END
|
||||
|
||||
NAME: mail_from
|
||||
@@ -8052,7 +8053,7 @@
|
||||
NAME: forwarded_for
|
||||
COMMENT: on|off|transparent|truncate|delete
|
||||
TYPE: string
|
||||
-DEFAULT: on
|
||||
+DEFAULT: delete
|
||||
LOC: opt_forwarded_for
|
||||
DOC_START
|
||||
If set to "on", Squid will append your client's IP address
|
@ -1,14 +0,0 @@
|
||||
--- a/src/ip/Intercept.cc 2015-08-01 09:08:17.000000000 +0300
|
||||
+++ b/src/ip/Intercept.cc 2015-09-12 10:03:37.000000000 +0300
|
||||
@@ -88,7 +88,10 @@
|
||||
/* <climits> must be before including netfilter_ipv4.h */
|
||||
#include <climits>
|
||||
#include <linux/if.h>
|
||||
-#include <linux/netfilter_ipv4.h>
|
||||
+//#include <linux/netfilter_ipv4.h>
|
||||
+#if !defined(SO_ORIGINAL_DST)
|
||||
+#define SO_ORIGINAL_DST 80
|
||||
+#endif
|
||||
#if HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H
|
||||
/* 2013-07-01: Pablo the Netfilter maintainer is rejecting patches
|
||||
* which will enable C++ compilers to build the Netfilter public headers.
|
@ -1,249 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,249 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,249 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ~ppc ppc64 ~sparc x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,249 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,250 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:0 dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5-14022.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,247 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.3.4-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,247 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,250 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
epatch "${FILESDIR}/${PN}-kernel-headers-4.2.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -1,250 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info pam toolchain-funcs user versionator
|
||||
|
||||
DESCRIPTION="A full-featured web proxy cache"
|
||||
HOMEPAGE="http://www.squid-cache.org/"
|
||||
SRC_URI="http://www.squid-cache.org/Versions/v3/3.5/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="caps ipv6 pam ldap samba sasl kerberos nis radius ssl snmp selinux logrotate test \
|
||||
ecap esi ssl-crtd \
|
||||
mysql postgres sqlite \
|
||||
qos tproxy \
|
||||
+htcp +wccp +wccpv2 \
|
||||
pf-transparent ipf-transparent kqueue \
|
||||
elibc_uclibc kernel_linux"
|
||||
|
||||
COMMON_DEPEND="caps? ( >=sys-libs/libcap-2.16 )
|
||||
pam? ( virtual/pam )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( virtual/krb5 )
|
||||
qos? ( net-libs/libnetfilter_conntrack )
|
||||
ssl? ( dev-libs/openssl:* dev-libs/nettle >=net-libs/gnutls-3.1.5 )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
ecap? ( net-libs/libecap:1 )
|
||||
esi? ( dev-libs/expat dev-libs/libxml2 )
|
||||
!x86-fbsd? ( logrotate? ( app-admin/logrotate ) )
|
||||
>=sys-libs/db-4:*
|
||||
dev-lang/perl
|
||||
dev-libs/libltdl:0"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
ecap? ( virtual/pkgconfig )
|
||||
sys-apps/ed
|
||||
test? ( dev-util/cppunit )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
samba? ( net-fs/samba )
|
||||
mysql? ( dev-perl/DBD-mysql )
|
||||
postgres? ( dev-perl/DBD-Pg )
|
||||
selinux? ( sec-policy/selinux-squid )
|
||||
sqlite? ( dev-perl/DBD-SQLite )
|
||||
!<=sci-biology/meme-4.8.1-r1"
|
||||
|
||||
REQUIRED_USE="tproxy? ( caps )
|
||||
qos? ( caps )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use tproxy; then
|
||||
local CONFIG_CHECK="~NF_CONNTRACK ~NETFILTER_XT_MATCH_SOCKET ~NETFILTER_XT_TARGET_TPROXY"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup squid
|
||||
enewuser squid -1 -1 /var/cache/squid squid
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-3.5.7-gentoo.patch"
|
||||
epatch "${FILESDIR}/${PN}-kernel-headers-4.2.patch"
|
||||
sed -i -e 's:/usr/local/squid/etc:/etc/squid:' \
|
||||
INSTALL QUICKSTART \
|
||||
scripts/fileno-to-pathname.pl \
|
||||
scripts/check_cache.pl \
|
||||
tools/cachemgr.cgi.8 \
|
||||
tools/purge/conffile.hh \
|
||||
tools/purge/README || die
|
||||
sed -i -e 's:/usr/local/squid/sbin:/usr/sbin:' \
|
||||
INSTALL QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/cache:/var/cache/squid:' \
|
||||
QUICKSTART || die
|
||||
sed -i -e 's:/usr/local/squid/var/logs:/var/log/squid:' \
|
||||
QUICKSTART \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/logs:/var/log/squid:' \
|
||||
src/log/access_log.cc || die
|
||||
sed -i -e 's:/usr/local/squid/libexec:/usr/libexec/squid:' \
|
||||
helpers/external_acl/unix_group/ext_unix_group_acl.8 \
|
||||
helpers/external_acl/session/ext_session_acl.8 \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/cache:/var/cache/squid:' \
|
||||
scripts/check_cache.pl || die
|
||||
sed -i -e 's:/usr/local/squid/ssl_cert:/etc/ssl/squid:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/usr/local/squid/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
sed -i -e 's:/var/lib/ssl_db:/var/lib/squid/ssl_db:' \
|
||||
src/ssl/ssl_crtd.8 || die
|
||||
# /var/run/squid to /run/squid
|
||||
sed -i -e 's:$(localstatedir)::' \
|
||||
src/ipc/Makefile.am || die
|
||||
sed -i -e 's:_LTDL_SETUP:LTDL_INIT([installable]):' \
|
||||
libltdl/configure.ac || die
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local basic_modules="MSNT-multi-domain,NCSA,POP3,getpwnam"
|
||||
use samba && basic_modules+=",SMB"
|
||||
use ldap && basic_modules+=",LDAP"
|
||||
use pam && basic_modules+=",PAM"
|
||||
use sasl && basic_modules+=",SASL"
|
||||
use nis && ! use elibc_uclibc && basic_modules+=",NIS"
|
||||
use radius && basic_modules+=",RADIUS"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
basic_modules+=",DB"
|
||||
fi
|
||||
|
||||
local digest_modules="file"
|
||||
use ldap && digest_modules+=",LDAP,eDirectory"
|
||||
|
||||
local negotiate_modules="none"
|
||||
local myconf="--without-mit-krb5 --without-heimdal-krb5"
|
||||
if use kerberos ; then
|
||||
negotiate_modules="kerberos,wrapper"
|
||||
if has_version app-crypt/heimdal ; then
|
||||
myconf="--without-mit-krb5 --with-heimdal-krb5"
|
||||
else
|
||||
myconf="--with-mit-krb5 --without-heimdal-krb5"
|
||||
fi
|
||||
fi
|
||||
|
||||
local ntlm_modules="none"
|
||||
use samba && ntlm_modules="smb_lm"
|
||||
|
||||
local ext_helpers="file_userip,session,unix_group"
|
||||
use samba && ext_helpers+=",wbinfo_group"
|
||||
use ldap && ext_helpers+=",LDAP_group,eDirectory_userip"
|
||||
use ldap && use kerberos && ext_helpers+=",kerberos_ldap_group"
|
||||
|
||||
local storeio_modules="aufs,diskd,rock,ufs"
|
||||
|
||||
local transparent
|
||||
if use kernel_linux ; then
|
||||
transparent+=" --enable-linux-netfilter"
|
||||
use qos && transparent+=" --enable-zph-qos --with-netfilter-conntrack"
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD || use kernel_OpenBSD || use kernel_NetBSD ; then
|
||||
transparent+=" $(use_enable kqueue)"
|
||||
if use pf-transparent; then
|
||||
transparent+=" --enable-pf-transparent"
|
||||
elif use ipf-transparent; then
|
||||
transparent+=" --enable-ipf-transparent"
|
||||
fi
|
||||
fi
|
||||
|
||||
tc-export CC AR
|
||||
|
||||
econf \
|
||||
--sysconfdir=/etc/squid \
|
||||
--libexecdir=/usr/libexec/squid \
|
||||
--localstatedir=/var \
|
||||
--with-pidfile=/run/squid.pid \
|
||||
--datadir=/usr/share/squid \
|
||||
--with-logdir=/var/log/squid \
|
||||
--with-default-user=squid \
|
||||
--enable-removal-policies="lru,heap" \
|
||||
--enable-storeio="${storeio_modules}" \
|
||||
--enable-disk-io \
|
||||
--enable-auth-basic="${basic_modules}" \
|
||||
--enable-auth-digest="${digest_modules}" \
|
||||
--enable-auth-ntlm="${ntlm_modules}" \
|
||||
--enable-auth-negotiate="${negotiate_modules}" \
|
||||
--enable-external-acl-helpers="${ext_helpers}" \
|
||||
--enable-log-daemon-helpers \
|
||||
--enable-url-rewrite-helpers \
|
||||
--enable-cache-digests \
|
||||
--enable-delay-pools \
|
||||
--enable-eui \
|
||||
--enable-icmp \
|
||||
--enable-follow-x-forwarded-for \
|
||||
--with-large-files \
|
||||
--disable-strict-error-checking \
|
||||
--disable-arch-native \
|
||||
--with-ltdl-includedir=/usr/include \
|
||||
--with-ltdl-libdir=/usr/$(get_libdir) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable snmp) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with ssl nettle) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_enable ssl-crtd) \
|
||||
$(use_enable ecap) \
|
||||
$(use_enable esi) \
|
||||
$(use_enable htcp) \
|
||||
$(use_enable wccp) \
|
||||
$(use_enable wccpv2) \
|
||||
${transparent} \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# need suid root for looking into /etc/shadow
|
||||
fowners root:squid /usr/libexec/squid/basic_ncsa_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_ncsa_auth
|
||||
if use pam; then
|
||||
fowners root:squid /usr/libexec/squid/basic_pam_auth
|
||||
fperms 4750 /usr/libexec/squid/basic_pam_auth
|
||||
fi
|
||||
# pinger needs suid as well
|
||||
fowners root:squid /usr/libexec/squid/pinger
|
||||
fperms 4750 /usr/libexec/squid/pinger
|
||||
|
||||
# cleanup
|
||||
rm -f "${D}"/usr/bin/Run*
|
||||
rm -rf "${D}"/run/squid "${D}"/var/cache/squid
|
||||
|
||||
dodoc CONTRIBUTORS CREDITS ChangeLog INSTALL QUICKSTART README SPONSORS doc/*.txt
|
||||
newdoc helpers/negotiate_auth/kerberos/README README.kerberos
|
||||
newdoc helpers/basic_auth/RADIUS/README README.RADIUS
|
||||
newdoc helpers/external_acl/kerberos_ldap_group/README README.kerberos_ldap_group
|
||||
newdoc tools/purge/README README.purge
|
||||
newdoc tools/helper-mux.README README.helper-mux
|
||||
dohtml RELEASENOTES.html
|
||||
|
||||
newpamd "${FILESDIR}/squid.pam" squid
|
||||
newconfd "${FILESDIR}/squid.confd-r1" squid
|
||||
newinitd "${FILESDIR}/squid.initd-r4" squid
|
||||
if use logrotate; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/squid.logrotate" squid
|
||||
else
|
||||
exeinto /etc/cron.weekly
|
||||
newexe "${FILESDIR}/squid.cron" squid.cron
|
||||
fi
|
||||
|
||||
diropts -m0750 -o squid -g squid
|
||||
keepdir /var/log/squid /etc/ssl/squid /var/lib/squid
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $(get_version_component_range 1 ${REPLACING_VERSIONS}) -lt 3 ]] || \
|
||||
[[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 5 ]]; then
|
||||
elog "Please read the release notes at:"
|
||||
elog " http://www.squid-cache.org/Versions/v3/3.5/RELEASENOTES.html"
|
||||
echo
|
||||
fi
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
AT_M4DIR="config"
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Provides Remote-Console and System Management Software as per IPMI v1.5/2.0"
|
||||
HOMEPAGE="https://www.gnu.org/software/freeipmi/"
|
||||
|
||||
MY_P="${P/_/.}"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
[[ ${MY_P} == *.beta* ]] && ALPHA="-alpha"
|
||||
SRC_URI="mirror://gnu${ALPHA}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug nagios"
|
||||
|
||||
RDEPEND="dev-libs/libgcrypt:0"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/os-headers"
|
||||
RDEPEND="${RDEPEND}
|
||||
nagios? (
|
||||
|| ( net-analyzer/icinga net-analyzer/nagios )
|
||||
dev-lang/perl
|
||||
)
|
||||
sys-apps/openrc"
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
--disable-static
|
||||
--disable-init-scripts
|
||||
--localstatedir=/var
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
# There are no tests
|
||||
src_test() { :; }
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# freeipmi by defaults install _all_ commands to /usr/sbin, but
|
||||
# quite a few can be run remotely as standard user, so move them
|
||||
# in /usr/bin afterwards.
|
||||
dodir /usr/bin
|
||||
for file in ipmi{detect,ping,power,console}; do
|
||||
mv "${D}"/usr/{s,}bin/${file} || die
|
||||
|
||||
# The default install symlinks these commands to add a dash
|
||||
# after the ipmi prefix; we repeat those after move for
|
||||
# consistency.
|
||||
rm "${D}"/usr/sbin/${file/ipmi/ipmi-}
|
||||
dosym ${file} /usr/bin/${file/ipmi/ipmi-}
|
||||
done
|
||||
|
||||
# Install the nagios plugin in its proper place, if desired
|
||||
if use nagios; then
|
||||
dodir /usr/$(get_libdir)/nagios/plugins
|
||||
mv "${D}"/usr/share/doc/${PF}/contrib/nagios/nagios_ipmi_sensors.pl \
|
||||
"${D}"/usr/$(get_libdir)/nagios/plugins/ || die
|
||||
fperms 0755 /usr/$(get_libdir)/nagios/plugins/nagios_ipmi_sensors.pl
|
||||
|
||||
insinto /etc/icinga/conf.d
|
||||
newins "${FILESDIR}"/freeipmi.icinga freeipmi-command.cfg
|
||||
fi
|
||||
|
||||
dodoc AUTHORS ChangeLog* DISCLAIMER* NEWS README* TODO doc/*.txt
|
||||
|
||||
keepdir \
|
||||
/var/cache/ipmimonitoringsdrcache \
|
||||
/var/lib/freeipmi \
|
||||
/var/log/ipmiconsole
|
||||
|
||||
# starting from version 1.2.0 the two daemons are similar enough
|
||||
newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmidetectd
|
||||
newconfd "${FILESDIR}"/ipmidetectd.confd ipmidetectd
|
||||
|
||||
newinitd "${FILESDIR}"/bmc-watchdog.initd.4 bmc-watchdog
|
||||
newconfd "${FILESDIR}"/bmc-watchdog.confd bmc-watchdog
|
||||
|
||||
newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmiseld
|
||||
newconfd "${FILESDIR}"/ipmiseld.confd ipmiseld
|
||||
}
|
@ -0,0 +1,548 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic linux-info linux-mod multilib nvidia-driver \
|
||||
portability toolchain-funcs unpacker user udev
|
||||
|
||||
NV_URI="http://us.download.nvidia.com/XFree86/"
|
||||
X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
|
||||
AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}"
|
||||
X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${PV}"
|
||||
AMD64_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86_64-${PV}"
|
||||
|
||||
DESCRIPTION="NVIDIA Accelerated Graphics Driver"
|
||||
HOMEPAGE="http://www.nvidia.com/ http://www.nvidia.com/Download/Find.aspx"
|
||||
SRC_URI="
|
||||
amd64-fbsd? ( ${NV_URI}FreeBSD-x86_64/${PV}/${AMD64_FBSD_NV_PACKAGE}.tar.gz )
|
||||
amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )
|
||||
x86-fbsd? ( ${NV_URI}FreeBSD-x86/${PV}/${X86_FBSD_NV_PACKAGE}.tar.gz )
|
||||
x86? ( ${NV_URI}Linux-x86/${PV}/${X86_NV_PACKAGE}.run )
|
||||
tools? ( ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-${PV}.tar.bz2 )
|
||||
"
|
||||
|
||||
LICENSE="GPL-2 NVIDIA-r2"
|
||||
SLOT="0/${PV%.*}"
|
||||
KEYWORDS="-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
RESTRICT="bindist mirror"
|
||||
EMULTILIB_PKG="true"
|
||||
|
||||
IUSE="acpi compat +driver gtk3 kernel_FreeBSD kernel_linux +kms multilib pax_kernel static-libs +tools uvm wayland +X"
|
||||
REQUIRED_USE="
|
||||
tools? ( X )
|
||||
static-libs? ( tools )
|
||||
"
|
||||
|
||||
COMMON="
|
||||
app-eselect/eselect-opencl
|
||||
kernel_linux? ( >=sys-libs/glibc-2.6.1 )
|
||||
tools? (
|
||||
dev-libs/atk
|
||||
dev-libs/glib:2
|
||||
dev-libs/jansson
|
||||
gtk3? ( x11-libs/gtk+:3 )
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf[X]
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXv
|
||||
x11-libs/libXxf86vm
|
||||
x11-libs/pango[X]
|
||||
)
|
||||
X? (
|
||||
>=app-eselect/eselect-opengl-1.0.9
|
||||
app-misc/pax-utils
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON}
|
||||
kernel_linux? ( virtual/linux-sources )
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON}
|
||||
acpi? ( sys-power/acpid )
|
||||
tools? ( !media-video/nvidia-settings )
|
||||
wayland? ( dev-libs/wayland )
|
||||
X? (
|
||||
<x11-base/xorg-server-1.18.99:=
|
||||
>=x11-libs/libvdpau-1.0
|
||||
multilib? (
|
||||
>=x11-libs/libX11-1.6.2[abi_x86_32]
|
||||
>=x11-libs/libXext-1.3.2[abi_x86_32]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/* usr/lib*"
|
||||
|
||||
S=${WORKDIR}/
|
||||
|
||||
pkg_pretend() {
|
||||
if use amd64 && has_multilib_profile && \
|
||||
[ "${DEFAULT_ABI}" != "amd64" ]; then
|
||||
eerror "This ebuild doesn't currently support changing your default ABI"
|
||||
die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}"
|
||||
fi
|
||||
|
||||
if use kernel_linux && kernel_is ge 4 7; then
|
||||
ewarn "Gentoo supports kernels which are supported by NVIDIA"
|
||||
ewarn "which are limited to the following kernels:"
|
||||
ewarn "<sys-kernel/gentoo-sources-4.7"
|
||||
ewarn "<sys-kernel/vanilla-sources-4.7"
|
||||
ewarn ""
|
||||
ewarn "You are free to utilize epatch_user to provide whatever"
|
||||
ewarn "support you feel is appropriate, but will not receive"
|
||||
ewarn "support as a result of those changes."
|
||||
ewarn ""
|
||||
ewarn "Do not file a bug report about this."
|
||||
ewarn ""
|
||||
fi
|
||||
|
||||
# Since Nvidia ships many different series of drivers, we need to give the user
|
||||
# some kind of guidance as to what version they should install. This tries
|
||||
# to point the user in the right direction but can't be perfect. check
|
||||
# nvidia-driver.eclass
|
||||
nvidia-driver-check-warning
|
||||
|
||||
# Kernel features/options to check for
|
||||
CONFIG_CHECK="~ZONE_DMA ~MTRR ~SYSVIPC ~!LOCKDEP"
|
||||
use x86 && CONFIG_CHECK+=" ~HIGHMEM"
|
||||
|
||||
# Now do the above checks
|
||||
use kernel_linux && check_extra_config
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# try to turn off distcc and ccache for people that have a problem with it
|
||||
export DISTCC_DISABLE=1
|
||||
export CCACHE_DISABLE=1
|
||||
|
||||
if use driver && use kernel_linux; then
|
||||
MODULE_NAMES="nvidia(video:${S}/kernel)"
|
||||
use uvm && MODULE_NAMES+=" nvidia-uvm(video:${S}/kernel)"
|
||||
use kms && MODULE_NAMES+=" nvidia-modeset(video:${S}/kernel) nvidia-drm(video:${S}/kernel)"
|
||||
|
||||
# This needs to run after MODULE_NAMES (so that the eclass checks
|
||||
# whether the kernel supports loadable modules) but before BUILD_PARAMS
|
||||
# is set (so that KV_DIR is populated).
|
||||
linux-mod_pkg_setup
|
||||
|
||||
BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \
|
||||
SYSOUT=${KV_OUT_DIR} CC=$(tc-getBUILD_CC) NV_VERBOSE=1"
|
||||
|
||||
# linux-mod_src_compile calls set_arch_to_kernel, which
|
||||
# sets the ARCH to x86 but NVIDIA's wrapping Makefile
|
||||
# expects x86_64 or i386 and then converts it to x86
|
||||
# later on in the build process
|
||||
BUILD_FIXES="ARCH=$(uname -m | sed -e 's/i.86/i386/')"
|
||||
fi
|
||||
|
||||
if use kernel_linux && kernel_is lt 2 6 9; then
|
||||
eerror "You must build this against 2.6.9 or higher kernels."
|
||||
fi
|
||||
|
||||
# set variables to where files are in the package structure
|
||||
if use kernel_FreeBSD; then
|
||||
use x86-fbsd && S="${WORKDIR}/${X86_FBSD_NV_PACKAGE}"
|
||||
use amd64-fbsd && S="${WORKDIR}/${AMD64_FBSD_NV_PACKAGE}"
|
||||
NV_DOC="${S}/doc"
|
||||
NV_OBJ="${S}/obj"
|
||||
NV_SRC="${S}/src"
|
||||
NV_MAN="${S}/x11/man"
|
||||
NV_X11="${S}/obj"
|
||||
NV_SOVER=1
|
||||
elif use kernel_linux; then
|
||||
NV_DOC="${S}"
|
||||
NV_OBJ="${S}"
|
||||
NV_SRC="${S}/kernel"
|
||||
NV_MAN="${S}"
|
||||
NV_X11="${S}"
|
||||
NV_SOVER=${PV}
|
||||
else
|
||||
die "Could not determine proper NVIDIA package"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use pax_kernel; then
|
||||
ewarn "Using PAX patches is not supported. You will be asked to"
|
||||
ewarn "use a standard kernel should you have issues. Should you"
|
||||
ewarn "need support with these patches, contact the PaX team."
|
||||
epatch "${FILESDIR}"/${PN}-364.12-pax.patch
|
||||
fi
|
||||
|
||||
# Allow user patches so they can support RC kernels and whatever else
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# This is already the default on Linux, as there's no toplevel Makefile, but
|
||||
# on FreeBSD there's one and triggers the kernel module build, as we install
|
||||
# it by itself, pass this.
|
||||
|
||||
cd "${NV_SRC}"
|
||||
if use kernel_FreeBSD; then
|
||||
MAKE="$(get_bmake)" CFLAGS="-Wno-sign-compare" emake CC="$(tc-getCC)" \
|
||||
LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die
|
||||
elif use driver && use kernel_linux; then
|
||||
MAKEOPTS=-j1 linux-mod_src_compile
|
||||
fi
|
||||
|
||||
if use tools; then
|
||||
emake -C "${S}"/nvidia-settings-${PV}/src \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
LIBDIR="$(get_libdir)" \
|
||||
NV_VERBOSE=1 \
|
||||
RANLIB="$(tc-getRANLIB)" \
|
||||
DO_STRIP= \
|
||||
build-xnvctrl
|
||||
|
||||
emake -C "${S}"/nvidia-settings-${PV}/src \
|
||||
CC="$(tc-getCC)" \
|
||||
GTK3_AVAILABLE=$(usex gtk3 1 0) \
|
||||
LD="$(tc-getCC)" \
|
||||
LIBDIR="$(get_libdir)" \
|
||||
NVML_ENABLED=0 \
|
||||
NV_USE_BUNDLED_LIBJANSSON=0 \
|
||||
NV_VERBOSE=1 \
|
||||
DO_STRIP=
|
||||
fi
|
||||
}
|
||||
|
||||
# Install nvidia library:
|
||||
# the first parameter is the library to install
|
||||
# the second parameter is the provided soversion
|
||||
# the third parameter is the target directory if it is not /usr/lib
|
||||
donvidia() {
|
||||
# Full path to library
|
||||
nv_LIB="${1}"
|
||||
|
||||
# SOVER to use
|
||||
nv_SOVER="$(scanelf -qF'%S#F' ${nv_LIB})"
|
||||
|
||||
# Where to install
|
||||
nv_DEST="${2}"
|
||||
|
||||
# Get just the library name
|
||||
nv_LIBNAME=$(basename "${nv_LIB}")
|
||||
|
||||
if [[ "${nv_DEST}" ]]; then
|
||||
exeinto ${nv_DEST}
|
||||
action="doexe"
|
||||
else
|
||||
nv_DEST="/usr/$(get_libdir)"
|
||||
action="dolib.so"
|
||||
fi
|
||||
|
||||
# Install the library
|
||||
${action} ${nv_LIB} || die "failed to install ${nv_LIBNAME}"
|
||||
|
||||
# If the library has a SONAME and SONAME does not match the library name,
|
||||
# then we need to create a symlink
|
||||
if [[ ${nv_SOVER} ]] && ! [[ "${nv_SOVER}" = "${nv_LIBNAME}" ]]; then
|
||||
dosym ${nv_LIBNAME} ${nv_DEST}/${nv_SOVER} \
|
||||
|| die "failed to create ${nv_DEST}/${nv_SOVER} symlink"
|
||||
fi
|
||||
|
||||
dosym ${nv_LIBNAME} ${nv_DEST}/${nv_LIBNAME/.so*/.so} \
|
||||
|| die "failed to create ${nv_LIBNAME/.so*/.so} symlink"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use driver && use kernel_linux; then
|
||||
linux-mod_src_install
|
||||
|
||||
# Add the aliases
|
||||
# This file is tweaked with the appropriate video group in
|
||||
# pkg_preinst, see bug #491414
|
||||
insinto /etc/modprobe.d
|
||||
newins "${FILESDIR}"/nvidia-169.07 nvidia.conf
|
||||
doins "${FILESDIR}"/nvidia-rmmod.conf
|
||||
|
||||
# Ensures that our device nodes are created when not using X
|
||||
exeinto "$(get_udevdir)"
|
||||
newexe "${FILESDIR}"/nvidia-udev.sh-r1 nvidia-udev.sh
|
||||
udev_newrules "${FILESDIR}"/nvidia.udev-rule 99-nvidia.rules
|
||||
elif use kernel_FreeBSD; then
|
||||
if use x86-fbsd; then
|
||||
insinto /boot/modules
|
||||
doins "${S}/src/nvidia.kld"
|
||||
fi
|
||||
|
||||
exeinto /boot/modules
|
||||
doexe "${S}/src/nvidia.ko"
|
||||
fi
|
||||
|
||||
# NVIDIA kernel <-> userspace driver config lib
|
||||
donvidia ${NV_OBJ}/libnvidia-cfg.so.${NV_SOVER}
|
||||
|
||||
# NVIDIA framebuffer capture library
|
||||
donvidia ${NV_OBJ}/libnvidia-fbc.so.${NV_SOVER}
|
||||
|
||||
# NVIDIA video encode/decode <-> CUDA
|
||||
if use kernel_linux; then
|
||||
donvidia ${NV_OBJ}/libnvcuvid.so.${NV_SOVER}
|
||||
donvidia ${NV_OBJ}/libnvidia-encode.so.${NV_SOVER}
|
||||
fi
|
||||
|
||||
if use X; then
|
||||
# Xorg DDX driver
|
||||
insinto /usr/$(get_libdir)/xorg/modules/drivers
|
||||
doins ${NV_X11}/nvidia_drv.so
|
||||
|
||||
# Xorg GLX driver
|
||||
donvidia ${NV_X11}/libglx.so.${NV_SOVER} \
|
||||
/usr/$(get_libdir)/opengl/nvidia/extensions
|
||||
|
||||
# Xorg nvidia.conf
|
||||
if has_version '>=x11-base/xorg-server-1.16'; then
|
||||
insinto /usr/share/X11/xorg.conf.d
|
||||
newins {,50-}nvidia-drm-outputclass.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
# OpenCL ICD for NVIDIA
|
||||
if use kernel_linux; then
|
||||
insinto /etc/OpenCL/vendors
|
||||
doins ${NV_OBJ}/nvidia.icd
|
||||
fi
|
||||
|
||||
# Documentation
|
||||
dohtml ${NV_DOC}/html/*
|
||||
if use kernel_FreeBSD; then
|
||||
dodoc "${NV_DOC}/README"
|
||||
use X && doman "${NV_MAN}/nvidia-xconfig.1"
|
||||
use tools && doman "${NV_MAN}/nvidia-settings.1"
|
||||
else
|
||||
# Docs
|
||||
newdoc "${NV_DOC}/README.txt" README
|
||||
dodoc "${NV_DOC}/NVIDIA_Changelog"
|
||||
doman "${NV_MAN}/nvidia-smi.1.gz"
|
||||
use X && doman "${NV_MAN}/nvidia-xconfig.1.gz"
|
||||
use tools && doman "${NV_MAN}/nvidia-settings.1.gz"
|
||||
doman "${NV_MAN}/nvidia-cuda-mps-control.1.gz"
|
||||
fi
|
||||
|
||||
# Helper Apps
|
||||
exeinto /opt/bin/
|
||||
|
||||
if use X; then
|
||||
doexe ${NV_OBJ}/nvidia-xconfig
|
||||
fi
|
||||
|
||||
if use kernel_linux; then
|
||||
doexe ${NV_OBJ}/nvidia-cuda-mps-control
|
||||
doexe ${NV_OBJ}/nvidia-cuda-mps-server
|
||||
doexe ${NV_OBJ}/nvidia-debugdump
|
||||
doexe ${NV_OBJ}/nvidia-persistenced
|
||||
doexe ${NV_OBJ}/nvidia-smi
|
||||
|
||||
# install nvidia-modprobe setuid and symlink in /usr/bin (bug #505092)
|
||||
doexe ${NV_OBJ}/nvidia-modprobe
|
||||
fowners root:video /opt/bin/nvidia-modprobe
|
||||
fperms 4710 /opt/bin/nvidia-modprobe
|
||||
dosym /{opt,usr}/bin/nvidia-modprobe
|
||||
|
||||
doman nvidia-cuda-mps-control.1.gz
|
||||
doman nvidia-modprobe.1.gz
|
||||
doman nvidia-persistenced.1.gz
|
||||
newinitd "${FILESDIR}/nvidia-smi.init" nvidia-smi
|
||||
newconfd "${FILESDIR}/nvidia-persistenced.conf" nvidia-persistenced
|
||||
newinitd "${FILESDIR}/nvidia-persistenced.init" nvidia-persistenced
|
||||
fi
|
||||
|
||||
if use tools; then
|
||||
emake -C "${S}"/nvidia-settings-${PV}/src/ \
|
||||
DESTDIR="${D}" \
|
||||
GTK3_AVAILABLE=$(usex gtk3 1 0) \
|
||||
LIBDIR="${D}/usr/$(get_libdir)" \
|
||||
NV_USE_BUNDLED_LIBJANSSON=0 \
|
||||
NV_VERBOSE=1 \
|
||||
PREFIX=/usr \
|
||||
DO_STRIP= \
|
||||
install
|
||||
|
||||
if use static-libs; then
|
||||
dolib.a "${S}"/nvidia-settings-${PV}/src/libXNVCtrl/libXNVCtrl.a
|
||||
|
||||
insinto /usr/include/NVCtrl
|
||||
doins "${S}"/nvidia-settings-${PV}/src/libXNVCtrl/*.h
|
||||
fi
|
||||
|
||||
insinto /usr/share/nvidia/
|
||||
doins nvidia-application-profiles-${PV}-key-documentation
|
||||
|
||||
insinto /etc/nvidia
|
||||
newins \
|
||||
nvidia-application-profiles-${PV}-rc nvidia-application-profiles-rc
|
||||
|
||||
# There is no icon in the FreeBSD tarball.
|
||||
use kernel_FreeBSD || \
|
||||
doicon ${NV_OBJ}/nvidia-settings.png
|
||||
|
||||
domenu "${FILESDIR}"/nvidia-settings.desktop
|
||||
|
||||
exeinto /etc/X11/xinit/xinitrc.d
|
||||
newexe "${FILESDIR}"/95-nvidia-settings-r1 95-nvidia-settings
|
||||
|
||||
insinto /etc/vulkan/icd.d
|
||||
doins nvidia_icd.json
|
||||
fi
|
||||
|
||||
dobin ${NV_OBJ}/nvidia-bug-report.sh
|
||||
|
||||
if has_multilib_profile && use multilib; then
|
||||
local OABI=${ABI}
|
||||
for ABI in $(get_install_abis); do
|
||||
src_install-libs
|
||||
done
|
||||
ABI=${OABI}
|
||||
unset OABI
|
||||
else
|
||||
src_install-libs
|
||||
fi
|
||||
|
||||
is_final_abi || die "failed to iterate through all ABIs"
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
src_install-libs() {
|
||||
local inslibdir=$(get_libdir)
|
||||
local GL_ROOT="/usr/$(get_libdir)/opengl/nvidia/lib"
|
||||
local CL_ROOT="/usr/$(get_libdir)/OpenCL/vendors/nvidia"
|
||||
local libdir=${NV_OBJ}
|
||||
|
||||
if use kernel_linux && has_multilib_profile && [[ ${ABI} == "x86" ]]; then
|
||||
libdir=${NV_OBJ}/32
|
||||
fi
|
||||
|
||||
if use X; then
|
||||
NV_GLX_LIBRARIES=(
|
||||
"libEGL.so.1 ${GL_ROOT}"
|
||||
"libEGL_nvidia.so.${NV_SOVER} ${GL_ROOT}"
|
||||
"libGL.so.$(usex compat ${NV_SOVER} 1.0.0) ${GL_ROOT}"
|
||||
"libGLESv1_CM.so.1 ${GL_ROOT}"
|
||||
"libGLESv1_CM_nvidia.so.${NV_SOVER} ${GL_ROOT}"
|
||||
"libGLESv2.so.2 ${GL_ROOT}"
|
||||
"libGLESv2_nvidia.so.${NV_SOVER} ${GL_ROOT}"
|
||||
"libGLX.so.0 ${GL_ROOT}"
|
||||
"libGLX_nvidia.so.${NV_SOVER} ${GL_ROOT}"
|
||||
"libGLdispatch.so.0 ${GL_ROOT}"
|
||||
"libOpenCL.so.1.0.0 ${CL_ROOT}"
|
||||
"libOpenGL.so.0 ${GL_ROOT}"
|
||||
"libcuda.so.${NV_SOVER}"
|
||||
"libnvcuvid.so.${NV_SOVER}"
|
||||
"libnvidia-compiler.so.${NV_SOVER}"
|
||||
"libnvidia-eglcore.so.${NV_SOVER}"
|
||||
"libnvidia-encode.so.${NV_SOVER}"
|
||||
"libnvidia-fatbinaryloader.so.${NV_SOVER}"
|
||||
"libnvidia-fbc.so.${NV_SOVER}"
|
||||
"libnvidia-glcore.so.${NV_SOVER}"
|
||||
"libnvidia-glsi.so.${NV_SOVER}"
|
||||
"libnvidia-ifr.so.${NV_SOVER}"
|
||||
"libnvidia-opencl.so.${NV_SOVER}"
|
||||
"libnvidia-ptxjitcompiler.so.${NV_SOVER}"
|
||||
"libvdpau_nvidia.so.${NV_SOVER}"
|
||||
)
|
||||
|
||||
if use wayland && has_multilib_profile && [[ ${ABI} == "amd64" ]];
|
||||
then
|
||||
NV_GLX_LIBRARIES+=(
|
||||
"libnvidia-egl-wayland.so.${NV_SOVER}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use kernel_linux && has_multilib_profile && [[ ${ABI} == "amd64" ]];
|
||||
then
|
||||
NV_GLX_LIBRARIES+=(
|
||||
"libnvidia-wfb.so.${NV_SOVER}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use kernel_FreeBSD; then
|
||||
NV_GLX_LIBRARIES+=(
|
||||
"libnvidia-tls.so.${NV_SOVER}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use kernel_linux; then
|
||||
NV_GLX_LIBRARIES+=(
|
||||
"libnvidia-ml.so.${NV_SOVER}"
|
||||
"tls/libnvidia-tls.so.${NV_SOVER}"
|
||||
)
|
||||
fi
|
||||
|
||||
for NV_LIB in "${NV_GLX_LIBRARIES[@]}"; do
|
||||
donvidia ${libdir}/${NV_LIB}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use driver && use kernel_linux; then
|
||||
linux-mod_pkg_preinst
|
||||
|
||||
local videogroup="$(egetent group video | cut -d ':' -f 3)"
|
||||
if [ -z "${videogroup}" ]; then
|
||||
eerror "Failed to determine the video group gid"
|
||||
die "Failed to determine the video group gid"
|
||||
else
|
||||
sed -i \
|
||||
-e "s:PACKAGE:${PF}:g" \
|
||||
-e "s:VIDEOGID:${videogroup}:" \
|
||||
"${D}"/etc/modprobe.d/nvidia.conf || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Clean the dynamic libGL stuff's home to ensure
|
||||
# we dont have stale libs floating around
|
||||
if [ -d "${ROOT}"/usr/lib/opengl/nvidia ]; then
|
||||
rm -rf "${ROOT}"/usr/lib/opengl/nvidia/*
|
||||
fi
|
||||
# Make sure we nuke the old nvidia-glx's env.d file
|
||||
if [ -e "${ROOT}"/etc/env.d/09nvidia ]; then
|
||||
rm -f "${ROOT}"/etc/env.d/09nvidia
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use driver && use kernel_linux && linux-mod_pkg_postinst
|
||||
|
||||
# Switch to the nvidia implementation
|
||||
use X && "${ROOT}"/usr/bin/eselect opengl set --use-old nvidia
|
||||
"${ROOT}"/usr/bin/eselect opencl set --use-old nvidia
|
||||
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if ! use X; then
|
||||
elog "You have elected to not install the X.org driver. Along with"
|
||||
elog "this the OpenGL libraries and VDPAU libraries were not"
|
||||
elog "installed. Additionally, once the driver is loaded your card"
|
||||
elog "and fan will run at max speed which may not be desirable."
|
||||
elog "Use the 'nvidia-smi' init script to have your card and fan"
|
||||
elog "speed scale appropriately."
|
||||
elog
|
||||
fi
|
||||
if ! use tools; then
|
||||
elog "USE=tools controls whether the nvidia-settings application"
|
||||
elog "is installed. If you would like to use it, enable that"
|
||||
elog "flag and re-emerge this ebuild. Optionally you can install"
|
||||
elog "media-video/nvidia-settings"
|
||||
elog
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
use X && "${ROOT}"/usr/bin/eselect opengl set --use-old xorg-x11
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use driver && use kernel_linux && linux-mod_pkg_postrm
|
||||
use X && "${ROOT}"/usr/bin/eselect opengl set --use-old xorg-x11
|
||||
}
|
Loading…
Reference in new issue