summaryrefslogtreecommitdiff
path: root/www-servers/hiawatha
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/hiawatha')
-rw-r--r--www-servers/hiawatha/Manifest6
-rw-r--r--www-servers/hiawatha/files/hiawatha-9.5-cflags.patch17
-rw-r--r--www-servers/hiawatha/files/hiawatha.initd-r125
-rw-r--r--www-servers/hiawatha/files/hiawatha.service9
-rw-r--r--www-servers/hiawatha/hiawatha-9.15.ebuild142
-rw-r--r--www-servers/hiawatha/metadata.xml19
6 files changed, 0 insertions, 218 deletions
diff --git a/www-servers/hiawatha/Manifest b/www-servers/hiawatha/Manifest
deleted file mode 100644
index ea03fed05dfd..000000000000
--- a/www-servers/hiawatha/Manifest
+++ /dev/null
@@ -1,6 +0,0 @@
-AUX hiawatha-9.5-cflags.patch 485 BLAKE2B fd590b4c4d40943766b18afe151456d09c9f4d563533e39e90e80ff7e3383eff1a4367dab4198e0239da670690c699b9774fcc42ef5730b4a9f8b023a9648522 SHA512 64bb15a13d8b370bd1c22ee1fba49badfafee5aa2ba143dd1abf367e767a6bc615627f1419736cef687e521b8a6485440ee6fb1364dfea3302b8062b08047f70
-AUX hiawatha.initd-r1 474 BLAKE2B ecb77589769f7ca7399a5d5f5ea1a0f6cf27dae26ca1b5d04627eb0738c72efb7d902682570d0240989ac3e26599b625134490225bede0aa2268a569fc328ce4 SHA512 ce0d7e197da496c2fcad71faf313d4160357fe784569ff879debe8314728698ffc3e0e28032f301261b191947f4e332384a268be43f2ed6e522f4e183c15f5bf
-AUX hiawatha.service 140 BLAKE2B 6f8b34913544d67fa3cb85fc5775b460bf197a143d91c563b7d643cd7e54996c89a17870aaef7a9c6f6cd2e21dcf16f709d5c8d891179e5f6f73346e76726561 SHA512 a393c6df1ea2c0ad1e18fc7381f12ea82f859fd7157a0b1983288037647c9bc2023c4923e1b01031c691dee4bc7b89730036ca51a50af37e11f6890098e397a1
-DIST hiawatha-9.15.tar.gz 869922 BLAKE2B 0cd15df60c4f3ad76ceb1405c57e414c26756ab27779d7d1805f1cef218ba409f2f3abe48b3e50ede434f3fa0974b5d86521e697548470448f7c8364f4ae9b6f SHA512 e5f0459475863c7cb2d15bdf2a9712f13c96ac450f349fd89e60fd600aad9010f25182aa6353a3014069a9798544a56ef79695918613946b63fecd3806b1982b
-EBUILD hiawatha-9.15.ebuild 4066 BLAKE2B 5af2398bf8624d8d76e05efb37502eb568125edb51db0846bd9a7f0a3b53eb4d30b9160538a506971297dadf1bedfd8ac102a0b5b4d8c36e2d11a53acd889155 SHA512 d881666c8b3fedb64caa023b9fafe9e75aabd424ebae7b2704e48c7679b63bc0f84f9869fd7f48ad841fb1da1dd1fca72fb9bfa6d6a727643de34fca8ffcbdf1
-MISC metadata.xml 734 BLAKE2B f04676e78989ef448124535cf83b06526217afd91cd288240585c1fc9318d5e1a31dd81514955e61766bc2a7b99a016e5ec568f73169c1a7760e8fa68fe5c005 SHA512 7880b2e670368a0bda7901599ef44e16b8089f2a2e445edcdb33727a42368378801d41d991f7ed5aef5f161e0a1654b5f5183e0bc2deefd437252ddaa8670587
diff --git a/www-servers/hiawatha/files/hiawatha-9.5-cflags.patch b/www-servers/hiawatha/files/hiawatha-9.5-cflags.patch
deleted file mode 100644
index 4ff33cd0d126..000000000000
--- a/www-servers/hiawatha/files/hiawatha-9.5-cflags.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-From: Julian Ospald <hasufell@gentoo.org>
-Date: Fri May 23 16:59:33 UTC 2014
-Subject: make optimization level build-type dependant
-
---- hiawatha-9.5/CMakeLists.txt
-+++ hiawatha-9.5/CMakeLists.txt
-@@ -2,7 +2,9 @@
- project(Hiawatha C)
-
- # Compiler
--set(CMAKE_C_FLAGS "-O2 -Wall -Wextra ${CMAKE_C_FLAGS}")
-+set(CMAKE_C_FLAGS "-Wall -Wextra ${CMAKE_C_FLAGS}")
-+set(CMAKE_C_FLAGS_RELEASE "-O2")
-+set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2")
- set(CMAKE_BUILD_TYPE "RelWithDebInfo")
-
- # Options
diff --git a/www-servers/hiawatha/files/hiawatha.initd-r1 b/www-servers/hiawatha/files/hiawatha.initd-r1
deleted file mode 100644
index a6ebb0d64c4b..000000000000
--- a/www-servers/hiawatha/files/hiawatha.initd-r1
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon \
- --start \
- --exec "/usr/sbin/hiawatha" \
- --pidfile "@HIAWATHA_PID_DIR@/hiawatha.pid"
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon \
- --stop \
- --exec "/usr/sbin/hiawatha" \
- --pidfile "@HIAWATHA_PID_DIR@/hiawatha.pid"
- eend $?
-}
diff --git a/www-servers/hiawatha/files/hiawatha.service b/www-servers/hiawatha/files/hiawatha.service
deleted file mode 100644
index 35e740b7e390..000000000000
--- a/www-servers/hiawatha/files/hiawatha.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=Hiawatha webserver
-After=network.target
-
-[Service]
-ExecStart=/usr/sbin/hiawatha -d
-
-[Install]
-WantedBy=multi-user.target
diff --git a/www-servers/hiawatha/hiawatha-9.15.ebuild b/www-servers/hiawatha/hiawatha-9.15.ebuild
deleted file mode 100644
index 754860d9b1a2..000000000000
--- a/www-servers/hiawatha/hiawatha-9.15.ebuild
+++ /dev/null
@@ -1,142 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils systemd user
-
-DESCRIPTION="Advanced and secure webserver"
-HOMEPAGE="https://www.hiawatha-webserver.org"
-SRC_URI="https://www.hiawatha-webserver.org/files/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+cache ipv6 monitor +rewrite +rproxy +ssl tomahawk +xslt"
-
-RDEPEND="
- sys-libs/zlib
- ssl? ( >=net-libs/mbedtls-2.0[threads] )
- xslt? ( dev-libs/libxslt
- dev-libs/libxml2 )"
-DEPEND="${RDEPEND}"
-PDEPEND="monitor? ( www-apps/hiawatha-monitor )"
-
-# set these in the environment of your PM if you want to use different values
-HIAWATHA_CONFIG_DIR="${HIAWATHA_CONFIG_DIR:-/etc/hiawatha}"
-HIAWATHA_LOG_DIR="${HIAWATHA_LOG_DIR:-/var/log/hiawatha}"
-HIAWATHA_PID_DIR="${HIAWATHA_PID_DIR:-/var/run}"
-HIAWATHA_WEBROOT_DIR="${HIAWATHA_WEBROOT_DIR:-/var/www/hiawatha}"
-HIAWATHA_WORK_DIR="${HIAWATHA_WORK_DIR:-/var/lib/hiawatha}"
-HIAWATHA_USER="${HIAWATHA_USER:-hiawatha}"
-HIAWATHA_GROUP="${HIAWATHA_GROUP:-hiawatha}"
-
-safe_sed() {
- local replace_of=$1
- local replace_with=$2
- local file=$3
- # optional
- local outfile=$4
-
- grep -E "${replace_of}" "${file}" 1>/dev/null \
- || die "\"${replace_of}\" not found in ${file}!"
-
- if [[ -n ${outfile} ]] ; then
- einfo "Sedding ${file} into ${outfile}"
- sed -r \
- -e "s|${replace_of}|${replace_with}|" \
- "${file}" > ${outfile} || die "sed on ${file} to ${outfile} failed!"
- else
- einfo "Sedding ${file} in-place"
- sed -r -i \
- -e "s|${replace_of}|${replace_with}|" \
- "${file}" || die "sed on ${file} failed!"
- fi
-
-}
-
-pkg_pretend() {
- einfo
- einfo "You can change hiawatha user and group, as well as the"
- einfo "directories the webserver is going to use. For that,"
- einfo "set the following environment variables in your PM:"
- einfo " HIAWATHA_CONFIG_DIR"
- einfo " default: /etc/hiawatha"
- einfo " current: ${HIAWATHA_CONFIG_DIR}"
- einfo " HIAWATHA_LOG_DIR"
- einfo " default: /var/log/hiawatha"
- einfo " current: ${HIAWATHA_LOG_DIR}"
- einfo " HIAWATHA_PID_DIR"
- einfo " default: /var/run"
- einfo " current: ${HIAWATHA_PID_DIR}"
- einfo " HIAWATHA_WEBROOT_DIR"
- einfo " default: /var/www/hiawatha"
- einfo " current: ${HIAWATHA_WEBROOT_DIR}"
- einfo " HIAWATHA_WORK_DIR"
- einfo " default: /var/lib/hiawatha"
- einfo " current: ${HIAWATHA_WORK_DIR}"
- einfo " HIAWATHA_USER"
- einfo " default: hiawatha"
- einfo " current: ${HIAWATHA_USER}"
- einfo " HIAWATHA_GROUP"
- einfo " default: hiawatha"
- einfo " current: ${HIAWATHA_GROUP}"
- einfo
-}
-
-pkg_setup() {
- enewgroup ${HIAWATHA_GROUP}
- enewuser ${HIAWATHA_USER} -1 -1 "${HIAWATHA_WEBROOT_DIR}" ${HIAWATHA_GROUP}
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-9.5-cflags.patch
-
- safe_sed "^#ServerId =.*$" "ServerId = ${HIAWATHA_USER}" \
- config/hiawatha.conf.in
-
- safe_sed "@HIAWATHA_PID_DIR@" "${HIAWATHA_PID_DIR}" \
- "${FILESDIR}/hiawatha.initd-r1" \
- "${T}/hiawatha.initd-r1"
-}
-
-src_configure() {
- local mycmakeargs=(
- -DCONFIG_DIR:STRING="${HIAWATHA_CONFIG_DIR}"
- -DENABLE_CACHE=$(usex cache)
- -DENABLE_IPV6=$(usex ipv6)
- -DENABLE_LOADCHECK=$(usex kernel_linux)
- -DENABLE_MONITOR=$(usex monitor)
- -DENABLE_RPROXY=$(usex rproxy)
- -DENABLE_TLS=$(usex ssl)
- -DENABLE_TOMAHAWK=$(usex tomahawk)
- -DENABLE_TOOLKIT=$(usex rewrite)
- -DENABLE_XSLT=$(usex xslt)
- -DLOG_DIR:STRING="${HIAWATHA_LOG_DIR}"
- -DPID_DIR:STRING="${HIAWATHA_PID_DIR}"
- -DUSE_SYSTEM_MBEDTLS=$(usex ssl)
- -DWEBROOT_DIR:STRING="${HIAWATHA_WEBROOT_DIR}"
- -DWORK_DIR:STRING="${HIAWATHA_WORK_DIR}"
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- rm -r "${ED%/}${HIAWATHA_WEBROOT_DIR}"/* || die
-
- newinitd "${T}"/hiawatha.initd-r1 hiawatha
- systemd_dounit "${FILESDIR}"/hiawatha.service
-
- local i
- for i in "${HIAWATHA_LOG_DIR}" "${HIAWATHA_WORK_DIR}" ; do
- keepdir "${i}"
- fowners ${HIAWATHA_USER}:${HIAWATHA_GROUP} "${i}"
- fperms 0750 "${i}"
- done
-
- keepdir "${HIAWATHA_WEBROOT_DIR}"
- fowners ${HIAWATHA_USER}:${HIAWATHA_GROUP} "${HIAWATHA_WEBROOT_DIR}"
-}
diff --git a/www-servers/hiawatha/metadata.xml b/www-servers/hiawatha/metadata.xml
deleted file mode 100644
index 9c55764f9182..000000000000
--- a/www-servers/hiawatha/metadata.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <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="ssl">Enable TLS support via
- <pkg>net-libs/mbedtls</pkg></flag>
- <flag name="tomahawk">Enable Tomahawk control server</flag>
- <flag name="xslt">Enable XSLT support.
- This is also needed for directory listings</flag>
- <flag name="rproxy">Enable reverse proxy support</flag>
- </use>
- <upstream>
- <remote-id type="github">hsleisink/hiawatha</remote-id>
- </upstream>
-</pkgmetadata>