From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [78.110.170.148] (helo=tinyArch.localdomain) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1T9GVs-0007l7-JH for openembedded-devel@lists.openembedded.org; Wed, 05 Sep 2012 16:23:28 +0200 Received: from archHP.dbnet.local (unknown [195.171.99.130]) by tinyArch.localdomain (Postfix) with ESMTPSA id 17C104ED38; Wed, 5 Sep 2012 11:31:36 +0100 (BST) From: ml@communistcode.co.uk To: openembedded-devel@lists.openembedded.org Date: Wed, 5 Sep 2012 15:02:29 +0100 Message-Id: <1346853750-503-2-git-send-email-ml@communistcode.co.uk> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1346853750-503-1-git-send-email-ml@communistcode.co.uk> References: <1346853750-503-1-git-send-email-ml@communistcode.co.uk> MIME-Version: 1.0 Cc: Jack Mitchell Subject: [PATCH 2/3] liblockdev: new recipe, new version of libcec requires it X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 14:23:28 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Jack Mitchell Signed-off-by: Jack Mitchell --- .../liblockdev/files/lockdev_1.0.3-1.4.patch | 656 +++++++++++++++= ++++++ .../liblockdev/liblockdev_1.0.3.bb | 28 + 2 files changed, 684 insertions(+) create mode 100644 meta-oe/recipes-extended/liblockdev/files/lockdev_1.0= .3-1.4.patch create mode 100644 meta-oe/recipes-extended/liblockdev/liblockdev_1.0.3.= bb diff --git a/meta-oe/recipes-extended/liblockdev/files/lockdev_1.0.3-1.4.= patch b/meta-oe/recipes-extended/liblockdev/files/lockdev_1.0.3-1.4.patch new file mode 100644 index 0000000..a77ea9f --- /dev/null +++ b/meta-oe/recipes-extended/liblockdev/files/lockdev_1.0.3-1.4.patch @@ -0,0 +1,656 @@ +--- lockdev-1.0.3.orig/debian/liblockdev1-dbg.dirs ++++ lockdev-1.0.3/debian/liblockdev1-dbg.dirs +@@ -0,0 +1 @@ ++usr/share/doc/liblockdev1 +--- lockdev-1.0.3.orig/debian/liblockdev1-dbg.docs ++++ lockdev-1.0.3/debian/liblockdev1-dbg.docs +@@ -0,0 +1 @@ ++README.debug +--- lockdev-1.0.3.orig/debian/control ++++ lockdev-1.0.3/debian/control +@@ -0,0 +1,55 @@ ++Source: lockdev ++Section: libs ++Priority: optional ++Maintainer: Pawe=C5=82 Wi=C4=99cek ++Uploaders: Roger Leigh ++Standards-Version: 3.6.2 ++Build-Depends: perl (>=3D 5.8.0-7), debhelper (>=3D 4.0.0) ++ ++Package: liblockdev1 ++Section: libs ++Architecture: any ++Depends: ${shlibs:Depends}, ${misc:Depends} ++Description: Run-time shared library for locking devices ++ It provides a reliable way to put an exclusive lock to ++ devices using _both_ FSSTND and SVr4 methods. ++ ++Package: liblockdev1-dev ++Section: libdevel ++Architecture: any ++Depends: liblockdev1 (=3D ${binary:Version}), libc6-dev, ${misc:Depends= } ++Conflicts: liblockdev0-dev, liblockdev0g-dev ++Replaces: liblockdev0-dev, liblockdev0g-dev ++Description: Development library for locking devices ++ It provides a reliable way to put an exclusive lock to ++ devices using _both_ FSSTND and SVr4 methods. ++ . ++ Includes header files and static lib. ++ ++Package: liblockdev1-dbg ++Section: debug ++Priority: extra ++Architecture: any ++Depends: liblockdev1 (=3D ${binary:Version}), liblockdev1-dev (=3D ${bi= nary:Version}), ${shlibs:Depends}, ${misc:Depends} ++Conflicts: liblockdev0-dbg, liblockdev0g-dbg ++Replaces: liblockdev0-dbg, liblockdev0g-dbg ++Description: Debugging library for locking devices ++ It provides a reliable way to put an exclusive lock to ++ devices using _both_ FSSTND and SVr4 methods. ++ . ++ Includes static and shared debugging and profiling libs, ++ as well as the sources ready for use by gdb. ++ ++Package: liblockdev1-perl ++Section: perl ++Architecture: any ++Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} ++Conflicts: liblockdev0-perl ++Replaces: liblockdev0-perl ++Description: perl extension library for locking devices ++ It provides a reliable way to put an exclusive lock to ++ devices using _both_ FSSTND and SVr4 methods. ++ . ++ Includes a shared lib loadable by perl 5 (use LockDev), ++ the module LockDev.pm and its manpage LockDev(3pm) . ++ +--- lockdev-1.0.3.orig/debian/compat ++++ lockdev-1.0.3/debian/compat +@@ -0,0 +1 @@ ++4 +--- lockdev-1.0.3.orig/debian/liblockdev1-perl.dirs ++++ lockdev-1.0.3/debian/liblockdev1-perl.dirs +@@ -0,0 +1 @@ ++usr/share/perl5 +--- lockdev-1.0.3.orig/debian/changelog ++++ lockdev-1.0.3/debian/changelog +@@ -0,0 +1,334 @@ ++lockdev (1.0.3-1.4) unstable; urgency=3Dlow ++ ++ * Non-maintainer upload. ++ * Don't install copyright in both liblockdev1 and liblockdev1-dbg as ++ they share the same folde rin /usr/share/doc via symlink (Closes: ++ #563600) ++ * Use binary:Version instead of Source-Version ++ ++ -- Christoph Egger Fri, 19 Feb 2010 19:10:38 += 0100 ++ ++lockdev (1.0.3-1.3) unstable; urgency=3Dlow ++ ++ * Non-maintainer upload. ++ * Don't remove non-existant file (Closes: #549731) ++ * Add ${shlibs:Depends} to -perl and -db (Closes: #553240, #553242) ++ * -dbg package is section debug ++ * add misc:Depends ++ ++ -- Christoph Egger Wed, 30 Dec 2009 20:50:40 += 0100 ++ ++lockdev (1.0.3-1.2) unstable; urgency=3Dlow ++ ++ * Non-maintainer upload. ++ * Brown paperbag release: Fix uninstallability of the -dbg-package. ++ Closes: #400676 ++ ++ -- Andreas Barth Tue, 28 Nov 2006 08:52:55 +010= 0 ++ ++lockdev (1.0.3-1.1) unstable; urgency=3Dlow ++ ++ * Non-maintainer upload. ++ * Fix postinst. Closes: #366384 ++ + don't use numerical compares for version history, but ++ dpkg --compare-versions ++ + do never wait for someone entering a key - that could be in ++ non-interactive mode ... ++ * Add upgrade information into NEWS.Debian. ++ ++ -- Andreas Barth Mon, 27 Nov 2006 13:11:32 +010= 0 ++ ++lockdev (1.0.3-1) unstable; urgency=3Dlow ++ ++ * New release ++ * Distinguish character and block devices when creating SVR4 type loc= kfiles ++ (closes: #331249) ++ * Fixed some typos in comments ++ ++ -- Pawe=C5=82 Wi=C4=99cek Thu, 20 Apr 2006 21:11:4= 8 +0200 ++ ++lockdev (1.0.2-1) unstable; urgency=3Dlow ++ ++ * New release. ++ * debian/control: ++ + Added myself as an uploader. Thanks to Pawel Wiecek for granting ++ me co-maintainership. ++ + Build-Depend upon debhelper 4. ++ + Update to Standards-Version 3.6.2. ++ * debian/copyright: ++ + Update FSF address. ++ + Add myself as a contributor. ++ * debian/compat: Use debhelper v4. ++ * Remove all postinst and preinst templates; debhelper v4 generates ++ ldconfig calls automatically. ++ * Devices within subdirectories of /dev are locked properly, using ++ ':' as a path delimiter in the device lock name. For example, ++ /dev/pts/2 is locked as /var/lock/LCK..pts:2 ++ (Closes: #115109, #135299). ++ * Device major and minor numbers are computed using GNU libc ++ builtins, rather than kernel headers (Closes: #331139). ++ * src/sample.c debugging is amended to use the proper debugging ++ functions (Closes: #331255). ++ ++ -- Roger Leigh Mon, 3 Oct 2005 20:55:51 +0100 ++ ++lockdev (1.0.1-7) unstable; urgency=3Dlow ++ ++ * Applied patch from Aurelien Jarno to support ++ GNU/k*BSD (closes: #302457) ++ * Fixed patch from 1.0.1-5.1 NMU to clean after itself (!) ++ ++ -- Pawel Wiecek Thu, 19 May 2005 21:25:43 +0200 ++ ++lockdev (1.0.1-6) unstable; urgency=3Dlow ++ ++ * Applied patch from Kristof Koehler ++ to fix behavior when device= is ++ locked by process with different UID (closes: #215807) ++ ++ -- Pawel Wiecek Thu, 22 Jan 2004 14:34:28 +0100 ++ ++lockdev (1.0.1-5.1) unstable; urgency=3Dlow ++ ++ * NMU ++ * Use -fPIC code in shared lib. Closes: #190770 ++ ++ -- LaMont Jones Sat, 7 Jun 2003 19:27:24 -0600 ++ ++lockdev (1.0.1-5) unstable; urgency=3Dlow ++ ++ * Completely repackaged, so it now uses standard procedures instead o= f some ++ mysterious stuff (closes: #166600) ++ * Updated standards version ++ * Included perl 5.8 patch from -4.1 NMU (closes: #158941) ++ * Fixed a couple of lintian errors and warnings ++ ++ -- Pawel Wiecek Fri, 25 Apr 2003 14:17:02 +0200 ++ ++lockdev (1.0.1-4.1) unstable; urgency=3Dlow ++ ++ * NMU for perl 5.8. ++ * Bump perl build-dependency to >=3D 5.8.0-7. ++ ++ -- Colin Watson Sat, 31 Aug 2002 00:29:56 +0100 ++ ++lockdev (1.0.1-4) unstable; urgency=3Dlow ++ ++ * New maintainer (closes: #112558) ++ * Removed umask calls (closes: #115108) ++ * Now calls ldconfig in postrm instead of prerm ++ ++ -- Pawel Wiecek Tue, 9 Apr 2002 14:39:54 +0200 ++ ++lockdev (1.0.1-3) unstable; urgency=3Dlow ++ ++ * debian/copyright: upstream location changed back to the Debian ftp ++ archives ++ * debian/control (Standards-Version): bumped to 3.5.6 ++ (Maintainer): set to Debian QA Team ++ * debian/policy: standards-version bumped to 3.5.6 ++ ++ -- Gergely Nagy Sun, 16 Sep 2001 22:34:51 +0200 ++ ++lockdev (1.0.1-2) unstable; urgency=3Dlow ++ ++ * Added missing symlinks to some manual pages (Closes: #99549) ++ * Standards-Version bumped to 3.5.5 ++ * Only call ldconfig upon configure and remove ++ ++ -- Gergely Nagy Sun, 10 Jun 2001 09:41:20 +0200 ++ ++lockdev (1.0.1-1) unstable; urgency=3Dlow ++ ++ * New maintainer ++ * Acknowledge NMU: Closes: #41522 ++ * Recompiled with new perl (Closes: #80662) ++ * Corrected missing symlink bug (Closes: #88888) ++ * Updated to latest perl policy (Closes: #95410) ++ * Added build-depends ++ * Bumped Standards-Version to 3.5.4 ++ ++ -- Gergely Nagy Wed, 23 May 2001 17:24:23 +0200 ++ ++lockdev (1.0.0) unstable; urgency=3Dlow ++ ++ * added management of pseudo device /dev/tty , thanx to Alan Cox. ++ * added unconditional malloc of supplied device argoment. ++ * changed name of the shared lib to end in .so ++ * changed Makefile.PL because the perl manpage disappeared. ++ * Changed symbols in the API as suggested by Daniel Quinlan and=20 ++ Erik Troan. Changed soname accordingly. ++ * Corrected manpages and added LSB proposal (draft 2). ++ * corrected cua device management: use linux/major.h to determine the ++ cua major number; conditioned to __linux__ ++ * Changed LICENSE file to hold the LGPL 2.1 ++ ++ -- Fabrizio Polacco Wed, 1 Dec 1999 12:59:10 += 0200 ++ ++lockdev (0.11.1) unstable; urgency=3Dlow ++ ++ * NMU for the perl upgrade. Closes: #41522 ++ * Corrected the rules files to conform to perl policy 1.0.1. ++ * Compiled with perl-5.005. ++ * Corrected the location of the license. ++ * Upgraded standards-version to 2.5.1 ++ ++ -- Raphael Hertzog Mon, 19 Jul 1999 20:51:00 +020= 0 ++ ++lockdev (0.11) unstable; urgency=3Dlow ++ ++ * Avoided repetute locking of the semaphore. ++ * Corrected special case of semaphore misbehaviour (found while ++ crosschecking between two instancies running under gdb). ++ * Added modification on-the-fly of major number of device from 4 to 5 ++ in case it was referring to one of the 64 cua devices; it now locks ++ the major+minor numbers of the corresponding ttyS device. The name ++ remains unaffected, as it could be an arbitrary name. ++ (Thanx to Daniel Quinlan ) ++ * Tryed to use fcntl instead of flock, after suggestion of Daniel ++ Quinlan, to permit use on NFS mounted partitions. ++ I wasn't able to make it correctly work, so I conditioned the ++ changes and left the code there, for further (future) ++ investigations. Any help highly appreciated. ++ * changed third file (LCK..) to have three dots, and made it sta= y ++ there, as a quick reference. It doesn't hurt, and shouw the pid wit= h ++ a simple ls -l ++ * Added full text of LGPL licence instead of GPL one added in the ++ previous version (oops). ++ ++ -- Fabrizio Polacco Wed, 2 Jun 1999 15:58:03 += 0300 ++ ++lockdev (0.10) unstable; urgency=3Dlow ++ ++ * Added ttylock.h as Compatibility API to AIX. Programs written for ++ that environment can be linked directly to lockdev library. ++ (On AIX the symbols are in libc, so special care should be used) ++ * changed location of manpages to /usr/share/man. ++ * changed the name of the source to lockdev_0.10.tar.gz ++ * changed address of FSF in Copyright file, added the full GPL text a= s ++ LICENSE (only in the source), corrected name of the mailing list. ++ * changed name of changelog, just to make lintian happier. ++ * corrected name of docs dir for perl package. ++ ++ -- Fabrizio Polacco Thu, 8 Apr 1999 21:04:53 += 0300 ++ ++liblockdev (0.9a) frozen unstable; urgency=3Dlow ++ ++ * Added more tests in postinst of liblockdev0g-dbg, to avoid strange ++ problems encountered by Adam P. Harris (closes: #22565) ++ ++ -- Fabrizio Polacco Mon, 18 May 1998 15:21:12 += 0300 ++ ++liblockdev (0.9) frozen unstable; urgency=3Dlow ++ ++ * cleaned symlinks in docs dirs. ++ * changed libs symlinks from /usr/lib to /lib ++ * stripped main shared library. ++ * Corrected wrong shlibs dependency (thanx to Hamish Moffatt,=20 ++ closes: #22282). ++ * Changed dependency of -dev from libc6 to libc6-dev,=20 ++ thanx to James Troup (closes: #16476). ++ * Added -I.. in Makefile.PL to allow compilation of the perl part eve= n ++ when the -dev package isn't installed (thanx to Martin Schulze for ++ the patch) closes: #15834 ++ ++ -- Fabrizio Polacco Tue, 12 May 1998 13:39:27 += 0300 ++ ++liblockdev (0.8) unstable; urgency=3Dlow ++ ++ * updated manpage (degugging section). ++ * added environment variable to set debug value, and signals=20 ++ to change those values at runtime (if compiled with -DDEBUG). ++ * avoided symlink to /usr/src changing .stab in asm source=20 ++ file (overwritten implicit rule to produce asm source). ++ Thanx to Martin Schulze for the help. ++ * changed dbg package to install shared debug lib in=20 ++ /usr/lib/debug and profile lib in /usr/lib/profile. ++ * splitted debian/rules in included debian/policy ++ * cleaned Makefile and changed to build debug shared lib. ++ Thanx to Yann Dirson. ++ * added change in umask value to allow full permissions to lock=20 ++ files. (this is questionable: would it be better to add a=20 ++ suid program to check and remove dangling locks?) ++ ++ -- Fabrizio Polacco Tue, 23 Dec 1997 11:26:10 += 0200 ++ ++liblockdev (0.7) unstable; urgency=3Dlow ++ ++ * cleaned Makefile and debian/rules ++ * change in Makefile.PL to allow pristine compilation on new systems ++ (closes: #15834, thanx to Martin Schulze). ++ * added -dbg package with debug and profile libs. ++ * problem with lenght of dev_t in glibc for printf: cast needed :-) ++ * corrected ftp address in copyright file. ++ ++ -- Fabrizio Polacco Sun, 30 Nov 1997 01:00:50 += 0200 ++ ++liblockdev (0.6) unstable; urgency=3Dlow ++ ++ * added symlink to dirs in /usr/doc (one dir for all packages), ++ now /usr/doc/liblockdev is a symlink installed by -dev package, ++ as the liblockdev.a and liblockdev.so symlinks. ++ Instead, lblockdev-perl installs a copy of the docs because ++ it doesn't depend on the run-time binary package (as -dev does). ++ * cleaned spreading in the distribution:=20 ++ source and run-time to section 'libs', development into 'devel', ++ perl module into 'interpreters' (waiting for a perl section). ++ * created extension perl library LockDev:: with manpage LockDev(3pm) ++ and packaged as liblockdev0-perl. ++ * moved symlink so.0 -> so.0.6 to runtime package. ++ * added unlink of semaphore file (not really needed, just to clean up= ) ++ * corrected error in Synopsis of manpage (oops). ++ * cleaned source code: changed ANSI-C definition of functions to K&R, ++ as recommended in GNU coding style (but not for indentation). ++ Added ANSI-C prototypes for internal functions (exported one=20 ++ already have them in .h interface file. ++ * cleaned rules file, got rid of unneeded libc5 compatibility. ++ * Moved back include of stdio.h from lockdev.h to .c (closes:Bug#1415= 4) ++ Thanx to Juan Cespedes ++ * Corrected debian/rules to have binary-arch rule (closes:Bug#14062) ++ ++ -- Fabrizio Polacco Wed, 22 Oct 1997 13:45:34 += 0300 ++ ++liblockdev (0.5) unstable; urgency=3Dlow ++ ++ * moved to libc6 (glibc2); added a "g" after soname in package name. ++ * added rules to build also compatibility libc5 libs. ++ ++ -- Fabrizio Polacco Thu, 25 Sep 1997 11:51:22 += 0300 ++ ++liblockdev0 (0.4) unstable; urgency=3Dlow ++ ++ * Changed priority from extra to optional. ++ * cleaned Makefile and added separate static/debug library. ++ * Cleaned include file. ++ * Added global var liblockdev_debug for debugging level ++ * Added 2 functions to set and reset debugging level (only in static = lib) ++ ++ -- Fabrizio Polacco Sat, 6 Sep 1997 02:20:01 += 0300 ++ ++liblockdev0 (0.3) unstable; urgency=3Dlow ++ ++ * avoided stripping of static lib (compiled with -DDEBUG) ++ * added semaphore lock to avoid race condition in ++ removing stale locks (thanx to Barak Pearlmutter) ++ * changed unlink of stale lock to a complex and ++ convoluted way to avoid conflicts between us and another ++ process that doesn't use this library. Still exists the ++ possibility of a conflict between two other processes that ++ don't use this library, but we are safe. ++ * cleaned code in lock_dev() ++ ++ -- Fabrizio Polacco Fri, 5 Sep 1997 11:05:21 += 0300 ++ ++liblockdev0 (0.2) unstable; urgency=3Dlow ++ ++ * fixed shared lib links. ++ ++ -- Fabrizio Polacco Thu, 4 Sep 1997 19:08:38 += 0300 ++ ++liblockdev0 (0.1) unstable; urgency=3Dlow ++ ++ * Initial Release. ++ ++ -- Fabrizio Polacco Thu, 4 Sep 1997 14:13:23 += 0300 +--- lockdev-1.0.3.orig/debian/liblockdev1-dev.manpages ++++ lockdev-1.0.3/debian/liblockdev1-dev.manpages +@@ -0,0 +1 @@ ++docs/lockdev.3 +--- lockdev-1.0.3.orig/debian/NEWS ++++ lockdev-1.0.3/debian/NEWS +@@ -0,0 +1,8 @@ ++lockdev (1.0.3-1.1) unstable; urgency=3Dlow ++ ++ The format of device lock files has changed. ++ ++ All programs that have locked device files using the old version of ++ liblockdev needs to be restarted. ++ ++ -- Andreas Barth Mon, 27 Nov 2006 13:13:37 +010= 0 +--- lockdev-1.0.3.orig/debian/rules ++++ lockdev-1.0.3/debian/rules +@@ -0,0 +1,145 @@ ++#!/usr/bin/make -f ++# Sample debian/rules that uses debhelper. ++# GNU copyright 1997 to 1999 by Joey Hess. ++ ++# Uncomment this to turn on verbose mode. ++#export DH_VERBOSE=3D1 ++ ++ ++ifndef PERL ++PERL =3D /usr/bin/perl ++endif ++ ++archlib =3D `$(PERL) -MConfig -e 'print $$Config{installarchlib}'` ++config =3D INSTALLDIRS=3Dvendor ++config +=3D INSTALLMAN1DIR=3D${d_man}/man1 ++config +=3D INSTALLMAN3DIR=3D${d_man}/man3 ++config +=3D INSTALLPRIVLIB=3D${d_ulib}/perl5 ++config +=3D INSTALLARCHLIB=3D${d_build}$(archlib) ++PERLVERSION=3D`$(PERL) -MConfig -e 'print $$Config{version}'` ++ ++ ++ ++CFLAGS =3D -Wall -g ++ ++ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) ++ CFLAGS +=3D -O0 ++else ++ CFLAGS +=3D -O2 ++endif ++ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) ++ INSTALL_PROGRAM +=3D -s ++endif ++ ++# shared library versions, option 1 ++version=3D1.0.3 ++major=3D1 ++# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.= 5 or so ++#version=3D`ls src/.libs/lib*.so.* | \ ++# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RST= ART)}'` ++#major=3D`ls src/.libs/lib*.so.* | \ ++# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` ++ ++configure: configure-stamp ++configure-stamp: ++ dh_testdir ++ # Add here commands to configure the package. ++ ++ touch configure-stamp ++ ++ ++build: build-stamp ++build-stamp: configure-stamp=20 ++ dh_testdir ++ ++ # Add here commands to compile the package. ++ $(MAKE) ++ ++ touch build-stamp ++ ++clean: ++ dh_testdir ++ dh_testroot ++ rm -f build-stamp configure-stamp ++ ++ # Add here commands to clean up after the build process. ++ -$(MAKE) distclean ++ ++ dh_clean ++ ++install: build ++ dh_testdir ++ dh_testroot ++ dh_clean -k ++ dh_installdirs ++ ++ # Add here commands to install the package into debian/ ++ $(MAKE) install_run basedir=3D$(CURDIR)/debian/liblockdev1/usr ++ $(MAKE) install_debug basedir=3D$(CURDIR)/debian/liblockdev1-dbg/usr ++ $(MAKE) install_profile basedir=3D$(CURDIR)/debian/liblockdev1-dbg/usr ++ $(MAKE) install_dev basedir=3D$(CURDIR)/debian/liblockdev1-dev/usr ++ cd LockDev && $(MAKE) pure_install $(config) PREFIX=3D$(CURDIR)/debian= /liblockdev1-perl/usr ++ ++ mv $(CURDIR)/debian/liblockdev1-perl/usr/lib/perl5/LockDev.pm \ ++ $(CURDIR)/debian/liblockdev1-perl/usr/share/perl5 ++ ++ ln -s lockdev.3.gz \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/share/man/man3/dev_lock.3.gz ++ ln -s lockdev.3.gz \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/share/man/man3/dev_unlock.3.gz ++ ln -s lockdev.3.gz \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/share/man/man3/dev_relock.3.gz ++ ln -s lockdev.3.gz \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/share/man/man3/dev_testlock.3.g= z ++ ln -s lockdev.3.gz \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/share/man/man3/liblockdev.3.gz ++ ln -s liblockdev.$(version).so \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/lib/liblockdev.so ++ ln -s liblockdev.$(version).so \ ++ $(CURDIR)/debian/liblockdev1/usr/lib/liblockdev.so.$(major) ++=09 ++ ln -s liblockdev1 \ ++ $(CURDIR)/debian/liblockdev1-dev/usr/share/doc/liblockdev1-dev ++ ln -s liblockdev1 \ ++ $(CURDIR)/debian/liblockdev1-dbg/usr/share/doc/liblockdev1-dbg ++ ++ ++# Build architecture-independent files here. ++binary-indep: build install ++# We have nothing to do by default. ++ ++# Build architecture-dependent files here. ++binary-arch: build install ++ dh_testdir ++ dh_testroot ++ dh_installchangelogs ChangeLog ++ dh_installdocs ++ rm $(CURDIR)/debian/liblockdev1-dbg/usr/share/doc/liblockdev1/c* ++# rm $(CURDIR)/debian/liblockdev1-dbg/usr/share/doc/liblockdev1/NEWS.De= bia* ++ dh_installexamples ++# dh_install ++# dh_installmenu ++# dh_installdebconf=09 ++# dh_installlogrotate ++# dh_installemacsen ++# dh_installpam ++# dh_installmime ++# dh_installinit ++# dh_installcron ++# dh_installinfo ++ dh_installman ++ dh_link ++ dh_strip -Xprofile ++ dh_compress ++ dh_fixperms ++ dh_perl ++# d_python ++ dh_makeshlibs -X usr/lib/debug -X usr/lib/profile ++ dh_installdeb ++ dh_shlibdeps ++ dh_gencontrol ++ dh_md5sums ++ dh_builddeb ++ ++binary: binary-indep binary-arch ++.PHONY: build clean binary-indep binary-arch binary install configure +--- lockdev-1.0.3.orig/debian/copyright ++++ lockdev-1.0.3/debian/copyright +@@ -0,0 +1,49 @@ ++liblockdev is (c) 1997, 1999 by Fabrizio Polacco ++ ++ This program is free software; you can redistribute it and/or=20 ++ modify it under the terms of the GNU Lesser General Public=20 ++ License (LGPL) as published by the Free Software Foundation;=20 ++ version 2.1 dated February 1999. ++ ++ This program 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 Lesser General=20 ++ Public License (LGPL) along with this program; if not, write=20 ++ to the Free Software Foundation, Inc., ++ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ ++On Debian GNU/Linux systems, the complete text of the GNU Library Gener= al ++Public License can be found in `/usr/share/common-licenses/LGPL'. ++ ++It's primary source is the Debian archives: ++ ftp://ftp.debian.org/debian/pool/main/l/lockdev/ ++ ++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D CREDITS =3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ++ ++Barak Pearlmutter ++ - code revision=20 ++ - suggestion for the use of the semaphore. ++Juan Cespedes ++ - code revision=20 ++Daniel Quinlan ++ - suggestion to support the cua devices. ++ - suggestions for naming of functions. ++Raphael Hertzog ++ - NMU for new perl ++Adam P. Harris ++ - changes in debian postinst. ++Martin Schulze ++ - changes in perl makefile ++ - suggestions for changes in assembler stage for debug. ++Hamish Moffatt, James Troup ++ - dependencies check. ++Yann Dirson ++ - suggestions for a debugging shared library. ++Roger Leigh ++ - updated to ISO C89 C. ++ - work with modern glibc dev_t. ++ - work with devices in subdirectories, =C3=A1 la DevFS ++ +--- lockdev-1.0.3.orig/debian/liblockdev1.postinst ++++ lockdev-1.0.3/debian/liblockdev1.postinst +@@ -0,0 +1,22 @@ ++#!/bin/sh -e ++ ++if [ "$1" =3D "configure" ] && dpkg --compare-versions "$2" lt-nl 1.0.3= -1; ++then ++ echo ++ echo "WARNING" ++ echo "Format of device lock files have changed, you will need to rest= art all" ++ echo "programs that have locked device files using the old version of= liblockdev." ++ echo ++ ++ if ls /var/lock/LCK.[0-9]* 2>/dev/null ++ then ++ echo "Right now the following programs use old lockfiles:" ++ echo ++ ps -p `cat /var/lock/LCK.[0-9]*` ++ echo ++ fi ++fi ++ ++#DEBHELPER# ++ ++exit 0 +--- lockdev-1.0.3.orig/debian/liblockdev1-dev.dirs ++++ lockdev-1.0.3/debian/liblockdev1-dev.dirs +@@ -0,0 +1,2 @@ ++usr/share/man/man3 ++usr/share/doc diff --git a/meta-oe/recipes-extended/liblockdev/liblockdev_1.0.3.bb b/me= ta-oe/recipes-extended/liblockdev/liblockdev_1.0.3.bb new file mode 100644 index 0000000..788f346 --- /dev/null +++ b/meta-oe/recipes-extended/liblockdev/liblockdev_1.0.3.bb @@ -0,0 +1,28 @@ +DESCRIPTION =3D "Manage character and block device lockfiles." +HOMEPAGE =3D "http://anonscm.debian.org/gitweb/?p=3Dlockdev/lockdev.git;= a=3Dsummary" + +LICENSE =3D "LGPLv2.1" +LIC_FILES_CHKSUM =3D "file://LICENSE;md5=3Dd8045f3b8f929c1cb29a1e3fd737b= 499" + +PV =3D "1.0.3" + +SRC_URI =3D "http://ftp.de.debian.org/debian/pool/main/l/lockdev/lockdev= _${PV}.orig.tar.gz \ + file://lockdev_1.0.3-1.4.patch \ +" + +SRC_URI[md5sum] =3D "64b9c1b87b125fc348e892e24625524a" +SRC_URI[sha256sum] =3D "ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7= f0c836910d869f82" + +S =3D "${WORKDIR}/lockdev-${PV}" + +do_compile() { + oe_runmake CC=3D"${CC}" LD=3D"${LD}" shared +} + +do_install() { + oe_runmake basedir=3D"${D}" incdir=3D"${D}${includedir}" libdir=3D"${D= }${libdir}" install_dev +} + +FILES_{PN} =3D "${includedir}/* \ + ${libdir}/* \ +" --=20 1.7.12