Kaydet (Commit) 298e2f68 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

dbus

üst 7338e502
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
import os
from inary.actionsapi import get
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
def setup():
inarytools.dosed("configure.ac", '(AS_AC_EXPAND\(EXPANDED_LOCALSTATEDIR, )"\$localstatedir"\)', r'\1 "")')
for f in ["bus/Makefile.am", "bus/Makefile.in"]:
inarytools.dosed(f, "\$\(localstatedir\)(\/run\/dbus)", "\\1")
options = "PYTHON=/usr/bin/python3 \
--disable-selinux \
--disable-static \
--disable-tests \
--disable-asserts \
--disable-checks \
--disable-embedded-tests \
--disable-modular-tests \
--disable-doxygen-docs \
--disable-systemd \
--disable-libaudit \
--disable-silent-rules \
--enable-inotify \
--enable-user-session \
--with-xml=expat \
--with-system-pid-file=/var/run/dbus/pid \
--with-system-socket=/var/run/dbus/system_bus_socket \
--with-console-auth-dir=/var/run/console/ \
--with-session-socket-dir=/tmp \
--with-dbus-user=dbus \
--enable-abstract-sockets=auto \
--disable-xml-docs"
if get.buildTYPE() == "emul32":
options += "\
--disable-xml-docs \
--libdir=/usr/lib32 \
--disable-doxygen-docs"
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
inarytools.dodir("/var/run/dbus")
inarytools.dodir("/var/lib/dbus")
inarytools.dodir("/usr/share/dbus-1/services")
os.system("/bin/chown root:dbus {}/usr/libexec/dbus-daemon-launch-helper".format(get.installDIR()))
os.system("/bin/chmod -v 4750 {}/usr/libexec/dbus-daemon-launch-helper".format(get.installDIR()))
inarytools.dohtml("doc/")
#!/bin/bash
# launches a session dbus instance
dbuslaunch="`which dbus-launch 2>/dev/null`"
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
if [ -n "$command" ]; then
command="$dbuslaunch --exit-with-session $command"
else
eval `$dbuslaunch --sh-syntax --exit-with-session`
fi
fi
/* -*- mode: C; c-file-style: "gnu" -*- */
/* dbus-arch-deps.h Header with architecture/compiler specific information, installed to libdir
*
* Copyright (C) 2003 Red Hat, Inc.
*
* Licensed under the Academic Free License version 2.0
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
#endif
#ifndef DBUS_ARCH_DEPS_H
#define DBUS_ARCH_DEPS_H
#include <dbus/dbus-macros.h>
DBUS_BEGIN_DECLS
#if 1
#define DBUS_HAVE_INT64 1
_DBUS_GNUC_EXTENSION typedef long dbus_int64_t;
_DBUS_GNUC_EXTENSION typedef unsigned long dbus_uint64_t;
#define DBUS_INT64_CONSTANT(val) (_DBUS_GNUC_EXTENSION (val##L))
#define DBUS_UINT64_CONSTANT(val) (_DBUS_GNUC_EXTENSION (val##UL))
#else
#undef DBUS_HAVE_INT64
#undef DBUS_INT64_CONSTANT
#undef DBUS_UINT64_CONSTANT
#endif
typedef int dbus_int32_t;
typedef unsigned int dbus_uint32_t;
typedef short dbus_int16_t;
typedef unsigned short dbus_uint16_t;
/* This is not really arch-dependent, but it's not worth
* creating an additional generated header just for this
*/
#define DBUS_MAJOR_VERSION 1
#define DBUS_MINOR_VERSION 5
#define DBUS_MICRO_VERSION 4
#define DBUS_VERSION_STRING "1.5.4"
#define DBUS_VERSION ((1 << 16) | (5 << 8) | (4))
DBUS_END_DECLS
#endif /* DBUS_ARCH_DEPS_H */
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
extra_started_commands="reload"
description="An IPC message bus daemon"
pidfile="/var/run/dbus/dbus.pid"
command="/usr/bin/dbus-daemon"
command_args="--system"
dbus_socket="/var/run/dbus/system_bus_socket"
depend() {
need localmount
after bootmisc
}
start_pre() {
/usr/bin/dbus-uuidgen --ensure=/etc/machine-id
# We need to test if /var/run/dbus exists, since script will fail if it does not
checkpath -q -d /var/run/dbus
if [ -e /var/run/dbus.pid ]; then
rm -f /var/run/dbus.pid
fi
}
stop_post() {
[ ! -S "${dbus_socket}" ] || rm -f "${dbus_socket}"
}
reload() {
ebegin "Reloading D-BUS messagebus config"
/usr/bin/dbus-send --print-reply --system --type=method_call \
--dest=org.freedesktop.DBus \
/ org.freedesktop.DBus.ReloadConfig > /dev/null
eend $?
}
#!/usr/bin/env python3
import os
OUR_ID = 101
OUR_NAME = "dbus"
OUR_DESC = "dbus"
def postInstall():
try:
os.system("groupadd -g %d %s" % (OUR_ID, OUR_NAME))
os.system("useradd -m -d /var/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
def preRemove():
pass
<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "https://raw.githubusercontent.com/Zaryob/inary/master/inary-spec.dtd">
<INARY>
<Source>
<Name>dbus</Name>
<Homepage>http://dbus.freedesktop.org/</Homepage>
<Packager>
<Name>Süleyman POYRAZ</Name>
<Email>zaryob.dev@gmail.com</Email>
</Packager>
<License>GPLv2</License>
<License>AFL-2.1</License>
<IsA>service</IsA>
<PartOf>system.base</PartOf>
<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="06e3412a7d9c7e345bfcfb027016c634e20f7ece">https://dbus.freedesktop.org/releases/dbus/dbus-1.12.16.tar.gz</Archive>
<BuildDependencies>
<Dependency>expat-devel</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>libcap-ng-devel</Dependency>
<Dependency>autoconf-archive</Dependency>
<Dependency>xmlto</Dependency>
<Dependency>docbook-xml</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>dbus</Name>
<RuntimeDependencies>
<Dependency>expat</Dependency>
<Dependency>libcap-ng</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/dbus-1</Path>
<Path fileType="config">/etc/init.d</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="data">/usr/share/xml</Path>
<Path fileType="data">/var/run/dbus</Path>
<Path fileType="data">/run/dbus</Path>
<Path fileType="data">/var/lib/dbus</Path>
<Path fileType="data">/lib/dbus</Path>
<Path fileType="data">/lib/systemd/system</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0755" target="/etc/init.d/dbus">dbus.initd-r1</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/lib/tmpfiles.d/dbus.conf">tmpfiles.conf</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/etc/X11/xinit/xinitrc.d/80-dbus">80-dbus</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>dbus-x11</Name>
<PartOf>x11.util</PartOf>
<BuildDependencies>
<Dependency>libX11-devel</Dependency>
<Dependency>libSM-devel</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency>libX11</Dependency>
<Dependency>dbus</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/X11</Path>
<Path fileType="executable">/usr/bin/dbus-launch</Path>
</Files>
</Package>
<Package>
<Name>dbus-devel</Name>
<IsA>header</IsA>
<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>
</Files>
<AdditionalFiles>
<AdditionalFile target="/usr/include/dbus-1.0/dbus/dbus-arch-deps.h">dbus-arch-deps.h</AdditionalFile>
</AdditionalFiles>
</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>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/cmake</Path>
<Path fileType="library">/usr/lib32/dbus-1.0</Path>
<Path fileType="library">/usr/lib32/libdbus-1.so*</Path>
</Files>
</Package>
<Package>
<Name>dbus-docs</Name>
<IsA>data:doc</IsA>
<PartOf>system.doc</PartOf>
<Summary>Documentation for dbus package.</Summary>
<RuntimeDependencies>
<Dependency release="current">dbus</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>dbus-pages</Name>
<IsA>data:doc</IsA>
<PartOf>system.doc</PartOf>
<Summary>Man pages for dbus package.</Summary>
<RuntimeDependencies>
<Dependency release="current">dbus</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="man">/usr/share/man/</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-04-24</Date>
<Version>1.12.16</Version>
<Comment>First release for SulinOS 2021</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
</History>
</INARY>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment