#750: Process to build OGAgent for ogLive package.
parent
bb549c7878
commit
b8d05a72c6
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd $(dirname "$0")
|
||||||
|
top=`pwd`
|
||||||
|
|
||||||
|
[ -r ../src/VERSION ] && VERSION="$(cat ../src/VERSION)" || VERSION="1.1.0"
|
||||||
|
RELEASE="1"
|
||||||
|
|
||||||
|
# Debian based
|
||||||
|
dpkg-buildpackage -b -d
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Automatically added by dh_installinit
|
||||||
|
if [ -x "/etc/init.d/ogagent" ]; then
|
||||||
|
update-rc.d ogagent defaults >/dev/null || exit $?
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Automatically added by dh_installinit
|
||||||
|
if [ "$1" = "purge" ] ; then
|
||||||
|
update-rc.d ogagent remove >/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# In case this system is running systemd, we make systemd reload the unit files
|
||||||
|
# to pick up changes.
|
||||||
|
if [ -d /run/systemd/system ] ; then
|
||||||
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
|
fi
|
||||||
|
# End automatically added section
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
FOLDER=/usr/share/OGAgent
|
||||||
|
|
||||||
|
cd $FOLDER
|
||||||
|
python OGAgentUser.py $@
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Simple hack to wait for systray to be present
|
||||||
|
# Exec tool if not already runned by session manager
|
||||||
|
ps -ef | grep "$USER" | grep -v grep | grep -v OGAgentTool-startup | grep 'OGAgentTool' -q
|
||||||
|
# If not already running
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
sleep 5
|
||||||
|
exec /usr/bin/OGAgentTool
|
||||||
|
fi
|
Loading…
Reference in New Issue