Debian and related distros package seems to work fine right now (maybe

need some little fixes)
This commit is contained in:
Adolfo Gómez García 2014-11-19 05:40:02 +01:00
parent 91a40dcc76
commit 818c317724
13 changed files with 52 additions and 11 deletions

2
actors/.gitignore vendored
View File

@ -3,3 +3,5 @@ bin
udsactor*.deb udsactor*.deb
udsactor*.build udsactor*.build
udsactor*.changes udsactor*.changes
/udsactor_1.7.0.dsc
/udsactor_1.7.0.tar.xz

View File

@ -4,9 +4,10 @@
SOURCEDIR := ../src SOURCEDIR := ../src
LIBDIR := $(DESTDIR)/usr/share/pyshared/UDSActor LIBDIR := $(DESTDIR)/usr/share/pyshared/UDSActor
BINDIR := $(DESTDIR)/usr/bin BINDIR := $(DESTDIR)/usr/bin
SBINDIR := $(DESTDIR)/usr/sbin SBINDIR = $(DESTDIR)/usr/sbin
APPSDIR := $(DESTDIR)/usr/share/applications APPSDIR := $(DESTDIR)/usr/share/applications
CFGDIR := $(DESTDIR)/etc/udsactor CFGDIR := $(DESTDIR)/etc/udsactor
POLKITDIR := $(DESTDIR)/usr/share/polkit-1/actions/
PYC := $(shell find $(SOURCEDIR) -name '*.py[co]') PYC := $(shell find $(SOURCEDIR) -name '*.py[co]')
CACHES := $(shell find $(SOURCEDIR) -name '__pycache__') CACHES := $(shell find $(SOURCEDIR) -name '__pycache__')
@ -18,18 +19,32 @@ install:
mkdir -p $(SBINDIR) mkdir -p $(SBINDIR)
mkdir -p $(APPSDIR) mkdir -p $(APPSDIR)
mkdir -p $(CFGDIR) mkdir -p $(CFGDIR)
mkdir -p $(POLKITDIR)
mkdir $(LIBDIR)/img
mkdir -p $(LIBDIR)/
rm -f $(PYC) $(CACHES) rm -f $(PYC) $(CACHES)
cp -r $(SOURCEDIR)/udsactor $(LIBDIR)/udsactor cp -r $(SOURCEDIR)/udsactor $(LIBDIR)/udsactor
cp $(SOURCEDIR)/img/uds.png $(LIBDIR)/img
cp $(SOURCEDIR)/UDSActorConfig.py $(LIBDIR) cp $(SOURCEDIR)/UDSActorConfig.py $(LIBDIR)
cp $(SOURCEDIR)/UDSActorUser.py $(LIBDIR) cp $(SOURCEDIR)/UDSActorUser.py $(LIBDIR)
cp $(SOURCEDIR)/setup_dialog_ui.py $(LIBDIR) cp $(SOURCEDIR)/setup_dialog_ui.py $(LIBDIR)
# Menu GUI app
cp UDS_Actor_Configuration.desktop $(APPSDIR) cp UDS_Actor_Configuration.desktop $(APPSDIR)
cp udsactor-daemon $(SBINDIR) # binaries
chmod 755 $(SBINDIR)/udsactor-daemon cp udsactor $(BINDIR)
cp UDSActorConfig-pkexec $(SBINDIR)
# Policy to run as administrator
cp org.openuds.pkexec.UDSActorConfig.policy $(POLKITDIR)
# Fix permissions
chmod 755 $(BINDIR)/udsactor
chmod 755 $(LIBDIR)/UDSActorConfig.py
chmod 755 $(LIBDIR)/UDSActorUser.py
chmod 644 $(POLKITDIR)/org.openuds.pkexec.UDSActorConfig.policy
# chmod 0755 $(BINDIR)/udsactor # chmod 0755 $(BINDIR)/udsactor
uninstall: uninstall:

View File

@ -0,0 +1,2 @@
#!/bin/sh
pkexec "/usr/sbin/UDSActorConfig" "$@"

View File

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Name=UDS Actor Configuration Name=UDS Actor Configuration
Version=1.0 Version=1.0
Exec=/usr/bin/UDSActorConfig Exec=/usr/sbin/UDSActorConfig-pkexec
Comment=UDS Actor Configuration Application. (Must be executed as root) Comment=UDS Actor Configuration Application. (Must be executed as root)
Icon=/usr/share/pyshared/UDSActor/img/uds.png Icon=/usr/share/pyshared/UDSActor/img/uds.png
Type=Application Type=Application

View File

@ -10,7 +10,7 @@ Package: udsactor
Section: admin Section: admin
Priority: optional Priority: optional
Architecture: all Architecture: all
Depends: python-requests (>=0.8.2), python-qt4 (>=4.9), python-six(>=1.1), python-prctl(>=1.1.1), python (>=2.7), ${misc:Depends} Depends: policykit-1(>=0.100), python-requests (>=0.8.2), python-qt4 (>=4.9), python-six(>=1.1), python-prctl(>=1.1.1), python (>=2.7), ${misc:Depends}
Description: Actor for Universal Desktop Services (UDS) Broker Description: Actor for Universal Desktop Services (UDS) Broker
This package provides the required components to allow this machine to work on an environment managed by UDS Broker. This package provides the required components to allow this machine to work on an environment managed by UDS Broker.
. .

View File

@ -1,2 +0,0 @@
/usr/bin/
/usr/share/pyshared/udsactor

View File

@ -13,10 +13,10 @@
case "$1" in case "$1" in
start|stop|restart) start|stop|restart)
/usr/sbin/udsactor-daemon $1 /usr/bin/udsactor $1
;; ;;
force-reload) force-reload)
./actor restart /usr/bin/udsactor restart
;; ;;
*) echo "Usage: $0 {start|stop|restart|force-reload}" >&2; exit 1 ;; *) echo "Usage: $0 {start|stop|restart|force-reload}" >&2; exit 1 ;;
esac esac

View File

@ -0,0 +1,2 @@
/usr/share/pyshared/UDSActor/UDSActorConfig.py /usr/sbin/UDSActorConfig
/usr/share/pyshared/UDSActor/UDSActorUser.py /usr/bin/UDSActorTool

View File

@ -1 +1 @@
3.0 (quilt) 3.0 (native)

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.freedesktop.policykit.pkexec.run-UDSActorConfig">
<description>Run UDS Actor Configuration Program</description>
<message>Authentication is required to run UDS Actor Configuration</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/UDSActorConfig</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
</policyconfig>

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright (c) 2014 Virtual Cable S.L. # Copyright (c) 2014 Virtual Cable S.L.

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright (c) 2014 Virtual Cable S.L. # Copyright (c) 2014 Virtual Cable S.L.