create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
#!/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
from pisi.actionsapi import shelltools
def setup():
pisitools.dosed("configure.ac", '(AS_AC_EXPAND\(EXPANDED_LOCALSTATEDIR, )"\$localstatedir"\)', r'\1 "")')
for f in ["bus/Makefile.am", "bus/Makefile.in"]:
pisitools.dosed(f, "\$\(localstatedir\)(\/run\/dbus)", "\\1")
options = "\
--disable-selinux \
--disable-static \
--disable-tests \
--disable-asserts \
--disable-checks \
--disable-embedded-tests \
--disable-modular-tests \
--disable-doxygen-docs \
--disable-libaudit \
--disable-systemd \
--disable-silent-rules \
--enable-inotify \
--with-system-pid-file=/run/dbus/pid \
--with-system-socket=/run/dbus/system_bus_socket \
--with-console-auth-dir=/run/console/ \
--with-session-socket-dir=/tmp \
--with-dbus-user=dbus \
--enable-abstract-sockets=auto \
--disable-xml-docs"
if get.buildTYPE() == "emul32":
options += "\
--enable-xml-docs \
--enable-doxygen-docs"
# Build only libdbus
pisitools.dosed("Makefile.am", "(.*SUBDIRS=dbus) .*", "\\1")
autotools.autoreconf("-vif")
autotools.configure(options)
def build():
autotools.make()
def check():
autotools.make("check")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32": return
# needs to exist for the system socket
pisitools.dodir("/run/dbus")
pisitools.dodir("/var/lib/dbus")
pisitools.dodir("/usr/share/dbus-1/services")
pisitools.dodoc("AUTHORS", "ChangeLog", "HACKING", "NEWS", "README", "doc/TODO", "doc/*.txt")
pisitools.dohtml("doc/")
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/python
import os, re
OUR_ID = 650
OUR_NAME = "dbus"
OUR_DESC = "dbus"
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
try:
os.system ("groupadd -g %d %s" % (OUR_ID, OUR_NAME))
os.system ("useradd -m -d /run/dbus -r -s /bin/false -u %d -g %d %s -c \"%s\"" % (OUR_ID, OUR_ID, OUR_NAME, OUR_DESC))
except:
pass
def postRemove():
try:
os.system ("userdel %s" % OUR_NAME)
os.system ("groupdel %s" % OUR_NAME)
except:
pass
+37
View File
@@ -0,0 +1,37 @@
From 03aeaccbffa97c9237b57ca067e3da7388862129 Mon Sep 17 00:00:00 2001
From: Radoslaw Pajak <r.pajak@samsung.com>
Date: Fri, 08 Nov 2013 12:51:32 +0000
Subject: fixed memory freeing if error during listing services
Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71526
---
diff --git a/bus/activation.c b/bus/activation.c
index fcb7133..ea48a26 100644
--- a/bus/activation.c
+++ b/bus/activation.c
@@ -2179,7 +2179,7 @@ bus_activation_list_services (BusActivation *activation,
error:
for (j = 0; j < i; j++)
- dbus_free (retval[i]);
+ dbus_free (retval[j]);
dbus_free (retval);
return FALSE;
diff --git a/bus/services.c b/bus/services.c
index 6f380fa..01a720e 100644
--- a/bus/services.c
+++ b/bus/services.c
@@ -368,7 +368,7 @@ bus_registry_list_services (BusRegistry *registry,
error:
for (j = 0; j < i; j++)
- dbus_free (retval[i]);
+ dbus_free (retval[j]);
dbus_free (retval);
return FALSE;
--
cgit v0.9.0.2-2-gbebe
+1
View File
@@ -0,0 +1 @@
d /run/dbus 0755 root root - -
+166
View File
@@ -0,0 +1,166 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>dbus</Name>
<Homepage>http://dbus.freedesktop.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<License>AFL-2.1</License>
<IsA>service</IsA>
<Summary>A message bus system, a simple way for applications to talk to each other</Summary>
<Description>D-Bus supplies both a system daemon (for events such as "new hardware device added" or "printer queue changed") and a per-user-login-session daemon (for general IPC needs among user applications). Also, the message bus is built on top of a general one-to-one message passing framework, which can be used by any two apps to communicate directly (without going through the message bus daemon). Currently the communicating applications are on one computer, but TCP/IP option is available and remote support planned.</Description>
<Archive sha1sum="a9741b6d017d6374c20bac2ea41262683b3e2386" type="targz">http://dbus.freedesktop.org/releases/dbus/dbus-1.9.10.tar.gz</Archive>
<BuildDependencies>
<Dependency>expat-devel</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>doxygen</Dependency>
<Dependency>libcap-ng-devel</Dependency>
<Dependency>xmlto</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>dbus</Name>
<RuntimeDependencies>
<Dependency>expat</Dependency>
<Dependency>libX11</Dependency>
<Dependency>libcap-ng</Dependency>
<!--<Dependency>systemd-units</Dependency>-->
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/dbus-1</Path>
<Path fileType="config">/usr/lib/tmpfiles.d/dbus.conf</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/libexec</Path>
<Path fileType="data">/usr/share/dbus-1</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/run/dbus</Path>
<Path fileType="data">/var/lib/dbus</Path>
<Path fileType="data">/lib/systemd/system</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/dbus.conf">tmpfiles.conf</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>dbus-devel</Name>
<PartOf>system.devel</PartOf>
<Summary>Development files for dbus</Summary>
<RuntimeDependencies>
<Dependency release="current">dbus</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
<Path fileType="library">/usr/lib/dbus-1.0/include</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<Package>
<Name>dbus-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for dbus</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>expat-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">dbus</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="11">
<Date>2015-02-15</Date>
<Version>1.9.10</Version>
<Comment>Version bump and security fixes CVE-2015-0245.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="10">
<Date>2015-01-25</Date>
<Version>1.9.6</Version>
<Comment>Version bump and security update (CVE-2014-3636, CVE-2014-3637,CVE-2014-3638, CVE-2014-3639) .</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-09-19</Date>
<Version>1.8.8</Version>
<Comment>Version bump and security update (CVE-2014-3636, CVE-2014-3637,CVE-2014-3638, CVE-2014-3639) .</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2014-07-04</Date>
<Version>1.8.6</Version>
<Comment>Version bump and security update CVE-2014-3532 CVE-2014-3533.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2014-06-23</Date>
<Version>1.8.4</Version>
<Comment>Version bump.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-05-11</Date>
<Version>1.8.0</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-02-18</Date>
<Version>1.8.0</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-01-09</Date>
<Version>1.6.18</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-10-23</Date>
<Version>1.6.16</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-09-08</Date>
<Version>1.6.14</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-16</Date>
<Version>1.6.8</Version>
<Comment>First release</Comment>
<Name>Erdem Artan</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>dbus</Name>
<Summary xml:lang="tr">Uygulamaların birbirleriyle haberleşmesinin basit bir yöntemi</Summary>
<Description xml:lang="tr">D-Bus, sistem ve kullanıcılar için olmak üzere iki tane artalan süreci (daemon) sunar. Mesaj yolu, bire bir mesaj geçiş araçları üzerine inşa edilmiştir. Bu sayede iki program birbiriyle bir mesaj yolu artalan süreci kullanmadan, direkt olarak haberleşebilir. Şu an için haberleşme araçları aynı bilgisayar üzerinde çalışabilmektedir, fakat TCP/IP ile uzaktan haberleşme de planlanmaktadır.</Description>
<Description xml:lang="fr">D-Bus fourni à la fois un daemon système (pour les événements els que l'&quot;ajout d'un nouveau périphérique&quot; ou &quot;file d'impression changée&quot;) et un daemon propre à chaque session utilisateur (pour les besoins généraux de communication entre processus utilisateurs). De plus, le bus de message est construit en se basant sur un framework (cadre de développement) de passage de message de un-vers-un pouvant être utilisé par n'importe quelles applications pour communiquer directement (sans passer par le daemon de bus de message). Pour l'instant les applications pouvant communiquer doivent être situées sur le même ordinateur, mais l'option TCP/IP est disponible et le support de processus distant est prévu.</Description>
</Source>
<Package>
<Name>dbus-devel</Name>
<Summary xml:lang="tr">dbus için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>dbus-32bit</Name>
<Summary xml:lang="tr">dbus için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>