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
|
# -*-makefile-*-
#
# Copyright (C) 2009 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_JSVC) += jsvc
#
# Paths and names
#
JSVC := jsvc
JSVC_VERSION := none
JSVC_SUFFIX := tar.gz
JSVC_DIR := $(BUILDDIR)/$(JSVC)-src
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/jsvc.extract: $(STATEDIR)/tomcat.extract
@$(call targetinfo)
@$(call clean, $(JSVC_DIR))
cd $(BUILDDIR) && tar xf $(TOMCAT_DIR)/bin/$(JSVC).$(JSVC_SUFFIX)
chmod +x $(JSVC_DIR)/configure
@$(call patchin, JSVC, $(JSVC_DIR))
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
JSVC_PATH := PATH=$(CROSS_PATH)
JSVC_ENV := $(CROSS_ENV)
#
# autoconf
#
JSVC_AUTOCONF := \
$(CROSS_AUTOCONF_USR)
# HACK: what we really need is a sun-java6-jdk and only install the jre stuff
ifdef PTXCONF_SUN_JAVA6_JRE
JSVC_AUTOCONF += --with-java=$(PTXCONF_SETUP_JAVA_SDK)
else
JSVC_AUTOCONF += --with-java=$(SYSROOT)/usr
endif
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/jsvc.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/jsvc.targetinstall:
@$(call targetinfo)
@$(call install_init, jsvc)
@$(call install_fixup, jsvc,PRIORITY,optional)
@$(call install_fixup, jsvc,SECTION,base)
@$(call install_fixup, jsvc,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, jsvc,DESCRIPTION,missing)
@$(call install_copy, jsvc, 0, 0, 0755, $(JSVC_DIR)/jsvc, /usr/bin/jsvc)
@$(call install_finish, jsvc)
@$(call touch)
# vim: syntax=make
|