moved into main for pisi 2.0

This commit is contained in:
2015-07-04 15:10:40 +03:00
parent 4b208b46d2
commit a421b3e735
7 changed files with 473 additions and 0 deletions
+83
View File
@@ -0,0 +1,83 @@
#!/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
def setup():
#shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service.in")
pisitools.dosed("obexd/src/org.bluez.obex.service.in", "SystemdService", deleteLine=True)
autotools.autoreconf("-fi")
autotools.configure("--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/libexec/ \
--enable-sixaxis \
--enable-experimental \
--disable-android \
--enable-datafiles \
--enable-optimization \
--enable-pie \
--enable-threads \
--enable-library \
--enable-tools \
--enable-manpages \
--enable-monitor \
--enable-udev \
--enable-test \
--disable-systemd")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s install-libexecPROGRAMS install-dbussessionbusDATA install-dbussystembusDATA install-dbusDATA install-man8" % get.installDIR())
# Install conf files
for i in ["profiles/input", "profiles/network" ,"src"]:
pisitools.insinto("/etc/bluetooth", "%s/*.conf" % (i))
# Simple test tools
for i in ["bluezutils.py",
"dbusdef.py",
"ftp-client",
"list-devices",
"map-client",
"monitor-bluetooth",
"opp-client",
"pbap-client",
"sap_client.py",
"simple-agent",
"simple-endpoint",
"simple-player",
"test-adapter",
"test-alert",
"test-cyclingspeed",
"test-device",
"test-discovery",
"test-health",
"test-health-sink",
"test-heartrate",
"test-hfp",
"test-manager",
"test-nap",
"test-network",
"test-profile",
"test-proximity",
"test-sap-server",
"test-thermometer"]:
pisitools.dobin("test/%s" % i)
# for i in
# pisitools.dodoc("doc/%s" % i)
# Install documents
pisitools.dodoc("AUTHORS", "ChangeLog", "README")
+33
View File
@@ -0,0 +1,33 @@
from comar.service import *
import os
serviceType = "local"
serviceDesc = _({"en": "Bluetooth Service",
"tr": "Bluetooth Hizmeti"})
serviceDefault = "on"
PIDFILE="/run/bluez.pid"
DAEMON ="/usr/libexec/bluetooth/bluetoothd"
@synchronized
def start():
startService(command=DAEMON,
pidfile=PIDFILE,
detach=True,
donotify=True)
os.system("pidof bluez + /usr/libexec/bluetooth/bluetoothd > /run/bluez.pid")
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except:
pass
def status():
return isServiceRunning(pidfile=PIDFILE)
@@ -0,0 +1,61 @@
Submitted By: Armin K. <krejzi at email dot com>
Date: 2013-04-29
Initial Package Version: 5.17
Upstream Status: unknown
Origin: Arch Linux (Giovanni Campagna)
Description: Allow using obexd without systemd in the user session
Not all sessions run systemd --user (actually, the majority
doesn't), so the dbus daemon must be able to spawn obexd
directly, and to do so it needs the full path of the daemon.
---
Makefile.obexd | 4 ++--
obexd/src/org.bluez.obex.service | 4 ----
obexd/src/org.bluez.obex.service.in | 4 ++++
3 files changed, 6 insertions(+), 6 deletions(-)
delete mode 100644 obexd/src/org.bluez.obex.service
create mode 100644 obexd/src/org.bluez.obex.service.in
diff --git a/Makefile.obexd b/Makefile.obexd
index 3760867..142e7c3 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -2,12 +2,12 @@
if SYSTEMD
systemduserunitdir = @SYSTEMD_USERUNITDIR@
systemduserunit_DATA = obexd/src/obex.service
+endif
dbussessionbusdir = @DBUS_SESSIONBUSDIR@
dbussessionbus_DATA = obexd/src/org.bluez.obex.service
-endif
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
obex_plugindir = $(libdir)/obex/plugins
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
deleted file mode 100644
index a538088..0000000
--- a/obexd/src/org.bluez.obex.service
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.bluez.obex
-Exec=/bin/false
-SystemdService=dbus-org.bluez.obex.service
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
new file mode 100644
index 0000000..9c815f2
--- /dev/null
+++ b/obexd/src/org.bluez.obex.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.bluez.obex
+Exec=@libexecdir@/obexd
+SystemdService=dbus-org.bluez.obex.service
--
1.8.3.1
@@ -0,0 +1,61 @@
Submitted By: Armin K. <krejzi at email dot com>
Date: 2013-04-29
Initial Package Version: 5.17
Upstream Status: unknown
Origin: Arch Linux (Giovanni Campagna)
Description: Allow using obexd without systemd in the user session
Not all sessions run systemd --user (actually, the majority
doesn't), so the dbus daemon must be able to spawn obexd
directly, and to do so it needs the full path of the daemon.
---
Makefile.obexd | 4 ++--
obexd/src/org.bluez.obex.service | 4 ----
obexd/src/org.bluez.obex.service.in | 4 ++++
3 files changed, 6 insertions(+), 6 deletions(-)
delete mode 100644 obexd/src/org.bluez.obex.service
create mode 100644 obexd/src/org.bluez.obex.service.in
diff --git a/Makefile.obexd b/Makefile.obexd
index 3760867..142e7c3 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -2,12 +2,12 @@
if SYSTEMD
systemduserunitdir = @SYSTEMD_USERUNITDIR@
systemduserunit_DATA = obexd/src/obex.service
+endif
dbussessionbusdir = @DBUS_SESSIONBUSDIR@
dbussessionbus_DATA = obexd/src/org.bluez.obex.service
-endif
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
obex_plugindir = $(libdir)/obex/plugins
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
deleted file mode 100644
index a538088..0000000
--- a/obexd/src/org.bluez.obex.service
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.bluez.obex
-Exec=/bin/false
-SystemdService=dbus-org.bluez.obex.service
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
new file mode 100644
index 0000000..9c815f2
--- /dev/null
+++ b/obexd/src/org.bluez.obex.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.bluez.obex
+Exec=@libexecdir@/obexd
+SystemdService=dbus-org.bluez.obex.service
--
1.8.3.1
@@ -0,0 +1,61 @@
Submitted By: Armin K. <krejzi at email dot com>
Date: 2013-04-29
Initial Package Version: 5.17
Upstream Status: unknown
Origin: Arch Linux (Giovanni Campagna)
Description: Allow using obexd without systemd in the user session
Not all sessions run systemd --user (actually, the majority
doesn't), so the dbus daemon must be able to spawn obexd
directly, and to do so it needs the full path of the daemon.
---
Makefile.obexd | 4 ++--
obexd/src/org.bluez.obex.service | 4 ----
obexd/src/org.bluez.obex.service.in | 4 ++++
3 files changed, 6 insertions(+), 6 deletions(-)
delete mode 100644 obexd/src/org.bluez.obex.service
create mode 100644 obexd/src/org.bluez.obex.service.in
diff --git a/Makefile.obexd b/Makefile.obexd
index 3760867..142e7c3 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -2,12 +2,12 @@
if SYSTEMD
systemduserunitdir = @SYSTEMD_USERUNITDIR@
systemduserunit_DATA = obexd/src/obex.service
+endif
dbussessionbusdir = @DBUS_SESSIONBUSDIR@
dbussessionbus_DATA = obexd/src/org.bluez.obex.service
-endif
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
obex_plugindir = $(libdir)/obex/plugins
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
deleted file mode 100644
index a538088..0000000
--- a/obexd/src/org.bluez.obex.service
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.bluez.obex
-Exec=/bin/false
-SystemdService=dbus-org.bluez.obex.service
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
new file mode 100644
index 0000000..9c815f2
--- /dev/null
+++ b/obexd/src/org.bluez.obex.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.bluez.obex
+Exec=@libexecdir@/obexd
+SystemdService=dbus-org.bluez.obex.service
--
1.8.3.1
+156
View File
@@ -0,0 +1,156 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>bluez</Name>
<Homepage>http://bluez.sourceforge.net</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>service</IsA>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>Official Linux Bluetooth protocol stack</Summary>
<Description>bluez contains the tools and libraries that provides support for the core Bluetooth layers and protocols.</Description>
<Archive sha1sum="c1707e8ae38b299c07e6c18ff3c26a4b928d03bf" type="tarxz">https://www.kernel.org/pub/linux/bluetooth/bluez-5.27.tar.xz</Archive>
<BuildDependencies>
<Dependency>cups-devel</Dependency>
<Dependency>dbus-devel</Dependency>
<Dependency>libnl-devel</Dependency>
<Dependency>alsa-lib-devel</Dependency>
<Dependency>gstreamer-devel</Dependency>
<Dependency>libsndfile-devel</Dependency>
<Dependency>gst-plugins-base-devel</Dependency>
<Dependency>libical-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libical-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">bluez-5.27-obexd_without_systemd-1.patch</Patch>
</Patches>
</Source>
<Package>
<Name>bluez</Name>
<RuntimeDependencies>
<Dependency>cups</Dependency>
<Dependency>libnl</Dependency>
<Dependency>libusb</Dependency>
<Dependency>libical</Dependency>
<Dependency>alsa-lib</Dependency>
<Dependency>alsa-lib</Dependency>
<Dependency>setserial</Dependency>
<Dependency>gstreamer</Dependency>
<Dependency>libsndfile</Dependency>
<Dependency>gst-plugins-base</Dependency>
<Dependency release="current">bluez-libs</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/lib/udev/rules.d</Path>
<Path fileType="data">/lib/systemd/system</Path>
<Path fileType="data">/usr/share/misc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="executable">/lib/udev</Path>
<Path fileType="executable">/lib/bluetooth/obexd</Path>
<Path fileType="executable">/lib/bluetooth/bluetoothd</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/libexec</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/var/lib/bluetooth</Path>
<Path fileType="data">/usr/share/alsa/bluetooth.conf</Path>
<Path fileType="data">/usr/share/dbus-1</Path>
<Path fileType="config">/etc</Path>
</Files>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
</Provides>
</Package>
<Package>
<Name>bluez-libs</Name>
<Summary>Libraries for use in Bluetooth applications</Summary>
<RuntimeDependencies>
<Dependency>libical</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/libbluetooth.so*</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>bluez-libs-devel</Name>
<Summary>Development files for bluez-libs</Summary>
<RuntimeDependencies>
<Dependency release="current">bluez-libs</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/bluetooth</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
<Provides>
</Provides>
</Package>
<History>
<Update release="8">
<Date>2015-01-29</Date>
<Version>5.27</Version>
<Comment>rebuild.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2015-01-25</Date>
<Version>5.27</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-07-05</Date>
<Version>5.21</Version>
<Comment>Version bump and bugs fix.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-05-23</Date>
<Version>5.18</Version>
<Comment>Version bump</Comment>
<Name>Burak Fazıl Ertürk</Name>
<Email>burakerturk@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-01-28</Date>
<Version>4.101</Version>
<Comment>Rebuild Unused</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-08-27</Date>
<Version>4.101</Version>
<Comment>R.Bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-06-28</Date>
<Version>4.101</Version>
<Comment>Add patches, --enable-hid2hci --enable-wiimote</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2013-01-09</Date>
<Version>4.101</Version>
<Comment>First release</Comment>
<Name>Erdinç Gültekin</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>bluez</Name>
<Summary xml:lang="tr">Linux resmi Bluetooth protokol yığını</Summary>
<Description xml:lang="tr">Bu projenin genel amacı Linux'ta Bluetooth kablosuz standartların ayrıntılarını yerine getirmektir.</Description>
</Source>
<Package>
<Name>bluez-libs</Name>
<Summary xml:lang="tr">Uygulamalar için bluetooth erişim kitaplığı</Summary>
</Package>
<Package>
<Name>bluez-libs-devel</Name>
<Summary xml:lang="tr">bluez-libs için geliştirme dosyaları</Summary>
</Package>
</PISI>