summaryrefslogtreecommitdiffstats
path: root/rules/stunnel.make
blob: f399f3f821191c9ff95b2e43dd3c182f01750fd8 (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
# -*-makefile-*-
#
# Copyright (C) 2014 by Guillermo Rodriguez <guille.rodriguez@gmail.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_STUNNEL) += stunnel

#
# Paths and names
#
STUNNEL_VERSION	:= 5.46
STUNNEL_MD5	:= 2836e0740d4a16fa489445d969ec0b7d
STUNNEL		:= stunnel-$(STUNNEL_VERSION)
STUNNEL_SUFFIX	:= tar.gz
STUNNEL_URL	:= \
	http://ftp.nluug.nl/pub/networking/stunnel/$(STUNNEL).$(STUNNEL_SUFFIX) \
	http://ftp.nluug.nl/pub/networking/stunnel/archive/5.x/$(STUNNEL).$(STUNNEL_SUFFIX)
STUNNEL_SOURCE	:= $(SRCDIR)/$(STUNNEL).$(STUNNEL_SUFFIX)
STUNNEL_DIR	:= $(BUILDDIR)/$(STUNNEL)
STUNNEL_LICENSE	:= stunnel (GPL2 or later with openssl exception)

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

#
# autoconf
#
STUNNEL_CONF_TOOL	:= autoconf
STUNNEL_AUTOCONF	:= \
	$(CROSS_AUTOCONF_USR) \
	$(GLOBAL_LARGE_FILE_OPTION) \
	$(GLOBAL_IPV6_OPTION) \
	--disable-fips \
	--disable-systemd \
	--disable-libwrap \
	--with-threads=pthread \
	--with-ssl=$(PTXDIST_SYSROOT_TARGET)/usr

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

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

	@$(call install_init, stunnel)
	@$(call install_fixup, stunnel,PRIORITY,optional)
	@$(call install_fixup, stunnel,SECTION,base)
	@$(call install_fixup, stunnel,AUTHOR,"Guillermo Rodriguez <guille.rodriguez@gmail.com>")
	@$(call install_fixup, stunnel,DESCRIPTION,missing)

	@$(call install_copy, stunnel, 0, 0, 0755, -, /usr/bin/stunnel)

	@$(call install_finish, stunnel)

	@$(call touch)

# vim: syntax=make