summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-01-17 10:51:39 +0000
committersobomax <sobomax@FreeBSD.org>2002-01-17 10:51:39 +0000
commit8c0a609962e301459cbcbb6177817093b2280d6b (patch)
treee06f7c169314456270b807f116da48bc1bf6cedb /usr.sbin/pkg_install
parentd772a0faa3bf88b4932465c76bbcd48b5175337f (diff)
downloadFreeBSD-src-8c0a609962e301459cbcbb6177817093b2280d6b.zip
FreeBSD-src-8c0a609962e301459cbcbb6177817093b2280d6b.tar.gz
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
Diffstat (limited to 'usr.sbin/pkg_install')
-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 8265e26..d2cfd03 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)
OpenPOWER on IntegriCloud