summaryrefslogtreecommitdiff
path: root/packages/freesmartphone/python-ousaged_git.bb
blob: f9ba2856ebc9d7bde368687e25fd4422a48996cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DESCRIPTION = "The Open Usage Daemon Prototype in Python"
HOMEPAGE = "http://www.freesmartphone.org/mediawiki/index.php/Implementations/OpenUsageDaemon"
AUTHOR = "Michael 'Mickey' Lauer <mlauer@vanille-media.de>"
SECTION = "console/network"
DEPENDS = "python-cython-native python-pyrex-native"
LICENSE = "GPLv2"
PV = "0.7.9+gitr${SRCREV}"
PR = "r0"

inherit distutils update-rc.d

INITSCRIPT_NAME = "ousaged"
INITSCRIPT_PARAMS = "defaults 20"

SRC_URI = "\
  ${FREESMARTPHONE_GIT}/usaged.git;protocol=git;branch=master \
  file://ousaged \
"
S = "${WORKDIR}/git"

do_install_append() {
	install -d ${D}${sysconfdir}/init.d/
	install -m 0755 ${WORKDIR}/ousaged ${D}${sysconfdir}/init.d/
	install -d ${D}${sysconfdir}/dbus-1/system.d/
	mv -f ${D}${datadir}/etc/dbus-1/system.d/ousaged.conf ${D}${sysconfdir}/dbus-1/system.d/
}

RDEPENDS_${PN} += "\
  python-dbus \
  python-pygobject \
  python-pyrtc \
  python-syslog \
  python-odeviced \
"

FILES_${PN} += "${sysconfdir}"