summaryrefslogtreecommitdiffstats
path: root/rules/autossh.make
blob: 86dae4db776272fe50dddacd517d63bea0dd289a (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
# -*-makefile-*-
#
# Copyright (C) 2014 by Jon Ringle <jringle@gridpoint.com>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_AUTOSSH) += autossh

#
# Paths and names
#
AUTOSSH_VERSION		:= 1.4g
AUTOSSH_MD5		:= 2b804bc1bf6d2f2afaa526d02df7c0a2
AUTOSSH			:= autossh-$(AUTOSSH_VERSION)
AUTOSSH_SUFFIX		:= tgz
AUTOSSH_URL		:= https://www.harding.motd.ca/autossh/$(AUTOSSH).$(AUTOSSH_SUFFIX)
AUTOSSH_SOURCE		:= $(SRCDIR)/$(AUTOSSH).$(AUTOSSH_SUFFIX)
AUTOSSH_DIR		:= $(BUILDDIR)/$(AUTOSSH)
AUTOSSH_LICENSE		:= custom
AUTOSSH_LICENSE_FILES	:= \
	file://autossh.c;startline=7;endline=22;md5=9ae0c9b04856148d77984ef58536732b

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

# use ac_cv_path_ssh= because --with-ssh= is broken
AUTOSSH_CONF_ENV	:= \
	$(CROSS_ENV) \
	ac_cv_path_ssh=/usr/bin/ssh

AUTOSSH_CONF_TOOL	:= autoconf

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

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

	@$(call install_init, autossh)
	@$(call install_fixup, autossh,PRIORITY,optional)
	@$(call install_fixup, autossh,SECTION,base)
	@$(call install_fixup, autossh,AUTHOR,"Jon Ringle <jringle@gridpoint.com>")
	@$(call install_fixup, autossh,DESCRIPTION,missing)

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

	@$(call install_finish, autossh)

	@$(call touch)

# vim: syntax=make