summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Clients/ogagent/linux
diff options
context:
space:
mode:
Diffstat (limited to 'admin/Sources/Clients/ogagent/linux')
-rw-r--r--admin/Sources/Clients/ogagent/linux/Makefile21
-rw-r--r--admin/Sources/Clients/ogagent/linux/debian/control5
-rwxr-xr-x[-rw-r--r--]admin/Sources/Clients/ogagent/linux/desktop/OGAgentTool.desktop0
-rw-r--r--admin/Sources/Clients/ogagent/linux/ogagent-template.spec6
-rwxr-xr-x[-rw-r--r--]admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool0
-rwxr-xr-x[-rw-r--r--]admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool-startup0
-rwxr-xr-x[-rw-r--r--]admin/Sources/Clients/ogagent/linux/scripts/ogagent0
7 files changed, 17 insertions, 15 deletions
diff --git a/admin/Sources/Clients/ogagent/linux/Makefile b/admin/Sources/Clients/ogagent/linux/Makefile
index 6ada91f5..889f07de 100644
--- a/admin/Sources/Clients/ogagent/linux/Makefile
+++ b/admin/Sources/Clients/ogagent/linux/Makefile
@@ -17,6 +17,7 @@ CACHES := $(shell find $(SOURCEDIR) -name '__pycache__')
clean:
rm -rf $(PYC) $(CACHES) $(DESTDIR)
+
install-ogagent:
rm -rf $(DESTDIR)
mkdir -p $(LIBDIR)
@@ -26,12 +27,11 @@ install-ogagent:
mkdir -p $(CFGDIR)
mkdir -p $(XDGAUTOSTARTDIR)
mkdir -p $(KDEAUTOSTARTDIR)
-
- mkdir $(LIBDIR)/img
-
+ mkdir -p $(LIBDIR)/img
+
# Cleans up .pyc and cache folders
rm -f $(PYC) $(CACHES)
-
+
cp -r $(SOURCEDIR)/opengnsys $(LIBDIR)/opengnsys
cp -r $(SOURCEDIR)/cfg $(LIBDIR)/cfg
cp $(SOURCEDIR)/img/oga.png $(LIBDIR)/img
@@ -40,22 +40,24 @@ install-ogagent:
# QT Dialogs & resources
cp $(SOURCEDIR)/*_ui.py $(LIBDIR)
cp $(SOURCEDIR)/OGAgent_rc.py $(LIBDIR)
-
+ # Version file
+ cp $(SOURCEDIR)/VERSION $(LIBDIR)
+
# Autostart elements for gnome/kde
cp desktop/OGAgentTool.desktop $(XDGAUTOSTARTDIR)
cp desktop/OGAgentTool.desktop $(KDEAUTOSTARTDIR)
-
+
# scripts
cp scripts/ogagent $(BINDIR)
cp scripts/OGAgentTool-startup $(BINDIR)
cp scripts/OGAgentTool $(BINDIR)
-
+
# Fix permissions
chmod 755 $(BINDIR)/ogagent
chmod 755 $(BINDIR)/OGAgentTool-startup
chmod 755 $(LIBDIR)/OGAgentUser.py
chmod 600 $(LIBDIR)/cfg/ogagent.cfg
-
+
# If for red hat based, copy init.d
ifeq ($(DISTRO),rh)
mkdir -p $(INITDIR)
@@ -64,8 +66,7 @@ ifeq ($(DISTRO),rh)
ln -fs /usr/share/OGAgent/cfg/ogagent.cfg $(CFGDIR)
ln -fs /usr/share/OGAgent/cfg/ogclient.cfg $(CFGDIR)
endif
-
- # chmod 0755 $(BINDIR)/ogagent
+
uninstall:
rm -rf $(LIBDIR)
# rm -f $(BINDIR)/ogagent
diff --git a/admin/Sources/Clients/ogagent/linux/debian/control b/admin/Sources/Clients/ogagent/linux/debian/control
index 34d25de7..c627c31b 100644
--- a/admin/Sources/Clients/ogagent/linux/debian/control
+++ b/admin/Sources/Clients/ogagent/linux/debian/control
@@ -4,12 +4,13 @@ Priority: optional
Maintainer: Ramón M. Gómez <ramongomez@us.es>
Build-Depends: debhelper (>= 7), po-debconf
Standards-Version: 3.9.2
-Homepage: https://opengnsys.es
+Homepage: https://opengnsys.es/
Package: ogagent
Section: admin
Priority: optional
Architecture: all
-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), libxss1, ${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-distro, python (>=2.7), libxss1, ${misc:Depends}
+Recommends: gnome-shell-extension-top-icons-plus
Description: OpenGnsys Agent for Operating Systems
This package provides the required components to allow this machine to work on an environment managed by OpenGnsys.
diff --git a/admin/Sources/Clients/ogagent/linux/desktop/OGAgentTool.desktop b/admin/Sources/Clients/ogagent/linux/desktop/OGAgentTool.desktop
index fd3867d3..fd3867d3 100644..100755
--- a/admin/Sources/Clients/ogagent/linux/desktop/OGAgentTool.desktop
+++ b/admin/Sources/Clients/ogagent/linux/desktop/OGAgentTool.desktop
diff --git a/admin/Sources/Clients/ogagent/linux/ogagent-template.spec b/admin/Sources/Clients/ogagent/linux/ogagent-template.spec
index 1368cccb..b3c7362f 100644
--- a/admin/Sources/Clients/ogagent/linux/ogagent-template.spec
+++ b/admin/Sources/Clients/ogagent/linux/ogagent-template.spec
@@ -8,12 +8,12 @@ BuildRoot: %{buildroot}
Name: %{name}
Version: %{version}
Release: %{release}
-Summary: OpenGnsys Agent & tools
+Summary: OpenGnsys Agent for Operating Systems
License: BSD3
Group: Admin
-Requires: python-six python-requests PyQt4 libXScrnSaver
+Requires: chkconfig initscripts python-six python-requests python-distro PyQt4 libXScrnSaver
Vendor: OpenGnsys Project
-URL: https://opengnsys.es
+URL: https://opengnsys.es/
Provides: ogagent
%define _rpmdir ../
diff --git a/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool b/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool
index 5b300523..5b300523 100644..100755
--- a/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool
+++ b/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool
diff --git a/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool-startup b/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool-startup
index bb3a848e..bb3a848e 100644..100755
--- a/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool-startup
+++ b/admin/Sources/Clients/ogagent/linux/scripts/OGAgentTool-startup
diff --git a/admin/Sources/Clients/ogagent/linux/scripts/ogagent b/admin/Sources/Clients/ogagent/linux/scripts/ogagent
index 1bcc29b0..1bcc29b0 100644..100755
--- a/admin/Sources/Clients/ogagent/linux/scripts/ogagent
+++ b/admin/Sources/Clients/ogagent/linux/scripts/ogagent