summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-11 21:42:14 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-11 21:42:14 -0400
commit9e9e309bb6763f17f62d12e0392a4f786c7d31fd (patch)
tree04c52e69777ef9b051f8a9a89bf64dd6d1dca039 /www-servers
parentwww-servers/uwsgi: add libressl support (diff)
downloadgentoo-9e9e309bb6763f17f62d12e0392a4f786c7d31fd.tar.gz
gentoo-9e9e309bb6763f17f62d12e0392a4f786c7d31fd.tar.bz2
gentoo-9e9e309bb6763f17f62d12e0392a4f786c7d31fd.zip
www-servers/webfs: add libressl support
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/webfs/webfs-1.21-r4.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/www-servers/webfs/webfs-1.21-r4.ebuild b/www-servers/webfs/webfs-1.21-r4.ebuild
new file mode 100644
index 000000000000..219938b780d0
--- /dev/null
+++ b/www-servers/webfs/webfs-1.21-r4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Lightweight HTTP server for static content"
+SRC_URI="http://dl.bytesex.org/releases/${PN}/${P}.tar.gz"
+HOMEPAGE="http://linux.bytesex.org/misc/webfs.html"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~arm-linux ~x86-linux"
+IUSE="libressl ssl threads"
+
+DEPEND="
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )"
+
+RDEPEND="${DEPEND}
+ app-misc/mime-types"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-Variables.mk-dont-strip-binaries-on-install.patch"
+ epatch "${FILESDIR}/${P}-CVE-2013-0347.patch"
+ sed -e "s:/etc/mime.types:${EPREFIX}\\0:" -i GNUmakefile || die "sed failed"
+}
+
+src_compile() {
+ local myconf
+ use ssl || myconf="${myconf} USE_SSL=no"
+ use threads && myconf="${myconf} USE_THREADS=yes"
+
+ emake prefix="${EPREFIX}/usr" ${myconf}
+}
+
+src_install() {
+ local myconf
+ use ssl || myconf="${myconf} USE_SSL=no"
+ use threads && myconf="${myconf} USE_THREADS=yes"
+ einstall ${myconf} mandir="${ED}/usr/share/man"
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ dodoc README
+}
+
+pkg_preinst() {
+ # Fix existing log permissions for bug #458892.
+ chmod 0600 "${EROOT}/var/log/webfsd.log" 2>/dev/null
+}