IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.00.17 PROGNAME="device-mapper $VERSION" DESC="\ device-mapper (device-mapper for logical volume management) \n\ \n\ The goal of device-mapper is to support volume management. The \n\ driver enables the definition of new block devices composed of \n\ ranges of sectors of existing devices. This can be used to define \n\ disk partitions or logical volumes. \n\ \n\ device-mapper is required by LVM2, the Logical Volume Manager." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/device-mapper PKGNAME=device-mapper-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/device-mapper.$VERSION.tgz cd device-mapper.$VERSION/ chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; CFLAGS=-O2 \ ./configure \ --enable-compat \ --enable-static_link make } install() { make install DESTDIR=/package-device-mapper mkdir -p /package-device-mapper/usr/doc/device-mapper.$VERSION cp -a COPYING COPYING.LIB INSTALL INTRO README VERSION WHATS_NEW \ /package-device-mapper/usr/doc/device-mapper.$VERSION ( cd /package-device-mapper/usr/man/man8 rm -f *.gz gzip -9 *.8 ) } attributes() { chown -R root.bin $PKG/package-device-mapper/sbin } special() { cd $PKG mv package-device-mapper/* ./ rmdir package-device-mapper cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-device-mapper/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }