summaryrefslogtreecommitdiff
path: root/community-testing/cherokee/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-11-15 14:34:01 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-11-15 14:34:01 +0000
commit28b13b7e8e6e1e4fa1593f0dfb1c37569f2f90a8 (patch)
treeb5961b2312f5afe599dba0d1b9a3b6f6e3d04091 /community-testing/cherokee/PKGBUILD
parent3d151dfc8e08b65c2c1d4b5e8081562d56ee7d41 (diff)
Tue Nov 15 14:33:58 UTC 2011
Diffstat (limited to 'community-testing/cherokee/PKGBUILD')
-rw-r--r--community-testing/cherokee/PKGBUILD90
1 files changed, 0 insertions, 90 deletions
diff --git a/community-testing/cherokee/PKGBUILD b/community-testing/cherokee/PKGBUILD
deleted file mode 100644
index 07cd74624..000000000
--- a/community-testing/cherokee/PKGBUILD
+++ /dev/null
@@ -1,90 +0,0 @@
-# $Id: PKGBUILD 57980 2011-11-05 11:37:54Z ibiru $
-# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
-# Contributor: Link Dupont <link@subpop.net>
-
-pkgname=cherokee
-pkgver=1.2.101
-pkgrel=2
-pkgdesc="A very fast, flexible and easy to configure Web Server"
-arch=('i686' 'x86_64')
-url="http://www.cherokee-project.com/"
-license=('GPL2')
-depends=('openssl' 'pcre')
-makedepends=('python2' 'gettext' 'libldap' 'pam' 'libmysqlclient'
- 'ffmpeg' 'geoip')
-optdepends=('python2: cherokee-admin (administrative web interface)'
- 'libldap: ldap validator'
- 'pam: pam validator'
- 'libmysqlclient: mysql validator'
- 'ffmpeg: Audio/Video streaming handler'
- 'geoip: GeoIP rule module'
- 'rrdtool: RRDtool based information collector')
-backup=('etc/cherokee/cherokee.conf'
- 'etc/logrotate.d/cherokee'
- 'etc/pam.d/cherokee')
-options=('!libtool')
-source=(http://www.cherokee-project.com/download/1.2/$pkgver/cherokee-$pkgver.tar.gz
- cherokee.rc
- cherokee.logrotate
- fix-ctk-path-handler-match.patch)
-sha256sums=('ca465ab3772479fc843b38ffc45113bf24d8bfae9185cdd5176b099d5a17feb8'
- '4c06cebfab8b68edd4967c020bfb41b077cfff10d76596d1ed192d0b6cedbd86'
- '20e26d633f8c1cd90eb21f41dd163b73a83846e405b1ce995e072c4efefc522e'
- '2bd05e0181024c9bd02d828e8329d4d96a779e4870b1fc4f18aa8667d8c6a630')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # Fix path matching bug in CTK apps (e.g. market)
- patch -Np1 -i "$srcdir/fix-ctk-path-handler-match.patch"
-
- # Use subdirectory for logs
- sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
-
- # Use Python 2 in cherokee-admin
- sed -i 's/"python"/"python2"/' cherokee/main_admin.c
-
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --disable-static \
- --with-wwwroot=/srv/http \
- --with-wwwuser=http \
- --with-wwwgroup=http \
- --with-python=python2 \
- --enable-os-string="Arch Linux"
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- make -j1 DESTDIR="$pkgdir" install
-
- # PAM configuration file for cherokee
- install -D -m644 pam.d_cherokee "$pkgdir/etc/pam.d/$pkgname"
-
- # Fix ownership of /var/lib/cherokee/graphs
- chown -R http:http "$pkgdir/var/lib/$pkgname/graphs"
-
- # Use Python 2
- sed -i 's/env python$/&2/' \
- "$pkgdir/usr/share/cherokee/admin/"{server,upgrade_config}.py \
- "$pkgdir/usr/bin/"{CTK-run,cherokee-{admin-launcher,tweak}}
- sed -i -r "s/['\"]python/&2/g" \
- "$pkgdir/usr/share/cherokee/admin/wizards/django.py"
-
- # Compile Python scripts
- python2 -m compileall "$pkgdir"
- python2 -O -m compileall "$pkgdir"
-
- install -d -o http -g http "$pkgdir/var/log/$pkgname"
- install -D "$srcdir/$pkgname.rc" "$pkgdir/etc/rc.d/$pkgname"
- install -Dm644 "$srcdir/$pkgname.logrotate" "$pkgdir/etc/logrotate.d/$pkgname"
-
- # Cleanup
- rm -rf "$pkgdir/srv"
-}
-
-# vim:set ts=2 sw=2 et: