create core package
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/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 shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
shelltools.export("ac_cv_libsigsegv", "no")
|
||||
shelltools.export("AUTOPOINT", "true")
|
||||
autotools.configure("--with-libsigsegv-prefix=no \
|
||||
--enable-switch \
|
||||
--enable-nls")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("-j1 check diffout")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
# Remove versioned binaries
|
||||
pisitools.remove("/usr/bin/*-%s" % get.srcVERSION())
|
||||
|
||||
pisitools.dosym("gawk.1", "/usr/share/man/man1/awk.1")
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
|
||||
@@ -0,0 +1,26 @@
|
||||
Fix sandbox issue.
|
||||
|
||||
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
|
||||
|
||||
--- gawk-4.1.1/extension/Makefile.am 2014-02-20 19:42:25.000000000 +0100
|
||||
+++ gawk-4.1.1/extension/Makefile.am 2014-02-20 19:42:25.000000000 +0100
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
install-data-hook:
|
||||
for i in $(pkgextension_LTLIBRARIES) ; do \
|
||||
- $(RM) $(pkgextensiondir)/$$i ; \
|
||||
+ $(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \
|
||||
done
|
||||
|
||||
# Keep the uninstall check working:
|
||||
--- gawk-4.1.1/extension/Makefile.in 2014-04-08 18:13:03.000000000 +0200
|
||||
+++ gawk-4.1.1/extension/Makefile.in 2014-04-08 18:13:03.000000000 +0200
|
||||
@@ -1231,7 +1231,7 @@
|
||||
|
||||
install-data-hook:
|
||||
for i in $(pkgextension_LTLIBRARIES) ; do \
|
||||
- $(RM) $(pkgextensiondir)/$$i ; \
|
||||
+ $(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \
|
||||
done
|
||||
|
||||
# Keep the uninstall check working:
|
||||
@@ -0,0 +1,34 @@
|
||||
From 19564e696aca506a14ceb4a08aa2b7c7988a2473 Mon Sep 17 00:00:00 2001
|
||||
From: Arnold D. Robbins <arnold@skeeve.com>
|
||||
Date: Fri, 25 Apr 2014 10:21:43 +0000
|
||||
Subject: In forked children, set SIGPIPE to SIG_DFL.
|
||||
|
||||
---
|
||||
* io.c (two_way_open): In forked child, reset SIGPIPE to SIG_DFL.
|
||||
Fixes problems with "broken pipe" errors from child processes,
|
||||
restoring 4.1.0 and earlier behavior. Thanks to Daryl F
|
||||
<wyatt@prairieturtle.ca> for the report.
|
||||
(gawk_popen): Ditto.
|
||||
|
||||
diff --git a/io.c b/io.c
|
||||
index a6e786f..2bb8f28 100644
|
||||
--- a/io.c
|
||||
+++ b/io.c
|
||||
@@ -2078,6 +2078,7 @@ use_pipes:
|
||||
|| close(ctop[0]) == -1 || close(ctop[1]) == -1)
|
||||
fatal(_("close of pipe failed (%s)"), strerror(errno));
|
||||
/* stderr does NOT get dup'ed onto child's stdout */
|
||||
+ signal(SIGPIPE, SIG_DFL);
|
||||
execl("/bin/sh", "sh", "-c", str, NULL);
|
||||
_exit(errno == ENOENT ? 127 : 126);
|
||||
}
|
||||
@@ -2271,6 +2272,7 @@ gawk_popen(const char *cmd, struct redirect *rp)
|
||||
fatal(_("moving pipe to stdout in child failed (dup: %s)"), strerror(errno));
|
||||
if (close(p[0]) == -1 || close(p[1]) == -1)
|
||||
fatal(_("close of pipe failed (%s)"), strerror(errno));
|
||||
+ signal(SIGPIPE, SIG_DFL);
|
||||
execl("/bin/sh", "sh", "-c", cmd, NULL);
|
||||
_exit(errno == ENOENT ? 127 : 126);
|
||||
}
|
||||
--
|
||||
cgit v0.9.0.2
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gawk</Name>
|
||||
<Homepage>http://www.gnu.org/software/gawk/gawk.html</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>GNU awk pattern-matching language</Summary>
|
||||
<Description>The awk utility interprets a special-purpose programming language that makes it possible to handle simple data-reformatting jobs with just a few lines of code. It helps you to make changes in various text files wherever certain patterns appear, or extract data from parts of certain lines while discarding the rest. Gawk is the GNU implementation of awk.</Description>
|
||||
<Archive sha1sum="547feb48d20e923aff58daccee97c94e047fdc18" type="tarxz">http://ftp.gnu.org/gnu/gawk/gawk-4.1.1.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>gettext-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">gawk-4.1.1-sandbox_issue.patch</Patch>
|
||||
<Patch level="1">gawk-4.1.1-sigpipe.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gawk</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>readline</Dependency>
|
||||
<Dependency>gmp</Dependency>
|
||||
<Dependency>mpfr</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/libexec</Path>
|
||||
<Path fileType="library">/usr/lib/gawk</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/awk</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="info">/usr/share/info</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>4.1.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-03-10</Date>
|
||||
<Version>4.1.0</Version>
|
||||
<Comment>Release bump for update eror</Comment>
|
||||
<Name>Burak Fazıl Ertürk</Name>
|
||||
<Email>burakerturk@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-01-05</Date>
|
||||
<Version>4.1.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-07-26</Date>
|
||||
<Version>4.0.2</Version>
|
||||
<Comment>Fix dep, release bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-02-14</Date>
|
||||
<Version>4.0.2</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Ertan Güven</Name>
|
||||
<Email>ertan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-08-23</Date>
|
||||
<Version>4.01</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gawk</Name>
|
||||
<Summary xml:lang="tr">Metin işleme uygulaması olan awk'ın GNU versiyonu</Summary>
|
||||
<Description xml:lang="tr">awk uygulaması az bir kod ile basit veri formatı düzenleme işlerinizi yapabilmenize olanak sağlayan özel amaçlı bir programlama dilidir. Uygulama birçok farklı metin dosyası içinde aradığınız parçaları bulup değiştirmenize veya diğer satırlardan ayırarak işlemenize yardımcı olur. Gawk programı awk'ın GNU sürümüdür.</Description>
|
||||
<Description xml:lang="fr">L'outil awk interprète un langage de programmation spécifique permettant d'effectuer les tâches de modifications simples de données en quelques lignes de code. Il vous permet de faire des changements dans différents fichiers texte lorsqu'un certain patron apparaît ou d'extraire des données de fragments de lignes tout en laissant de côté le reste. Gawk est l'implémentation GNU d'awk.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user