wok-next view lvm2/receipt @ rev 19936
mate-common: automake-1.15 support, mate-desktop, mate-icon-theme, mate-system-monitor: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 15 17:04:15 2017 +0200 (2017-10-15) |
parents | 6258c9d57ade |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lvm2"
4 VERSION="2.02.173"
5 CATEGORY="system-tools"
6 SHORT_DESC="Linux Logical Volume Manager"
7 MAINTAINER="guillaume.michon@laposte.net"
8 LICENSE="GPL2"
9 WEB_SITE="http://sourceware.org/lvm2/"
11 TARBALL="LVM2.$VERSION.tgz"
12 WGET_URL="ftp://sources.redhat.com/pub/lvm2/$TARBALL"
14 BUILD_DEPENDS="readline-dev eudev-dev ncurses-dev coreutils-file-format"
15 SPLIT="dmsetup libdevmapper libdevmapper-dev lvm2 lvm2-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # http://www.linuxfromscratch.org/blfs/view/stable/postlfs/lvm2.html
22 ./configure \
23 --exec-prefix= \
24 --enable-applib \
25 --enable-cmdlib \
26 --enable-pkgconfig \
27 --enable-udev_sync \
28 --enable-dmeventd \
29 --enable-udev_rules \
30 --enable-readline \
31 --with-thin-check= --with-thin-dump= --with-thin-repair= \
32 --with-thin-restore= --with-cache-check= --with-cache-dump= \
33 --with-cache-repair= --with-cache-restore= \
34 MKDIR_P='mkdir -p' \
35 $CONFIGURE_ARGS &&
36 title "make" &&
37 make &&
38 make -C tools install_dmsetup_dynamic &&
39 make -C udev install &&
40 make -C libdm install &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 dmsetup)
49 copy dmsetup dmstats
50 DEPENDS="libdevmapper"
51 CAT="system-tools|Linux device mapper setup tool"
52 ;;
53 libdevmapper)
54 # to satisfy package ldd-dependencies: add liblvm2cmd.so*
55 copy *.rules libdevmapper*.so* liblvm2cmd.so*
56 DEPENDS="eudev"
57 CAT="system-tools|Linux device mapper library"
58 ;;
59 libdevmapper-dev)
60 # ... and add lvm2cmd.h because liblvm2cmd.so in libdevmapper package
61 copy libdevmapper*.h devmapper*.pc lvm2cmd.h
62 CAT="system-tools|Linux device mapper development files"
63 DEPENDS="libdevmapper eudev-dev"
64 ;;
65 lvm2)
66 copy @std
67 remove_already_packed
68 DEPENDS="eudev libdevmapper ncurses readline linux-md"
69 ;;
70 lvm2-dev)
71 copy lvm2app.h lvm2app.pc
72 DEPENDS="lvm2 libdevmapper-dev"
73 ;;
74 esac
75 }
77 post_install_libdevmapper() {
78 tazpkg reconfigure eudev --root="$1"
79 }