diff options
author | krion <krion@FreeBSD.org> | 2006-04-17 10:58:45 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2006-04-17 10:58:45 +0000 |
commit | d309c87c8a20a2a67a2245cafe053ddfec959c6d (patch) | |
tree | 0eca821b7cee2c8fb0eca78f299d762718ea98e7 | |
parent | 61f7ca5019984ecd0a6ecadf250e659495ad2dee (diff) | |
download | FreeBSD-src-d309c87c8a20a2a67a2245cafe053ddfec959c6d.zip FreeBSD-src-d309c87c8a20a2a67a2245cafe053ddfec959c6d.tar.gz |
Use bzip2(1) by default to compress package tarball on
__FreeBSD_version >= 500039.
Submitted by: Alex Lyashkov <umka@sevcity.net>
MFC after: 5 days
-rw-r--r-- | usr.sbin/pkg_install/create/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index 1c3af29..a2973d9 100644 --- a/usr.sbin/pkg_install/create/main.c +++ b/usr.sbin/pkg_install/create/main.c @@ -41,7 +41,12 @@ char PlayPen[FILENAME_MAX]; int Dereference = FALSE; int PlistOnly = FALSE; int Recursive = FALSE; -enum zipper Zipper = GZIP; +#if defined(__FreeBSD_version) && __FreeBSD_version >= 500039 +enum zipper Zipper = BZIP2; +#else +enum zipper Zipper = GZIP; +#endif + static void usage __P((void)); |