aboutsummaryrefslogblamecommitdiffstats
path: root/testing/sssd/APKBUILD
blob: a342dd4e8491515393878f4d6c0d657882bacded (plain) (tree)
1
2
3
4
5
6
7
8
9
                                          
                                                      

                                         

             

                                         
             
                          










                                            
                           
         

                
                
                  
                  
                
                
                     
                   










                       

                    





                   
         
                                          
                                                                 





                           
           
                       
                                                                 
                     


         

                               









                                                      
                                             
                                 








                                               



            
                  


           
                                          

                                               


                                                 
 


                                                                                

                                 

 



                                                                                                                                                                

                                                                                                                                              
# Contributor: Vince Mele <vmele@inoc.com>
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Vince Mele <vmele@inoc.com>
pkgname=sssd
pkgver=1.16.5
pkgrel=0
pkgdesc="System Security Services Daemon"
url="https://pagure.io/SSSD/sssd"
arch="x86_64"
license="GPL-3.0-or-later"

# TODO: the full test suite depends on these
#	but does not pass.
#checkdepends="
#	check-dev
#	cmocka-dev
#	"

depends="
	bind
	curl
	cyrus-sasl-gssapiv2
	"
makedepends="
	autoconf
	automake
	bind-tools
	c-ares-dev
	curl-dev
	dbus-dev
	ding-libs-dev
	docbook-xsl
	gettext-dev
	glib-dev
	http-parser-dev
	jansson-dev
	keyutils-dev
	krb5-dev
	ldb-dev
	libtool
	libxml2-utils
	libxslt
	linux-pam-dev
	nss-dev
	openldap-dev
	pcre-dev
	popt-dev
	python3-dev
	talloc-dev
	tdb-dev
	tevent-dev
	"
subpackages="$pkgname-dev $pkgname-openrc"
source="https://releases.pagure.org/SSSD/sssd/sssd-$pkgver.tar.gz
	0001-makefile.patch
	0002-src.patch
	0003-alpine.patch
	nss.h
	cifsidmap.h
	"
prepare() {
	default_prepare
	cp "$srcdir"/nss.h "$srcdir"/cifsidmap.h "$builddir"/src/
	autoreconf -i
}

build() {
	./configure \
		--prefix=/usr \
		--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 \
		--disable-cifs-idmap-plugin \
		--disable-rpath \
		--disable-static \
		--without-autofs \
		--without-manpages \
		--without-nfsv4-idmapd-plugin \
		--without-python2-bindings \
		--without-samba \
		--without-selinux \
		--without-semanage \
		--without-ssh
	make
}

check() {
	make check
}

package() {
	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

	# pkgdir will allways be set, so silence shellsheck warning:
	#    SC2115: Use "${var:?}" to ensure this never expands to /usr/share .
	# shellcheck disable=SC2115
	rm -r "$pkgdir"/usr/share
	rm -r "$pkgdir"/run
}

sha512sums="3a3bcbe7707b92e4e84414e19b896153d634745bfe53957a5c916b78b292c05d1f2381346552bf98a4a7bd1f12e68d6d7cabdaabbe8df78973d2a1ad6bf7e38f  sssd-1.16.5.tar.gz
cc1d2c5f8b5efc1b0cde720764607382c0ae5657847ec59ab941ff4fb2414ce01396a72cf42c06c038389189f751711bd8fb0aaabe83ee827e2d1ec0bfc1dd4b  0001-makefile.patch
24f6573bb06ace5b66724212c855b53459339a706b130ae5a4fcb997f4f06f1f9069c008b142bbc48618c72a49d16cbec550806a128b9392b793cb4d83d3413d  0002-src.patch
2edf2c7931afdcfc2a617a982315272a334af53c87ae7d8a057ca8acb1fbfe154ca46b6053f3a3cc237e8f54f8f7d05254686ed50b9b2f274e0bb06971e2be06  0003-alpine.patch
5abb1ffd1302eaa25736404ae148c0ffdeb7ce42fa2745be3436e887a2aa96b9620287f19b2790cb59cbccc2c04a9dee1adec4fa8e813d322cde82793500e33b  nss.h
b88d4f1ba847477783b43542f1248881d4fb8e8a0d4165c65c358fcb442891d2cc7c96b05e2a8e7c05fdc17ecd76f16295c1ffac3f1c9bfd0375c5e65e56201d  cifsidmap.h"