summaryrefslogtreecommitdiff
path: root/community/pppd-ldap-simple/PKGBUILD
blob: d16f830108178ffad37e8e304065fa6b8b160ec7 (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
# $Id: PKGBUILD 106133 2014-02-23 23:02:14Z thomas $

pkgname=pppd-ldap-simple
pkgver=0.12b
pkgrel=7
pkgdesc="pppd ldap simple plugin (based on pppd ldap, without radius, etc. Just search by uid and userPassword)"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/pppd-ldap/"
makedepends=('ppp' 'libldap')
license=('GPL')
source=(http://archlinux-stuff.googlecode.com/files/pppd_ldap-simple-$pkgver.tar.gz)
md5sums=('e47b7fb5119a1024e188ec22351672cd')

build() {
  cd "$srcdir/pppd_ldap-simple-$pkgver"
  make CFLAGS="-I/usr/include/pppd -fPIC"
}

package() {
  _pppdver=`pacman -Q ppp | cut -d\  -f 2  | cut -f 1 -d -`
  depends=("ppp=${_pppdver}" 'libldap>=2.4.18')

  cd "$srcdir/pppd_ldap-simple-$pkgver"
  install -D -m0755 pppd_ldap.so $pkgdir/usr/lib/pppd/${_pppdver}/pppd_ldap_simple.so
}