From 057f73384a48f835560c6ddc2e25cc1e3f202b31 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 6 May 2015 14:12:06 +0000 Subject: main/samba: fix /etc/etc and /var/var in samba-common fixes #4070 --- main/samba/APKBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main/samba') 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 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 } -- cgit v1.2.3