From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-servers/hiawatha: hiawatha-9.6-r1.ebuild ChangeLog |
Date: | Tue, 01 Jul 2014 16:28:37 |
Message-Id: | 20140701162833.E3A962004F@flycatcher.gentoo.org |
1 | pacho 14/07/01 16:28:33 |
2 | |
3 | Modified: ChangeLog |
4 | Added: hiawatha-9.6-r1.ebuild |
5 | Log: |
6 | Add unit file (#515568 by Tim Mohlmann) |
7 | |
8 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 | |
10 | Revision Changes Path |
11 | 1.5 www-servers/hiawatha/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/ChangeLog?rev=1.5&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/ChangeLog?rev=1.5&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/ChangeLog?r1=1.4&r2=1.5 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/www-servers/hiawatha/ChangeLog,v |
20 | retrieving revision 1.4 |
21 | retrieving revision 1.5 |
22 | diff -u -r1.4 -r1.5 |
23 | --- ChangeLog 21 Jun 2014 10:26:59 -0000 1.4 |
24 | +++ ChangeLog 1 Jul 2014 16:28:33 -0000 1.5 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for www-servers/hiawatha |
27 | # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/www-servers/hiawatha/ChangeLog,v 1.4 2014/06/21 10:26:59 hasufell Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/www-servers/hiawatha/ChangeLog,v 1.5 2014/07/01 16:28:33 pacho Exp $ |
30 | + |
31 | +*hiawatha-9.6-r1 (01 Jul 2014) |
32 | + |
33 | + 01 Jul 2014; Pacho Ramos <pacho@g.o> +files/hiawatha.service, |
34 | + +hiawatha-9.6-r1.ebuild: |
35 | + Add unit file (#515568 by Tim Mohlmann) |
36 | |
37 | *hiawatha-9.6 (21 Jun 2014) |
38 | |
39 | |
40 | |
41 | |
42 | 1.1 www-servers/hiawatha/hiawatha-9.6-r1.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/hiawatha-9.6-r1.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/hiawatha/hiawatha-9.6-r1.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: hiawatha-9.6-r1.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2014 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/www-servers/hiawatha/hiawatha-9.6-r1.ebuild,v 1.1 2014/07/01 16:28:33 pacho Exp $ |
52 | |
53 | # ssl USE flag currently broken |
54 | # https://github.com/hsleisink/hiawatha/issues/15 |
55 | |
56 | EAPI=5 |
57 | |
58 | CMAKE_MIN_VERSION="2.8.4" |
59 | CMAKE_BUILD_TYPE="RelWithDebInfo" |
60 | |
61 | inherit cmake-utils systemd user |
62 | |
63 | DESCRIPTION="Advanced and secure webserver" |
64 | HOMEPAGE="http://www.hiawatha-webserver.org" |
65 | SRC_URI="http://www.hiawatha-webserver.org/files/${P}.tar.gz" |
66 | |
67 | LICENSE="GPL-2" |
68 | SLOT="0" |
69 | KEYWORDS="~amd64 ~x86" |
70 | IUSE="debug +cache ipv6 monitor +rewrite rproxy tomahawk +xslt" |
71 | |
72 | RDEPEND=" |
73 | >=net-libs/polarssl-1.3 |
74 | xslt? ( dev-libs/libxslt |
75 | dev-libs/libxml2 )" |
76 | DEPEND="${RDEPEND}" |
77 | PDEPEND="monitor? ( www-apps/hiawatha-monitor )" |
78 | |
79 | # set this in make.conf if you want to use a different user/group |
80 | HIAWATHA_USER=${HIAWATHA_USER:-hiawatha} |
81 | HIAWATHA_GROUP=${HIAWATHA_GROUP:-hiawatha} |
82 | |
83 | pkg_setup() { |
84 | enewgroup ${HIAWATHA_GROUP} |
85 | enewuser ${HIAWATHA_USER} -1 -1 /var/www/hiawatha ${HIAWATHA_GROUP} |
86 | } |
87 | |
88 | src_prepare() { |
89 | epatch "${FILESDIR}"/${PN}-9.5-cflags.patch |
90 | |
91 | rm -r polarssl || die |
92 | |
93 | grep '#ServerId =' config/hiawatha.conf.in 1>/dev/null || die |
94 | sed -i \ |
95 | -e "s/#ServerId =.*$/ServerId = ${HIAWATHA_USER}/" \ |
96 | config/hiawatha.conf.in || die |
97 | } |
98 | |
99 | src_configure() { |
100 | local mycmakeargs=( |
101 | -DCONFIG_DIR:STRING=/etc/hiawatha |
102 | $(cmake-utils_use_enable cache CACHE) |
103 | $(cmake-utils_use_enable debug DEBUG) |
104 | $(cmake-utils_use_enable ipv6 IPV6) |
105 | $(cmake-utils_use_enable kernel_linux LOADCHECK) |
106 | $(cmake-utils_use_enable monitor MONITOR) |
107 | $(cmake-utils_use_enable rproxy RPROXY) |
108 | -DENABLE_SSL=YES |
109 | $(cmake-utils_use_enable tomahawk TOMAHAWK) |
110 | $(cmake-utils_use_enable rewrite TOOLKIT) |
111 | $(cmake-utils_use_enable xslt XSLT) |
112 | -DLOG_DIR:STRING=/var/log/hiawatha |
113 | -DPID_DIR:STRING=/var/run |
114 | -DUSE_SHARED_POLARSSL_LIBRARY=ON |
115 | -DUSE_SYSTEM_POLARSSL=ON |
116 | -DWEBROOT_DIR:STRING=/var/www/hiawatha |
117 | -DWORK_DIR:STRING=/var/lib/hiawatha |
118 | ) |
119 | |
120 | cmake-utils_src_configure |
121 | } |
122 | |
123 | src_install() { |
124 | cmake-utils_src_install |
125 | |
126 | rm -rf "${ED%%/}"/var/www/hiawatha/* |
127 | |
128 | newinitd "${FILESDIR}"/hiawatha.initd hiawatha |
129 | systemd_dounit "${FILESDIR}"/hiawatha.service |
130 | |
131 | local i |
132 | for i in /var/{lib,log}/hiawatha ; do |
133 | keepdir ${i} |
134 | fowners ${HIAWATHA_USER}:${HIAWATHA_GROUP} ${i} |
135 | fperms 0750 ${i} |
136 | done |
137 | |
138 | keepdir /var/www/hiawatha |
139 | fowners ${HIAWATHA_USER}:${HIAWATHA_GROUP} /var/www/hiawatha |
140 | } |