blob: 54d43c4fb1e2ed46b7b6793e2de51c8fdbaaf5e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lvm2
pkgver=2.02.110
pkgrel=0
pkgdesc="Logical Volume Manager 2 utilities"
url="http://sourceware.org/lvm2/"
arch="all"
license="GPL"
depends=
makedepends="pkgconfig"
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 $pkgname-dmeventd device-mapper:dm
$pkgname-libs"
_builddir="$srcdir/LVM2.$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build () {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/lib \
--sbindir=/sbin \
--localstatedir=/var \
--disable-nls \
--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 || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" \
install || return 1
#usrlibdir="$pkgdir"/lib \
install -d "$pkgdir"/etc/lvm/archive "$pkgdir"/etc/lvm/backup
install -Dm755 "$srcdir"/lvm.initd "$pkgdir"/etc/init.d/lvm
install -Dm644 "$srcdir"/lvm.confd "$pkgdir"/etc/conf.d/lvm
cd "$pkgdir"/lib || return 1
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
mv "$pkgdir"/lib/libdevmapper.so.* "$subpkgdir"/lib/
mv "$pkgdir"/sbin/dm* "$subpkgdir"/sbin/
}
libs() {
pkgdesc="LVM2 shared libraries"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/liblvm2*.so.* "$subpkgdir"/lib/
}
md5sums="a69534060d67f8a5a3a4cc0690742d2d LVM2.2.02.110.tgz
2395ae17f924ebf25e9737d02f758f8f fix-stdio-usage.patch
260dba1a691ea2ae86a3c49b39f1dd7d lvm.initd
ec36d5fe4561220304e406c5c797e71f lvm.confd
73e7108a91e3c8ffdeab5699bf5cc639 dmeventd.initd"
sha256sums="3dad1aa04a71b8420b15f44c53f041001436539d3f8073490c2d0c52f6fecd11 LVM2.2.02.110.tgz
79c5379cbf660f8dabd45359463c77a40b5a83153b54c67ce36049260dac9071 fix-stdio-usage.patch
0be9b5503c4713fb848ad050ac4e57138770d72d639f536d32cc1a77b1ecc221 lvm.initd
e2ff57977ace6098e1a2efc8a1f6796e8bf6e5dd148e4c105bb647ffc6f79230 lvm.confd
0c051388991ba69afbf2f6baf36ba227d7c26fc8f0d7588d8de76d9a74886d79 dmeventd.initd"
sha512sums="5b4dfa5ed877d34efa5b109dc712e8fa9154b4954b267b0243f1925f9d2fa8c67f4ce8da36a85f3bba6c117f6153fdbf150e3753587ab90584a86d2654dc0812 LVM2.2.02.110.tgz
c4d55b366a60926baadf431dd382012eb808490c0bb514e01503d526cfd7ae573efa2d60a92bd5f6f451b54b11fb5cf827f45cec35cfcdee6aa291674cc776dd fix-stdio-usage.patch
97bd0524b3982e54cc41cec7d9cc2433d30f49175eeca95661f25906e414885d512ba21de3bbbca4a9c5496ba69b0aac9d977168d6e76f95d70ae37f3a3f65c7 lvm.initd
07caf8fa942290f3c953cc2463aaf55bac01d0bcb9351daf3880fa4d0eefb67fe00761c46a7a4da91cd2f8e492a12fed35853a15dc939cd80d19d3303bc3951d lvm.confd
523b54d63592c500394243632f4ed60838d04a8c386a85bb2a0fda6f756607467ec025c1490104d8c73035e37646eeea55dcafd3f05eab85e035bbedcebf0406 dmeventd.initd"
|