summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-04-20 16:51:45 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-04-20 16:51:45 +0200
commitbf2d3e103c99284e1e93948a5b50b41feb253196 (patch)
treef6d0c216653a19150e5092ff814330350d022265
parent95b46451fadf62bc1f40989b3dabb550efd756e1 (diff)
downloadoverlay-bf2d3e103c99284e1e93948a5b50b41feb253196.tar.gz
overlay-bf2d3e103c99284e1e93948a5b50b41feb253196.tar.bz2
overlay-bf2d3e103c99284e1e93948a5b50b41feb253196.zip
Hiawatha-9.0
-rw-r--r--www-servers/hiawatha/Manifest6
-rw-r--r--www-servers/hiawatha/files/hiawatha-9.0-no-bundled-polarssl.patch30
-rw-r--r--www-servers/hiawatha/files/hiawatha.initd22
-rw-r--r--www-servers/hiawatha/hiawatha-9.0.ebuild93
-rw-r--r--www-servers/hiawatha/metadata.xml15
5 files changed, 166 insertions, 0 deletions
diff --git a/www-servers/hiawatha/Manifest b/www-servers/hiawatha/Manifest
new file mode 100644
index 0000000..2fea796
--- /dev/null
+++ b/www-servers/hiawatha/Manifest
@@ -0,0 +1,6 @@
+AUX hiawatha-9.0-no-bundled-polarssl.patch 1136 SHA256 601979f71c563f48df0a9dc414af11853252724d225d0abad450ddbf0b10661f SHA512 51101f4cc0504975d96b47c7ac54178dc89a6d9150db42a2030f909b6608015d4027b8a4d42bcb8a64da121a4e0f7f1f2ada8efc403eba4611506a6741b1edce WHIRLPOOL f80a17174082281d5718bd9ffce5097008bf4d683795c88fd12744b8d33426bcf002973d29b4d78003bc2e316fa222f4539fff5b434dfa4bb1f881f7a84b4216
+AUX hiawatha.initd 450 SHA256 131f1fa9277edc742f92a69fc3c4bf7880864ef7ac93633a7170e8452a4e4c13 SHA512 dfa3b58f4fdb9400a2c9ce77740bc1c175ad5206429170ba7336cdd12adabb3f6be9cce911be015f404a65c5d10807854427a186ee90405662ee43e3e4ab8824 WHIRLPOOL 39264768b25aae0e79745e010545f36df300894091d02198eb28d6313b89241dd1bca9fbfab2fc396b376fbb9a95b79db40435387d92b9e62a37b1506ff734a9
+DIST hiawatha-9.0.tar.gz 666274 SHA256 5e40119afb050b11737250c08d89ac7ba7472645738a48c06aa79979a19729fc SHA512 395333c1477c42cce9cb5540a7e6589afb16103bd78dd9bbd06df598ed04a3e29f2dfe19c20cf73c258de6cc00653e97aa204bd18f391a919c7129ebff9d6e5d WHIRLPOOL 691cc874d7079b8146871abf7c2733c62cd21154b8fbd04c2aa6d1ad438ab93e4ce03608e52d5b825fda6169f2e8f7c08e15f593c90837e54bba629a2d4f5041
+DIST monitor-0.6.tar.gz 538567 SHA256 8b0627f5fd78c680dd56afb49fe34c96ff252d41582b152c08153a2b6baccf08 SHA512 07731b821ea7fcde83f93af472786d6c4e816544f2e7c8bfa3669f042af19f917a772af0dbfeba786832865d0aa8794af5b248d8d7935a49d7fa7634b6903fad WHIRLPOOL 8d065dbc4e67f7eda047896a94e7303b668da055e9375617c8f4c2f30858673c0ba6fa7e7d3048756637366e940e2b24493c086e452dce3657fc42ac7e20d643
+EBUILD hiawatha-9.0.ebuild 2376 SHA256 38867fd4d97bd34a46917596c35d7f4430f2b71039c8b25eff5708a4c9befb9e SHA512 7e70f46899390101b926a918b5dd99623aa4303fe58799b3bc4817879891244259b2f12679ef0be3372a9cba9f714f4fc92df53d76107097f79a36905692ed4c WHIRLPOOL 06a73ca3a8c7656ce6ba723793b559fb67e9b68151272d40c7a8a323fdbb6cdcc8419cd2d2be71ce78aaf00259764ed9a73197d94c7c1a1cc91a773a125fd726
+MISC metadata.xml 660 SHA256 b3429ec1e575b6e685c4dad4667e1f13020be4edeafe8ebba505dfedefaa7cd2 SHA512 1e834650156e5504569a53bd555b15e5840b0fca5f19d87479d813b4e4fd4782c8b97e5c4461ce2af0235940bc2f01fb959c3d3fff9a6610250f9ab6fff1e9ca WHIRLPOOL 380c9fa8a9ff1cb7d48ddeea861c60562ab16cbaba53aaed49fa4f2c97eaba71e2943b442235d4f4b324988332843159a5a113bdefebf71f6a811cf63c7b998d
diff --git a/www-servers/hiawatha/files/hiawatha-9.0-no-bundled-polarssl.patch b/www-servers/hiawatha/files/hiawatha-9.0-no-bundled-polarssl.patch
new file mode 100644
index 0000000..d48afd4
--- /dev/null
+++ b/www-servers/hiawatha/files/hiawatha-9.0-no-bundled-polarssl.patch
@@ -0,0 +1,30 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1f4a312..0d8c6ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -92,15 +92,11 @@ include(CPack)
+
+ # PolarSSL
+ if(ENABLE_SSL)
+- option(USE_SHARED_POLARSSL_LIBRARY "Build PolarSSL as a shared library." ON)
+- set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/hiawatha)
+- set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/hiawatha)
+- add_subdirectory(polarssl)
+- set(POLARSSL_LIBRARY "polarssl")
++ find_library(POLARSSL_LIBRARY polarssl)
+ endif()
+
+ # Hiawatha
+-include_directories(${CMAKE_CURRENT_BINARY_DIR} polarssl/include)
++include_directories(${CMAKE_CURRENT_BINARY_DIR})
+ if(ENABLE_XSLT)
+ include_directories(${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_DIR})
+ endif()
+@@ -124,7 +120,6 @@ target_link_libraries(wigwam ${CRYPT_LIBRARY})
+ target_link_libraries(hiawatha ${CRYPT_LIBRARY} pthread ${Z_LIBRARY})
+ if(ENABLE_SSL)
+ target_link_libraries(hiawatha ${POLARSSL_LIBRARY})
+- set_target_properties(hiawatha PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/hiawatha)
+ endif()
+ if(ENABLE_XSLT)
+ target_link_libraries(hiawatha ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES})
diff --git a/www-servers/hiawatha/files/hiawatha.initd b/www-servers/hiawatha/files/hiawatha.initd
new file mode 100644
index 0000000..fc6d3a4
--- /dev/null
+++ b/www-servers/hiawatha/files/hiawatha.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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.0.ebuild b/www-servers/hiawatha/hiawatha-9.0.ebuild
new file mode 100644
index 0000000..703129c
--- /dev/null
+++ b/www-servers/hiawatha/hiawatha-9.0.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+CMAKE_MIN_VERSION="2.8.4"
+
+M_P="monitor-0.6"
+
+inherit cmake-utils
+
+DESCRIPTION="Advanced and secure webserver"
+HOMEPAGE="http://www.hiawatha-webserver.org"
+SRC_URI="http://www.hiawatha-webserver.org/files/${P}.tar.gz
+ monitor? ( http://www.hiawatha-webserver.org/files/${M_P}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug +cache chroot ipv6 monitor +rewrite rproxy ssl tomahawk xslt"
+
+DEPEND="
+ ssl? ( >=net-libs/polarssl-1.2 )
+ xslt? ( dev-libs/libxslt
+ dev-libs/libxml2 )
+ "
+
+RDEPEND="${DEPEND}
+ monitor? ( virtual/cron
+ =dev-lang/php-5*[mysql]
+ virtual/mysql )
+ "
+
+REQUIRED_USE="monitor? ( xslt )"
+
+PATCHES=("${FILESDIR}"/${P}-no-bundled-polarssl.patch)
+
+src_configure() {
+ if use debug; then
+ CMAKE_BUILD_TYPE="RelWithDebInfo"
+ else
+ CMAKE_BUILD_TYPE="Gentoo"
+ fi
+ if use kernel_linux; then
+ myargs=" -DENABLE_LOADCHECK=ON "
+ fi
+
+ mycmakeargs=(
+ $(cmake-utils_use_enable cache CACHE)
+ $(cmake-utils_use_enable chroot CHROOT)
+ $(cmake-utils_use_enable ipv6 IPV6)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable monitor MONITOR)
+ $(cmake-utils_use_enable rewrite TOOLKIT)
+ $(cmake-utils_use_enable rproxy RPROXY)
+ $(cmake-utils_use_enable ssl SSL)
+ $(cmake-utils_use_enable xslt XSLT)
+ -DLOG_DIR:STRING=/var/log/hiawatha
+ -DPID_DIR:STRING=/var/run
+ -DWEBROOT_DIR:STRING=/var/www/hiawatha
+ -DWORK_DIR:STRING=/var/lib/hiawatha
+ -DCONFIG_DIR:STRING=/etc/hiawatha
+ ${myargs}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newinitd "${FILESDIR}"/hiawatha.initd hiawatha
+
+ keepdir /var/l{ib,og}/hiawatha
+ if use monitor; then
+ insinto /usr/share/"${PN}"/monitor
+ doins -r "${WORKDIR}"/monitor/*
+ newdoc "${WORKDIR}"/monitor/README README.monitor
+ newdoc "${WORKDIR}"/monitor/ChangeLog ChangeLog.monitor
+ fi
+}
+
+pkg_postinst() {
+ if use monitor; then
+ einfo "You requested the server monitor feature."
+ einfo "The required files have been installed to ${ED}/usr/share/"${PN}"/monitor."
+ einfo "Please read the Monitor HOWTO"
+ einfo "from http://www.hiawatha-webserver.org/howto/monitor"
+ einfo "and configure your virtual server - i.e. add"
+ einfo "the required string in the config files, setup mysql databases"
+ einfo "and add a cron job."
+ fi
+}
diff --git a/www-servers/hiawatha/metadata.xml b/www-servers/hiawatha/metadata.xml
new file mode 100644
index 0000000..2a45473
--- /dev/null
+++ b/www-servers/hiawatha/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+ <use>
+ <flag name='cache'>Enable caching of content</flag>
+ <flag name='chroot'>Enable running in a chroot</flag>
+ <flag name='monitor'>Install the monitor package, an additional PHP/MySQL site</flag>
+ <flag name='rewrite'>Enable the rewrite toolkit.</flag>
+ <flag name='rproxy'>Allow Hiawatha to run a reverse proxy.</flag>
+ <flag name='tomahawk'>Enable Tomahawk control server.</flag>
+ <flag name='xslt'>Enable XSLT support.</flag>
+ </use>
+</pkgmetadata>
+