From 698c42e2a069018285395a53e21f7c0dabfec88c Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Thu, 16 Jul 2009 20:53:41 +0200 Subject: [PATCH] Preserve file permissions and ownership when extracting distfiles. --- pkgmk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2