aboutsummaryrefslogtreecommitdiffstats
path: root/main/cifs-utils/APKBUILD
blob: f1a8fd86bb62fba5d7add6c363edbccca5c20b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=cifs-utils
pkgver=6.4
pkgrel=2
pkgdesc="CIFS filesystem user-space tools"
url="http://wiki.samba.org/index.php/LinuxCIFS_utils"
arch="all"
license="GPL2+"
depends=""
depends_dev="libcap-dev keyutils-dev krb5-dev talloc-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="https://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-$pkgver.tar.bz2
	musl-fix-includes.patch
	"
options=suid

_builddir=$srcdir/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make AM_CFLAGS="" || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -r $pkgdir/usr/bin
	# set mount.cifs uid, to enable none root mounting form fstab
	chmod +s $pkgdir/sbin/mount.cifs
}

md5sums="b7d75b67fd3987952896d27256c7293d  cifs-utils-6.4.tar.bz2
6790aa0c2b4eaa4c28756b73bd1c4741  musl-fix-includes.patch"
sha256sums="38fc63926af435dae4ebcf4406275580a692d9fb9ee3e32170317cf2ba68e6e3  cifs-utils-6.4.tar.bz2
3d1d32f09709ca430d77edcce811b171a0db6fa352555fbfe0578da6f36cc8be  musl-fix-includes.patch"
sha512sums="05860ceed1e83b4f4da689d2fc1c1b48fddc0ca53ba52fc6cf26a277d6a884f5780060725c5df1401a665ac35ec5a170262ee62f61095e4a8d76348888182614  cifs-utils-6.4.tar.bz2
99a2fab05bc2f14a600f89526ae0ed2c183cfa179fe386cb327075f710aee3aed5ae823f7c2f51913d1217c2371990d6d4609fdb8d80288bd3a6139df3c8aebe  musl-fix-includes.patch"