2011-12-21 16:39:11 +01:00
|
|
|
# Template file for 'cherokee'
|
|
|
|
pkgname=cherokee
|
2014-09-29 09:23:39 +02:00
|
|
|
version=1.2.104
|
2015-01-03 10:56:10 +01:00
|
|
|
revision=2
|
2014-09-29 09:23:39 +02:00
|
|
|
wrksrc="webserver-${version}"
|
2011-12-21 16:39:11 +01:00
|
|
|
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"
|
2015-01-03 10:56:10 +01:00
|
|
|
makedepends="libressl-devel>=2.1.2 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-09-29 09:23:39 +02:00
|
|
|
short_desc="Innovative, feature rich and easy to configure web server"
|
2014-06-08 11:52:36 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-02-18 15:57:47 +01:00
|
|
|
homepage="http://www.cherokee-project.com/"
|
|
|
|
license="GPL-2"
|
2014-09-29 09:23:39 +02:00
|
|
|
distfiles="https://github.com/${pkgname}/webserver/archive/v${version}.tar.gz"
|
|
|
|
checksum=5cbd00ff48503eaf90356b2975e311c02977f9166927e57fc23f541a109efd98
|
2014-02-18 15:57:47 +01:00
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
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"
|
2011-12-21 16:39:11 +01:00
|
|
|
|
2014-09-29 09:23:39 +02:00
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
systemd_services="cherokee.service on"
|
|
|
|
fi
|
|
|
|
|
2012-01-28 17:23:07 +01:00
|
|
|
pre_configure() {
|
2014-09-29 09:23:39 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
_args="--host=${XBPS_CROSS_TRIPLET}"
|
|
|
|
fi
|
|
|
|
NOCONFIGURE=1 ./autogen.sh ${_args}
|
2011-12-21 16:39:11 +01:00
|
|
|
# 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
|
2011-12-21 16:39:11 +01:00
|
|
|
}
|
|
|
|
|
2012-01-28 17:23:07 +01:00
|
|
|
post_install() {
|
2011-12-21 16:39:11 +01:00
|
|
|
# Setup logrotate thing
|
2011-12-21 16:53:19 +01:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.logrotate 644 etc/logrotate.d ${pkgname}
|
2014-09-29 09:23:39 +02:00
|
|
|
|
|
|
|
# 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
|
2011-12-21 16:39:11 +01:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
cherokee-devel_package() {
|
2014-09-29 09:23:39 +02:00
|
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
2013-06-29 09:23:17 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/cherokee-config
|
2014-09-29 09:23:39 +02:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-04-12 08:55:23 +02:00
|
|
|
vmove usr/share/aclocal
|
2013-06-29 10:16:39 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcherokee_package() {
|
2014-09-29 09:23:39 +02:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
2013-06-29 10:16:39 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 08:55:23 +02:00
|
|
|
vmove usr/lib/cherokee
|
|
|
|
}
|
|
|
|
}
|