2012-04-05 10:24:35 +00:00
|
|
|
# Template file for 'cifs-utils'
|
|
|
|
pkgname=cifs-utils
|
2016-02-23 06:25:48 +00:00
|
|
|
version=6.5
|
|
|
|
revision=1
|
2012-08-06 16:46:58 +00:00
|
|
|
build_style=gnu-configure
|
2015-06-02 09:56:27 +00:00
|
|
|
configure_args="--sbindir=/usr/bin"
|
|
|
|
make_install_args="ROOTSBINDIR=/usr/bin"
|
2014-09-08 09:03:35 +00:00
|
|
|
hostmakedepends="pkg-config libcap-ng-devel"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="mit-krb5-devel talloc-devel libcap-ng-devel samba-devel keyutils-devel pam-devel"
|
2012-04-05 10:24:35 +00:00
|
|
|
short_desc="CIFS filesystem user-space tools"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-04-05 10:24:35 +00:00
|
|
|
license="GPL-2"
|
2012-08-06 16:46:58 +00:00
|
|
|
homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils"
|
2015-04-03 20:33:14 +00:00
|
|
|
distfiles="https://ftp.samba.org/pub/linux-cifs/$pkgname/$pkgname-$version.tar.bz2"
|
2016-02-23 06:25:48 +00:00
|
|
|
checksum=e2776578b8267c6dc0862897f5e10f87f10f8337fca9ca6a9118f5eb30cf49f7
|
2013-09-24 13:59:21 +00:00
|
|
|
|
2015-06-22 00:04:50 +00:00
|
|
|
pre_configure() {
|
|
|
|
# Fix musl build
|
|
|
|
sed -i ${wrksrc}/mtab.c \
|
|
|
|
-e "/#include <stdlib.h>/a #include <limits.h>" \
|
|
|
|
-e "/#include <stdlib.h>/a #include <paths.h>"
|
|
|
|
sed -i ${wrksrc}/getcifsacl.c \
|
|
|
|
-e "/#include <stdlib.h>/a #include <endian.h>" \
|
|
|
|
-e "/#include <stdlib.h>/a #include <linux/limits.h>"
|
|
|
|
sed -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>"
|
|
|
|
}
|
2012-04-05 10:24:35 +00:00
|
|
|
post_install() {
|
2015-06-02 09:56:27 +00:00
|
|
|
chmod +s ${DESTDIR}/usr/bin/mount.cifs
|
2013-09-24 13:59:21 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/include
|
2012-04-05 10:24:35 +00:00
|
|
|
}
|