void-packages/srcpkgs/cherokee/template

66 lines
2.1 KiB
Text
Raw Normal View History

# Template file for 'cherokee'
pkgname=cherokee
version=1.2.101
distfiles="http://www.${pkgname}-project.com/download/1.2/${version}/${pkgname}-${version}.tar.gz"
build_style=gnu-configure
configure_args="--prefix=/usr --sysconfdir=/etc --localstatedir=/var
--disable-static --with-wwwroot=/srv/httpd --with-wwwuser=httpd
--with-wwwgroup=httpd --with-python=python
--enable-os-string=Linux"
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"
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}"
conf_files="
/etc/cherokee/cherokee.conf"
systemd_services="cherokee.service on"
make_dirs="
/etc/cherokee/ssl 0755 httpd httpd
/var/log/cherokee 0755 httpd httpd
/var/lib/cherokee/graphs/images 0755 httpd httpd"
system_accounts="httpd"
httpd_descr="Cherokee HTTP server"
httpd_homedir="/srv/httpd"
Add_dependency build coreutils
Add_dependency build gettext
Add_dependency build libldap-devel
Add_dependency build pam-devel
Add_dependency build libmysqlclient-devel
Add_dependency build ffmpeg-devel
Add_dependency build geoip-devel
Add_dependency full python
pre_configure()
{
# use /var/log/cherokee instead of /var/log
sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
}
post_install()
{
# Setup logrotate thing
vinstall ${FILESDIR}/${pkgname}.logrotate 644 etc/logrotate.d ${pkgname}
# Install systemd service
vinstall ${FILESDIR}/${pkgname}.service 644 lib/systemd/system
}