opps...
This commit is contained in:
@@ -4,18 +4,106 @@
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
def builddiet():
|
||||
pisitools.flags.add("-fno-lto")
|
||||
shelltools.export("LIBS","-lpthread -luuid")
|
||||
#dietCC = "diet %s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS())
|
||||
dietCC = "%s %s %s -Os -static" % (get.CC(), get.CFLAGS(), get.LDFLAGS())
|
||||
shelltools.export("CC", dietCC)
|
||||
|
||||
autotools.make("distclean")
|
||||
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure('ac_cv_lib_dl_dlopen=no \
|
||||
--with-staticdir="/sbin" \
|
||||
--enable-debug \
|
||||
--with-optimisation=\"%s -Os\" \
|
||||
--enable-static_link \
|
||||
--with-lvm1=internal \
|
||||
--disable-readline \
|
||||
--disable-nls \
|
||||
--disable-selinux \
|
||||
--with-confdir=/etc \
|
||||
--enable-applib \
|
||||
--enable-cmdlib \
|
||||
--enable-pkgconfig \
|
||||
--enable-udev_rules \
|
||||
--with-systemdsystemunitdir=no \
|
||||
--enable-udev_sync' % get.CFLAGS())
|
||||
|
||||
#pisitools.dosed("lib/misc/configure.h","rpl_malloc","malloc")
|
||||
#pisitools.dosed("lib/misc/configure.h","rpl_realloc","realloc")
|
||||
|
||||
autotools.make("-j1 -C include")
|
||||
autotools.make("-j1 -C lib LIB_SHARED= VERSIONED_SHLIB=")
|
||||
autotools.make("-j1 -C libdm LIB_SHARED= VERSIONED_SHLIB=")
|
||||
autotools.make("-j1 -C libdaemon LIB_SHARED= VERSIONED_SHLIB=")
|
||||
autotools.make("-j1 -C tools dmsetup.static lvm.static DIETLIBC_LIBS=\"-lcompat\"")
|
||||
|
||||
pisitools.insinto("/usr/lib/dietlibc/lib-i386", "libdm/ioctl/libdevmapper.a")
|
||||
pisitools.insinto("/sbin/", "tools/lvm.static")
|
||||
pisitools.insinto("/sbin/", "tools/dmsetup.static")
|
||||
|
||||
|
||||
def setup():
|
||||
# Breaks linking when sandbox is disabled
|
||||
shelltools.export("CLDFLAGS", get.LDFLAGS())
|
||||
|
||||
shelltools.export("LIB_PTHREAD", "-lpthread")
|
||||
pisitools.dosed("conf/example.conf.in", "use_lvmetad = 0", "use_lvmetad = 1")
|
||||
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure("--enable-lvm1_fallback \
|
||||
--with-default-pid-dir=/run \
|
||||
--with-default-run-dir=/run/lvm \
|
||||
--with-default-locking-dir=/run/lock/lvm \
|
||||
--with-dmeventd-path=/sbin/dmeventd \
|
||||
--enable-fsadm \
|
||||
--with-pool=internal \
|
||||
--with-user= \
|
||||
--with-group= \
|
||||
--with-usrlibdir=/usr/lib \
|
||||
--with-usrsbindir=%s \
|
||||
--with-udevdir=/lib/udev/rules.d \
|
||||
--with-device-uid=0 \
|
||||
--with-device-gid=6 \
|
||||
--with-device-mode=0660 \
|
||||
--enable-dmeventd \
|
||||
--enable-udev_rules \
|
||||
--enable-udev_sync \
|
||||
--with-snapshots=internal \
|
||||
--with-mirrors=internal \
|
||||
--with-interface=ioctl \
|
||||
--enable-static_link=no \
|
||||
--disable-readline \
|
||||
--disable-realtime \
|
||||
--disable-selinux \
|
||||
--with-confdir=/etc \
|
||||
--enable-applib \
|
||||
--enable-cmdlib \
|
||||
--enable-pkgconfig " % get.sbinDIR())
|
||||
|
||||
# pisitools.dosed("make.tmpl","-lm","")
|
||||
|
||||
def build():
|
||||
autotools.make("-C include")
|
||||
#autotools.make("-C libdm")
|
||||
#autotools.make("-C lib")
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
for binary in ["dos2unix", "mac2unix", "unix2dos", "unix2mac"]:
|
||||
pisitools.dobin(binary)
|
||||
|
||||
pisitools.dodoc("NEWS.txt", "README.txt" ,"TODO.txt", "ChangeLog.txt", "COPYING.txt")
|
||||
pisitools.doman("man/man1/dos2unix.1")
|
||||
autotools.rawInstall('DESTDIR=%s' % get.installDIR())
|
||||
|
||||
for dir in ["archive", "backup", "cache"]:
|
||||
pisitools.dodir("/etc/lvm/%s" % dir)
|
||||
shelltools.chmod(get.installDIR() + "/etc/lvm/%s" % dir, 0700)
|
||||
|
||||
#pisitools.move("/sbin/lvmconf","scripts/lvmconf.sh")
|
||||
|
||||
builddiet()
|
||||
pisitools.dodoc("COPYING", "COPYING.LIB", "README", "VERSION", "VERSION_DM", "WHATS_NEW", "WHATS_NEW_DM")
|
||||
|
||||
+209
-39
@@ -2,76 +2,246 @@
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>dos2unix</Name>
|
||||
<Homepage>http://www.xs4all.nl/~waterlan/dos2unix.html</Homepage>
|
||||
<Name>lvm2</Name>
|
||||
<Homepage>http://sources.redhat.com/lvm/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>freedist</License>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Convert DOS and MAC text files to UNIX format</Summary>
|
||||
<Description>dos2unix can convert DOS and MAC files to UNIX format, processing character encoding and line ending characters.</Description>
|
||||
<Archive sha1sum="3cc653ab32344446345e77b736d4578c80ef4d5c" type="targz">http://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.3.tar.gz</Archive>
|
||||
<Summary>Userland logical volume management tools</Summary>
|
||||
<Description>LVM2 includes all of the support for handling read/write operations physical and logical volumes.</Description>
|
||||
<Archive sha1sum="2a7cce6407d91847731d8f2ca2b4ba7dee03225a" type="targz">ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.142.tgz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libutil-linux-devel</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">lvm2-2.02.63-always-make-static-libdm.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.92-dynamic-static-ldflags.patch</Patch>
|
||||
<Patch level="1">lvm2-2.02.105-pthread-pkgconfig.patch</Patch>
|
||||
<Patch>lvm2-2.02.106-static-pkgconfig-libs.patch</Patch>-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>dos2unix</Name>
|
||||
<Name>device-mapper</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>eudev</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Summary>Light-weight kernel component can support user-space tools for logical volume management</Summary>
|
||||
<Description>Device-mapper includes the driver enables the definition of new block devices composed of ranges of sectors of existing devices to define disk partitions or logical volumes.</Description>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="executable">/usr/sbin/dmsetup</Path>
|
||||
<Path fileType="executable">/usr/sbin/dmstats</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper.a</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper.so*</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/10-dm.rules</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/13-dm-disk.rules</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/95-dm-notify.rules</Path>
|
||||
<Path fileType="doc">/usr/share/doc/VERSION_DM</Path>
|
||||
<Path fileType="doc">/usr/share/doc/WHATS_NEW_DM</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/dmsetup.8</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/dmstats.8</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>device-mapper-devel</Name>
|
||||
<Summary>Development libraries and headers for device-mapper</Summary>
|
||||
<Description>Device-mapper-devel contains files needed to develop applications that use the device-mapper libraries.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current" >device-mapper</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include/libdevmapper.h</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig/devmapper.pc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>device-mapper-event</Name>
|
||||
<Summary>Device-mapper event daemon</Summary>
|
||||
<Description>This package contains the dmeventd daemon for monitoring the state of device-mapper devices.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current" >device-mapper</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/sbin/dmeventd</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event.a</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event.so*</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2thin.so</Path>
|
||||
<Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2thin.so</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/dmeventd.8</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>device-mapper-event-devel</Name>
|
||||
<Summary>Development libraries and headers for the device-mapper event daemon</Summary>
|
||||
<Description>This contains contains files needed to develop applications that use the device-mapper event library.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current" >device-mapper-event</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include/libdevmapper-event.h</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig/devmapper-event.pc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lvm2</Name>
|
||||
<Summary>Userland logical volume management tools</Summary>
|
||||
<Description>LVM2 includes all of the support for handling read/write operations on physical volumes,creating volume groups from one or more physical volumes and creating one or more logical volumes in volume groups.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">device-mapper</Dependency>
|
||||
<Dependency release="current">device-mapper-event</Dependency>
|
||||
<Dependency>libutil-linux</Dependency>
|
||||
<Dependency>eudev</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin/lvmconf</Path>
|
||||
<Path fileType="executable">/usr/sbin/blkdeactivate</Path>
|
||||
<Path fileType="executable">/usr/sbin/fsadm</Path>
|
||||
<Path fileType="executable">/usr/sbin/lv*</Path>
|
||||
<Path fileType="executable">/usr/sbin/vg*</Path>
|
||||
<Path fileType="executable">/usr/sbin/pv*</Path>
|
||||
<Path fileType="library">/usr/lib/liblvm2app.so*</Path>
|
||||
<Path fileType="library">/usr/lib/liblvm2cmd.so*</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2.so*</Path>
|
||||
<Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2mirror.so</Path>
|
||||
<Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2snapshot.so</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2mirror.so</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2snapshot.so</Path>
|
||||
<Path fileType="library">/usr/lib/libdevmapper-event-lvm2raid.so</Path>
|
||||
<Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2raid.so</Path>
|
||||
<Path fileType="config">/etc/lvm</Path>
|
||||
<Path fileType="data">/etc/lvm/archive</Path>
|
||||
<Path fileType="data">/etc/lvm/backup</Path>
|
||||
<Path fileType="data">/etc/lvm/cache</Path>
|
||||
<Path fileType="data">/var/lock/lvm</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d/11-dm-lvm.rules</Path>
|
||||
<Path fileType="data">/usr/lib/tmpfiles.d/lvm2.conf</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man/man5/lvm.conf.5</Path>
|
||||
<Path fileType="man">/usr/share/man/man7</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/fsadm.8</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/blkdeactivate.8</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/*pv*</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/*lv*</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/*vg*</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/lvm2.conf">tmpfiles.conf</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lvm2-devel</Name>
|
||||
<Summary>Development libraries and headers</Summary>
|
||||
<Description>This package contains files needed to develop applications that use the lvm2 libraries.</Description>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libutil-linux-devel</Dependency>
|
||||
<Dependency release="current">lvm2</Dependency>
|
||||
<Dependency release="current">device-mapper-devel</Dependency>
|
||||
<Dependency release="current">device-mapper-event-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include/lvm2cmd.h</Path>
|
||||
<Path fileType="header">/usr/include/lvm2app.h</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig/lvm2app.pc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>dietlibc-libdevmapper</Name>
|
||||
<Summary>Static devmapper library built with dietlibc</Summary>
|
||||
<Description>device mapper contains ioctl library and utilities for use with logical volume management (LVM2) built with dietlibc</Description>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/dietlibc/lib-i386/libdevmapper.a</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>device-mapper-static</Name>
|
||||
<Summary>Staticaly linked Device-mapper library and utility</Summary>
|
||||
<Description>device mapper contains statically linked libraries and utility for initramfs.</Description>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin/dmsetup.static</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>lvm2-static</Name>
|
||||
<Summary>Staticaly linked Logical Volume Management utilities</Summary>
|
||||
<Description>Number of utilities for creating, checking, and repairing logical volumes - statically linked for initramfs.</Description>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin/lvm.static</Path>
|
||||
<Path fileType="library">/usr/lib/liblvm2app.a</Path>
|
||||
<Path fileType="library">/usr/lib/liblvm2cmd.a</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2016-03-14</Date>
|
||||
<Version>7.3</Version>
|
||||
<Update release="8">
|
||||
<Date>2016-03-13</Date>
|
||||
<Version>2.02.142</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2015-05-02</Date>
|
||||
<Version>2.02.118</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2015-02-08</Date>
|
||||
<Version>7.1</Version>
|
||||
<Date>2014-09-04</Date>
|
||||
<Version>2.02.111</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-06-07</Date>
|
||||
<Version>6.0.5</Version>
|
||||
<Date>2014-05-09</Date>
|
||||
<Version>2.02.106</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-02-28</Date>
|
||||
<Version>6.0.4</Version>
|
||||
<Date>2014-04-07</Date>
|
||||
<Version>2.02.105</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-02-17</Date>
|
||||
<Version>5.3.1</Version>
|
||||
<Comment>Release.</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
<Date>2013-11-09</Date>
|
||||
<Version>2.02.103</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-05-28</Date>
|
||||
<Version>5.3.1</Version>
|
||||
<Comment>Confilicts Fixed</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
<Date>2013-07-26</Date>
|
||||
<Version>2.02.98</Version>
|
||||
<Comment>Fix dep, release bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptanan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2011-08-11</Date>
|
||||
<Version>5.3.1</Version>
|
||||
<Date>2012-11-14</Date>
|
||||
<Version>2.02.98</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
|
||||
Reference in New Issue
Block a user