void-packages/srcpkgs/cherokee/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

74 lines
2.2 KiB
Bash

# Template file for 'cherokee'
pkgname=cherokee
version=1.2.104
revision=4
wrksrc="webserver-${version}"
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="libressl-devel pcre-devel python-devel libldap-devel pam-devel
libmysqlclient-devel ffmpeg-devel geoip-devel"
short_desc="Innovative, feature rich and easy to configure web server"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.cherokee-project.com/"
license="GPL-2"
distfiles="https://github.com/${pkgname}/webserver/archive/v${version}.tar.gz"
checksum=5cbd00ff48503eaf90356b2975e311c02977f9166927e57fc23f541a109efd98
conf_files="/etc/${pkgname}/${pkgname}.conf"
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"
build_options="systemd"
if [ "$build_option_systemd" ]; then
systemd_services="cherokee.service on"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
_args="--host=${XBPS_CROSS_TRIPLET}"
fi
NOCONFIGURE=1 ./autogen.sh ${_args}
# 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 PAM configuration file
vinstall pam.d_cherokee 644 etc/pam.d ${pkgname}
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
fi
}
cherokee-devel_package() {
depends="lib${sourcepkg}>=${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
}
}