diff options
author | Rene Wagner <rw@handhelds.org> | 2006-09-23 14:10:37 +0200 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2006-09-23 14:10:37 +0200 |
commit | e90d071ede34a9a2bacd2d4d336d559cdc956ca9 (patch) | |
tree | 4d0f9fdaf6180a2ca117a8c867d0e900c9939490 /org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb | |
parent | deff34c3b6bd112a17987fffc07f055ccc480638 (diff) |
gzip: add 1.3.5-15 from Debian. Fixes several vulnerabilities (CVE-2006-4334 - CVE-2006-4338).
Signed-off-by: Rene Wagner <rw@handhelds.org>
Diffstat (limited to 'org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb')
-rw-r--r-- | org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb b/org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb new file mode 100644 index 0000000..be8899b --- /dev/null +++ b/org.handhelds.familiar/packages/gzip/gzip_1.3.5-15.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "The GNU compression utility" +LICENSE = "GPL" +SECTION = "console/utils" +PRIORITY = "required" + +inherit autotools debian-vampyre + +SRC_URI += "file://configure.patch;patch=1" + +base_bindir_apps = "gunzip gzip zcat" + +do_install () { + autotools_do_install + # Rename and move files into /bin (FHS) + install -d ${D}${base_bindir} + for i in ${base_bindir_apps}; do + mv ${D}${bindir}/$i ${D}${base_bindir}/$i.${PN} + done +} + +pkg_postinst_${PN} () { + for i in ${base_bindir_apps}; do + update-alternatives --install ${base_bindir}/$i $i $i.${PN} 100 + done +} + +pkg_prerm_${PN} () { + for i in ${base_bindir_apps}; do + update-alternatives --remove $i $i.${PN} + done +} + |