]> mj.ucw.cz Git - libucw.git/commitdiff
Build: Added CONFIG_BUILDDEB_GZIP option.
authorPavel Charvat <pchar@ucw.cz>
Wed, 19 Jan 2022 15:20:59 +0000 (16:20 +0100)
committerPavel Charvat <pchar@ucw.cz>
Wed, 19 Jan 2022 15:20:59 +0000 (16:20 +0100)
debian/rules
default.cfg

index 99e8cf97c5b0478d1c50a7ebda7ecbc26d821efe..f23966f1e211f6236c6d1217e8dbb0ca0efaee26 100755 (executable)
@@ -84,7 +84,11 @@ binary-arch: build install
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
+ifdef CONFIG_BUILDDEB_GZIP
+       dh_builddeb -- -Zgzip
+else
        dh_builddeb
+endif
 
 binary: binary-indep binary-arch
 .PHONY: build build-arch build-indep clean binary-indep binary-arch binary install
index 7aa310aa7b38df8dfd94f99a3a262038db30ec0d..086ab385f1902b2b281158af30940e20ba17249b 100644 (file)
@@ -41,5 +41,9 @@ Set("CONFIG_XML");
 # Libucw-json
 Set("CONFIG_JSON");
 
+# Compress .deb packages with gzip (instead of the default algorithm)
+# Hack for Economia's deployment machinery
+UnSet("CONFIG_BUILDDEB_GZIP");
+
 # Return success
 1;