summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-30 22:40:06 +0000
committerobrien <obrien@FreeBSD.org>2002-04-30 22:40:06 +0000
commit451e89b13e6de1a22c9029acdbe0565ca18f560b (patch)
tree04291a07fc7c8d7c5c9cdbcb74819128b46fc53c /usr.sbin/sade
parent968fe15c4ddd29119f7160321c6530f8df1bd320 (diff)
downloadFreeBSD-src-451e89b13e6de1a22c9029acdbe0565ca18f560b.zip
FreeBSD-src-451e89b13e6de1a22c9029acdbe0565ca18f560b.tar.gz
Add the ability to use Bzip'ed packages.
Also add the ability to use Bzip'ed distributions -- but this is exclusive of being able to use Gzip'ed distributions. Sponsored by: FreeBSD Mall, Inc.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/Makefile2
-rw-r--r--usr.sbin/sade/sade.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile
index 96b976d..1c4f221 100644
--- a/usr.sbin/sade/Makefile
+++ b/usr.sbin/sade/Makefile
@@ -15,7 +15,7 @@ SRCS+= pccard.c
.endif
CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I.
-CFLAGS+= -DX_AS_PKG
+CFLAGS+= -DX_AS_PKG -DUSE_GZIP=1
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h
index 7c9d9d6..eb989d1 100644
--- a/usr.sbin/sade/sade.h
+++ b/usr.sbin/sade/sade.h
@@ -803,5 +803,11 @@ extern void slice_wizard(Disk *d);
#define DEVICE_GET(d, b, f) ((d) != NULL ? (d)->get((d), (b), (f)) : NULL)
#define DEVICE_SHUTDOWN(d) ((d) != NULL ? (d)->shutdown((d)) : (void)0)
+#ifdef USE_GZIP
+#define UNZIPPER "gunzip"
+#else
+#define UNZIPPER "bunzip2"
+#endif
+
#endif
/* _SYSINSTALL_H_INCLUDE */
OpenPOWER on IntegriCloud