summaryrefslogtreecommitdiffstats
path: root/rules/mosh.make
blob: f5b1276151d13483bc8e56170a5d6026395a95ee (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
69
# -*-makefile-*-
#
# Copyright (C) 2015 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany,  Oliver Graute <oliver.graute@neuhaus.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_MOSH) += mosh

#
# Paths and names
#
MOSH_VERSION	:= 1.3.2
MOSH_MD5	:= 5122f4d2b973ab7c38dcdac8c35cb61e
MOSH		:= mosh-$(MOSH_VERSION)
MOSH_SUFFIX	:= tar.gz
MOSH_URL	:= https://mosh.mit.edu/$(MOSH).$(MOSH_SUFFIX)
MOSH_SOURCE	:= $(SRCDIR)/$(MOSH).$(MOSH_SUFFIX)
MOSH_DIR	:= $(BUILDDIR)/$(MOSH)
MOSH_LICENSE	:= GPL-3.0-only

#
# autoconf
#
MOSH_CONF_TOOL	:= autoconf
MOSH_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-compile-warnings \
	--enable-hardening \
	--enable-client \
	--enable-server \
	--disable-examples \
	--disable-ufw \
	--disable-completion \
	--without-utempter \
	--with-ncurses \
	--without-ncursesw \
	--with-crypto-library=$(call ptx/ifdef, PTXCONF_MOSH_NETTLE, nettle, openssl)

MOSH_CXXFLAGS := -std=c++11

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

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

	@$(call install_init, mosh)
	@$(call install_fixup, mosh,PRIORITY,optional)
	@$(call install_fixup, mosh,SECTION,base)
	@$(call install_fixup, mosh,AUTHOR,"<Oliver Graute@neuhaus.de>")
	@$(call install_fixup, mosh,DESCRIPTION,missing)

	@$(call install_copy, mosh, 0, 0, 0755, -, /usr/bin/mosh)
	@$(call install_copy, mosh, 0, 0, 0755, -, /usr/bin/mosh-server)
	@$(call install_copy, mosh, 0, 0, 0755, -, /usr/bin/mosh-client)

	@$(call install_finish, mosh)

	@$(call touch)

# vim: syntax=make