updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / sssd / PKGBUILD
blobc2f1dda0446b9f8564735c8c0d03b333846e1fc1
1 # Maintainer: Mantas M. <grawity@gmail.com>
2 pkgname=sssd
3 pkgver=1.7.0
4 pkgrel=1
5 pkgdesc="System Security Services Daemon"
6 arch=('i686' 'x86_64')
7 url="https://fedorahosted.org/sssd/"
8 license=('GPL3')
9 depends=(
10   'bind'          # for nsupdate
11   'c-ares'
12   'dbus-core'
13   'ding-libs'
14   'krb5'
15   'ldb'
16   'libldap'
17   'libnl'
18   'libsasl'
19   'libunistring'
20   'libxml2'
21   'nspr'
22   'nss'
23   'pcre'
24   'talloc'
25   'tdb'
26   'tevent'
28 makedepends=(
29   'docbook-xsl'
30   'doxygen'
32 source=("https://fedorahosted.org/released/$pkgname/$pkgname-$pkgver.tar.gz"
33         'sssd.service'
34         'sssd.rcd')
35 sha1sums=('c46600b6686ef0eabd09bfa07a78fa285f2275e0'
36           '10945fa294c5ace62f2dcc7db6091710b46d6ffe'
37           'e40e22cecc2cd6d842a040e3266554bff17ba079')
39 build() {
40   cd "$srcdir/$pkgname-$pkgver"
41   ./configure \
42     --prefix=/usr                             \
43     --sysconfdir=/etc                         \
44     --localstatedir=/var                      \
45     --libexecdir=/usr/lib/sssd                \
46     --enable-pammoddir=/lib/security          \
47     --with-os=fedora                          \
48     --with-pid-path=/run                      \
49     --without-python-bindings                 \
50     --without-selinux                         \
51     --without-semanage                        \
52     --with-initscript=systemd                 \
53     --with-systemdunitdir=/lib/systemd/system \
54     --enable-all-experimental-features        \
55     ;
56   make
59 package() {
60   cd "$srcdir/$pkgname-$pkgver"
61   make DESTDIR="$pkgdir/" install
62   rm -rf "$pkgdir/etc/rc.d"
63   rm -f "$pkgdir/usr/modules/ldb/memberof.la"
64   find "$pkgdir/usr/share/man" -depth -type d -exec rmdir --ignore-fail-on-non-empty {} \;
65   # The included unit requires way too much sed'ing.
66   install -Dm0644 "$srcdir/sssd.service" "$pkgdir/lib/systemd/system/sssd.service"
67   install -Dm0755 "$srcdir/sssd.rcd" "$pkgdir/etc/rc.d/sssd"
68
70 # vim: ts=2:sw=2:et