summaryrefslogtreecommitdiff
path: root/user/cifs-utils/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-01-28 00:37:16 -0500
committerMax Rees <maxcrees@me.com>2019-01-28 00:37:16 -0500
commit795cfbffd95949cf469637ad66e8d00ba0b62df1 (patch)
tree5a27ef14679632c1a300a3aa9ce307aa1e485ead /user/cifs-utils/APKBUILD
parentbc9c8e49b499f4d27d74e2f557d891d41a10b3ae (diff)
downloadpackages-795cfbffd95949cf469637ad66e8d00ba0b62df1.tar.gz
packages-795cfbffd95949cf469637ad66e8d00ba0b62df1.tar.bz2
packages-795cfbffd95949cf469637ad66e8d00ba0b62df1.tar.xz
packages-795cfbffd95949cf469637ad66e8d00ba0b62df1.zip
user/cifs-utils: new package
Diffstat (limited to 'user/cifs-utils/APKBUILD')
-rw-r--r--user/cifs-utils/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/user/cifs-utils/APKBUILD b/user/cifs-utils/APKBUILD
new file mode 100644
index 000000000..f5987a037
--- /dev/null
+++ b/user/cifs-utils/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=cifs-utils
+pkgver=6.8
+pkgrel=0
+pkgdesc="CIFS filesystem user-space tools"
+url="https://wiki.samba.org/index.php/LinuxCIFS_utils"
+arch="all"
+options="!check suid" # No test suite.
+license="GPL-3.0+ AND GPL-2.0+ AND LGPL-3.0+"
+depends=""
+makedepends="keyutils-dev krb5-dev libcap-ng-dev linux-pam-dev
+ py3-docutils talloc-dev"
+subpackages="$pkgname-doc $pkgname-dev"
+source="https://ftp.samba.org/pub/linux-cifs/$pkgname/$pkgname-$pkgver.tar.bz2
+ musl-fix-includes.patch
+ xattr_size_max.patch"
+
+build() {
+ cd "$builddir"
+ # --enable-cifsidmap and --enable-cifsacl require libwbclient (samba)
+
+ autoreconf -i
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-cifsidmap=no \
+ --enable-cifsacl=no
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ make check
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+ # Allow unprivileged mount
+ chmod u+s "$pkgdir"/sbin/mount.cifs
+}
+
+sha512sums="54a094f78c9e07acc997adfe0c8d4c2fb8e15c18adcc1805450e2180f8539aaec8619e781e985b289e097932637e2de3e6815e32f59ec2fc06cfc3762b832e13 cifs-utils-6.8.tar.bz2
+99a2fab05bc2f14a600f89526ae0ed2c183cfa179fe386cb327075f710aee3aed5ae823f7c2f51913d1217c2371990d6d4609fdb8d80288bd3a6139df3c8aebe musl-fix-includes.patch
+2a9366ec1ddb0389c535d2fa889f63287cb8374535a47232de102c7e50b6874f67a3d5ef3318df23733300fd8459c7ec4b11f3211508aca7800b756119308e98 xattr_size_max.patch"