libtar
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Licensed under the GNU General Public License, version 3.
|
||||||
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
|
from pisi.actionsapi import autotools
|
||||||
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import shelltools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
#libtar-1.2.11-free.patch
|
||||||
|
pisitools.dosed("lib/output.c", "#ifdef STDC_HEADERS", "#ifdef STDC_HEADERS\n# include <stdlib.h>")
|
||||||
|
pisitools.dosed("lib/wrapper.c", "#ifdef STDC_HEADERS", "#ifdef STDC_HEADERS\n# include <stdlib.h>")
|
||||||
|
autotools.autoreconf("-fvi")
|
||||||
|
autotools.configure("--disable-static")
|
||||||
|
|
||||||
|
# Remove rpath
|
||||||
|
pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
|
||||||
|
pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
|
||||||
|
|
||||||
|
def build():
|
||||||
|
autotools.make
|
||||||
|
|
||||||
|
def install():
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
|
pisitools.dodoc("ChangeLog*", "COPYRIGHT", "README", "TODO")
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
|||||||
|
stdlib.h is required for free()
|
||||||
|
|
||||||
|
--- lib/output.c
|
||||||
|
+++ lib/output.c
|
||||||
|
@@ -20,6 +20,7 @@
|
||||||
|
#include <sys/param.h>
|
||||||
|
|
||||||
|
#ifdef STDC_HEADERS
|
||||||
|
+# include <stdlib.h>
|
||||||
|
# include <string.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
--- lib/wrapper.c
|
||||||
|
+++ lib/wrapper.c
|
||||||
|
@@ -18,6 +18,7 @@
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
#ifdef STDC_HEADERS
|
||||||
|
+# include <stdlib.h>
|
||||||
|
# include <string.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>libtar</Name>
|
||||||
|
<Homepage>http://www.feep.net/libtar/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>as-is</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<Summary>tar file manipulation API</Summary>
|
||||||
|
<Description>libtar is a C library for manipulating POSIX tar files. It handles adding and extracting files to/from a tar archive.</Description>
|
||||||
|
<Archive sha1sum="89901d5dbf720b59df7a5f0b34ff90bff9bbb806" type="targz">http://pkgbuild.com/~giovanni/libtar/libtar-1.2.20.tar.gz</Archive>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>libtar</Name>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
|
<Path fileType="library">/usr/lib</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
<Path fileType="man">/usr/share/man</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>libtar-devel</Name>
|
||||||
|
<Summary>Development files for libtar</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency release="current">libtar</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="header">/usr/include</Path>
|
||||||
|
<Path fileType="man">/usr/share/man/man3</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2014-06-20</Date>
|
||||||
|
<Version>1.2.20</Version>
|
||||||
|
<Comment>version bump</Comment>
|
||||||
|
<Name>Kamil Atlı</Name>
|
||||||
|
<Email>suvari@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2010-10-12</Date>
|
||||||
|
<Version>1.2.11</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Pisi Linux Admins</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>libtar</Name>
|
||||||
|
<Summary xml:lang="tr">tar dosyalarını işlemek için bir API</Summary>
|
||||||
|
<Description xml:lang="tr">libtar, POSIX tar dosyalarını işlemek için yazılmış bir C kütüphanesidir.</Description>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>libtar-devel</Name>
|
||||||
|
<Summary xml:lang="tr">libtar için geliştirme dosyaları</Summary>
|
||||||
|
</Package>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user