1 |
blueness 14/05/31 14:53:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cherokee-1.2.103-r2.ebuild |
5 |
Removed: cherokee-1.2.103-r1.ebuild |
6 |
Log: |
7 |
Switch to python-r1 and fix bug #506780 |
8 |
|
9 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
10 |
|
11 |
Revision Changes Path |
12 |
1.102 www-servers/cherokee/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/ChangeLog?rev=1.102&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/ChangeLog?rev=1.102&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/ChangeLog?r1=1.101&r2=1.102 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v |
21 |
retrieving revision 1.101 |
22 |
retrieving revision 1.102 |
23 |
diff -u -r1.101 -r1.102 |
24 |
--- ChangeLog 8 Jan 2014 06:08:37 -0000 1.101 |
25 |
+++ ChangeLog 31 May 2014 14:53:01 -0000 1.102 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-servers/cherokee |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.101 2014/01/08 06:08:37 vapier Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/ChangeLog,v 1.102 2014/05/31 14:53:01 blueness Exp $ |
31 |
+ |
32 |
+*cherokee-1.2.103-r2 (31 May 2014) |
33 |
+ |
34 |
+ 31 May 2014; Anthony G. Basile <blueness@g.o> |
35 |
+ +cherokee-1.2.103-r2.ebuild, -cherokee-1.2.103-r1.ebuild: |
36 |
+ Switch to python-r1 and fix bug #506780 |
37 |
|
38 |
08 Jan 2014; Mike Frysinger <vapier@g.o> cherokee-1.2.101-r1.ebuild, |
39 |
cherokee-1.2.101-r2.ebuild, cherokee-1.2.101-r3.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 www-servers/cherokee/cherokee-1.2.103-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/cherokee-1.2.103-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/cherokee-1.2.103-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: cherokee-1.2.103-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/cherokee-1.2.103-r2.ebuild,v 1.1 2014/05/31 14:53:01 blueness Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
WANT_AUTOMAKE="1.11" |
57 |
|
58 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
59 |
|
60 |
inherit autotools python-r1 eutils multilib pam systemd user |
61 |
|
62 |
DESCRIPTION="An extremely fast and tiny web server." |
63 |
SRC_URI="https://github.com/cherokee/webserver/archive/v${PV}.zip -> ${P}.zip |
64 |
https://github.com/cherokee/CTK/archive/master.zip -> ${PN}-ctk-master.zip" |
65 |
HOMEPAGE="http://www.cherokee-project.com/" |
66 |
|
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
70 |
IUSE="admin ffmpeg debug geoip ipv6 kernel_linux ldap mysql nls pam php rrdtool ssl static static-libs" |
71 |
|
72 |
COMMON_DEPEND="dev-libs/libpcre |
73 |
>=sys-libs/zlib-1.1.4-r1 |
74 |
ffmpeg? ( virtual/ffmpeg ) |
75 |
geoip? ( dev-libs/geoip ) |
76 |
ldap? ( net-nds/openldap ) |
77 |
mysql? ( >=virtual/mysql-5 ) |
78 |
nls? ( virtual/libintl ) |
79 |
pam? ( virtual/pam ) |
80 |
php? ( || ( |
81 |
dev-lang/php[fpm] |
82 |
dev-lang/php[cgi] |
83 |
) ) |
84 |
ssl? ( dev-libs/openssl )" |
85 |
DEPEND="${COMMON_DEPEND} |
86 |
nls? ( sys-devel/gettext )" |
87 |
RDEPEND="${COMMON_DEPEND} |
88 |
rrdtool? ( net-analyzer/rrdtool )" |
89 |
|
90 |
RESTRICT="test" |
91 |
|
92 |
WEBROOT="/var/www/localhost" |
93 |
|
94 |
src_unpack() { |
95 |
unpack ${A} |
96 |
mv "webserver-${PV}" "${S}" || die |
97 |
rmdir "${S}/admin/CTK" || die |
98 |
mv "CTK-master" "${S}/admin/CTK" || die |
99 |
} |
100 |
|
101 |
pkg_setup() { |
102 |
enewgroup cherokee |
103 |
enewuser cherokee -1 -1 /var/www cherokee |
104 |
} |
105 |
|
106 |
src_prepare() { |
107 |
python_setup |
108 |
epatch \ |
109 |
"${FILESDIR}/${PN}-1.2.99-gentoo.patch" \ |
110 |
"${FILESDIR}/${PN}-1.2.103-linux3.patch" |
111 |
|
112 |
"${S}/po/admin/generate_POTFILESin.py" > po/admin/POTFILES.in |
113 |
eautoreconf |
114 |
} |
115 |
|
116 |
src_configure() { |
117 |
local myconf |
118 |
|
119 |
if use admin ; then |
120 |
myconf="${myconf} --enable-admin --with-python=/usr/bin/python" |
121 |
else |
122 |
myconf="${myconf} --disable-admin --without-python" |
123 |
fi |
124 |
|
125 |
# Uses autodetect because --with-php requires path to php-{fpm,cgi}. |
126 |
if ! use php ; then |
127 |
myconf="${myconf} --without-php" |
128 |
fi |
129 |
|
130 |
if use static ; then |
131 |
myconf="${myconf} --enable-static-module=all" |
132 |
fi |
133 |
|
134 |
local os="Unknown" |
135 |
case "${CHOST}" in |
136 |
*-freebsd*) |
137 |
os="FreeBSD" ;; |
138 |
*-netbsd*) |
139 |
os="NetBSD" ;; |
140 |
*-openbsd*) |
141 |
os="OpenBSD" ;; |
142 |
*) |
143 |
os="Linux" ;; |
144 |
esac |
145 |
|
146 |
econf \ |
147 |
$(use_enable debug trace) \ |
148 |
$(use_enable debug backtraces) \ |
149 |
$(use_enable ipv6) \ |
150 |
$(use_enable kernel_linux epoll) \ |
151 |
$(use_enable nls) \ |
152 |
$(use_enable pam) \ |
153 |
$(use_enable static-libs static) \ |
154 |
$(use_with ffmpeg) \ |
155 |
$(use_with geoip) \ |
156 |
$(use_with ldap) \ |
157 |
$(use_with mysql) \ |
158 |
$(use_with ssl libssl) \ |
159 |
--disable-dependency-tracking \ |
160 |
--docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
161 |
--enable-os-string="Gentoo ${os}" \ |
162 |
--enable-tmpdir="${EPREFIX}/var/tmp" \ |
163 |
--localstatedir="${EPREFIX}/var" \ |
164 |
--with-wwwroot="${EPREFIX}${WEBROOT}/htdocs" \ |
165 |
--with-cgiroot="${EPREFIX}${WEBROOT}/cgi-bin" \ |
166 |
--with-wwwuser=cherokee \ |
167 |
--with-wwwgroup=cherokee \ |
168 |
${myconf} |
169 |
} |
170 |
|
171 |
src_install() { |
172 |
emake DESTDIR="${D}" install |
173 |
|
174 |
if ! use static-libs ; then |
175 |
find "${ED}" -name '*.la' -delete || die |
176 |
elif ! use static ; then |
177 |
find "${ED}/usr/$(get_libdir)/cherokee" '(' -name '*.la' -o -name '*.a' ')' -delete || die |
178 |
fi |
179 |
|
180 |
dodoc AUTHORS NEWS README.rst |
181 |
|
182 |
if use pam ; then |
183 |
pamd_mimic system-auth cherokee auth account session || die |
184 |
fi |
185 |
|
186 |
newinitd "${FILESDIR}/${PN}-initd-1.2.99" ${PN} |
187 |
newconfd "${FILESDIR}/${PN}-confd-1.2.98" ${PN} |
188 |
|
189 |
if ! use admin ; then |
190 |
rm -r \ |
191 |
"${ED}"/usr/bin/cherokee-admin-launcher \ |
192 |
"${ED}"/usr/bin/CTK-run \ |
193 |
"${ED}"/usr/sbin/cherokee-admin \ |
194 |
"${ED}"/usr/share/cherokee/admin || die |
195 |
fi |
196 |
|
197 |
exeinto /usr/share/doc/${PF}/contrib |
198 |
doexe contrib/{bin2buffer.py,make-cert.sh,make-dh_params.sh,tracelor.py} |
199 |
|
200 |
#move the htdocs to docdir, bug #429632 |
201 |
docompress -x /usr/share/doc/"${PF}"/htdocs.dist |
202 |
mv "${ED}"${WEBROOT}/htdocs \ |
203 |
"${ED}"/usr/share/doc/"${PF}"/htdocs.dist |
204 |
mkdir "${ED}"${WEBROOT}/htdocs |
205 |
|
206 |
keepdir \ |
207 |
"${WEBROOT}"/htdocs \ |
208 |
/var/log/cherokee \ |
209 |
/var/lib/cherokee/graphs/images |
210 |
fowners cherokee:cherokee \ |
211 |
/var/log/cherokee \ |
212 |
/var/lib/cherokee/graphs \ |
213 |
/var/lib/cherokee/graphs/images |
214 |
|
215 |
# logrotate |
216 |
insinto /etc/logrotate.d |
217 |
newins "${FILESDIR}"/${PN}.logrotate-r1 ${PN} |
218 |
|
219 |
systemd_dounit "${FILESDIR}"/cherokee.service |
220 |
} |
221 |
|
222 |
pkg_postinst() { |
223 |
elog |
224 |
if use admin ; then |
225 |
elog "Just run '/usr/sbin/cherokee-admin' and go to: http://localhost:9090" |
226 |
elog |
227 |
elog "Cherokee currently supports configuration versioning, so from now on," |
228 |
elog "whenever a change is made to the configuration file format," |
229 |
elog "Cherokee-Admin will be able to automatically convert yours to the new" |
230 |
elog "release. You simply have to load Cherokee-Admin and it will be converted" |
231 |
elog "once you proceed to saving it." |
232 |
elog |
233 |
elog "There is also a command line utility that you can use to do the exact" |
234 |
elog "same thing. Config format can change in different versions. It is" |
235 |
elog "provided under:" |
236 |
elog " ${EPREFIX}/usr/share/cherokee/admin/upgrade_config.py" |
237 |
else |
238 |
elog "Try USE=admin if you want an easy way to configure cherokee." |
239 |
fi |
240 |
elog |
241 |
elog "emerge www-servers/spawn-fcgi if you use Ruby on Rails with ${PN}." |
242 |
elog |
243 |
} |