From 054791becafc7027bb89785038dcfc65ee0b7b72 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 20 May 2016 22:17:31 +0200 Subject: [PATCH] www-servers/hiawatha: use openrc-service.exlib Change-Id: I30230b8397d87cb82c5e4228c844d431dd880ce3 --- ...{hiawatha-10.2.exheres-0 => hiawatha-10.2-r1.exheres-0} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename packages/www-servers/hiawatha/{hiawatha-10.2.exheres-0 => hiawatha-10.2-r1.exheres-0} (94%) diff --git a/packages/www-servers/hiawatha/hiawatha-10.2.exheres-0 b/packages/www-servers/hiawatha/hiawatha-10.2-r1.exheres-0 similarity index 94% rename from packages/www-servers/hiawatha/hiawatha-10.2.exheres-0 rename to packages/www-servers/hiawatha/hiawatha-10.2-r1.exheres-0 index 7e1fda4..a5b6ff5 100644 --- a/packages/www-servers/hiawatha/hiawatha-10.2.exheres-0 +++ b/packages/www-servers/hiawatha/hiawatha-10.2-r1.exheres-0 @@ -1,7 +1,7 @@ # Copyright 2016 Julian Ospald # Distributed under the terms of the GNU General Public License v2 -require cmake [ api=2 ] systemd-service +require cmake [ api=2 ] openrc-service [ openrc_initd_files=[ "${TEMP}/hiawatha" ] ] systemd-service SUMMARY="Advanced and secure webserver" HOMEPAGE="http://www.hiawatha-webserver.org" @@ -77,7 +77,7 @@ src_prepare() { edo grep -E "@HIAWATHA_PID_DIR@" "${FILES}/hiawatha.initd" 1>/dev/null edo sed -r -e "s|@HIAWATHA_PID_DIR@|${HIAWATHA_PID_DIR}|" \ - "${FILES}/hiawatha.initd" > "${TEMP}/hiawatha.initd" + "${FILES}/hiawatha.initd" > "${TEMP}/hiawatha" } src_install() { @@ -85,9 +85,8 @@ src_install() { edo rm -r "${IMAGE%/}${HIAWATHA_WEBROOT_DIR}"/* - exeinto /etc/init.d - newexe "${TEMP}"/hiawatha.initd hiawatha install_systemd_files + install_openrc_files local i for i in "${HIAWATHA_LOG_DIR}" "${HIAWATHA_WORK_DIR}" ; do