void-packages/srcpkgs/lockdev/template

28 lines
908 B
Text
Raw Normal View History

2013-03-25 14:07:53 +00:00
# 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 <xtraeme@gmail.com>"
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() {
2013-03-25 14:08:42 +00:00
make CC="$CC" shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
make CC="$CC" static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
2013-03-25 14:07:53 +00:00
}
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
}