[arch-commits] Commit in pam_ldap/trunk (PKGBUILD)

Jan de Groot jgc at archlinux.org
Sat Aug 15 14:51:02 UTC 2009


    Date: Saturday, August 15, 2009 @ 10:51:02
  Author: jgc
Revision: 49747

upgpkg: pam_ldap 184-2
    Fix manpath

Modified:
  pam_ldap/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-08-15 14:44:55 UTC (rev 49746)
+++ PKGBUILD	2009-08-15 14:51:02 UTC (rev 49747)
@@ -3,28 +3,23 @@
 # Contributor: Comete <la_comete at tiscali.fr>
 pkgname=pam_ldap
 pkgver=184
-pkgrel=1
-pkgdesc="The pam_ldap module provides the means for Solaris and Linux workstations to authenticate against LDAP directories, and to change their passwords in the directory."
+pkgrel=2
+pkgdesc="LDAP authentication module for the PAM framework"
 arch=(i686 x86_64)
 url="http://www.padl.com/OSS/pam_ldap.html"
 license=('LGPL')
-depends=(libldap pam)
-conflicts=()
-replaces=()
-backup=("etc/$pkgname.conf")
+depends=('libldap' 'pam')
+backup=("etc/pam_ldap.conf")
 install=
-source=(http://www.padl.com/download/$pkgname-$pkgver.tar.gz)
+source=(http://www.padl.com/download/${pkgname}-${pkgver}.tar.gz)
 md5sums=('1b381b5f1ce67fe0a885d9a7c69b93af')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
-  ./configure \
-         --libdir=/lib \
-         --with-ldap-conf-file=/etc/$pkgname.conf
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  ./configure --libdir=/lib \
+      --with-ldap-conf-file=/etc/pam_ldap.conf \
+      --mandir=/usr/share/man || return 1
   make || return 1
-  mkdir -p $startdir/pkg/lib
-  make DESTDIR=$startdir/pkg install
-  mv $startdir/pkg/etc/ldap.conf $startdir/pkg/etc/$pkgname.conf
-  mkdir $startdir/pkg/usr
-  mv $startdir/pkg/man $startdir/pkg/usr
+  make DESTDIR="${pkgdir}" install || return 1
+  mv "${pkgdir}/etc/ldap.conf" "${pkgdir}/etc/pam_ldap.conf" || return 1
 }




More information about the arch-commits mailing list