2011-12-21 15:39:11 +00:00
|
|
|
# Template file for 'cherokee'
|
|
|
|
pkgname=cherokee
|
|
|
|
version=1.2.101
|
2012-07-10 07:25:39 +00:00
|
|
|
revision=4
|
2011-12-21 15:39:11 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
|
|
|
--disable-static --with-wwwroot=/srv/httpd --with-wwwuser=httpd
|
2012-01-28 16:23:07 +00:00
|
|
|
--with-wwwgroup=httpd --with-python=python --enable-os-string=Linux"
|
2012-07-07 11:35:22 +00:00
|
|
|
makedepends="pcre-devel>=8.30 python-devel libldap-devel pam-devel libmysqlclient-devel ffmpeg-devel geoip-devel"
|
2012-01-28 16:23:07 +00:00
|
|
|
short_desc="An innovative, feature rich, and yet easy to configure open source Web Server"
|
2011-12-21 15:39:11 +00:00
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
|
|
homepage="http://www.cherokee-project.com/"
|
|
|
|
license="GPL-2"
|
2012-07-10 07:25:39 +00:00
|
|
|
distfiles="http://www.${pkgname}-project.com/download/1.2/${version}/${pkgname}-${version}.tar.gz"
|
2011-12-21 15:39:11 +00:00
|
|
|
checksum=ca465ab3772479fc843b38ffc45113bf24d8bfae9185cdd5176b099d5a17feb8
|
|
|
|
long_desc="
|
|
|
|
Cherokee is an open-source Cross-platform Web server that runs on Linux, BSD
|
|
|
|
variants, Solaris, Mac OS X, and Microsoft Windows. It is a lightweight,
|
|
|
|
high-performance Web Server/reverse proxy licensed under the GNU General
|
|
|
|
Public License. Its goal is to be fast and fully functional yet still light.
|
|
|
|
|
|
|
|
Major features of Cherokee include a graphical administration interface named
|
|
|
|
cherokee-admin, and a modular light-weight design. Cherokee is maintained and
|
|
|
|
developed by an Open Source Community."
|
|
|
|
|
|
|
|
subpackages="${pkgname}-devel lib${pkgname}"
|
|
|
|
|
2012-01-28 16:23:07 +00:00
|
|
|
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
2011-12-21 15:39:11 +00:00
|
|
|
systemd_services="cherokee.service on"
|
|
|
|
|
|
|
|
system_accounts="httpd"
|
|
|
|
httpd_descr="Cherokee HTTP server"
|
|
|
|
httpd_homedir="/srv/httpd"
|
|
|
|
|
|
|
|
|
2012-01-28 16:23:07 +00:00
|
|
|
pre_configure() {
|
2011-12-21 15:39:11 +00:00
|
|
|
# use /var/log/cherokee instead of /var/log
|
2012-01-28 16:23:07 +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-10 07:25:39 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.service 644 \
|
|
|
|
usr/lib/systemd/system
|
2012-01-28 16:23:07 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d 644 \
|
|
|
|
usr/lib/tmpfiles.d ${pkgname}.conf
|
2011-12-21 15:39:11 +00:00
|
|
|
}
|