void-packages/srcpkgs/cherokee/template

63 lines
2.0 KiB
Plaintext
Raw Normal View History

# Template file for 'cherokee'
pkgname=cherokee
version=1.2.101
2014-07-15 19:35:01 +02:00
revision=11
build_style=gnu-configure
2013-10-30 08:08:24 +01:00
configure_args="
--prefix=/usr --sysconfdir=/etc --localstatedir=/var
2014-02-18 15:57:47 +01:00
--disable-static --with-wwwroot=/srv/httpd --with-wwwuser=httpd
--with-wwwgroup=httpd --with-python=python --enable-os-string=Linux"
hostmakedepends="automake libtool python"
2014-07-15 19:35:01 +02:00
makedepends="libressl-devel pcre-devel>=8.30 python-devel libldap-devel pam-devel
2013-10-30 08:08:24 +01:00
libmysqlclient-devel ffmpeg-devel>=2.1 geoip-devel"
2014-02-18 15:57:47 +01:00
short_desc="An innovative, feature rich, and yet easy to configure open source Web Server"
maintainer="Juan RP <xtraeme@gmail.com>"
2014-02-18 15:57:47 +01:00
homepage="http://www.cherokee-project.com/"
license="GPL-2"
2014-06-09 07:21:30 +02:00
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/$pkgname/${pkgname}-${version}.tar.gz/ef47003355a2e368e4d9596cd070ef23/${pkgname}-${version}.tar.gz"
2014-02-18 15:57:47 +01:00
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() {
2014-02-18 15:57:47 +01:00
autoreconf -fi
# use /var/log/cherokee instead of /var/log
2014-02-18 15:57:47 +01:00
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
2012-07-14 23:42:34 +02:00
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
}
cherokee-devel_package() {
2013-10-30 08:08:24 +01:00
depends="libcherokee>=${version}_${revision}"
2013-06-29 09:23:17 +02:00
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() {
2013-06-29 09:23:17 +02:00
short_desc+=" - Runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/lib/cherokee
}
}