summaryrefslogtreecommitdiff
path: root/community/pppd-ldap
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/pppd-ldap
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/pppd-ldap')
-rw-r--r--community/pppd-ldap/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/pppd-ldap/PKGBUILD b/community/pppd-ldap/PKGBUILD
new file mode 100644
index 000000000..27c593d82
--- /dev/null
+++ b/community/pppd-ldap/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 2636 2009-09-19 18:21:47Z ibiru $
+
+pkgname=pppd-ldap
+pkgver=0.12b
+pkgrel=2
+pkgdesc="pppd ldap plugin"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/pppd-ldap/"
+license=('GPL')
+depends=('ppp' 'libldap>=2.4.18')
+options=(docs)
+source=(http://downloads.sourceforge.net/sourceforge/pppd-ldap/pppd_ldap-$pkgver.tgz)
+md5sums=('4d13596297c2728f3cfe0a097c97d8fc')
+
+build() {
+ cd "$srcdir/pppd_ldap-$pkgver"
+
+patch -p1 main.c <<EOF
+diff pppd_ldap-0.12b/main.c pppd_ldap-0.12b.my/main.c
+56a57,58
+> #define LDAP_FILT_MAXSIZ 1024
+>
+EOF
+
+patch -p1 utmplib.c <<EOF
+diff pppd_ldap-0.12b/utmplib.c pppd_ldap-0.12b.my/utmplib.c
+157c157
+< (char*) buf += rc;
+---
+> buf = (char*)buf + rc;
+EOF
+
+ make CFLAGS="-I/usr/include/pppd -fPIC" || return 1
+
+ install -D -m0755 pppd_ldap.so $pkgdir/usr/lib/pppd/2.4.4/pppd_ldap.so && \
+ install -D -m0755 README $pkgdir/usr/share/doc/pppd-ldap/README
+}