aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/create
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-01-17 10:51:39 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-01-17 10:51:39 +0000
commit20d7b1acaeedd0b4942f787e5cad754aac8ceb3b (patch)
treee06f7c169314456270b807f116da48bc1bf6cedb /usr.sbin/pkg_install/create
parent62eaa6eed122bc84da78593f8fb221dfbe067dac (diff)
downloadsrc-20d7b1acaeedd0b4942f787e5cad754aac8ceb3b.tar.gz
src-20d7b1acaeedd0b4942f787e5cad754aac8ceb3b.zip
Pass `-9' flag to gzip(1), so that package is compressed using maximum
compression. Usually this gives gives extra 1-1.5%. MFC after: 1 day
Notes
Notes: svn path=/head/; revision=89458
Diffstat (limited to 'usr.sbin/pkg_install/create')
-rw-r--r--usr.sbin/pkg_install/create/perform.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index 8265e2685777..d2cfd03eb055 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -29,6 +29,7 @@ static const char rcsid[] =
#include <err.h>
#include <libgen.h>
#include <signal.h>
+#include <stdlib.h>
#include <sys/syslimits.h>
#include <sys/wait.h>
#include <unistd.h>
@@ -77,9 +78,10 @@ pkg_perform(char **pkgs)
}
if (UseBzip2)
suf = "tbz2";
- else if (compress)
+ else if (compress) {
suf = "tgz";
- else
+ setenv("GZIP", "-9", 0);
+ } else
suf = "tar";
if (InstalledPkg != NULL)