From 88c555859c64e554909133fdc67156e5a700d39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Fri, 3 Jul 2015 11:34:04 +0300 Subject: [PATCH] libevent is dep recommended for mariadb --- programming/misc/libevent/actions.py | 26 ++++++ .../files/libevent-2.0.13-manpages-on.patch | 12 +++ .../libevent-2.0.21-stable-automake-fix.patch | 24 +++++ .../libevent/files/libevent-linkage_fix.diff | 11 +++ programming/misc/libevent/pspec.xml | 89 +++++++++++++++++++ programming/misc/libevent/translations.xml | 14 +++ 6 files changed, 176 insertions(+) create mode 100644 programming/misc/libevent/actions.py create mode 100644 programming/misc/libevent/files/libevent-2.0.13-manpages-on.patch create mode 100644 programming/misc/libevent/files/libevent-2.0.21-stable-automake-fix.patch create mode 100644 programming/misc/libevent/files/libevent-linkage_fix.diff create mode 100644 programming/misc/libevent/pspec.xml create mode 100644 programming/misc/libevent/translations.xml diff --git a/programming/misc/libevent/actions.py b/programming/misc/libevent/actions.py new file mode 100644 index 0000000000..6ec44ad35d --- /dev/null +++ b/programming/misc/libevent/actions.py @@ -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") diff --git a/programming/misc/libevent/files/libevent-2.0.13-manpages-on.patch b/programming/misc/libevent/files/libevent-2.0.13-manpages-on.patch new file mode 100644 index 0000000000..97dd633844 --- /dev/null +++ b/programming/misc/libevent/files/libevent-2.0.13-manpages-on.patch @@ -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) diff --git a/programming/misc/libevent/files/libevent-2.0.21-stable-automake-fix.patch b/programming/misc/libevent/files/libevent-2.0.21-stable-automake-fix.patch new file mode 100644 index 0000000000..cf8ab2b916 --- /dev/null +++ b/programming/misc/libevent/files/libevent-2.0.21-stable-automake-fix.patch @@ -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 diff --git a/programming/misc/libevent/files/libevent-linkage_fix.diff b/programming/misc/libevent/files/libevent-linkage_fix.diff new file mode 100644 index 0000000000..0210239383 --- /dev/null +++ b/programming/misc/libevent/files/libevent-linkage_fix.diff @@ -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) diff --git a/programming/misc/libevent/pspec.xml b/programming/misc/libevent/pspec.xml new file mode 100644 index 0000000000..77e2fcff9f --- /dev/null +++ b/programming/misc/libevent/pspec.xml @@ -0,0 +1,89 @@ + + + + + libevent + http://monkey.org/~provos/libevent + + PisiLinux Community + admins@pisilinux.org + + BSD + library + A library to execute a function when a specific event occurs on a file descriptor + 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. + https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz + + openssl-devel + zlib-devel + + + libevent-linkage_fix.diff + libevent-2.0.13-manpages-on.patch + libevent-2.0.21-stable-automake-fix.patch + + + + + libevent + + openssl + + + /usr/bin + /usr/lib + /usr/share/doc + + + + + libevent-devel + Development files for libevent + + libevent + + + /usr/include + /usr/lib/pkgconfig + /usr/share/man/man3 + + + + + + 2014-05-31 + 2.0.21 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-02-25 + 2.0.21 + Rebuild Unused + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-07-27 + 2.0.21 + Move pc files to devel pack, rebuild + PisiLinux Community + admins@pisilinux.org + + + 2013-03-27 + 2.0.21 + bump + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2012-10-14 + 2.0.20 + First release + PisiLinux Community + admins@pisilinux.org + + + \ No newline at end of file diff --git a/programming/misc/libevent/translations.xml b/programming/misc/libevent/translations.xml new file mode 100644 index 0000000000..b90b5499da --- /dev/null +++ b/programming/misc/libevent/translations.xml @@ -0,0 +1,14 @@ + + + + libevent + Dosya tanımlayıcıları üzerindeki belirli değişiklerde belirli fonksiyonların çalıştırılmasını sağlayan bir kitaplığı + Une librairie pour exécuter une fonction lorsqu'un événement spécifique a lieu sur un descripteur (descriptor) de fichier. + 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. + + + + libevent-devel + libevent için geliştirme dosyaları + +