From: Rene Wagner Date: Sat, 23 Sep 2006 12:10:37 +0000 (+0200) Subject: gzip: add 1.3.5-15 from Debian. Fixes several vulnerabilities (CVE-2006-4334 - CVE... X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e90d071ede34a9a2bacd2d4d336d559cdc956ca9;p=familiar-h63xx-build.git gzip: add 1.3.5-15 from Debian. Fixes several vulnerabilities (CVE-2006-4334 - CVE-2006-4338). Signed-off-by: Rene Wagner --- diff --git a/org.handhelds.familiar/packages/gzip/files/configure.patch b/org.handhelds.familiar/packages/gzip/files/configure.patch new file mode 100644 index 0000000..64e901a --- /dev/null +++ b/org.handhelds.familiar/packages/gzip/files/configure.patch @@ -0,0 +1,30 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +--- gzip-1.3.5/./configure.in~configure ++++ gzip-1.3.5/./configure.in +@@ -18,8 +18,8 @@ + # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + # 02111-1307, USA. + +-AC_PREREQ(2.54) +-AC_INIT(gzip, 1.3.5, bug-gzip@gnu.org) ++AC_PREREQ(2.57) ++AC_INIT([gzip],[1.3.5],[bug-gzip@gnu.org]) + AC_CONFIG_SRCDIR(gzip.c) + AM_INIT_AUTOMAKE + +@@ -39,9 +39,8 @@ + + AC_CACHE_CHECK([for underline in external names], [gzip_cv_underline], + [gzip_cv_underline=yes +- AC_TRY_COMPILE([int foo() {return 0;}], [], +- [nm conftest.$OBJEXT | grep _foo >/dev/null 2>&1 || +- gzip_cv_underline=no])]) ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo() {return 0;}]], [[]])],[nm conftest.$OBJEXT | grep _foo >/dev/null 2>&1 || ++ gzip_cv_underline=no],[])]) + if test $gzip_cv_underline = no; then + ASCPP="${ASCPP} -DNO_UNDERLINE" + fi 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 +} +