2011-12-21 15:39:11 +00:00
|
|
|
# Template file for 'cherokee'
|
|
|
|
pkgname=cherokee
|
|
|
|
version=1.2.101
|
2014-02-18 14:57:47 +00:00
|
|
|
revision=8
|
2011-12-21 15:39:11 +00:00
|
|
|
build_style=gnu-configure
|
2013-10-30 07:08:24 +00:00
|
|
|
configure_args="
|
|
|
|
--prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
2014-02-18 14:57:47 +00:00
|
|
|
--disable-static --with-wwwroot=/srv/httpd --with-wwwuser=httpd
|
|
|
|
--with-wwwgroup=httpd --with-python=python --enable-os-string=Linux"
|
|
|
|
hostmakedepends="automake libtool python"
|
2013-04-12 06:55:23 +00:00
|
|
|
makedepends="pcre-devel>=8.30 python-devel libldap-devel pam-devel
|
2013-10-30 07:08:24 +00:00
|
|
|
libmysqlclient-devel ffmpeg-devel>=2.1 geoip-devel"
|
2014-02-18 14:57:47 +00:00
|
|
|
short_desc="An innovative, feature rich, and yet easy to configure open source Web Server"
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
|
|
homepage="http://www.cherokee-project.com/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://www.cherokee-project.de/mirrors/cherokee/1.2/${version}/cherokee-${version}.tar.gz"
|
|
|
|
checksum=ca465ab3772479fc843b38ffc45113bf24d8bfae9185cdd5176b099d5a17feb8
|
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
|
|
|
systemd_services="cherokee.service on"
|
|
|
|
system_accounts="httpd"
|
|
|
|
httpd_descr="Cherokee HTTP server"
|
|
|
|
httpd_homedir="/srv/httpd"
|
|
|
|
make_dirs="
|
|
|
|
/etc/cherokee/ssl 0755 httpd httpd
|
|
|
|
/var/log/cherokee 0755 httpd httpd
|
|
|
|
/var/lib/cherokee/graphs/images 0755 httpd httpd"
|
2011-12-21 15:39:11 +00:00
|
|
|
|
2012-01-28 16:23:07 +00:00
|
|
|
pre_configure() {
|
2014-02-18 14:57:47 +00:00
|
|
|
autoreconf -fi
|
2011-12-21 15:39:11 +00:00
|
|
|
# use /var/log/cherokee instead of /var/log
|
2014-02-18 14:57:47 +00:00
|
|
|
sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
|
2011-12-21 15:39:11 +00:00
|
|
|
}
|
|
|
|
|
2012-01-28 16:23:07 +00:00
|
|
|
post_install() {
|
2011-12-21 15:39:11 +00:00
|
|
|
# Setup logrotate thing
|
2011-12-21 15:53:19 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.logrotate 644 etc/logrotate.d ${pkgname}
|
2011-12-21 15:39:11 +00:00
|
|
|
|
|
|
|
# Install systemd service
|
2012-07-14 21:42:34 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
|
2011-12-21 15:39:11 +00:00
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
cherokee-devel_package() {
|
2013-10-30 07:08:24 +00:00
|
|
|
depends="libcherokee>=${version}_${revision}"
|
2013-06-29 07:23:17 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/cherokee-config
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/aclocal
|
2013-06-29 08:16:39 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcherokee_package() {
|
2013-06-29 07:23:17 +00:00
|
|
|
short_desc+=" - Runtime library"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
2013-06-29 08:16:39 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 06:55:23 +00:00
|
|
|
vmove usr/lib/cherokee
|
|
|
|
}
|
|
|
|
}
|