summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcf-agent
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/tcf-agent
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/tcf-agent')
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent/fix_ranlib.patch14
-rwxr-xr-xmeta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init75
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent_git.bb48
3 files changed, 137 insertions, 0 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent/fix_ranlib.patch b/meta/recipes-devtools/tcf-agent/tcf-agent/fix_ranlib.patch
new file mode 100644
index 0000000000..5d704567c8
--- /dev/null
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent/fix_ranlib.patch
@@ -0,0 +1,14 @@
1Upstream-Status: Inappropriate [poky-specific fix]
2
3--- a/Makefile.inc
4+++ b/Makefile.inc
5@@ -57,6 +57,9 @@
6 ifeq ($(NO_UUID),)
7 LIBS += -luuid
8 endif
9+ ifneq ($(RANLIB),)
10+ RANLIB += $@
11+ endif
12 endif
13
14 ifneq ($(OPSYS),Windows)
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init
new file mode 100755
index 0000000000..6303280aae
--- /dev/null
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.init
@@ -0,0 +1,75 @@
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: tcf-agent
4# Default-Start: 3 5
5# Default-Stop: 0 1 2 6
6# Short-Description: Target Communication Framework agent
7### END INIT INFO
8
9DAEMON_PATH=/usr/sbin/tcf-agent
10DAEMON_NAME=`basename $DAEMON_PATH`
11
12. /etc/init.d/functions
13
14test -x $DAEMON_PATH || exit 0
15
16PATH=/sbin:/usr/sbin:/bin:/usr/bin
17export PATH
18
19RETVAL=0
20
21case "$1" in
22 start)
23 echo -n "Starting $DAEMON_NAME: "
24 $DAEMON_PATH -d -L- -l0
25 RETVAL=$?
26 if [ $RETVAL -eq 0 ] ; then
27 echo "OK"
28 touch /var/lock/subsys/$DAEMON_NAME
29 else
30 echo "FAIL"
31 fi
32 ;;
33
34 stop)
35 echo -n "Stopping $DAEMON_NAME: "
36 count=0
37 while [ -n "`/bin/pidof $DAEMON_PATH`" -a $count -lt 10 ] ; do
38 killproc $DAEMON_PATH >& /dev/null
39 sleep 1
40 RETVAL=$?
41 if [ $RETVAL != 0 -o -n "`/bin/pidof $DAEMON_PATH`" ] ; then
42 sleep 3
43 fi
44 count=`expr $count + 1`
45 done
46 rm -f /var/lock/subsys/$DAEMON_NAME
47 if [ -n "`/bin/pidof $DAEMON_PATH`" ] ; then
48 echo "FAIL"
49 else
50 echo "OK"
51 fi
52 ;;
53
54 restart)
55 $0 stop
56 sleep 1
57 $0 start
58 ;;
59
60 status)
61 status $DAEMON_NAME
62 RETVAL=$?
63 ;;
64
65 condrestart)
66 [ -f /var/lock/subsys/$DAEMON_NAME ] && $0 restart
67 ;;
68
69 *)
70 echo "usage: $0 { start | stop | status | restart | condrestart | status }"
71 ;;
72esac
73
74exit $RETVAL
75
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
new file mode 100644
index 0000000000..1eb0021eec
--- /dev/null
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
@@ -0,0 +1,48 @@
1SUMMARY = "Target Communication Framework for the Eclipse IDE"
2HOMEPAGE = "http://wiki.eclipse.org/TCF"
3BUGTRACKER = "https://bugs.eclipse.org/bugs/"
4
5LICENSE = "EPL-1.0 | EDL-1.0"
6LIC_FILES_CHKSUM = "file://edl-v10.html;md5=522a390a83dc186513f0500543ad3679"
7
8SRCREV = "4ef94ecb927a8912c3d79ce137182247786cff8f"
9PV = "0.4.0+git${SRCPV}"
10PR = "r2"
11
12SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git \
13 file://fix_ranlib.patch \
14 file://tcf-agent.init \
15 "
16
17DEPENDS = "util-linux openssl"
18RDEPENDS_${PN} = "bash"
19
20S = "${WORKDIR}/git"
21
22inherit update-rc.d
23
24INITSCRIPT_NAME = "tcf-agent"
25INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ."
26
27# mangling needed for make
28MAKE_ARCH = "`echo ${TARGET_ARCH} | sed s,i.86,i686,`"
29MAKE_OS = "`echo ${TARGET_OS} | sed s,^linux.*,GNU/Linux,`"
30
31EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'"
32
33# They don't build on ARM and we don't need them actually.
34CFLAGS += "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \
35 -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \
36 -DSERVICE_StackTrace=0 -DSERVICE_Symbols=0 -DSERVICE_LineNumbers=0 \
37 -DSERVICE_Expressions=0"
38
39do_compile() {
40 oe_runmake
41}
42
43do_install() {
44 oe_runmake install INSTALLROOT=${D}
45 install -d ${D}${sysconfdir}/init.d/
46 install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent
47}
48