aboutsummaryrefslogtreecommitdiffstats
path: root/main/cifs-utils/APKBUILD
blob: df90ed2baa583c7b4c2e8d16840eb1cf08efa683 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=cifs-utils
pkgver=6.2
pkgrel=0
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="ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/$pkgname-$pkgver.tar.bz2"

_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="6a83fe19e02266cb468ea3bf1cc0d007  cifs-utils-6.2.tar.bz2"
sha256sums="34676e374ee139ce1b6566ed1802c55f92b5d74cc58417a4989df7438ff2cd33  cifs-utils-6.2.tar.bz2"
sha512sums="dc7060d3da65b706ce491a0c1fd113440f93787b79b29fa6207f96b538a2403f54e5e780418e0ad0b65e14eb45d3b0d50439253266c9d12b0d9f772954031ea6  cifs-utils-6.2.tar.bz2"