Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Doug Newgard <scimmia22 at outlook dot com>
- # Contributor: Fernando Jiménez Solano <fjim@sdfeu.org>
- # Contributor: Evangelos Foutras <evangelos@foutrelis.com>
- # Contributor: Link Dupont <link@subpop.net>
- # Contributor: Pierre Bourdin <pierre@pi3rrot.net>
- # Contributor: Alexander von Gluck IV <kallisti5@unixzen.com>
- # Contributor: dieghen89 <dieghen89 at gmail dot com>
- pkgname=cherokee-git
- pkgver=v1.2.103.r905.gfbda667
- pkgrel=1
- 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' 'python2')
- makedepends=('python2' 'gettext' 'libldap' 'pam' 'libmysqlclient'
- 'ffmpeg' 'geoip')
- optdepends=('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')
- provides=('cherokee')
- conflicts=('cherokee')
- source=("$pkgname::git+https://github.com/cherokee/webserver.git"
- "cherokee.rc"
- "cherokee.logrotate"
- "cherokee.service")
- sha256sums=('SKIP'
- '4c06cebfab8b68edd4967c020bfb41b077cfff10d76596d1ed192d0b6cedbd86'
- '20e26d633f8c1cd90eb21f41dd163b73a83846e405b1ce995e072c4efefc522e'
- '415a2e4cd7d04afe21e502dd0ad76301f85a7087cadbfdab5566bec469679a68')
- pkgver() {
- cd "$srcdir/$pkgname"
- git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
- }
- build() {
- cd "$srcdir/$pkgname"
- sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
- ./autogen.sh \
- --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"
- make DESTDIR="$pkgdir/" install
- # PAM configuration file for cherokee
- install -D -m644 pam.d_cherokee "$pkgdir/etc/pam.d/cherokee"
- # Fix ownership of /var/lib/cherokee/graphs
- chown -R http:http "$pkgdir/var/lib/cherokee/graphs"
- # Compile Python scripts
- python2 -m compileall "$pkgdir"
- python2 -O -m compileall "$pkgdir"
- install -d -o http -g http "$pkgdir/var/log/ckerokee"
- install -D "$srcdir/cherokee.rc" "$pkgdir/etc/rc.d/cherokee"
- install -Dm644 "$srcdir/cherokee.logrotate" "$pkgdir/etc/logrotate.d/cherokee"
- install -Dm644 "$srcdir/cherokee.service" "$pkgdir/usr/lib/systemd/system/cherokee.service"
- # Cleanup
- rm -rf "$pkgdir/srv"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement