2012-04-05 12:24:35 +02:00
|
|
|
# Template file for 'cifs-utils'
|
|
|
|
pkgname=cifs-utils
|
2014-09-08 11:03:35 +02:00
|
|
|
version=6.4
|
2015-06-22 02:04:50 +02:00
|
|
|
revision=4
|
2012-08-06 18:46:58 +02:00
|
|
|
build_style=gnu-configure
|
2015-06-02 11:56:27 +02:00
|
|
|
configure_args="--sbindir=/usr/bin"
|
|
|
|
make_install_args="ROOTSBINDIR=/usr/bin"
|
2014-09-08 11:03:35 +02:00
|
|
|
hostmakedepends="pkg-config libcap-ng-devel"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="mit-krb5-devel talloc-devel libcap-ng-devel samba-devel keyutils-devel pam-devel"
|
2012-04-05 12:24:35 +02:00
|
|
|
short_desc="CIFS filesystem user-space tools"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-04-05 12:24:35 +02:00
|
|
|
license="GPL-2"
|
2012-08-06 18:46:58 +02:00
|
|
|
homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils"
|
2015-04-03 22:33:14 +02:00
|
|
|
distfiles="https://ftp.samba.org/pub/linux-cifs/$pkgname/$pkgname-$version.tar.bz2"
|
2014-09-08 11:03:35 +02:00
|
|
|
checksum=38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3
|
2013-09-24 15:59:21 +02:00
|
|
|
|
2015-06-22 02:04:50 +02: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 12:24:35 +02:00
|
|
|
post_install() {
|
2015-06-02 11:56:27 +02:00
|
|
|
chmod +s ${DESTDIR}/usr/bin/mount.cifs
|
2013-09-24 15:59:21 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/include
|
2012-04-05 12:24:35 +02:00
|
|
|
}
|