# Template file for 'cifs-utils' pkgname=cifs-utils version=6.9 revision=2 build_style=gnu-configure configure_args="--disable-systemd" make_install_args="ROOTSBINDIR=/usr/bin" hostmakedepends="automake pkg-config libcap-ng-devel python3-docutils" makedepends="mit-krb5-devel talloc-devel libcap-ng-devel samba-devel keyutils-devel pam-devel" short_desc="CIFS filesystem user-space tools" maintainer="Juan RP " license="GPL-2.0-or-later" homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils" distfiles="https://ftp.samba.org/pub/linux-cifs/${pkgname}/${pkgname}-${version}.tar.bz2" checksum=18d8f1bf92c13c4d611502dbd6759e3a766ddc8467ec8a2eda3f589e40b9ac9c pre_configure() { autoreconf -fi # Fix musl build vsed -i ${wrksrc}/mtab.c \ -e "/#include /a #include " vsed -i ${wrksrc}/getcifsacl.c \ -e "/#include /a #include " \ -e "/#include /a #include " vsed -i ${wrksrc}/setcifsacl.c \ -e "/#include /a #include " \ -e "/#include /a #include " \ -e "/#include /a #include " } post_install() { chmod +s ${DESTDIR}/usr/bin/mount.cifs rm -rf ${DESTDIR}/usr/include }