close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
| Rev | Line | |
|---|
| [c3e7c06] | 1 | %define _topdir %(echo $PWD)/rpm |
|---|
| 2 | %define name ogagent |
|---|
| 3 | %define version 0.0.0 |
|---|
| 4 | %define release 1 |
|---|
| 5 | %define buildroot %{_topdir}/%{name}-%{version}-%{release}-root |
|---|
| 6 | |
|---|
| 7 | BuildRoot: %{buildroot} |
|---|
| 8 | Name: %{name} |
|---|
| 9 | Version: %{version} |
|---|
| 10 | Release: %{release} |
|---|
| [066661d] | 11 | Summary: OpenGnsys Agent & tools |
|---|
| [c3e7c06] | 12 | License: BSD3 |
|---|
| 13 | Group: Admin |
|---|
| 14 | Requires: python-six python-requests PyQt4 libXScrnSaver |
|---|
| [066661d] | 15 | Vendor: OpenGnsys Project |
|---|
| [f81c486] | 16 | URL: https://opengnsys.es |
|---|
| [c3e7c06] | 17 | Provides: ogagent |
|---|
| 18 | |
|---|
| 19 | %define _rpmdir ../ |
|---|
| 20 | %define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | %install |
|---|
| 24 | curdir=`pwd` |
|---|
| 25 | cd ../.. |
|---|
| 26 | make DESTDIR=$RPM_BUILD_ROOT DISTRO=rh install-ogagent |
|---|
| 27 | cd $curdir |
|---|
| 28 | |
|---|
| 29 | %clean |
|---|
| 30 | rm -rf $RPM_BUILD_ROOT |
|---|
| 31 | curdir=`pwd` |
|---|
| 32 | cd ../.. |
|---|
| 33 | make DESTDIR=$RPM_BUILD_ROOT DISTRO=rh clean |
|---|
| 34 | cd $curdir |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | %post |
|---|
| 38 | systemctl enable ogagent.service > /dev/null 2>&1 |
|---|
| 39 | |
|---|
| 40 | %preun |
|---|
| 41 | systemctl disable ogagent.service > /dev/null 2>&1 |
|---|
| 42 | systemctl stop ogagent.service > /dev/null 2>&1 |
|---|
| 43 | |
|---|
| 44 | %postun |
|---|
| 45 | # $1 == 0 on uninstall, == 1 on upgrade for preun and postun (just a reminder for me... :) ) |
|---|
| 46 | if [ $1 -eq 0 ]; then |
|---|
| 47 | rm -rf /etc/ogagent |
|---|
| 48 | rm /var/log/ogagent.log |
|---|
| 49 | fi |
|---|
| [066661d] | 50 | # And, posibly, the .pyc leaved behind on /usr/share/OGAgent |
|---|
| [c3e7c06] | 51 | rm -rf /usr/share/OGAgent > /dev/null 2>&1 |
|---|
| 52 | |
|---|
| 53 | %description |
|---|
| [066661d] | 54 | This package provides the required components to allow this machine to work on an environment managed by OpenGnsys. |
|---|
| [c3e7c06] | 55 | |
|---|
| 56 | %files |
|---|
| 57 | %defattr(-,root,root) |
|---|
| 58 | /etc/ogagent |
|---|
| 59 | /etc/xdg/autostart/OGAgentTool.desktop |
|---|
| 60 | /etc/init.d/ogagent |
|---|
| 61 | /usr/bin/OGAgentTool-startup |
|---|
| 62 | /usr/bin/ogagent |
|---|
| 63 | /usr/bin/OGAgentTool |
|---|
| 64 | /usr/share/OGAgent/* |
|---|
| 65 | /usr/share/autostart/OGAgentTool.desktop |
|---|
Note: See
TracBrowser
for help on using the repository browser.