--- menu-cache-0.2.6.orig/debian/libmenu-cache0.install +++ menu-cache-0.2.6/debian/libmenu-cache0.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/lib*.so.* +debian/tmp/usr/lib/libmenu-cache/libexec/menu-cache-gen +debian/tmp/usr/lib/libmenu-cache/libexec/menu-cached --- menu-cache-0.2.6.orig/debian/changelog +++ menu-cache-0.2.6/debian/changelog @@ -0,0 +1,36 @@ +menu-cache (0.2.6-1ubuntu1~ppa1) karmic; urgency=low + + * Sync with Debian unstable. + * debian/patches/10-lubuntu-like-lxde.dpatch + - Generate the menu for Lubuntu session like a LXDE session. + * debian/rules: Re-enable dpatch support. + * debian/control: Re-add dpatch to Build-depends. + + -- Julien Lavergne Thu, 19 Nov 2009 12:25:26 -0600 + +menu-cache (0.2.6-1) unstable; urgency=high + + * New upstream release + - Fixed invalid pointers + - Fixed memory leaks + * Marked urgency=high + * Fix debian/watch file + * Bumped Standard-Version to 3.8.3 + + -- Andrew Lee (李健秋) Mon, 09 Nov 2009 18:38:57 +0800 + +menu-cache (0.2.5-2) unstable; urgency=low + + * Applied 01_fix_infinite_loop.dpatch + * debian/control: + - Build-depends on intltool, dpatch + * debian/rules: + - autoreconf -fiv + + -- Andrew Lee (李健秋) Sat, 15 Aug 2009 21:54:17 +0800 + +menu-cache (0.2.5-1) unstable; urgency=low + + * Initial release (Closes: #525811) + + -- Andrew Lee Tue, 28 Apr 2009 23:55:28 +0800 --- menu-cache-0.2.6.orig/debian/control +++ menu-cache-0.2.6/debian/control @@ -0,0 +1,39 @@ +Source: menu-cache +Priority: extra +Maintainer: Andrew Lee (李健秋) +Build-Depends: debhelper (>= 7), autotools-dev, libglib2.0-dev, intltool, dpatch +Standards-Version: 3.8.3 +Section: libs +Homepage: http://lxde.org + +Package: libmenu-cache-dev +Section: libdevel +Architecture: any +Depends: libmenu-cache0 (= ${binary:Version}) +Description: an implementation of the freedesktop menu specification for LXDE + Libmenu-cache is a library creating and utilizing caches to speed up + the manipulation for freedesktop.org defined application menus. + It can be used as a replacement of libgnome-menu of gnome-menus. + . + * Shorten time for loading menu entries. + * Ease of use. (API is very similar to that of libgnome-menu) + * Lightweight runtime library. (Parsing of the menu definition files + are done by menu-cache-gen when the menus are really changed.) + * Less unnecessary and complicated file monitoring. + * Heavily reduced disk I/O. + +Package: libmenu-cache0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: an implementation of the freedesktop menu specification for LXDE + Libmenu-cache is a library creating and utilizing caches to speed up + the manipulation for freedesktop.org defined application menus. + It can be used as a replacement of libgnome-menu of gnome-menus. + . + * Shorten time for loading menu entries. + * Ease of use. (API is very similar to that of libgnome-menu) + * Lightweight runtime library. (Parsing of the menu definition files + are done by menu-cache-gen when the menus are really changed.) + * Less unnecessary and complicated file monitoring. + * Heavily reduced disk I/O. --- menu-cache-0.2.6.orig/debian/README.Debian +++ menu-cache-0.2.6/debian/README.Debian @@ -0,0 +1,8 @@ +menu-cache for Debian +--------------------- + +The libmenu-cache is a cache mechanism for freedesktop.org Desktop Menu +Specification. It can be used together with other freedesktop.org menu +standard implementation such as gnome-menus and others. + + -- Andrew Lee Mon, 27 Apr 2009 15:13:10 +0800 --- menu-cache-0.2.6.orig/debian/docs +++ menu-cache-0.2.6/debian/docs @@ -0,0 +1,2 @@ +NEWS +README --- menu-cache-0.2.6.orig/debian/copyright +++ menu-cache-0.2.6/debian/copyright @@ -0,0 +1,84 @@ +This package was debianized by: + + Andrew Lee on Mon, 27 Apr 2009 15:13:10 +0800 + +It was downloaded from: + + http://sourceforge.net/projects/lxde/ + +Upstream Authors and Copyright Holders: + + Copyright (C) 2009 Hong Jen Yee (PCMan) + +Files under menu-cache-gen/ was taken from libmenu of gnome-menus: + Written by: + Mark McLoughlin + Havoc Pennington + Modified by: + Hong Jen Yee (PCMan) + +menu-cache-gen/canonicalize.c: + Copyright (C) 1996-2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2002 Red Hat, Inc. (trivial port to GLib) +menu-cache-gen/canonicalize.h: + Copyright (C) 1996-2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2002 Red Hat, Inc. (trivial port to GLib) +menu-cache-gen/desktop-entries.c: + Copyright (C) 2002 - 2004 Red Hat, Inc. +menu-cache-gen/desktop-entries.h: + Copyright (C) 2002 - 2004 Red Hat, Inc. +menu-cache-gen/entry-directories.c: + Copyright (C) 2002 - 2004 Red Hat, Inc. +menu-cache-gen/entry-directories.h: + Copyright (C) 2002 - 2004 Red Hat, Inc. +menu-cache-gen/gmenu-tree.c: + Copyright (C) 2003, 2004 Red Hat, Inc. +menu-cache-gen/gmenu-tree.h: + Copyright (C) 2004 Red Hat, Inc. +menu-cache-gen/menu-cache-gen.c: + Copyright 2008 Hong Jen Yee (PCMan) +menu-cache-gen/menu-layout.c: + Copyright (C) 2002 - 2004 Red Hat, Inc. +menu-cache-gen/menu-layout.h: + Copyright (C) 2002 - 2004 Red Hat, Inc. +menu-cache-gen/menu-monitor.c: + Copyright (C) 2005 Red Hat, Inc. +menu-cache-gen/menu-monitor.c: + Copyright (C) 2006 Mark McLoughlin +menu-cache-gen/menu-monitor.c: + Copyright (C) 2007 Sebastian Dröge +menu-cache-gen/menu-monitor.c: + Copyright (C) 2008 Vincent Untz +menu-cache-gen/menu-monitor.h: + Copyright (C) 2005 Red Hat, Inc. +menu-cache-gen/menu-util.c: + Copyright (C) 2003 Red Hat, Inc. +menu-cache-gen/menu-util.h: + Copyright (C) 2003 Red Hat, Inc. + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is: + + Copyright (C) 2009 Andrew Lee + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + --- menu-cache-0.2.6.orig/debian/libmenu-cache-dev.install +++ menu-cache-0.2.6/debian/libmenu-cache-dev.install @@ -0,0 +1,5 @@ +debian/tmp/usr/include/* +debian/tmp/usr/lib/*.so +debian/tmp/usr/lib/lib*.a +debian/tmp/usr/lib/pkgconfig/* +debian/tmp/usr/lib/*.la --- menu-cache-0.2.6.orig/debian/compat +++ menu-cache-0.2.6/debian/compat @@ -0,0 +1 @@ +7 --- menu-cache-0.2.6.orig/debian/rules +++ menu-cache-0.2.6/debian/rules @@ -0,0 +1,115 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + + + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: patch-stamp configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif +# /usr/bin/autoreconf -fiv + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --libexecdir=\$${prefix}/lib/libmenu-cache/libexec CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- menu-cache-0.2.6.orig/debian/watch +++ menu-cache-0.2.6/debian/watch @@ -0,0 +1,10 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to find new files on sourceforge, for devscripts >= 2.9 +http://sf.net/lxde/menu-cache-(.*)\.tar\.gz --- menu-cache-0.2.6.orig/debian/patches/10-lubuntu-like-lxde.dpatch +++ menu-cache-0.2.6/debian/patches/10-lubuntu-like-lxde.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10-lubuntu-like-lxde.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad menu-cache-0.2.6~/libmenu-cache/menu-cache.c menu-cache-0.2.6/libmenu-cache/menu-cache.c +--- menu-cache-0.2.6~/libmenu-cache/menu-cache.c 2009-11-08 09:04:14.000000000 -0600 ++++ menu-cache-0.2.6/libmenu-cache/menu-cache.c 2009-11-20 19:44:56.340322326 -0600 +@@ -978,6 +978,8 @@ + return SHOW_IN_XFCE; + if( strcmp(desktop_env, "LXDE") == 0 ) + return SHOW_IN_LXDE; ++ if( strcmp(desktop_env, "Lubuntu") == 0 ) ++ return SHOW_IN_LXDE; + if( strcmp(desktop_env, "ROX") == 0 ) + return SHOW_IN_ROX; + return 0; +diff -urNad menu-cache-0.2.6~/menu-cache-gen/menu-cache-gen.c menu-cache-0.2.6/menu-cache-gen/menu-cache-gen.c +--- menu-cache-0.2.6~/menu-cache-gen/menu-cache-gen.c 2009-10-11 02:28:04.000000000 -0500 ++++ menu-cache-0.2.6/menu-cache-gen/menu-cache-gen.c 2009-11-20 19:46:36.624804955 -0600 +@@ -330,6 +330,7 @@ + /* some memory leaks happen here if g_free is not used to free the keys. */ + de_hash = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); + g_hash_table_insert( de_hash, "LXDE", (gpointer)SHOW_IN_LXDE ); ++ g_hash_table_insert( de_hash, "Lubuntu", (gpointer)SHOW_IN_LXDE ); + g_hash_table_insert( de_hash, "GNOME", (gpointer)SHOW_IN_GNOME ); + g_hash_table_insert( de_hash, "KDE", (gpointer)SHOW_IN_KDE ); + g_hash_table_insert( de_hash, "XFCE", (gpointer)SHOW_IN_XFCE ); --- menu-cache-0.2.6.orig/debian/patches/00list +++ menu-cache-0.2.6/debian/patches/00list @@ -0,0 +1 @@ +10-lubuntu-like-lxde.dpatch