summaryrefslogtreecommitdiff
path: root/packages/ezx/ezxd_svn.bb
blob: 56bc1c05bf9f5986247ef69d487564996422022b (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
DESCRIPTION = "Open implementation of motorola's tapisrv, replaces opentapi"
LICENSE = "GPLv2"
SECTION = "devel"
AUTHOR = "Daniel Ribeiro"

PV = "0.0+svnr${SRCREV}"
PR = "r0"

SRC_URI = "svn://svn.openezx.org/trunk/src/userspace/;module=ezxd;proto=http \
           file://ezxd.init \
          "

inherit update-rc.d

INITSCRIPT_NAME = "ezxd"
INITSCRIPT_PARAMS = "start 00 S ."

S = "${WORKDIR}/${PN}"

do_configure() {
        sed -i -e s:CROSS:CC:g Makefile
}

do_install() {
	install -d ${D}${bindir}
	install -m 755 ezxd ${D}${bindir}

	install -d ${D}${libdir}/ezxd
	install -m 755 *.so ${D}${libdir}/ezxd

	install -d ${D}${sysconfdir}/init.d
        install -m 0600 ezxd.conf ${D}${sysconfdir}/
        install -m 0755 ${WORKDIR}/ezxd.init ${D}${sysconfdir}/init.d/ezxd
}