From: Juergen Daubert Date: Thu, 16 Jul 2009 18:53:41 +0000 (+0200) Subject: Preserve file permissions and ownership when extracting distfiles. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=698c42e2a069018285395a53e21f7c0dabfec88c;p=pkgutils-cross.git Preserve file permissions and ownership when extracting distfiles. --- diff --git a/pkgmk.in b/pkgmk.in index 0c826ac..bf7d753 100755 --- a/pkgmk.in +++ b/pkgmk.in @@ -163,7 +163,7 @@ unpack_source() { LOCAL_FILENAME=`get_filename $FILE` case $LOCAL_FILENAME in *.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tar.xz|*.zip) - COMMAND="bsdtar -C $SRC -xf $LOCAL_FILENAME" ;; + COMMAND="bsdtar -p -o -C $SRC -xf $LOCAL_FILENAME" ;; *) COMMAND="cp $LOCAL_FILENAME $SRC" ;; esac