aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-06 14:12:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-06 14:13:28 +0000
commit057f73384a48f835560c6ddc2e25cc1e3f202b31 (patch)
tree8e9505c36b0a6c43d6af5105943f5e8999fa0a7c /main
parentd56289ebb5cdf8c801a4f31a5f7de2fd7f24b9b5 (diff)
downloadaports-057f73384a48f835560c6ddc2e25cc1e3f202b31.tar.bz2
aports-057f73384a48f835560c6ddc2e25cc1e3f202b31.tar.xz
main/samba: fix /etc/etc and /var/var in samba-common
fixes #4070
Diffstat (limited to 'main')
-rw-r--r--main/samba/APKBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD
index 524af5aad2..0870e6f506 100644
--- a/main/samba/APKBUILD
+++ b/main/samba/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=samba
pkgver=4.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Tools to access a server's filespace and printers via SMB"
url="http://www.samba.org"
arch="all"
@@ -117,7 +117,10 @@ initscript() {
_mv_files() {
local i
for i in "$@"; do
- mkdir -p "$subpkgdir"/${i%/*}
+ case $i in
+ */*) mkdir -p "$subpkgdir"/${i%/*};;
+ *) mkdir -p "$subpkgdir";;
+ esac
mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
done
}