summaryrefslogtreecommitdiffstats
path: root/rules/boa.make
blob: bd6c457951f66afb79efe2b2cc48936a09cdac38 (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
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
# -*-makefile-*-
#
# Copyright (C) 2010 by Alexander Stein <alexander.stein@systec-electronic.com>
#
# 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_BOA) += boa

#
# Paths and names
#
BOA_VERSION	:= 0.94.14rc21
BOA_MD5		:= e24b570bd767a124fcfb40a34d148ba9
BOA_SUFFIX	:= tar.gz
BOA		:= boa-$(BOA_VERSION)
BOA_TARBALL	:= boa_$(BOA_VERSION).orig.$(BOA_SUFFIX)
BOA_URL		:= $(call ptx/mirror, DEB, pool/main/b/boa/$(BOA_TARBALL))
BOA_SOURCE	:= $(SRCDIR)/$(BOA_TARBALL)
BOA_DIR		:= $(BUILDDIR)/$(BOA)
BOA_LICENSE	:= GPL-2.0-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

BOA_CONF_TOOL := autoconf

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/boa.install:
	@$(call targetinfo)
	install -D -m 755 $(BOA_DIR)/src/boa $(BOA_PKGDIR)/usr/sbin/boa
	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/boa.targetinstall:
	@$(call targetinfo)

	@$(call install_init, boa)
	@$(call install_fixup, boa,PRIORITY,optional)
	@$(call install_fixup, boa,SECTION,base)
	@$(call install_fixup, boa,AUTHOR,"Alexander Stein <alexander.stein@systec-electronic.com>")
	@$(call install_fixup, boa,DESCRIPTION,missing)

	@$(call install_copy, boa, 0, 0, 0755, -, /usr/sbin/boa)

	@$(call install_alternative, boa, 0, 0, 0755, /etc/init.d/boa)

ifdef PTXCONF_BOA_INSTALL_CONFIG
	@$(call install_alternative, boa, 0, 0, 0644, /etc/boa/boa.conf)
endif
	@$(call install_finish, boa)

	@$(call touch)

# vim: syntax=make