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