summaryrefslogtreecommitdiff
path: root/libdevmapper/Pkgfile
blob: 31bcb7b6c6e2c3e59d2f6768509eb178b8d00134 (plain)
    1 # Description: Device mapper userspace library
    2 # URL:         http://sourceware.org/lvm2/
    3 # Maintainer:  CRUX System Team, core-ports at crux dot nu
    4 # Depends on:  eudev util-linux
    5 
    6 name=libdevmapper
    7 version=1.02.130
    8 release=1
    9 source=(http://mirrors.kernel.org/sources.redhat.com/lvm2/releases/LVM2.2.02.160.tgz)
   10 
   11 build() {
   12     cd LVM2.2.02.160
   13 
   14     ./configure --prefix=/usr \
   15                 --exec-prefix= \
   16                 --datarootdir=/usr \
   17                 --with-udev-prefix= \
   18                 --mandir=/usr/share/man \
   19                 --disable-readline \
   20                 --enable-pkgconfig \
   21                 --enable-static_link \
   22                 --enable-udev_sync \
   23                 --enable-udev_rules \
   24                 --with-{user,group}=root
   25 
   26     make device-mapper
   27     make DESTDIR=$PKG install_device-mapper
   28     install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
   29     
   30     # symlink dmsetup to dmstats and not dmsetup.static
   31     ln -sf dmsetup $PKG/sbin/dmstats
   32     
   33     # pkgconfig insists on /lib one or the other way...
   34     sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
   35 }

Generated by cgit