summaryrefslogtreecommitdiffstats
path: root/meta/packages/gsm/gsmd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gsm/gsmd.inc')
-rw-r--r--meta/packages/gsm/gsmd.inc96
1 files changed, 96 insertions, 0 deletions
diff --git a/meta/packages/gsm/gsmd.inc b/meta/packages/gsm/gsmd.inc
new file mode 100644
index 0000000000..4ce23d51f5
--- /dev/null
+++ b/meta/packages/gsm/gsmd.inc
@@ -0,0 +1,96 @@
1DESCRIPTION = "GSM libraries and daemons implementing the 07.10 specification"
2HOMEPAGE = "http://www.openmoko.org"
3LICENSE = "GPL LGPL"
4SECTION = "libs/gsm"
5PROVIDES += "gsmd"
6RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel"
7PV = "0.1+svnr${SRCREV}"
8PR = "r44"
9
10SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \
11 file://gsmd \
12 file://default"
13S = "${WORKDIR}/gsm"
14
15inherit autotools pkgconfig update-rc.d
16# handle update-rc.d RDEPENDS manually, we don't need it on
17# anything but gsmd
18RDEPENDS_append = ""
19
20INITSCRIPT_NAME = "gsmd"
21INITSCRIPT_PARAMS = "defaults 35"
22
23do_stage() {
24 autotools_stage_all
25}
26
27do_install_append() {
28 install -d ${D}/${sysconfdir}/init.d
29 install -m 0755 ${WORKDIR}/gsmd ${D}/${sysconfdir}/init.d/
30 install -d ${D}/${sysconfdir}/default
31 install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd
32}
33
34PACKAGES =+ "\
35 ${PN}-tools \
36 ${BASEPN}-plugins \
37 ${BASEPN}-plugin-machine-generic \
38 ${BASEPN}-plugin-machine-tihtc \
39 ${BASEPN}-plugin-machine-gta01 \
40 ${BASEPN}-plugin-vendor-bcm \
41 ${BASEPN}-plugin-vendor-qc \
42 ${BASEPN}-plugin-vendor-ti \
43 ${BASEPN}-plugin-vendor-tihtc \
44"
45
46ALLOW_EMPTY_${BASEPN}-plugin-machine-gta01 = "1"
47
48RDEPENDS_${BASEPN}-plugins = "\
49 ${BASEPN}-plugin-machine-generic \
50 ${BASEPN}-plugin-machine-tihtc \
51 ${BASEPN}-plugin-machine-gta01 \
52 ${BASEPN}-plugin-vendor-bcm \
53 ${BASEPN}-plugin-vendor-qc \
54 ${BASEPN}-plugin-vendor-ti \
55 ${BASEPN}-plugin-vendor-tihtc \
56"
57
58RDEPENDS_${PN} += "update-rc.d initscripts"
59RRECOMMENDS_${PN} += "${BASEPN}-plugins"
60
61FILES_${PN}-dbg += "${libdir}/gsmd/.debug/*"
62FILES_${PN}-tools = "${bindir}/*"
63FILES_${BASEPN}-plugins = ""
64FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*"
65FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*"
66FILES_${BASEPN}-plugin-machine-gta01 = "${libdir}/gsmd/libgsmd-machine_gta01.so*"
67FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*"
68FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*"
69FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*"
70FILES_${BASEPN}-plugin-vendor-tihtc = "${libdir}/gsmd/libgsmd-vendor_tihtc.so*"
71
72PACKAGES_DYNAMIC = "lib${BASEPN}* ${BASEPN}"
73
74ALLOW_EMPTY_${BASEPN}-plugins = "1"
75
76RCONFLICTS_lib${BASEPN} = "lib${CONFLICTNAME}"
77RCONFLICTS_${BASEPN} = "${CONFLICTNAME}"
78RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins"
79RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic"
80RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc"
81RCONFLICTS_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01"
82RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc"
83RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm"
84RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti"
85RCONFLICTS_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc"
86
87RPROVIDES_lib${BASEPN} += "lib${CONFLICTNAME}"
88RPROVIDES_${BASEPN} = "${CONFLICTNAME}"
89RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins"
90RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic"
91RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc"
92RPROVIDES_${BASEPN}-plugin-machine-gta01 = "${CONFLICTNAME}-plugin-machine-gta01"
93RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc"
94RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm"
95RPROVIDES_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti"
96RPROVIDES_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc"