diff options
author | Julian Ospald <hasufell@gentoo.org> | 2014-05-22 13:16:22 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2014-05-22 13:16:22 +0000 |
commit | 7969fcc6eb5b9e13e38c23613f59879510aa13b5 (patch) | |
tree | c4ab6228ab2d4c1481629b688755ef2e77fce284 /www-servers/hiawatha | |
parent | app-office/texmaker: Version BUmp (diff) | |
download | gentoo-2-7969fcc6eb5b9e13e38c23613f59879510aa13b5.tar.gz gentoo-2-7969fcc6eb5b9e13e38c23613f59879510aa13b5.tar.bz2 gentoo-2-7969fcc6eb5b9e13e38c23613f59879510aa13b5.zip |
initial import wrt #65259
(Portage version: 2.2.10/cvs/Linux x86_64, RepoMan options: --ignore-arches, signed Manifest commit with key BDEED020)
Diffstat (limited to 'www-servers/hiawatha')
-rw-r--r-- | www-servers/hiawatha/ChangeLog | 10 | ||||
-rw-r--r-- | www-servers/hiawatha/Manifest | 5 | ||||
-rw-r--r-- | www-servers/hiawatha/files/hiawatha.initd | 26 | ||||
-rw-r--r-- | www-servers/hiawatha/hiawatha-9.5.ebuild | 86 | ||||
-rw-r--r-- | www-servers/hiawatha/metadata.xml | 19 |
5 files changed, 146 insertions, 0 deletions
diff --git a/www-servers/hiawatha/ChangeLog b/www-servers/hiawatha/ChangeLog new file mode 100644 index 000000000000..1d8bc77d8f85 --- /dev/null +++ b/www-servers/hiawatha/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for www-servers/hiawatha +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/hiawatha/ChangeLog,v 1.1 2014/05/22 13:16:21 hasufell Exp $ + +*hiawatha-9.5 (22 May 2014) + + 22 May 2014; Julian Ospald <hasufell@gentoo.org> +hiawatha-9.5.ebuild, + +files/hiawatha.initd, +metadata.xml: + initial import wrt #65259 + diff --git a/www-servers/hiawatha/Manifest b/www-servers/hiawatha/Manifest new file mode 100644 index 000000000000..c245ddffc377 --- /dev/null +++ b/www-servers/hiawatha/Manifest @@ -0,0 +1,5 @@ +AUX hiawatha.initd 466 SHA256 9be2cb8ee4e7b4b6122a934ee66686612d6b6a414f5bf82f62d77e99bf3d5b2b SHA512 0e6bc8d648a6e8293ba3a3c15c8b0a2e06dab08fe20af9d1a7a53f8104790ade946fc87357e394ec8bfa4dc976a4f1a62e0c7576459d4401600beed1bfffe215 WHIRLPOOL b0b4b16755a36d4881438bd018be8b42afa3c8a4c4bfd3d06ecd9ec8198eb3456caa82e6b1054a26d0ba025cb47a19f9670ea2543a95a2b4913af6ce90ff5735 +DIST hiawatha-9.5.tar.gz 847545 SHA256 c181011db1af187006190fc186689a0707a6f1e7b524c2a4347840e8fdf68b4f SHA512 54c97b6cb7a94cbccc5e1dd0a8c78b9f5f44da250309e09de8601e34bea9ae56a02c9ec7c9eed6cf3814bc98733cc6143ddc37dfa44ea1add8f4f63d56d3e7a3 WHIRLPOOL a612ff56ac0a649bb339197cfdddb67106c9657fe4a25bd8c35cb18fec222557da8e11360570c0f1db9982f9b41fb175e02ab71c5caf034ca6b83f98a2d90a35 +EBUILD hiawatha-9.5.ebuild 2174 SHA256 6b9d63e9108ed66dc2c018e5c7baa54e97911769d436e8c9a45e016e1c9cea61 SHA512 be8563e8c3b69f636b323df4a23d34ff9975cc1327a062512fef1d6d2e0d287e72215eb3c40c2b96c06f2ff48baa6439d892bf4356f9e7f47534d664fc10350d WHIRLPOOL 56a887224c4744a4288dfadf5a37f11790efc0ad32d80969bd94debd771b5d5b425369af4efd8f5cbf7d9cd73977c0f23f10cbef3613fa073603076dd421f79b +MISC ChangeLog 292 SHA256 26cf4bc2212eaa80c2e3211d6624cb02afb512092ceabe77035d071cc95c6423 SHA512 addcef22523daea25e7b56f6b560a816ca868b53397542845ce50774a38a8dc5099ebecda1ce815deda6c171f8352478a8686355cb8e9fe5b0cc2e843eb1eaa6 WHIRLPOOL c1037939e2dad5473dcef4c164f7313243a9d70f211da5ca6864a718be69787501c438dc4a6cc70a6e331223d3bc5727bc1045de9c49a9b6d79823734d335ba3 +MISC metadata.xml 712 SHA256 bdeebe9f480e4506078a1ada7f8ab34d618d35de402f53c26b6ff6489c9688a9 SHA512 3c7504874858971052b0646078c8fde703c051f7301b740428bd144f03a4c159517d003474504ba8666982535e130cee89c544c70e8c6833996323ba517ca6d3 WHIRLPOOL 92e4b695e3b4a97e9204d73fa9a31886933887b48fe1c8ce8ec7129fd2bf68d8e9e36b2a5e0e342e7a2c72f147bd37be7371d412a300099ef8d120576e45f941 diff --git a/www-servers/hiawatha/files/hiawatha.initd b/www-servers/hiawatha/files/hiawatha.initd new file mode 100644 index 000000000000..fe7537539a54 --- /dev/null +++ b/www-servers/hiawatha/files/hiawatha.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/hiawatha/files/hiawatha.initd,v 1.1 2014/05/22 13:16:22 hasufell Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon \ + --start \ + --exec "/usr/sbin/hiawatha" \ + --pidfile "/var/run/hiawatha.pid" + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon \ + --stop \ + --exec "/usr/sbin/hiawatha" \ + --pidfile "/var/run/hiawatha.pid" + eend $? +} diff --git a/www-servers/hiawatha/hiawatha-9.5.ebuild b/www-servers/hiawatha/hiawatha-9.5.ebuild new file mode 100644 index 000000000000..fd1217953dff --- /dev/null +++ b/www-servers/hiawatha/hiawatha-9.5.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/hiawatha/hiawatha-9.5.ebuild,v 1.1 2014/05/22 13:16:21 hasufell Exp $ + +EAPI=5 + +CMAKE_MIN_VERSION="2.8.4" + +inherit cmake-utils user + +DESCRIPTION="Advanced and secure webserver" +HOMEPAGE="http://www.hiawatha-webserver.org" +SRC_URI="http://www.hiawatha-webserver.org/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug +cache ipv6 monitor +rewrite rproxy ssl tomahawk +xslt" + +RDEPEND=" + ssl? ( >=net-libs/polarssl-1.3 ) + xslt? ( dev-libs/libxml2 + dev-libs/libxslt )" + +DEPEND="${RDEPEND}" +PDEPEND="monitor? ( www-apps/hiawatha-monitor )" + +# set this in make.conf if you want to use a different user/group +HIAWATHA_USER=${HIAWATHA_USER:-hiawatha} +HIAWATHA_GROUP=${HIAWATHA_GROUP:-hiawatha} + +pkg_setup() { + enewgroup ${HIAWATHA_GROUP} + enewuser ${HIAWATHA_USER} -1 -1 /var/www/hiawatha ${HIAWATHA_GROUP} +} + +src_prepare() { + rm -r polarssl || die + + grep '#ServerId =' config/hiawatha.conf.in 1>/dev/null || die + sed -i \ + -e "s/#ServerId =.*$/ServerId = ${HIAWATHA_USER}/" \ + config/hiawatha.conf.in || die +} + +src_configure() { + local mycmakeargs=( + -DCONFIG_DIR:STRING=/etc/hiawatha + $(cmake-utils_use_enable cache CACHE) + $(cmake-utils_use_enable debug DEBUG) + $(cmake-utils_use_enable ipv6 IPV6) + $(cmake-utils_use_enable kernel_linux LOADCHECK) + $(cmake-utils_use_enable monitor MONITOR) + $(cmake-utils_use_enable rproxy RPROXY) + $(cmake-utils_use_enable ssl SSL) + $(cmake-utils_use_enable tomahawk TOMAHAWK) + $(cmake-utils_use_enable rewrite TOOLKIT) + $(cmake-utils_use_enable xslt XSLT) + -DLOG_DIR:STRING=/var/log/hiawatha + -DPID_DIR:STRING=/var/run + -DUSE_SHARED_POLARSSL_LIBRARY=ON + -DUSE_SYSTEM_POLARSSL=ON + -DWEBROOT_DIR:STRING=/var/www/hiawatha + -DWORK_DIR:STRING=/var/lib/hiawatha + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + rm -rf "${ED%%/}"/var/www/hiawatha/* + + newinitd "${FILESDIR}"/hiawatha.initd hiawatha + + local i + for i in /var/{lib,log}/hiawatha ; do + keepdir ${i} + fowners ${HIAWATHA_USER}:${HIAWATHA_GROUP} ${i} + fperms 0750 ${i} + done + + keepdir /var/www/hiawatha + fowners ${HIAWATHA_USER}:${HIAWATHA_GROUP} /var/www/hiawatha +} diff --git a/www-servers/hiawatha/metadata.xml b/www-servers/hiawatha/metadata.xml new file mode 100644 index 000000000000..322ebbc3b9c9 --- /dev/null +++ b/www-servers/hiawatha/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hasufell@gentoo.org</email> + </maintainer> + <use> + <flag name='cache'>Enable caching of content.</flag> + <flag name='monitor'>Pull in www-apps/hiawatha-monitor.</flag> + <flag name='rewrite'>Enable the rewrite toolkit.</flag> + <flag name='rproxy'>Allow Hiawatha to serve as a reverse proxy.</flag> + <flag name='tomahawk'>Enable Tomahawk control server.</flag> + <flag name='xslt'>Enable XSLT support. + This is also needed for directory listings.</flag> + </use> + <upstream> + <remote-id type='github'>hsleisink/hiawatha</remote-id> + </upstream> +</pkgmetadata> |