blob: 130fe5523127fc7e6a570f3ed6c84d97645ea56b (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
DESCRIPTION = "The reference implementation of the freesmartphone.org framework APIs"
HOMEPAGE = "http://www.freesmartphone.org"
AUTHOR = "FreeSmartphone.Org Development Team"
SECTION = "console/network"
DEPENDS = "python-cython-native python-pyrex-native"
LICENSE = "GPL"
PV = "0.9.5.9+gitr${SRCREV}"
PR = "r0"
inherit distutils update-rc.d
INITSCRIPT_NAME = "frameworkd"
INITSCRIPT_PARAMS = "defaults 29"
SRC_URI = "${FREESMARTPHONE_GIT}/framework.git;protocol=git;branch=master \
file://frameworkd \
file://frameworkd.conf \
"
S = "${WORKDIR}/git"
do_configure_append() {
echo "version=\"${PV}\"" >framework/__version__.py
}
do_install_append() {
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/frameworkd ${D}${sysconfdir}/init.d/
install -m 0644 ${WORKDIR}/frameworkd.conf ${D}${sysconfdir}
}
RDEPENDS_${PN} += "\
fsousaged \
"
RDEPENDS_${PN} += "\
python-ctypes \
python-dbus \
python-datetime \
python-difflib \
python-logging \
python-pprint \
python-pyalsaaudio \
python-pygobject \
python-pyrtc \
python-pyserial \
python-pyyaml \
python-shell \
python-subprocess \
python-syslog \
python-textutils \
python-multiprocessing \
${PN}-config \
"
RRECOMMENDS_${PN} += "\
alsa-utils-amixer \
python-gst \
ppp \
"
PACKAGES =+ "${PN}-config"
PACKAGE_ARCH_${PN}-config = "${MACHINE_ARCH}"
# machine specific stuff, should ideally be elsewhere
# - recommend MUXer on platforms that require one
RDEPENDS_${PN}-config_append_om-gta01 = " fso-abyss"
RDEPENDS_${PN}-config_append_om-gta02 = " fso-abyss"
# - add wmiconfig for wireless configuration
RDEPENDS_${PN}-config_append_om-gta02 = " wmiconfig"
FILES_${PN}-config = "\
${sysconfdir}/frameworkd.conf \
${sysconfdir}/freesmartphone \
"
CONFFILES_${PN}-config = "\
${sysconfdir}/frameworkd.conf \
${sysconfdir}/freesmartphone/opreferences/conf/phone/silent.yaml \
${sysconfdir}/freesmartphone/opreferences/conf/phone/default.yaml \
${sysconfdir}/freesmartphone/opreferences/conf/profiles/default.yaml \
${sysconfdir}/freesmartphone/opreferences/conf/rules/silent.yaml \
${sysconfdir}/freesmartphone/opreferences/conf/rules/default.yaml \
${sysconfdir}/freesmartphone/oevents/rules.yaml \
${sysconfdir}/freesmartphone/ogsmd/networks.tab \
"
PACKAGE_ARCH_${PN} = "${BASE_PACKAGE_ARCH}"
FILES_${PN} += "${sysconfdir}/dbus-1 ${sysconfdir}/freesmartphone ${sysconfdir}/init.d ${datadir}"
FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/framework/subsystems/*/.debug"
|