mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
new package: add package 'siglaunchd' (thanks much Wintemrute)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
69ca6400db
commit
b3a773e20a
15
packages/sysutils/siglaunchd/build
Executable file
15
packages/sysutils/siglaunchd/build
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
$AUTORECONF
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/sbin \
|
||||
--exec-prefix=/usr \
|
||||
--localstatedir=/var \
|
||||
--sysconfdir=/etc \
|
||||
|
||||
make
|
4
packages/sysutils/siglaunchd/config/siglaunchd.conf
Normal file
4
packages/sysutils/siglaunchd/config/siglaunchd.conf
Normal file
@ -0,0 +1,4 @@
|
||||
#"/usr/sbin/startnetwork"=org.freedesktop.DBus;org.freedesktop.DBus;/org/freedesktop/DBus;NameOwnerChanged;arg[0]="org.moblin.connman"
|
||||
"/usr/sbin/startnetworkdaemons"=org.moblin.connman.Service;org.moblin.connman.Service;/profile/default/*;PropertyChanged;arg[0]="State",arg[1]="online"
|
||||
|
||||
|
32
packages/sysutils/siglaunchd/init.d/13_siglaunchd
Executable file
32
packages/sysutils/siglaunchd/init.d/13_siglaunchd
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
||||
# http://www.openelec.tv
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
#
|
||||
# starting siglaunchd
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
. /etc/profile
|
||||
|
||||
progress "Starting siglaunchd"
|
||||
|
||||
/usr/sbin/siglaunchd -f /etc/siglaunchd.conf >/dev/null 2>&1 &
|
10
packages/sysutils/siglaunchd/install
Executable file
10
packages/sysutils/siglaunchd/install
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/sbin
|
||||
cp $PKG_BUILD/src/siglaunchd $INSTALL/usr/sbin
|
||||
cp $PKG_DIR/scripts/* $INSTALL/usr/sbin
|
||||
|
||||
mkdir -p $INSTALL/etc
|
||||
cp $PKG_DIR/config/siglaunchd.conf $INSTALL/etc/siglaunchd.conf
|
14
packages/sysutils/siglaunchd/meta
Normal file
14
packages/sysutils/siglaunchd/meta
Normal file
@ -0,0 +1,14 @@
|
||||
PKG_NAME="siglaunchd"
|
||||
PKG_VERSION="40"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://wiki.openmoko.org/wiki/Siglaunchd"
|
||||
PKG_URL="http://sources.openelec.tv/svn/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain dbus glib dbus-glib"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="siglaunchd: This project is daemon which listens to dbus signals and runs applications accordingly."
|
||||
PKG_LONGDESC="This project is daemon which listens to dbus signals and runs applications accordingly. The signals, application to run and some rules that will be evaluated against incoming dbus signals can be easily changed in the configuration file. "
|
||||
PKG_IS_ADDON="no"
|
36
packages/sysutils/siglaunchd/scripts/startnetworkdaemons
Executable file
36
packages/sysutils/siglaunchd/scripts/startnetworkdaemons
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
||||
# http://www.openelec.tv
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. /etc/profile
|
||||
|
||||
touch /var/run/network
|
||||
|
||||
progress "Starting Network Init Scripts"
|
||||
|
||||
RET=0
|
||||
for script in /etc/init.d/network/*; do
|
||||
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
||||
/bin/sh $script
|
||||
S_RET=$?
|
||||
test $S_RET -ge $RET && RET=$S_RET
|
||||
fi
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user