summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmile Pesik2015-07-08 14:15:02 +0100
committerEmile Pesik2015-07-08 14:15:02 +0100
commitafa4dd3b1f942a33e63f1dd0ed28642c33c81fe2 (patch)
tree5f3727a2f2015792730211fbfd49422f4f3938c3
downloadaur-smbldap-tools.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD34
-rw-r--r--smbldap-config.pl.patch18
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4ee14367dd9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = smbldap-tools
+ pkgdesc = A set of perl scripts designed to manage user and group accounts stored in an LDAP directory.
+ pkgver = 0.9.10
+ pkgrel = 1
+ url = https://gna.org/projects/smbldap-tools/
+ arch = any
+ license = GPL
+ depends = samba
+ depends = openldap
+ depends = perl-digest-sha1
+ depends = perl-unicode-maputf8
+ depends = perl-crypt-smbhash
+ depends = perl-ldap
+ depends = perl-io-socket-ssl
+ backup = etc/smbldap-tools/smbldap.conf
+ backup = etc/smbldap-tools/smbldap_bind.conf
+ source = http://download.gna.org/smbldap-tools/sources/0.9.10/smbldap-tools-0.9.10.tar.gz
+ source = smbldap-config.pl.patch
+ md5sums = f52a626637c468d66a4e71f30c174873
+ md5sums = 36aed03f5fa270bd8ac5849feb200d46
+
+pkgname = smbldap-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..556ba245457
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Emile Pesik <ristridin [at] gmail [dot] com>
+# Contributor: Martin Imobersteg <imm [at] gmx [dot] ch>
+pkgname=smbldap-tools
+pkgver=0.9.10
+pkgrel=1
+pkgdesc="A set of perl scripts designed to manage user and group accounts stored in an LDAP directory."
+arch=(any)
+url="https://gna.org/projects/smbldap-tools/"
+license=("GPL")
+depends=('samba' 'openldap' 'perl-digest-sha1' 'perl-unicode-maputf8' 'perl-crypt-smbhash' 'perl-ldap' 'perl-io-socket-ssl')
+source=("http://download.gna.org/smbldap-tools/sources/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ 'smbldap-config.pl.patch')
+backup=(etc/smbldap-tools/smbldap.conf etc/smbldap-tools/smbldap_bind.conf)
+md5sums=('f52a626637c468d66a4e71f30c174873'
+ '36aed03f5fa270bd8ac5849feb200d46')
+
+prepare() {
+ cd $srcdir/${pkgname}-${pkgver}
+ patch -p1 -i $srcdir/smbldap-config.pl.patch
+ }
+
+build() {
+ cd $srcdir/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
+ make
+ }
+
+package() {
+ cd $srcdir/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 smbldap.conf $pkgdir/etc/smbldap-tools/smbldap.conf
+ install -D -m644 smbldap_bind.conf $pkgdir/etc/smbldap-tools/smbldap_bind.conf
+ }
diff --git a/smbldap-config.pl.patch b/smbldap-config.pl.patch
new file mode 100644
index 00000000000..6329bc40def
--- /dev/null
+++ b/smbldap-config.pl.patch
@@ -0,0 +1,18 @@
+diff -aur smbldap-tools-0.9.10/smbldap-config.pl smbldap-tools-0.9.10-modified/smbldap-config.pl
+--- smbldap-tools-0.9.10/smbldap-config.pl 2012-03-05 08:59:44.000000000 +0000
++++ smbldap-tools-0.9.10-modified/smbldap-config.pl 2013-05-30 16:16:01.739410399 +0100
+@@ -557,3 +557,14 @@
+ $mode=0600;
+ chmod $mode,"$smbldap_bind_conf","$smbldap_bind_conf.old";
+
++_END_
++
++=head1 NAME
++
++smbldap-config - Configure the smbldap-tools
++
++=head1 SYNOPSIS
++
++smbldap-config
++
++=head1 DESCRIPTION