libevent is dep recommended for mariadb

This commit is contained in:
Ertuğrul Erata
2015-07-03 11:34:04 +03:00
parent aeea8eafa7
commit 88c555859c
6 changed files with 176 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/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 get
WorkDir = "libevent-%s-stable" % get.srcVERSION()
def setup():
pisitools.dosed("Makefile.am", "libevent_extra_la_LIBADD =", "libevent_extra_la_LIBADD = libevent.la ")
autotools.autoreconf("-fi")
autotools.configure("--disable-static")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("README")
@@ -0,0 +1,12 @@
diff -up libevent-2.0.13-stable/Doxyfile.orig libevent-2.0.13-stable/Doxyfile
--- libevent-2.0.13-stable/Doxyfile.orig 2011-07-05 13:04:30.000000000 -0400
+++ libevent-2.0.13-stable/Doxyfile 2011-08-10 08:18:42.036654445 -0400
@@ -175,7 +175,7 @@ LATEX_HIDE_INDICES = NO
# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
# generate man pages
-GENERATE_MAN = NO
+GENERATE_MAN = YES
# The MAN_EXTENSION tag determines the extension that is added to
# the generated man pages (default is the subroutine's section .3)
@@ -0,0 +1,24 @@
diff -Naur -x '*~' libevent-2.0.21-stable/configure.in libevent-2.0.21-stable-automake-fix/configure.in
--- libevent-2.0.21-stable/configure.in 2012-11-18 07:34:13.000000000 +0100
+++ libevent-2.0.21-stable-automake-fix/configure.in 2012-12-31 14:04:30.219499020 +0100
@@ -12,7 +12,7 @@
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(libevent,2.0.21-stable)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADER(config.h)
AC_DEFINE(NUMERIC_VERSION, 0x02001500, [Numeric representation of the version])
dnl Initialize prefix.
diff -Naur -x '*~' libevent-2.0.21-stable/test/Makefile.am libevent-2.0.21-stable-automake-fix/test/Makefile.am
--- libevent-2.0.21-stable/test/Makefile.am 2012-05-31 06:08:19.000000000 +0200
+++ libevent-2.0.21-stable-automake-fix/test/Makefile.am 2012-12-31 14:10:49.045538012 +0100
@@ -19,7 +19,7 @@
EXTRA_PROGRAMS = regress
noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h
-TESTS = $(top_srcdir)/test/test.sh
+TESTS = test.sh
BUILT_SOURCES =
if BUILD_REGRESS
@@ -0,0 +1,11 @@
--- Makefile.am 2011-06-14 10:17:58.169588904 +0200
+++ Makefile.am.oden 2011-06-14 10:22:36.410588885 +0200
@@ -178,7 +178,7 @@
MAYBE_CORE = libevent_core.la
else
NO_UNDEFINED =
-MAYBE_CORE =
+MAYBE_CORE = libevent_core.la
endif
GENERIC_LDFLAGS = -version-info $(VERSION_INFO) $(NO_UNDEFINED)
+89
View File
@@ -0,0 +1,89 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libevent</Name>
<Homepage>http://monkey.org/~provos/libevent</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Summary>A library to execute a function when a specific event occurs on a file descriptor</Summary>
<Description>The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. libevent is meant to replace the asynchronous event loop found in event driven network servers. An application just needs to call event_dispatch() and can then add or remove events dynamically without having to change the event loop.</Description>
<Archive sha1sum="3e6674772eb77de24908c6267c698146420ab699" type="targz">https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz</Archive>
<BuildDependencies>
<Dependency>openssl-devel</Dependency>
<Dependency>zlib-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="0">libevent-linkage_fix.diff</Patch>
<Patch level="1">libevent-2.0.13-manpages-on.patch</Patch>
<Patch level="1">libevent-2.0.21-stable-automake-fix.patch</Patch>
</Patches>
</Source>
<Package>
<Name>libevent</Name>
<RuntimeDependencies>
<Dependency>openssl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>libevent-devel</Name>
<Summary>Development files for libevent</Summary>
<RuntimeDependencies>
<Dependency release="current">libevent</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2014-05-31</Date>
<Version>2.0.21</Version>
<Comment>Rebuild.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-02-25</Date>
<Version>2.0.21</Version>
<Comment>Rebuild Unused</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-07-27</Date>
<Version>2.0.21</Version>
<Comment>Move pc files to devel pack, rebuild</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-03-27</Date>
<Version>2.0.21</Version>
<Comment>bump</Comment>
<Name>Erdinç Gültekin</Name>
<Email>erdincgultekin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-14</Date>
<Version>2.0.20</Version>
<Comment>First release</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>libevent</Name>
<Summary xml:lang="tr">Dosya tanımlayıcıları üzerindeki belirli değişiklerde belirli fonksiyonların çalıştırılmasını sağlayan bir kitaplığı</Summary>
<Summary xml:lang="fr">Une librairie pour exécuter une fonction lorsqu'un événement spécifique a lieu sur un descripteur (descriptor) de fichier.</Summary>
<Description xml:lang="tr">libevent dosya tanımlayıcısında tanımlı bir olay oluştuğunda ya da zamanaşımı olduğunda belirlenmiş fonksiyonların çalıştırılma mekanizmasını sağlar. Olay güdümlü(event-driven) ağ sunucularının bulundurduğu asenkron olay döngülerinin(event-loop) yerine alması anlamına gelir. Uygulamanın olay döngüsünü degiştirmek zorunda kalmadan dinamik olarak olay ekleme ve silme işlemlerini yapabilmek için yalnızca event_dispatch() fonksiyonunu çağırması yeterli olur.</Description>
</Source>
<Package>
<Name>libevent-devel</Name>
<Summary xml:lang="tr">libevent için geliştirme dosyaları</Summary>
</Package>
</PISI>