Merge updates from master

This commit is contained in:
Repository QA checks
2015-10-05 10:41:58 -04:00
7 changed files with 730 additions and 4 deletions
+134
View File
@@ -0,0 +1,134 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils multilib toolchain-funcs vcs-snapshot
DESCRIPTION="a lightweight PDF viewer and toolkit written in portable C"
HOMEPAGE="http://mupdf.com/"
SRC_URI="http://git.ghostscript.com/?p=mupdf.git;a=snapshot;h=987969ac033151810aade57d45c3d968dbf83d60;sf=tgz -> ${P}.tar.gz"
LICENSE="AGPL-3"
MY_SOVER=1.7
SLOT="0/${MY_SOVER}"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="X vanilla +curl javascript libressl +openssl static static-libs"
LIB_DEPEND="
!libressl? ( dev-libs/openssl:0[static-libs?] )
libressl? ( dev-libs/libressl[static-libs?] )
media-libs/freetype:2[static-libs?]
media-libs/jbig2dec[static-libs?]
media-libs/openjpeg:2[static-libs?]
net-misc/curl[static-libs?]
virtual/jpeg[static-libs?]
X? ( x11-libs/libX11[static-libs?]
x11-libs/libXext[static-libs?] )
javascript? ( dev-lang/mujs )"
RDEPEND="${LIB_DEPEND}"
DEPEND="${RDEPEND}
virtual/pkgconfig
static-libs? ( ${LIB_DEPEND} )
static? ( ${LIB_DEPEND//?}
app-arch/bzip2[static-libs]
x11-libs/libXau[static-libs]
x11-libs/libXdmcp[static-libs]
x11-libs/libxcb[static-libs] )"
src_prepare() {
rm -rf thirdparty || die
epatch \
"${FILESDIR}"/${PN}-1.3-CFLAGS.patch \
"${FILESDIR}"/${PN}-1.5-old-debian-files.patch \
"${FILESDIR}"/${PN}-1.3-pkg-config.patch \
"${FILESDIR}"/${PN}-1.5-Makerules-openssl-curl.patch \
"${FILESDIR}"/${PN}-1.7a-system-mujs.patch
if has_version ">=media-libs/openjpeg-2.1:2" ; then
epatch \
"${FILESDIR}"/${PN}-1.5-openjpeg-2.1.patch
fi
sed -e "/^libdir=/s:/lib:/$(get_libdir):" \
-e "/^prefix=/s:=.*:=${EROOT}/usr:" \
-i platform/debian/${PN}.pc || die
use vanilla || epatch \
"${FILESDIR}"/${PN}-1.3-zoom-2.patch
#http://bugs.ghostscript.com/show_bug.cgi?id=693467
sed -e '/^\(Actions\|MimeType\)=/s:\(.*\):\1;:' \
-i platform/debian/${PN}.desktop || die
sed -e "1iOS = Linux" \
-e "1iCC = $(tc-getCC)" \
-e "1iLD = $(tc-getCC)" \
-e "1iAR = $(tc-getAR)" \
-e "1iverbose = yes" \
-e "1ibuild = debug" \
-e "1iprefix = ${ED}usr" \
-e "1ilibdir = ${ED}usr/$(get_libdir)" \
-e "1idocdir = ${ED}usr/share/doc/${PF}" \
-e "1iHAVE_X11 = $(usex X)" \
-e "1iWANT_OPENSSL = $(usex openssl)" \
-e "1iWANT_CURL = $(usex curl)" \
-e "1iHAVE_MUJS = $(usex javascript)" \
-e "1iMUJS_LIBS = -lmujs" \
-e "1iMUJS_CFLAGS =" \
-i Makerules || die
if use static-libs || use static ; then
cp -a "${S}" "${S}"-static || die
#add missing Libs.private for xcb and freetype
sed -e 's:\(pkg-config --libs\):\1 --static:' \
-e '/^SYS_X11_LIBS = /s:\(.*\):\1 -lpthread:' \
-e '/^SYS_FREETYPE_LIBS = /s:\(.*\):\1 -lbz2:' \
-i "${S}"-static/Makerules || die
fi
my_soname=libmupdf.so.${MY_SOVER}
my_soname_js_none=libmupdf-js-none.so.${MY_SOVER}
sed -e "\$a\$(MUPDF_LIB): \$(MUPDF_JS_NONE_LIB)" \
-e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname} -Wl,--no-undefined -o \$@ \$^ \$(MUPDF_JS_NONE_LIB) \$(LIBS)" \
-e "/^MUPDF_LIB :=/s:=.*:= \$(OUT)/${my_soname}:" \
-e "\$a\$(MUPDF_JS_NONE_LIB):" \
-e "\$a\\\t\$(QUIET_LINK) \$(CC) \$(LDFLAGS) --shared -Wl,-soname -Wl,${my_soname_js_none} -Wl,--no-undefined -o \$@ \$^ \$(LIBS)" \
-e "/install/s: COPYING : :" \
-i Makefile || die
}
src_compile() {
emake XCFLAGS="-fpic"
use static-libs && \
emake -C "${S}"-static build/debug/lib${PN}{,-js-none}.a
use static && \
emake -C "${S}"-static XLIBS="-static"
}
src_install() {
if use X ; then
domenu platform/debian/${PN}.desktop
doicon platform/debian/${PN}.xpm
else
rm docs/man/${PN}.1
fi
emake install
dosym ${my_soname} /usr/$(get_libdir)/lib${PN}.so
use static-libs && \
dolib.a "${S}"-static/build/debug/lib${PN}{,-js-none}.a
if use static ; then
dobin "${S}"-static/build/debug/mu{tool,draw}
use X && dobin "${S}"-static/build/debug/${PN}-x11
fi
use X && dosym ${PN}-x11 /usr/bin/${PN}
insinto /usr/$(get_libdir)/pkgconfig
doins platform/debian/${PN}.pc
dodoc README docs/*.{txt,c}
}
+4 -2
View File
@@ -15,9 +15,11 @@ LICENSE="AGPL-3"
MY_SOVER=1.7
SLOT="0/${MY_SOVER}"
KEYWORDS=""
IUSE="X vanilla curl openssl static static-libs"
IUSE="X vanilla curl libressl openssl static static-libs"
LIB_DEPEND="dev-libs/openssl[static-libs?]
LIB_DEPEND="
!libressl? ( dev-libs/openssl:0[static-libs?] )
libressl? ( dev-libs/libressl[static-libs?] )
media-libs/freetype:2[static-libs?]
media-libs/jbig2dec[static-libs?]
media-libs/openjpeg:2[static-libs?]
+37
View File
@@ -0,0 +1,37 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils autotools systemd
DESCRIPTION="An open-source implementation of Service Location Protocol"
HOMEPAGE="http://www.openslp.org/"
SRC_URI="mirror://sourceforge/openslp/${P}.tar.gz"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="libressl"
RESTRICT="test"
DEPEND="
!libressl? ( dev-libs/openssl:0 )
libressl? ( dev-libs/libressl )
"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.0.0-cflags.patch
eautoreconf
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS FAQ ChangeLog NEWS README* THANKS
rm -rfv "${D}"/usr/doc
dohtml -r .
newinitd "${FILESDIR}"/slpd-init slpd
systemd_dounit "${FILESDIR}"/slpd.service
}
+226
View File
@@ -0,0 +1,226 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils
DESCRIPTION="Network focused portable C++ class library providing high level functions"
HOMEPAGE="http://www.opalvoip.org/"
SRC_URI="mirror://sourceforge/opalvoip/${P}.tar.bz2
doc? ( mirror://sourceforge/opalvoip/${P}-htmldoc.tar.bz2 )"
LICENSE="MPL-1.0"
SLOT="0/${PV}"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
# default enabled are features from 'minsize', the most used according to ptlib
IUSE="alsa +asn debug doc +dtmf examples ffmpeg ftp +http ipv6
xmpp ldap libressl lua mail odbc oss pch pulseaudio remote sasl sdl serial
shmvideo snmp soap socks +sound ssl static-libs +stun telnet tts v4l +video
vxml wav xml xmlrpc"
CDEPEND="
ldap? ( net-nds/openldap )
lua? ( dev-lang/lua )
odbc? ( dev-db/unixODBC )
pulseaudio? ( media-sound/pulseaudio )
sasl? ( dev-libs/cyrus-sasl:2 )
sdl? ( media-libs/libsdl )
sound? ( alsa? ( media-libs/alsa-lib ) )
ssl? (
!libressl? ( dev-libs/openssl:0 )
libressl? ( dev-libs/libressl )
)
video? ( v4l? ( media-libs/libv4l ) )
xml? ( dev-libs/expat )
!!dev-libs/pwlib"
RDEPEND="${CDEPEND}
ffmpeg? ( virtual/ffmpeg )"
DEPEND="${CDEPEND}
virtual/pkgconfig
sys-devel/bison
sys-devel/flex
video? ( v4l? ( sys-kernel/linux-headers ) )"
# NOTES:
# media-libs/libdc1394:2 should be supported but headers location have changed
# tools/ directory is ignored
# avc plugin is disabled to fix bug 276514, see upstream bug 2821744
REQUIRED_USE="sdl? ( video )
xmpp? ( xml )
vxml? ( http tts xml )
xmlrpc? ( http xml )
soap? ( http xml )"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.10.9-svn_revision_override.patch" \
"${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch" \
"${FILESDIR}/${PN}-2.12.4-respect_cxxflags.patch" \
"${FILESDIR}/${PN}-2.12.4-sdl-linking.patch"
if ! use telnet; then
epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch"
fi
# remove visual studio related files from samples/
if use examples; then
rm -f samples/*/*.vcproj
rm -f samples/*/*.sln
rm -f samples/*/*.dsp
rm -f samples/*/*.dsw
fi
if [[ ! -z ${TARGET+set} ]]; then
ewarn "TARGET variable is set. Removing as it would break the build, bug #465722."
unset TARGET
fi
}
src_configure() {
local myconf=""
# plugins are disabled only if ! sound and ! video
if ! use sound && ! use video; then
myconf+=" --disable-plugins"
else
myconf+=" --enable-plugins"
fi
# minsize: presets of features (overwritten by use flags)
# ansi-bool, atomicity: there is no reason to disable those features
# internalregex: we want to use system one
# sunaudio and bsdvideo are respectively for SunOS and BSD's
# appshare, vfw: only for windows
# samples: no need to build samples
# avc: disabled, bug 276514, upstream bug 2821744
# mlib: SUN mediaLibs. Not in tree.
# pipechan, configfile, resolver, url: force enabling
econf ${myconf} \
--disable-minsize \
--enable-ansi-bool \
--enable-atomicity \
--disable-internalregex \
--disable-sunaudio \
--disable-bsdvideo \
--disable-appshare \
--disable-vfw \
--disable-samples \
--disable-avc \
--disable-mlib \
--enable-configfile \
--enable-pipechan \
--enable-resolver \
--enable-url \
$(use_enable alsa) \
$(use_enable asn) \
$(use_enable debug exceptions) \
$(use_enable debug memcheck) \
$(use_enable debug tracing) \
$(use_enable dtmf) \
--disable-esd \
$(use_enable ffmpeg ffvdev) \
$(use_enable ftp) \
$(use_enable http) \
$(use_enable http httpforms) \
$(use_enable http httpsvc) \
--disable-dc \
$(use_enable ipv6) \
$(use_enable xmpp jabber) \
$(use_enable ldap openldap) \
$(use_enable lua) \
$(use_enable mail pop3smtp) \
$(use_enable pulseaudio pulse) \
$(use_enable odbc) \
$(use_enable oss) \
$(use_enable pch) \
$(use_enable remote remconn) \
$(use_enable sasl) \
$(use_enable sdl) \
$(use_enable serial) \
$(use_enable shmvideo) \
$(use_enable snmp) \
$(use_enable soap) \
$(use_enable socks) \
$(use_enable sound audio) \
$(use_enable ssl openssl) \
$(use_enable stun) \
$(use_enable telnet) \
$(use_enable tts) \
--disable-v4l \
$(use_enable v4l v4l2) \
$(use_enable video) $(use_enable video vidfile) \
$(use_enable vxml) \
$(use_enable wav wavfile) \
$(use_enable xml expat) \
$(use_enable xmlrpc)
}
src_compile() {
local makeopts=""
tc-env_build
use debug && makeopts="debug"
emake ${makeopts}
}
src_install() {
local makeopts=""
use debug && makeopts="DEBUG=1"
emake DESTDIR="${D}" ${makeopts} install
# Get rid of static libraries if not requested
# There seems to be no easy way to disable this in the build system
if ! use static-libs; then
rm -v "${D}"/usr/lib*/*.a || die
fi
if use doc; then
dohtml -r "${WORKDIR}"/html/*
fi
dodoc History.txt ReadMe.txt ReadMe_QOS.txt
if use sound || use video; then
newdoc plugins/ReadMe.txt ReadMe-Plugins.txt
fi
if use examples; then
local exampledir="/usr/share/doc/${PF}/examples"
local basedir="samples"
local sampledirs="`ls samples --hide=Makefile`"
# first, install Makefile
insinto ${exampledir}/
doins ${basedir}/Makefile || die "doins failed"
# now, all examples
for x in ${sampledirs}; do
insinto ${exampledir}/${x}/
doins ${basedir}/${x}/* || die "doins failed"
done
fi
}
pkg_postinst() {
if use examples; then
ewarn "All examples have been installed, some of them will not work on your system"
ewarn "it will depend of the enabled USE flags."
ewarn "To test examples, you have to run PTLIBDIR=/usr/share/ptlib make"
fi
if ! use sound || ! use video; then
ewarn "You have disabled sound or video USE flags."
ewarn "Most audio/video have been disabled silently even if enabled via USE flags."
ewarn "Having a feature enabled via use flag but disabled can lead to issues."
fi
ewarn "If you've just removed pwlib to install ptlib, some packages will be broken."
ewarn "Please use 'revdep-rebuild' from app-portage/gentoolkit to check."
ewarn "If some packages need pwlib, consider removing ptlib and re-installing pwlib"
ewarn "or help us to make them live together."
}
@@ -0,0 +1,109 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit cmake-utils vcs-snapshot
if [[ ${PV} != 9999* ]]; then
COMMIT="aa2181dcf2dd98693767ba738c5b2ad8c3d742d4"
SRC_URI="https://github.com/FreeRDP/FreeRDP/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="alpha amd64 arm ppc ppc64 x86"
else
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="git://github.com/FreeRDP/FreeRDP.git
https://github.com/FreeRDP/FreeRDP.git"
fi
DESCRIPTION="Free implementation of the Remote Desktop Protocol"
HOMEPAGE="http://www.freerdp.com/"
LICENSE="Apache-2.0"
SLOT="0/1.2"
IUSE="alsa +client cpu_flags_x86_sse2 cups debug doc ffmpeg gstreamer jpeg
libressl neon pulseaudio server smartcard test usb wayland X xinerama xv"
RDEPEND="
!libressl? ( dev-libs/openssl:0 )
libressl? ( dev-libs/libressl )
sys-libs/zlib:0
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
client? (
usb? (
virtual/libudev:0=
sys-apps/util-linux:0=
dev-libs/dbus-glib:0=
virtual/libusb:1=
)
X? (
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrender
xinerama? ( x11-libs/libXinerama )
xv? ( x11-libs/libXv )
)
)
ffmpeg? ( >=virtual/ffmpeg-9 )
gstreamer? (
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
x11-libs/libXrandr
)
jpeg? ( virtual/jpeg:0 )
pulseaudio? ( media-sound/pulseaudio )
server? (
X? (
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
xinerama? ( x11-libs/libXinerama )
)
)
smartcard? ( sys-apps/pcsc-lite )
wayland? ( dev-libs/wayland )
X? (
x11-libs/libX11
x11-libs/libxkbfile
)
"
DEPEND="${RDEPEND}
virtual/pkgconfig
client? ( X? ( doc? (
app-text/docbook-xml-dtd:4.1.2
app-text/xmlto
) ) )
"
DOCS=( README )
PATCHES=( "${FILESDIR}/freerdp-armfp.patch" "${FILESDIR}/freerdp-ffmpeg29.patch" )
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_with alsa ALSA)
$(cmake-utils_use_with client CLIENT)
$(cmake-utils_use_with cups CUPS)
$(cmake-utils_use_with debug DEBUG_ALL)
$(cmake-utils_use_with doc MANPAGES)
$(cmake-utils_use_with ffmpeg FFMPEG)
$(cmake-utils_use_with gstreamer GSTREAMER_1_0)
$(cmake-utils_use_with jpeg JPEG)
$(cmake-utils_use_with neon NEON)
$(cmake-utils_use_with pulseaudio PULSE)
$(cmake-utils_use_with server SERVER)
$(cmake-utils_use_with smartcard PCSC)
$(cmake-utils_use_with cpu_flags_x86_sse2 SSE2)
$(cmake-utils_use usb CHANNEL_URBDRC)
$(cmake-utils_use_with X X11)
$(cmake-utils_use_with xinerama XINERAMA)
$(cmake-utils_use_with xv XV)
$(cmake-utils_use_build test TESTING)
$(cmake-utils_use_with wayland WAYLAND)
)
cmake-utils_src_configure
}
+3 -2
View File
@@ -23,10 +23,11 @@ HOMEPAGE="http://www.freerdp.com/"
LICENSE="Apache-2.0"
SLOT="0/1.2"
IUSE="alsa +client cpu_flags_x86_sse2 cups debug doc ffmpeg gstreamer jpeg
neon pulseaudio server smartcard test usb wayland X xinerama xv"
libressl neon pulseaudio server smartcard test usb wayland X xinerama xv"
RDEPEND="
dev-libs/openssl:0
!libressl? ( dev-libs/openssl:0 )
libressl? ( dev-libs/libressl )
sys-libs/zlib:0
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
@@ -0,0 +1,217 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit base autotools eutils depend.php readme.gentoo user systemd
DESCRIPTION="Lightweight high-performance web server"
HOMEPAGE="http://www.lighttpd.net/"
SRC_URI="http://download.lighttpd.net/lighttpd/releases-1.4.x/${P}.tar.xz"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
IUSE="bzip2 doc fam gdbm ipv6 kerberos ldap libev libressl lua minimal mmap memcache mysql pcre php rrdtool selinux ssl test webdav xattr zlib"
REQUIRED_USE="kerberos? ( ssl !libressl )"
CDEPEND="
bzip2? ( app-arch/bzip2 )
fam? ( virtual/fam )
gdbm? ( sys-libs/gdbm )
ldap? ( >=net-nds/openldap-2.1.26 )
libev? ( >=dev-libs/libev-4.01 )
lua? ( >=dev-lang/lua-5.1:= )
memcache? ( dev-libs/libmemcache )
mysql? ( >=virtual/mysql-4.0 )
pcre? ( >=dev-libs/libpcre-3.1 )
php? ( dev-lang/php:*[cgi] )
rrdtool? ( net-analyzer/rrdtool )
ssl? (
!libressl? ( >=dev-libs/openssl-0.9.7:0=[kerberos?] )
libressl? ( dev-libs/libressl:= )
)
webdav? (
dev-libs/libxml2
>=dev-db/sqlite-3
sys-fs/e2fsprogs
)
xattr? ( kernel_linux? ( sys-apps/attr ) )
zlib? ( >=sys-libs/zlib-1.1 )"
DEPEND="${CDEPEND}
virtual/pkgconfig
doc? ( dev-python/docutils )
test? (
virtual/perl-Test-Harness
dev-libs/fcgi
)"
RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-apache )
"
# update certain parts of lighttpd.conf based on conditionals
update_config() {
local config="${D}/etc/lighttpd/lighttpd.conf"
# enable php/mod_fastcgi settings
use php && { sed -i -e 's|#.*\(include.*fastcgi.*$\)|\1|' ${config} || die; }
# enable stat() caching
use fam && { sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die; }
# automatically listen on IPv6 if built with USE=ipv6. Bug #234987
use ipv6 && { sed -i -e 's|# server.use-ipv6|server.use-ipv6|' ${config} || die; }
}
# remove non-essential stuff (for USE=minimal)
remove_non_essential() {
local libdir="${D}/usr/$(get_libdir)/${PN}"
# text docs
use doc || rm -fr "${D}"/usr/share/doc/${PF}/txt
# non-essential modules
rm -f \
${libdir}/mod_{compress,evhost,expire,proxy,scgi,secdownload,simple_vhost,status,setenv,trigger*,usertrack}.*
# allow users to keep some based on USE flags
use pcre || rm -f ${libdir}/mod_{ssi,re{direct,write}}.*
use webdav || rm -f ${libdir}/mod_webdav.*
use mysql || rm -f ${libdir}/mod_mysql_vhost.*
use lua || rm -f ${libdir}/mod_{cml,magnet}.*
use rrdtool || rm -f ${libdir}/mod_rrdtool.*
use zlib || rm -f ${libdir}/mod_compress.*
}
pkg_setup() {
if ! use pcre ; then
ewarn "It is highly recommended that you build ${PN}"
ewarn "with perl regular expressions support via USE=pcre."
ewarn "Otherwise you lose support for some core options such"
ewarn "as conditionals and modules such as mod_re{write,direct}"
ewarn "and mod_ssi."
fi
if use mmap; then
ewarn "You have enabled the mmap option. This option may allow"
ewarn "local users to trigger SIGBUG crashes. Use this option"
ewarn "with EXTRA care."
fi
enewgroup lighttpd
enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd
DOC_CONTENTS="IPv6 migration guide:\n
http://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config"
}
src_prepare() {
base_src_prepare
#dev-python/docutils installs rst2html.py not rst2html
sed -i -e 's|\(rst2html\)|\1.py|g' doc/outdated/Makefile.am || \
die "sed doc/Makefile.am failed"
eautoreconf
}
src_configure() {
econf --libdir=/usr/$(get_libdir)/${PN} \
--enable-lfs \
$(use_enable ipv6) \
$(use_enable mmap) \
$(use_with bzip2) \
$(use_with fam) \
$(use_with gdbm) \
$(use_with kerberos kerberos5) \
$(use_with ldap) \
$(use_with libev) \
$(use_with lua) \
$(use_with memcache) \
$(use_with mysql) \
$(use_with pcre) \
$(use_with ssl openssl) \
$(use_with webdav webdav-props) \
$(use_with webdav webdav-locks) \
$(use_with xattr attr) \
$(use_with zlib)
}
src_compile() {
emake
if use doc ; then
einfo "Building HTML documentation"
cd doc || die
emake html
fi
}
src_test() {
if [[ ${EUID} -eq 0 ]]; then
default_src_test
else
ewarn "test skipped, please re-run as root if you wish to test ${PN}"
fi
}
src_install() {
emake DESTDIR="${D}" install
# init script stuff
newinitd "${FILESDIR}"/lighttpd.initd lighttpd
newconfd "${FILESDIR}"/lighttpd.confd lighttpd
use fam && has_version app-admin/fam && \
{ sed -i 's/after famd/need famd/g' "${D}"/etc/init.d/lighttpd || die; }
# configs
insinto /etc/lighttpd
doins "${FILESDIR}"/conf/lighttpd.conf
doins "${FILESDIR}"/conf/mime-types.conf
doins "${FILESDIR}"/conf/mod_cgi.conf
doins "${FILESDIR}"/conf/mod_fastcgi.conf
# update lighttpd.conf directives based on conditionals
update_config
# docs
dodoc AUTHORS README NEWS doc/scripts/*.sh
newdoc doc/config//lighttpd.conf lighttpd.conf.distrib
use ipv6 && readme.gentoo_create_doc
use doc && dohtml -r doc/*
docinto txt
dodoc doc/outdated/*.txt
# logrotate
insinto /etc/logrotate.d
newins "${FILESDIR}"/lighttpd.logrotate-r1 lighttpd
keepdir /var/l{ib,og}/lighttpd /var/www/localhost/htdocs
fowners lighttpd:lighttpd /var/l{ib,og}/lighttpd
fperms 0750 /var/l{ib,og}/lighttpd
#spawn-fcgi may optionally be installed via www-servers/spawn-fcgi
rm -f "${D}"/usr/bin/spawn-fcgi "${D}"/usr/share/man/man1/spawn-fcgi.*
use minimal && remove_non_essential
systemd_dounit "${FILESDIR}/${PN}.service"
systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"
}
pkg_postinst () {
use ipv6 && readme.gentoo_print_elog
if [[ -f ${ROOT}etc/conf.d/spawn-fcgi.conf ]] ; then
einfo "spawn-fcgi is now provided by www-servers/spawn-fcgi."
einfo "spawn-fcgi's init script configuration is now located"
einfo "at /etc/conf.d/spawn-fcgi."
fi
if [[ -f ${ROOT}etc/lighttpd.conf ]] ; then
elog "Gentoo has a customized configuration,"
elog "which is now located in /etc/lighttpd. Please migrate your"
elog "existing configuration."
fi
}