2012-04-05 10:24:35 +00:00
|
|
|
# Template file for 'cifs-utils'
|
|
|
|
pkgname=cifs-utils
|
2014-09-08 09:03:35 +00:00
|
|
|
version=6.4
|
2015-06-22 00:04:50 +00:00
|
|
|
revision=4
|
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"
|
2014-09-08 09:03:35 +00:00
|
|
|
checksum=38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3
|
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
|
|
|
}
|