diff --git a/common/shlibs b/common/shlibs index 377702a315b..142d4ba70a9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1202,3 +1202,4 @@ libbcm_host.so rpi-firmware-20130228_1 libopenmaxil.so rpi-firmware-20130228_1 libvchiq_arm.so rpi-firmware-20130228_1 libvcos.so rpi-firmware-20130228_1 +liblockdev.so.1 lockdev-1.0.3_1 diff --git a/srcpkgs/lockdev-devel b/srcpkgs/lockdev-devel new file mode 120000 index 00000000000..21608b23292 --- /dev/null +++ b/srcpkgs/lockdev-devel @@ -0,0 +1 @@ +lockdev \ No newline at end of file diff --git a/srcpkgs/lockdev/lockdev-devel.template b/srcpkgs/lockdev/lockdev-devel.template new file mode 100644 index 00000000000..145eed499a5 --- /dev/null +++ b/srcpkgs/lockdev/lockdev-devel.template @@ -0,0 +1,10 @@ +# Template file for 'lockdev-devel'. +# +depends="lockdev>=$version" +short_desc="${short_desc} -- development files" + +do_install() { + vmove usr/include usr + vmove "usr/lib/*.a" usr/lib + vmove usr/share usr +} diff --git a/srcpkgs/lockdev/template b/srcpkgs/lockdev/template new file mode 100644 index 00000000000..957d68cd97a --- /dev/null +++ b/srcpkgs/lockdev/template @@ -0,0 +1,27 @@ +# Template file for 'lockdev' +pkgname=lockdev +version=1.0.3 +revision=1 +subpackages="${pkgname}-devel" +short_desc="Run-time shared library for locking devices" +maintainer="Juan RP " +homepage="http://packages.qa.debian.org/l/lockdev.html" +license="LGPL-2.1" +distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz" +checksum=ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82 +long_desc=" + It provides a reliable way to put an exclusive lock to devices using + _both_ FSSTND and SVr4 methods." + +do_build() { + make shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC" + make static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC" +} + +do_install() { + make basedir=${DESTDIR}/usr install + for f in so so.1; do + ln -sr ${DESTDIR}/usr/lib/liblockdev.${version}.so \ + ${DESTDIR}/usr/lib/liblockdev.${f} + done +}