summaryrefslogtreecommitdiffstats
path: root/abs/core/lockdev/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-20 00:34:21 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-20 00:34:21 (GMT)
commitfc82283b1f350150f2f9a91d53b975a364363fda (patch)
tree91e07b22b39ae0113b24a3f466162b7c81c98da1 /abs/core/lockdev/PKGBUILD
parent8eaf3a55d86a96ee70f0c0f7cc02c735c14a4e0d (diff)
downloadlinhes_pkgbuild-fc82283b1f350150f2f9a91d53b975a364363fda.zip
linhes_pkgbuild-fc82283b1f350150f2f9a91d53b975a364363fda.tar.gz
linhes_pkgbuild-fc82283b1f350150f2f9a91d53b975a364363fda.tar.bz2
lockdev: update to 1.0.3_1.6
Diffstat (limited to 'abs/core/lockdev/PKGBUILD')
-rw-r--r--abs/core/lockdev/PKGBUILD38
1 files changed, 28 insertions, 10 deletions
diff --git a/abs/core/lockdev/PKGBUILD b/abs/core/lockdev/PKGBUILD
index 946f55d..5398e7a 100644
--- a/abs/core/lockdev/PKGBUILD
+++ b/abs/core/lockdev/PKGBUILD
@@ -1,27 +1,45 @@
+# $Id$
+# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Andreas Wagner <a.wagner@stud.uni-frankfurt.de>
+
pkgname=lockdev
-pkgver=1.0.3_1.5
+pkgver=1.0.3_1.6
_pkgver=1.0.3
-pkgrel=3
+pkgrel=4
pkgdesc='Run-time shared library for locking devices, using _both_ FSSTND and SVr4 methods.'
url='http://packages.qa.debian.org/l/lockdev.html'
license=("GPL")
-arch=('i686' 'x86_64')
+arch=('x86_64')
+depends=('glibc' 'systemd')
source=("http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${_pkgver}.orig.tar.gz"
- "http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver/_/-}.diff.gz")
+ "http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver/_/-}.diff.gz"
+ 'build.patch'
+ 'gcc-4.7.patch')
+md5sums=('64b9c1b87b125fc348e892e24625524a'
+ '5ef6267c42fca9145e0af006ccb6aff7'
+ '2db93cadf6670ddcd01de4bfc22a35e1'
+ 'e16faebfa2d162d40830ef6f2700b7ba')
-build() {
+prepare() {
cd "${pkgname}-${_pkgver}"
-
patch -p1 -i "../${pkgname}_${pkgver/_/-}.diff"
sed -i "s|CFLAGS = -g|CFLAGS = -g -fPIC|" Makefile
+ patch -p1 -i ../build.patch # FS#33280
+ patch -p1 -i ../gcc-4.7.patch # FS#34457
+}
- make shared
- make static
+build() {
+ cd "${pkgname}-${_pkgver}"
+ make CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
}
package() {
cd "${pkgname}-${_pkgver}"
make basedir="${pkgdir}/usr" install
+
+ # Setup lock directory
+ install -dm755 "$pkgdir"/usr/lib/{sysusers,tmpfiles}.d
+ echo 'g lock - - -' > "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+ echo 'd /run/lock/lockdev 0775 root lock -' > "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
}
-md5sums=('64b9c1b87b125fc348e892e24625524a'
- 'c4e8a5a2e46b76b48339c232b358f579')