blob: b0ca15151a686119ba9f17912ff7f783ee88e815 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# Contributor: Vince Mele <vmele@inoc.com>
# Maintainer: Vince Mele <vmele@inoc.com>
pkgname=sssd
pkgver=1.15.3
pkgrel=1
pkgdesc="System Security Services Daemon"
url="https://pagure.io/SSSD/sssd"
arch="x86_64"
license="GPL-3.0"
# TODO: the full test suite depends on these
# but does not pass.
#checkdepends="
# check-dev
# cmocka-dev
# "
depends="
bind
curl
cyrus-sasl-gssapi
"
makedepends="
autoconf
gettext-dev
automake
libtool
popt-dev
talloc-dev
tdb-dev
tevent-dev
ldb-dev
ding-libs-dev
linux-pam-dev
pcre-dev
c-ares-dev
bind-tools
http-parser-dev
curl-dev
jansson-dev
glib-dev
dbus-dev
libxslt
libxml2-utils
docbook-xsl
python2-dev
python3-dev
nss-dev
openldap-dev
krb5-dev
keyutils-dev
"
install=""
subpackages="$pkgname-dev $pkgname-openrc"
source="https://releases.pagure.org/SSSD/$pkgname/$pkgname-$pkgver.tar.gz
0001-makefile.patch
0002-src.patch
0003-alpine.patch
nss.h
cifsidmap.h
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
cp $srcdir/nss.h $srcdir/cifsidmap.h $builddir/src/
autoreconf -i
}
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--exec-prefix=/usr/sbin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/sssd \
--datadir=/usr/share \
--enable-pammoddir=/usr/lib/security \
--with-pid-path=/run \
--with-initscript=sysv \
--with-init-dir=/etc/init.d \
--with-os=alpine \
--without-selinux \
--without-semanage \
--without-autofs \
--without-ssh \
--without-samba \
--without-nfsv4-idmapd-plugin \
--without-manpages \
--disable-cifs-idmap-plugin
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make -j1 DESTDIR=$pkgdir install
# Remove files we don't want to package
find "$pkgdir" -name '*.la' -delete
find "$pkgdir" -name '*.pyc' -delete
find "$pkgdir" -name '*.egg-info' -delete
rm -rf "$pkgdir"/usr/share
rm -rf "$pkgdir"/lib
rm -rf "$pkgdir"/run
rm -rf "$pkgdir"/usr/lib/ldb/modules/ldb/memberof.la
}
sha512sums="92478205ee1b1cebc3d35b733576180db51cee8cc84d0c2cb78386924ffa90ae355b6ad9b7b51e5e5f5a7a4588764d1c7afb0673c035b1fe9b1a283beb79a428 sssd-1.15.3.tar.gz
d0f30b6a372d3ca9705e9621f6bc4dc473a381a719b2158ad66195d0037ae1661d2832c3ec7755e200070b8de2e0ddbf77da36d2f25bcfa6e0e352d08662db37 0001-makefile.patch
70284f0820e958c1c091d554cb2dd302f210935fb191deb71af510c52c402d52298143e05dfa161eecf89885d3c2569a4a0c536480971becd4d50a7d5adf3ffa 0002-src.patch
300c1f6750054f61201e0952642f533aa5f572c208fc4f8317b89ec6731734680bf771bd37664e5f907fb30a713ace4b26aad9b6da2245a5cc10f9f0af878246 0003-alpine.patch
5abb1ffd1302eaa25736404ae148c0ffdeb7ce42fa2745be3436e887a2aa96b9620287f19b2790cb59cbccc2c04a9dee1adec4fa8e813d322cde82793500e33b nss.h
b88d4f1ba847477783b43542f1248881d4fb8e8a0d4165c65c358fcb442891d2cc7c96b05e2a8e7c05fdc17ecd76f16295c1ffac3f1c9bfd0375c5e65e56201d cifsidmap.h"
|