CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Preserve file permissions and ownership when extracting distfiles.
authorJuergen Daubert <jue@jue.li>
Thu, 16 Jul 2009 18:53:41 +0000 (20:53 +0200)
committerTilman Sauerbeck <tilman@crux.nu>
Thu, 16 Jul 2009 18:53:41 +0000 (20:53 +0200)
pkgmk.in

index 0c826ac0207c824e2c1a8c06c63aab68edc58bc4..bf7d7532e22e06a0745d52c1af95c4bb3af74199 100755 (executable)
--- 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