void-packages/srcpkgs/cherokee/template

62 lines
1.9 KiB
Text

# Template file for 'cherokee'
pkgname=cherokee
version=1.2.101
revision=9
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"
hostmakedepends="automake libtool python"
makedepends="pcre-devel>=8.30 python-devel libldap-devel pam-devel
libmysqlclient-devel ffmpeg-devel>=2.1 geoip-devel"
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
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"
pre_configure() {
autoreconf -fi
# 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 usr/lib/systemd/system
}
cherokee-devel_package() {
depends="libcherokee>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/cherokee-config
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
vmove "usr/lib/*.so"
}
}
libcherokee_package() {
short_desc+=" - Runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/cherokee
}
}