summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-12-06 21:15:30 +0000
committerAnthony G. Basile <blueness@gentoo.org>2013-12-06 21:15:30 +0000
commite8a7e04ce803f75ccbe824fc1f40d6f1b13908f2 (patch)
treee11e2f3124c97499fe4bf3c2385192ef5d0fc715 /www-servers
parentStable for x86, wrt bug #489050 (diff)
downloadgentoo-2-e8a7e04ce803f75ccbe824fc1f40d6f1b13908f2.tar.gz
gentoo-2-e8a7e04ce803f75ccbe824fc1f40d6f1b13908f2.tar.bz2
gentoo-2-e8a7e04ce803f75ccbe824fc1f40d6f1b13908f2.zip
Cleanup, security bug #489944
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/varnish/ChangeLog8
-rw-r--r--www-servers/varnish/files/varnish-3.0.2-automagic.patch49
-rw-r--r--www-servers/varnish/files/varnish-3.0.3-automagic.patch120
-rw-r--r--www-servers/varnish/files/varnishd.confd18
-rwxr-xr-xwww-servers/varnish/files/varnishd.initd32
-rw-r--r--www-servers/varnish/varnish-3.0.2-r1.ebuild66
-rw-r--r--www-servers/varnish/varnish-3.0.3-r1.ebuild81
-rw-r--r--www-servers/varnish/varnish-3.0.4-r1.ebuild83
-rw-r--r--www-servers/varnish/varnish-3.0.4.ebuild83
9 files changed, 7 insertions, 533 deletions
diff --git a/www-servers/varnish/ChangeLog b/www-servers/varnish/ChangeLog
index bacb8b79e875..ab38e973f4c2 100644
--- a/www-servers/varnish/ChangeLog
+++ b/www-servers/varnish/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-servers/varnish
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/ChangeLog,v 1.66 2013/12/06 20:41:58 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/ChangeLog,v 1.67 2013/12/06 21:15:29 blueness Exp $
+
+ 06 Dec 2013; Anthony G. Basile <blueness@gentoo.org>
+ -files/varnish-3.0.2-automagic.patch, -files/varnish-3.0.3-automagic.patch,
+ -files/varnishd.confd, -files/varnishd.initd, -varnish-3.0.2-r1.ebuild,
+ -varnish-3.0.3-r1.ebuild, -varnish-3.0.4-r1.ebuild, -varnish-3.0.4.ebuild:
+ Cleanup, security bug #489944
06 Dec 2013; Agostino Sarubbo <ago@gentoo.org> varnish-3.0.5.ebuild:
Stable for x86, wrt bug #489944
diff --git a/www-servers/varnish/files/varnish-3.0.2-automagic.patch b/www-servers/varnish/files/varnish-3.0.2-automagic.patch
deleted file mode 100644
index 204e558eb113..000000000000
--- a/www-servers/varnish/files/varnish-3.0.2-automagic.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- varnish-3.0.2/configure.ac.orig
-+++ varnish-3.0.2/configure.ac
-@@ -87,15 +87,20 @@
-
- save_LIBS="${LIBS}"
- LIBS=""
--AC_SEARCH_LIBS(initscr, [curses ncurses],
-- [have_curses=yes], [have_curses=no])
--CURSES_LIBS="${LIBS}"
--LIBS="${save_LIBS}"
--AC_SUBST(CURSES_LIBS)
--if test "$have_curses" = no; then
-- AC_MSG_WARN([curses not found; some tools will not be built])
--fi
--AC_CHECK_HEADERS([ncurses/curses.h curses.h])
-+AC_ARG_WITH([tools], AS_HELP_STRING([--without-tools],
-+ [Don't build additional tools: varnishhist, varnishstat, varnishtop, varnishsizes (default: test)]))
-+
-+AS_IF([test "x$with_tools" != "xno"], [
-+ AC_SEARCH_LIBS(initscr, [curses ncurses],
-+ [have_curses=yes], [have_curses=no])
-+ CURSES_LIBS="${LIBS}"
-+ LIBS="${save_LIBS}"
-+ AC_SUBST(CURSES_LIBS)
-+ if test "$have_curses" = no; then
-+ AC_MSG_ERROR([curses not found, required to build additional tools])
-+ fi
-+ AC_CHECK_HEADERS([ncurses/curses.h curses.h])
-+])
- AM_CONDITIONAL([HAVE_CURSES], [test x$have_curses = xyes])
-
- save_LIBS="${LIBS}"
-@@ -147,9 +152,13 @@
- AC_SUBST(PCRE_CFLAGS)
- AC_SUBST(PCRE_LIBS)
-
--PKG_CHECK_MODULES([LIBEDIT], [libedit],
-- [AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])],
-- [AC_MSG_WARN([libedit not found, disabling libedit support])])
-+AC_ARG_WITH([libedit], AS_HELP_STRING([--with-libedit],
-+ [Enable support for libedit in varnishadm (default: disabled)]))
-+AS_IF([test "x$with_libedit" = "xyes"], [
-+ PKG_CHECK_MODULES([LIBEDIT], [libedit],
-+ [AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])],
-+ [AC_MSG_ERROR([libedit not found])])
-+])
-
- # Checks for header files.
- AC_HEADER_STDC
diff --git a/www-servers/varnish/files/varnish-3.0.3-automagic.patch b/www-servers/varnish/files/varnish-3.0.3-automagic.patch
deleted file mode 100644
index ba18a3bbbc1c..000000000000
--- a/www-servers/varnish/files/varnish-3.0.3-automagic.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-diff -Naur varnish-3.0.3.orig/configure.ac varnish-3.0.3/configure.ac
---- varnish-3.0.3.orig/configure.ac 2012-08-20 05:20:40.000000000 -0400
-+++ varnish-3.0.3/configure.ac 2013-03-14 10:57:55.000000000 -0400
-@@ -87,15 +87,20 @@
-
- save_LIBS="${LIBS}"
- LIBS=""
--AC_SEARCH_LIBS(initscr, [curses ncurses],
-- [have_curses=yes], [have_curses=no])
--CURSES_LIBS="${LIBS}"
--LIBS="${save_LIBS}"
--AC_SUBST(CURSES_LIBS)
--if test "$have_curses" = no; then
-- AC_MSG_WARN([curses not found; some tools will not be built])
--fi
--AC_CHECK_HEADERS([ncurses/curses.h curses.h])
-+AC_ARG_WITH([tools], AS_HELP_STRING([--without-tools],
-+ [Don't build additional tools: varnishhist, varnishstat, varnishtop, varnishsizes (default: test)]))
-+
-+AS_IF([test "x$with_tools" != "xno"], [
-+ AC_SEARCH_LIBS(initscr, [curses ncurses],
-+ [have_curses=yes], [have_curses=no])
-+ CURSES_LIBS="${LIBS}"
-+ LIBS="${save_LIBS}"
-+ AC_SUBST(CURSES_LIBS)
-+ if test "$have_curses" = no; then
-+ AC_MSG_ERROR([curses not found, required to build additional tools])
-+ fi
-+ AC_CHECK_HEADERS([ncurses/curses.h curses.h])
-+])
- AM_CONDITIONAL([HAVE_CURSES], [test x$have_curses = xyes])
-
- save_LIBS="${LIBS}"
-@@ -147,17 +152,13 @@
- AC_SUBST(PCRE_CFLAGS)
- AC_SUBST(PCRE_LIBS)
-
--PKG_CHECK_MODULES([LIBEDIT], [libedit],
-- [AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])],
-- [AC_CHECK_HEADERS([readline/readline.h])
-- AC_CHECK_HEADERS([edit/readline/readline.h])
-- AC_CHECK_LIB(edit, el_init,
-- [ AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])
-- LIBEDIT_CFLAGS=""
-- LIBEDIT_LIBS="-ledit ${CURSES_LIBS}"
-- ],
-- [AC_MSG_WARN([libedit not found, disabling libedit support])],
-- [${CURSES_LIBS}])])
-+AC_ARG_WITH([libedit], AS_HELP_STRING([--with-libedit],
-+ [Enable support for libedit in varnishadm (default: disabled)]))
-+AS_IF([test "x$with_libedit" = "xyes"], [
-+ PKG_CHECK_MODULES([LIBEDIT], [libedit],
-+ [AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])],
-+ [AC_MSG_ERROR([libedit not found])])
-+])
-
- # Checks for header files.
- AC_HEADER_STDC
-@@ -271,7 +272,6 @@
- CFLAGS="${save_CFLAGS}"
-
- # Use jemalloc on Linux
--JEMALLOC_SUBDIR=
- JEMALLOC_LDADD=
- AC_ARG_WITH([jemalloc],
- [AS_HELP_STRING([--with-jemalloc],
-@@ -279,18 +279,13 @@
- [],
- [with_jemalloc=check])
-
--case $target in
-- *-*-linux*)
-- if test "x$with_jemalloc" != xno; then
-- AC_CHECK_LIB([jemalloc], [malloc_conf],
-- [JEMALLOC_LDADD="-ljemalloc"],
-- [AC_MSG_NOTICE([No system jemalloc found, using bundled version])
-- JEMALLOC_SUBDIR=libjemalloc
-- JEMALLOC_LDADD='$(top_builddir)/lib/libjemalloc/libjemalloc_mt.la'])
-- fi
-- ;;
--esac
--AC_SUBST(JEMALLOC_SUBDIR)
-+if test "x$with_jemalloc" != xno; then
-+ AC_CHECK_LIB([jemalloc], [malloc_conf],
-+ [JEMALLOC_LDADD="-ljemalloc"],
-+ [AC_CHECK_LIB([jemalloc], [jmalloc_conf],
-+ [JEMALLOC_LDADD="-ljemalloc"],
-+ [AC_MSG_ERROR([No system jemalloc found])])])
-+fi
- AC_SUBST(JEMALLOC_LDADD)
-
- # Userland slab allocator, available only on Solaris
-@@ -582,7 +577,6 @@
- lib/libvcl/Makefile
- lib/libvgz/Makefile
- lib/libvmod_std/Makefile
-- lib/libjemalloc/Makefile
- man/Makefile
- redhat/Makefile
- varnishapi.pc
---- varnish-3.0.3.orig/lib/Makefile.am 2012-08-20 05:20:40.000000000 -0400
-+++ varnish-3.0.3/lib/Makefile.am 2013-03-14 10:58:39.000000000 -0400
-@@ -6,14 +6,12 @@
- libvarnishapi \
- libvcl \
- libvgz \
-- libvmod_std \
-- @JEMALLOC_SUBDIR@
-+ libvmod_std
-
--DIST_SUBDIRS = \
-+DIST_SUBDIRS = \
- libvarnishcompat \
- libvarnish \
- libvarnishapi \
- libvcl \
- libvgz \
-- libvmod_std \
-- libjemalloc
-+ libvmod_std
diff --git a/www-servers/varnish/files/varnishd.confd b/www-servers/varnish/files/varnishd.confd
deleted file mode 100644
index 56366d8a74de..000000000000
--- a/www-servers/varnish/files/varnishd.confd
+++ /dev/null
@@ -1,18 +0,0 @@
-# /etc/conf.d/varnishd
-
-# Listen on 127.0.0.1:8080 and connect to backend 127.0.0.1:80
-# Ignore the config file, /etc/varnish/default.vcl
-VARNISHD_OPTS="-a 127.0.0.1:8080 -b 127.0.0.1:80"
-
-# Alternatively, don't listen to a backend and use
-# the config file
-#VARNISHD_OPTS="-a 127.0.0.1:8080 -f /etc/varnish/default.vcl"
-
-# arguments passed to varnishncsa
-# please see the varnishncsa man page for more options
-VARNISHNCSA_ARGS="-c -a -w /var/log/varnish/access.log"
-
-# We need to increase the number of open files (-n)
-# and the maximum amount off locked memory (-l)
-# See bug #459142
-rc_ulimit="-n 32786 -l 82000"
diff --git a/www-servers/varnish/files/varnishd.initd b/www-servers/varnish/files/varnishd.initd
deleted file mode 100755
index 33f5d74b75bf..000000000000
--- a/www-servers/varnish/files/varnishd.initd
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v 1.8 2013/03/14 12:18:17 blueness Exp $
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting varnish"
- start-stop-daemon --quiet --start --pidfile /var/run/varnishd.pid --exec /usr/sbin/varnishd -- -P /var/run/varnishd.pid ${VARNISHD_OPTS} &> /dev/null
- eend $?
-
- if [ "${VARNISHNCSA_ARGS}" != "" ]; then
- ebegin "Starting varnish logging"
- start-stop-daemon --quiet --start --pidfile /var/run/varnishncsa.pid --exec /usr/bin/varnishncsa -- -D -P /var/run/varnishncsa.pid ${VARNISHNCSA_ARGS}
- eend $?
- fi
-}
-
-stop() {
- ebegin "Stopping varnish"
- start-stop-daemon --quiet --stop --pidfile /var/run/varnishd.pid
- eend $?
-
- if [ -e /var/run/varnishncsa.pid ]; then
- ebegin "Stopping varnish logging"
- start-stop-daemon --quiet --stop --pidfile /var/run/varnishncsa.pid
- eend $?
- fi
-}
diff --git a/www-servers/varnish/varnish-3.0.2-r1.ebuild b/www-servers/varnish/varnish-3.0.2-r1.ebuild
deleted file mode 100644
index 05ecd2782fe2..000000000000
--- a/www-servers/varnish/varnish-3.0.2-r1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-3.0.2-r1.ebuild,v 1.6 2012/07/11 23:27:45 blueness Exp $
-
-EAPI="4"
-
-inherit autotools-utils eutils
-
-DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
-HOMEPAGE="http://www.varnish-cache.org/"
-SRC_URI="http://repo.varnish-cache.org/source/${P}.tar.gz"
-
-LICENSE="BSD-2 GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~mips x86"
-IUSE="doc libedit static-libs +tools"
-
-CDEPEND="dev-libs/libpcre
- libedit? ( dev-libs/libedit )
- tools? ( sys-libs/ncurses )"
-#varnish compiles stuff at run time
-RDEPEND="${CDEPEND}
- sys-devel/gcc"
-DEPEND="${CDEPEND}
- dev-python/docutils
- virtual/pkgconfig"
-
-RESTRICT="test" #315725
-
-DOCS=( README doc/changes.rst )
-
-PATCHES=( "${FILESDIR}"/${P}-automagic.patch )
-
-src_prepare() {
- autotools-utils_src_prepare
- eautoreconf
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_with libedit)
- $(use_with tools)
- )
- autotools-utils_src_configure
-}
-
-src_install() {
- autotools-utils_src_install
-
- newinitd "${FILESDIR}"/varnishd.initd varnishd
- newconfd "${FILESDIR}"/varnishd.confd varnishd
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/varnishd.logrotate" varnishd
-
- dodir /var/log/varnish
-
- use doc && dohtml -r "doc/sphinx/=build/html/"
-}
-
-pkg_postinst () {
- elog "No demo-/sample-configfile is included in the distribution -"
- elog "please read the man-page for more info."
- elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
- elog " /etc/conf.d/varnishd"
-}
diff --git a/www-servers/varnish/varnish-3.0.3-r1.ebuild b/www-servers/varnish/varnish-3.0.3-r1.ebuild
deleted file mode 100644
index 3b9536163827..000000000000
--- a/www-servers/varnish/varnish-3.0.3-r1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-3.0.3-r1.ebuild,v 1.1 2013/03/14 15:49:37 blueness Exp $
-
-EAPI="5"
-
-inherit autotools-utils eutils
-
-DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
-HOMEPAGE="http://www.varnish-cache.org/"
-SRC_URI="http://repo.varnish-cache.org/source/${P}.tar.gz"
-
-LICENSE="BSD-2 GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~mips ~x86"
-IUSE="doc jemalloc libedit static-libs +tools"
-
-CDEPEND="
- dev-libs/libpcre
- jemalloc? ( dev-libs/jemalloc )
- libedit? ( dev-libs/libedit )
- tools? ( sys-libs/ncurses )"
-
-#varnish compiles stuff at run time
-RDEPEND="
- ${CDEPEND}
- sys-devel/gcc"
-
-DEPEND="
- ${CDEPEND}
- dev-python/docutils
- virtual/pkgconfig"
-
-RESTRICT="test" #315725
-
-DOCS=( README doc/changes.rst )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.0.3-automagic.patch
- "${FILESDIR}"/${PN}-3.0.3-pthread-uclibc.patch
-)
-
-AUTOTOOLS_AUTORECONF="yes"
-
-src_prepare() {
- # Remove bundled libjemalloc. We also fix
- # automagic dep in our patches, bug #461638
- rm -rf lib/libjemalloc
-
- autotools-utils_src_prepare
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_with jemalloc)
- $(use_with libedit)
- $(use_with tools)
- )
- autotools-utils_src_configure
-}
-
-src_install() {
- autotools-utils_src_install
-
- newinitd "${FILESDIR}"/varnishd.initd varnishd
- newconfd "${FILESDIR}"/varnishd.confd varnishd
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/varnishd.logrotate" varnishd
-
- dodir /var/log/varnish
-
- use doc && dohtml -r "doc/sphinx/=build/html/"
-}
-
-pkg_postinst () {
- elog "No demo-/sample-configfile is included in the distribution -"
- elog "please read the man-page for more info."
- elog "A sample (localhost:8080 -> localhost:80) for gentoo is given in"
- elog " /etc/conf.d/varnishd"
-}
diff --git a/www-servers/varnish/varnish-3.0.4-r1.ebuild b/www-servers/varnish/varnish-3.0.4-r1.ebuild
deleted file mode 100644
index c8f982fa7f89..000000000000
--- a/www-servers/varnish/varnish-3.0.4-r1.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-3.0.4-r1.ebuild,v 1.1 2013/07/08 22:11:35 blueness Exp $
-
-EAPI="5"
-
-inherit autotools-utils eutils
-
-DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
-HOMEPAGE="http://www.varnish-cache.org/"
-SRC_URI="http://repo.varnish-cache.org/source/${P}.tar.gz"
-
-LICENSE="BSD-2 GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~mips ~x86"
-IUSE="doc jemalloc jit static-libs +tools"
-
-CDEPEND="
- || ( dev-libs/libedit sys-libs/readline )
- dev-libs/libpcre[jit?]
- jemalloc? ( dev-libs/jemalloc )
- tools? ( sys-libs/ncurses )"
-
-#varnish compiles stuff at run time
-RDEPEND="
- ${CDEPEND}
- sys-devel/gcc"
-
-DEPEND="
- ${CDEPEND}
- virtual/pkgconfig"
-
-RESTRICT="test" #315725
-
-DOCS=( README doc/changes.rst )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.0.4-fix-automake-1.13.patch
- "${FILESDIR}"/${PN}-3.0.4-automagic.patch
- "${FILESDIR}"/${PN}-3.0.3-pthread-uclibc.patch
-)
-
-AUTOTOOLS_AUTORECONF="yes"
-
-src_prepare() {
- # Remove bundled libjemalloc. We also fix
- # automagic dep in our patches, bug #461638
- rm -rf lib/libjemalloc
-
- autotools-utils_src_prepare
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_enable static-libs static)
- $(use_enable jit pcre-jit )
- $(use_with jemalloc)
- $(use_with tools)
- --without-rst2man
- --without-rst2html
- )
- autotools-utils_src_configure
-}
-
-src_install() {
- autotools-utils_src_install
-
- newinitd "${FILESDIR}"/varnishd.initd-r1 varnishd
- newconfd "${FILESDIR}"/varnishd.confd-r1 varnishd
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/varnishd.logrotate" varnishd
-
- dodir /var/log/varnish
-
- use doc && dohtml -r "doc/sphinx/=build/html/"
-}
-
-pkg_postinst () {
- elog "No demo-/sample-configfile is included in the distribution. Please"
- elog "read the man-page for more info. A sample configuration proxying"
- elog "localhost:8080 for localhost:80 is given in /etc/conf.d/varnishd."
-}
diff --git a/www-servers/varnish/varnish-3.0.4.ebuild b/www-servers/varnish/varnish-3.0.4.ebuild
deleted file mode 100644
index 51588347230d..000000000000
--- a/www-servers/varnish/varnish-3.0.4.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/varnish-3.0.4.ebuild,v 1.3 2013/06/21 12:51:35 blueness Exp $
-
-EAPI="5"
-
-inherit autotools-utils eutils
-
-DESCRIPTION="Varnish is a state-of-the-art, high-performance HTTP accelerator"
-HOMEPAGE="http://www.varnish-cache.org/"
-SRC_URI="http://repo.varnish-cache.org/source/${P}.tar.gz"
-
-LICENSE="BSD-2 GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~mips ~x86"
-IUSE="doc jemalloc jit static-libs +tools"
-
-CDEPEND="
- || ( dev-libs/libedit sys-libs/readline )
- dev-libs/libpcre[jit?]
- jemalloc? ( dev-libs/jemalloc )
- tools? ( sys-libs/ncurses )"
-
-#varnish compiles stuff at run time
-RDEPEND="
- ${CDEPEND}
- sys-devel/gcc"
-
-DEPEND="
- ${CDEPEND}
- virtual/pkgconfig"
-
-RESTRICT="test" #315725
-
-DOCS=( README doc/changes.rst )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.0.4-fix-automake-1.13.patch
- "${FILESDIR}"/${PN}-3.0.4-automagic.patch
- "${FILESDIR}"/${PN}-3.0.3-pthread-uclibc.patch
-)
-
-AUTOTOOLS_AUTORECONF="yes"
-
-src_prepare() {
- # Remove bundled libjemalloc. We also fix
- # automagic dep in our patches, bug #461638
- rm -rf lib/libjemalloc
-
- autotools-utils_src_prepare
-}
-
-src_configure() {
- local myeconfargs=(
- $(use_enable static-libs static)
- $(use_enable jit pcre-jit )
- $(use_with jemalloc)
- $(use_with tools)
- --without-rst2man
- --without-rst2html
- )
- autotools-utils_src_configure
-}
-
-src_install() {
- autotools-utils_src_install
-
- newinitd "${FILESDIR}"/varnishd.initd varnishd
- newconfd "${FILESDIR}"/varnishd.confd varnishd
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/varnishd.logrotate" varnishd
-
- dodir /var/log/varnish
-
- use doc && dohtml -r "doc/sphinx/=build/html/"
-}
-
-pkg_postinst () {
- elog "No demo-/sample-configfile is included in the distribution. Please"
- elog "read the man-page for more info. A sample configuration proxying"
- elog "localhost:8080 for localhost:80 is given in /etc/conf.d/varnishd."
-}