diff options
Diffstat (limited to 'main/lvm2')
-rw-r--r-- | main/lvm2/APKBUILD | 30 | ||||
-rw-r--r-- | main/lvm2/dmeventd.initd | 26 |
2 files changed, 50 insertions, 6 deletions
diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD index 31cac48d2d..17b1767de4 100644 --- a/main/lvm2/APKBUILD +++ b/main/lvm2/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lvm2 pkgver=2.02.105 -pkgrel=0 +pkgrel=1 pkgdesc="Logical Volume Manager 2 utilities" url="http://sourceware.org/lvm2/" arch="all" @@ -12,8 +12,10 @@ source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz fix-stdio-usage.patch lvm.initd lvm.confd + dmeventd.initd " -subpackages="$pkgname-dev $pkgname-doc device-mapper:dm $pkgname-libs" +subpackages="$pkgname-dev $pkgname-doc $pkgname-dmeventd device-mapper:dm + $pkgname-libs" _builddir="$srcdir/LVM2.$pkgver" @@ -42,11 +44,17 @@ build () { --disable-readline \ --enable-pkgconfig \ --enable-applib \ + --with-thin=internal \ + --enable-dmeventd \ + --enable-cmdlib \ + --with-thin-check=/sbin/thin_check \ + --with-thin-dump=/sbin/thin_dump \ + --with-thin-repair=/sbin/thin_repair \ CLDFLAGS="$LDFLAGS" \ || return 1 # TODO: fix parallel builds - make -j1 || return 1 + make || return 1 } package() { @@ -61,6 +69,13 @@ package() { ln -s libdevmapper.so.1.02 libdevmapper.so || return 1 } +dmeventd() { + pkgdesc="Device-mapper event daemon" + mkdir -p "$subpkgdir"/sbin + mv "$pkgdir"/sbin/dmeventd "$subpkgdir"/sbin/ + install -Dm755 "$srcdir"/dmeventd.initd "$subpkgdir"/etc/init.d/dmeventd +} + dm() { pkgdesc="Device mapper userspace library and tools from LVM2" mkdir -p "$subpkgdir"/sbin "$subpkgdir"/lib @@ -77,12 +92,15 @@ libs() { md5sums="b5b3540661fc70bf329b526c1cfbcf3a LVM2.2.02.105.tgz 2395ae17f924ebf25e9737d02f758f8f fix-stdio-usage.patch 260dba1a691ea2ae86a3c49b39f1dd7d lvm.initd -ec36d5fe4561220304e406c5c797e71f lvm.confd" +ec36d5fe4561220304e406c5c797e71f lvm.confd +73e7108a91e3c8ffdeab5699bf5cc639 dmeventd.initd" sha256sums="d0700c7000ff6375c1c36cb2a89b97b9ae6757f4219fa9ec65f313d13d71e51e LVM2.2.02.105.tgz 79c5379cbf660f8dabd45359463c77a40b5a83153b54c67ce36049260dac9071 fix-stdio-usage.patch 0be9b5503c4713fb848ad050ac4e57138770d72d639f536d32cc1a77b1ecc221 lvm.initd -e2ff57977ace6098e1a2efc8a1f6796e8bf6e5dd148e4c105bb647ffc6f79230 lvm.confd" +e2ff57977ace6098e1a2efc8a1f6796e8bf6e5dd148e4c105bb647ffc6f79230 lvm.confd +0c051388991ba69afbf2f6baf36ba227d7c26fc8f0d7588d8de76d9a74886d79 dmeventd.initd" sha512sums="fb2f4eaceb8e643c7e081b6d8d77daf387960c39f880f5600df40c7eb32d7908835114b8619805a814fc1c59ce920fa36d9afa72314dfabcb69ddf134833e1fa LVM2.2.02.105.tgz c4d55b366a60926baadf431dd382012eb808490c0bb514e01503d526cfd7ae573efa2d60a92bd5f6f451b54b11fb5cf827f45cec35cfcdee6aa291674cc776dd fix-stdio-usage.patch 97bd0524b3982e54cc41cec7d9cc2433d30f49175eeca95661f25906e414885d512ba21de3bbbca4a9c5496ba69b0aac9d977168d6e76f95d70ae37f3a3f65c7 lvm.initd -07caf8fa942290f3c953cc2463aaf55bac01d0bcb9351daf3880fa4d0eefb67fe00761c46a7a4da91cd2f8e492a12fed35853a15dc939cd80d19d3303bc3951d lvm.confd" +07caf8fa942290f3c953cc2463aaf55bac01d0bcb9351daf3880fa4d0eefb67fe00761c46a7a4da91cd2f8e492a12fed35853a15dc939cd80d19d3303bc3951d lvm.confd +523b54d63592c500394243632f4ed60838d04a8c386a85bb2a0fda6f756607467ec025c1490104d8c73035e37646eeea55dcafd3f05eab85e035bbedcebf0406 dmeventd.initd" diff --git a/main/lvm2/dmeventd.initd b/main/lvm2/dmeventd.initd new file mode 100644 index 0000000000..3c2f5f327a --- /dev/null +++ b/main/lvm2/dmeventd.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.3 2014/02/08 21:17:46 robbat2 Exp $ + +PIDFILE=/run/dmeventd.pid +BIN=/sbin/dmeventd + +depend() { + # As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that + # means dmeventd is NOT notified, as it cannot be safely running + after lvm device-mapper +} + +start() { + ebegin "Starting dmeventd" + start-stop-daemon --start --exec $BIN --pidfile $PIDFILE + eend $? +} + +stop() { + ebegin "Stopping dmeventd" + start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE + eend $? +} + |