# Description: Utilities for doing and managing mounts of the Linux CIFS filesystem
# URL: https://wiki.samba.org/index.php/LinuxCIFS_utils
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: linux-pam samba keyutils

name=cifs-utils
version=7.0
release=1
source=(https://download.samba.org/pub/linux-cifs/$name/$name-$version.tar.bz2
	$name-man.tar.xz cifs)

build () {
	cd $name-$version

	install -d $PKG/{sbin,usr/share/man/man{1,8}}
	install -m 0644 $SRC/*.1 $PKG/usr/share/man/man1
	install -m 0644 $SRC/*.8 $PKG/usr/share/man/man8
	ln -s mount.cifs.8 $PKG/usr/share/man/man8/mount.smb3.8

	./configure --prefix=/usr --with-pamdir=/lib/security
	make
	make DESTDIR=$PKG install

	install -D -m 0755 $SRC/cifs $PKG/etc/rc.d/cifs
}
