Patchwork [05/13] lockdev: new package

login
register
mail settings
Submitter Maxime Hadjinlian
Date Feb. 21, 2013, 2:58 p.m.
Message ID <b997b137fd4de75941873cc414dfe8e0d6f5722b.1361458625.git.maxime.hadjinlian@gmail.com>
Download mbox | patch
Permalink /patch/222313/
State Changes Requested
Headers show

Comments

Maxime Hadjinlian - Feb. 21, 2013, 2:58 p.m.
library for locking devices
This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <ebsi4711@gmail.com>

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
 package/Config.in          |    1 +
 package/lockdev/Config.in  |    6 ++++++
 package/lockdev/lockdev.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 package/lockdev/Config.in
 create mode 100644 package/lockdev/lockdev.mk
Yann E. MORIN - Feb. 21, 2013, 6:54 p.m.
Maxime, All,

On Thursday 21 February 2013 Maxime Hadjinlian wrote:
> library for locking devices
> This package was originally found at : https://github.com/huceke/buildroot-rbp
> By gimli <ebsi4711@gmail.com>
[--SNIP--]
> diff --git a/package/Config.in b/package/Config.in
> index 01eeee8..2106391 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -555,6 +555,7 @@ source "package/libffi/Config.in"
>  source "package/gsl/Config.in"
>  source "package/libglib2/Config.in"
>  source "package/libical/Config.in"
> +source "package/lockdev/Config.in"

Alphabetical order, please.

[--SNIP--]
> diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
> new file mode 100644
> index 0000000..2012211
> --- /dev/null
> +++ b/package/lockdev/lockdev.mk
> @@ -0,0 +1,30 @@
> +#############################################################
> +#
> +# lockdev
> +#
> +#############################################################
> +
> +LOCKDEV_VERSION = 1.0.3
> +LOCKDEV_SITE = http://ftp.de.debian.org/debian/pool/main/l/lockdev
> +LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
> +LOCKDEV_INSTALL_STAGING = YES
> +LOCKDEV_LICENSE = LGPLv2.1
> +LOCKDEV_LICENSE_FILES = LICENSE
> +
> +define LOCKDEV_BUILD_CMDS
> +	$(MAKE) $(TARGET_CONFIGURE_OPTS) OPTIM= -C $(@D) V=1 shared

No 'V=1' please. Add building the static version (if possible).

> +endef
> +
> +define LOCKDEV_INSTALL_STAGING_CMDS
> +	$(MAKE) basedir=$(STAGING_DIR)/usr -C $(@D) install
> +	ln -s $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
> +	ln -s $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1

And install the static version, too. ;-)

> +endef
> +
> +define LOCKDEV_INSTALL_TARGET_CMDS
> +	$(MAKE) basedir=$(TARGET_DIR)/usr -C $(@D) install
> +	ln -s $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so
> +	ln -s $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
> +endef
> +
> +$(eval $(generic-package))

Regards,
Yann E. MORIN.

Patch

diff --git a/package/Config.in b/package/Config.in
index 01eeee8..2106391 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -555,6 +555,7 @@  source "package/libffi/Config.in"
 source "package/gsl/Config.in"
 source "package/libglib2/Config.in"
 source "package/libical/Config.in"
+source "package/lockdev/Config.in"
 source "package/libnspr/Config.in"
 source "package/libsigc/Config.in"
 source "package/libtpl/Config.in"
diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
new file mode 100644
index 0000000..abb640c
--- /dev/null
+++ b/package/lockdev/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_LOCKDEV
+	bool "lockdev"
+	help
+	  library for locking devices
+
+	  http://packages.debian.org/source/sid/lockdev
diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
new file mode 100644
index 0000000..2012211
--- /dev/null
+++ b/package/lockdev/lockdev.mk
@@ -0,0 +1,30 @@ 
+#############################################################
+#
+# lockdev
+#
+#############################################################
+
+LOCKDEV_VERSION = 1.0.3
+LOCKDEV_SITE = http://ftp.de.debian.org/debian/pool/main/l/lockdev
+LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
+LOCKDEV_INSTALL_STAGING = YES
+LOCKDEV_LICENSE = LGPLv2.1
+LOCKDEV_LICENSE_FILES = LICENSE
+
+define LOCKDEV_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) OPTIM= -C $(@D) V=1 shared
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+	$(MAKE) basedir=$(STAGING_DIR)/usr -C $(@D) install
+	ln -s $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
+	ln -s $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+
+define LOCKDEV_INSTALL_TARGET_CMDS
+	$(MAKE) basedir=$(TARGET_DIR)/usr -C $(@D) install
+	ln -s $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so
+	ln -s $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
+endef
+
+$(eval $(generic-package))