Holger Hans Peter Freyther | 0b0ef8a | 2011-11-11 21:41:31 +0800 | [diff] [blame] | 1 | DESCRITOPN = "Linux Call Router" |
| 2 | DEPENDS = "misdn-utils asterisk libgsm" |
| 3 | HOMEPAGE = "http://isdn.eversberg.eu/" |
| 4 | LICENSE = "GPLv2+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=de9327a12ae1ccc94dade892a360f996" |
| 6 | |
| 7 | PV = "1.10" |
| 8 | PR = "r10" |
| 9 | |
| 10 | SRCREV = "27ade6eeb9859a0702e77b27ca0abed63d298cda" |
| 11 | SRC_URI = "git://git.misdn.org/lcr.git \ |
| 12 | file://lcr.init \ |
| 13 | file://gsm-diff.patch" |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | EXTRA_OECONF = "--with-gsm-bs --with-asterisk" |
| 17 | |
| 18 | RDEPENDS_${PN} += "kernel-module-misdn-l1loop kernel-module-misdn-dsp" |
| 19 | |
| 20 | inherit autotools update-rc.d |
| 21 | |
| 22 | PACKAGES =+ "${PN}-tones-de ${PN}-vbox-de \ |
| 23 | ${PN}-tones-en ${PN}-vbox-en " |
| 24 | |
| 25 | FILES_${PN} += "/usr/local ${libdir}/asterisk/modules" |
| 26 | FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug" |
| 27 | CONFFILES_${PN} = "/usr/local/lcr/interface.conf /usr/local/lcr/routing.conf /usr/local/lcr/options.conf" |
| 28 | INITSCRIPT_PACKAGES = "${PN}" |
| 29 | INITSCRIPT_NAME_${PN} = "lcr" |
| 30 | INITSCRIPT_PARAMS_${PN} = "defaults 30 30" |
| 31 | |
| 32 | FILES_${PN}-tones-de = "/usr/local/lcr/tones_german" |
| 33 | FILES_${PN}-tones-en = "/usr/local/lcr/tones_american" |
| 34 | FILES_${PN}-vbox-de = "/usr/local/lcr/vbox_german" |
| 35 | FILES_${PN}-vbox-en = "/usr/local/lcr/vbox_english" |
| 36 | |
| 37 | |
| 38 | do_install_append() { |
| 39 | install -d ${D}${sysconfdir}/init.d |
| 40 | install -m 0775 ${WORKDIR}/lcr.init ${D}${sysconfdir}/init.d/lcr |
| 41 | } |