log4c moved from contrib

This commit is contained in:
blue-devil
2020-06-03 02:13:16 +03:00
parent 22bd6a890a
commit 84a6d3b47c
3 changed files with 97 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
# suppress compiler warnings
pisitools.cflags.add("-Wno-format -Wno-misleading-indentation -Wno-unused-const-variable \
-Wno-pointer-to-int-cast -Wno-unused-function -Wno-int-to-pointer-cast")
autotools.configure("--disable-static \
--disable-doc \
--disable-dependency-tracking")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.insinto("/usr/include", "src/log4c.h")
# Move the example config file to docdir
pisitools.domove("/etc/log4crc.sample", "/%s/log4c" % get.docDIR())
pisitools.removeDir("/etc")
pisitools.dodoc("README", "AUTHORS", "COPYING", "ChangeLog", "TODO", "NEWS")
+52
View File
@@ -0,0 +1,52 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>log4c</Name>
<Homepage>http://log4c.sourceforge.net/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<PartOf>programming.misc</PartOf>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<Summary>A C library for flexible logging</Summary>
<Description>log4c is a C language library for flexible logging to files, syslog and other destinations. It is modeled after the Log for Java library (log4j), staying as close to their API as is reasonable.</Description>
<Archive sha1sum="a2795d7fcbdf5e43e1cc644893adfa725046abe8" type="targz">mirrors://sourceforge/log4c/log4c-1.2.4.tar.gz</Archive>
</Source>
<Package>
<Name>log4c</Name>
<Summary>A C library for flexible logging</Summary>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>log4c-devel</Name>
<Summary>Development files for log4c</Summary>
<RuntimeDependencies>
<Dependency release="current">log4c</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/share/aclocal</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-01-23</Date>
<Version>1.2.4</Version>
<Comment>Rebuild for new toolchain</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</PISI>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>log4c</Name>
<Summary xml:lang="tr">C için bir günlük kitaplığı</Summary>
<Description xml:lang="tr">log4c, dosyalara, syslog hizmetine ve diğer hedeflere kolayca günlük tutmayı sağlayan bir C kitaplığıdır.</Description>
</Source>
<Package>
<Name>log4c-devel</Name>
<Summary xml:lang="tr">log4c için geliştirme dosyaları</Summary>
<Description xml:lang="tr">log4c-devel, log4c için geliştirme dosyalarını içerir.</Description>
</Package>
</PISI>