36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'cifs-utils'
|
|
pkgname=cifs-utils
|
|
version=6.15
|
|
revision=1
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://wiki.samba.org/index.php/LinuxCIFS_utils"
|
|
distfiles="https://ftp.samba.org/pub/linux-cifs/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=a7b6940e93250c1676a6fa66b6ead91b78cd43a5fee99cc462459c8b9cf1e6f4
|
|
python_version=3
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
# Fix musl build
|
|
vsed -i ${wrksrc}/mtab.c \
|
|
-e "/#include <stdlib.h>/a #include <limits.h>"
|
|
vsed -i ${wrksrc}/getcifsacl.c \
|
|
-e "/#include <stdlib.h>/a #include <endian.h>" \
|
|
-e "/#include <stdlib.h>/a #include <linux/limits.h>"
|
|
vsed -i ${wrksrc}/setcifsacl.c \
|
|
-e "/#include <stdlib.h>/a #include <paths.h>" \
|
|
-e "/#include <stdlib.h>/a #include <endian.h>" \
|
|
-e "/#include <stdlib.h>/a #include <linux/limits.h>"
|
|
}
|
|
|
|
post_install() {
|
|
chmod +s ${DESTDIR}/usr/bin/mount.cifs
|
|
rm -rf ${DESTDIR}/usr/include
|
|
}
|