# Template file for 'cifs-utils'
pkgname=cifs-utils
version=6.0
revision=2
build_style=gnu-configure
configure_args="ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes"
hostmakedepends="pkg-config"
makedepends="mit-krb5-devel talloc-devel libcap-ng-devel samba-devel>=3.6.15_2 keyutils-devel"
short_desc="CIFS filesystem user-space tools"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils"
distfiles="ftp://ftp.samba.org/pub/linux-cifs/$pkgname/$pkgname-$version.tar.bz2"
checksum=f7bc15cc09082eee5e6c9647e826aaa5e73da41646541bb7a50f53f78a6ef8bc
long_desc="
 The SMB/CIFS protocol provides support for cross-platform file sharing with
 Microsoft Windows, OS X, and other Unix systems.

 This package provides utilities for managing mounts of CIFS network file
 systems."

post_install() {
	vmkdir usr/bin
	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
	mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
	chmod +s ${DESTDIR}/usr/bin/mount.cifs
}

cifs-utils_package() {
	pkg_install() {
		vmove usr
	}
}
