summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfe18c96dfd6d1a9d8ce849cdc560d228d82fe1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Nikolaos Bezirgiannis <bezeria@gmail.com>
# Contributor: Jeffrey Gelens <jgelens@gmail.com>
pkgname=mod_rpaf
pkgver=20150923
pkgrel=1
pkgdesc="rpaf is for backend Apache servers what mod_proxy_add_forward is for frontend Apache servers"
arch=('i686' 'x86_64')
url='https://github.com/gnif/mod_rpaf'
source=("mod_rpaf::git+https://github.com/gnif/mod_rpaf#branch=stable")
arch=(i686 x86_64)
license=('apache')
depends=('apache>=2.2')
makedepends=('git' 
             'apache>=2.2')
install=$pkgname.install
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  date +%Y%m%d --date="$(git show -s --format=%cD HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  apxs -c -n mod_rpaf.so mod_rpaf.c || return 1
}

package() {
  cd "$srcdir/$pkgname"
  mkdir -p ${pkgdir}/usr/lib/httpd/modules
  apxs -i -S LIBEXECDIR=${pkgdir}/usr/lib/httpd/modules -n mod_rpaf.so mod_rpaf.la
}