[Midnightbsd-cvs] mports: make_chroot_tarball.pl: Preserve permissions on tar operation to

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Nov 11 19:06:01 EST 2007


Log Message:
-----------
Preserve permissions on tar operation to simulate a real system.  Remove /var/crash/ and /var/audit as they should not be needed for ports builds.

Modified Files:
--------------
    mports/Tools/magus:
        make_chroot_tarball.pl (r1.2 -> r1.3)

-------------- next part --------------
Index: make_chroot_tarball.pl
===================================================================
RCS file: /home/cvs/mports/Tools/magus/make_chroot_tarball.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -L Tools/magus/make_chroot_tarball.pl -L Tools/magus/make_chroot_tarball.pl -u -r1.2 -r1.3
--- Tools/magus/make_chroot_tarball.pl
+++ Tools/magus/make_chroot_tarball.pl
@@ -87,9 +87,7 @@
   /var/at
   /var/at/jobs
   /var/at/spool
-  /var/audit
   /var/backups
-  /var/crash/minfree
   /var/db/entropy
   /var/db/ipf
   /var/db/locate.database
@@ -123,6 +121,6 @@
   die "Command returned non-zero ($?)\n";
 }
 
-run(qq(/usr/bin/tar -c -f $ballname @files));
+run(qq(/usr/bin/tar -cpf $ballname @files));
 run(qq(/bin/ls -hl $ballname));
 


More information about the Midnightbsd-cvs mailing list