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) 2009 by Bjoern Buerger <b.buerger@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_PTRTD) += ptrtd
#
# Paths and names
#
# We use the updated version from http://jk.fr.eu.org/debian/
# rather than the original from http://www.litech.org/ptrtd/
# although the archive is badly packaged (extracts to a
# different directory name).
#
PTRTD_VERSION := 0.5.2
PTRTD_MD5 := 6a342fbb21a333f12a082001dece68f2
PTRTD_VERSION_SUFFIX := -1~14
PTRTD := ptrtd-$(PTRTD_VERSION)
PTRTD_SUFFIX := tar.gz
PTRTD_URL := https://ptrtd.googlecode.com/files/ptrtd_$(PTRTD_VERSION)$(PTRTD_VERSION_SUFFIX).$(PTRTD_SUFFIX)
PTRTD_SOURCE := $(SRCDIR)/ptrtd_$(PTRTD_VERSION)$(PTRTD_VERSION_SUFFIX).$(PTRTD_SUFFIX)
PTRTD_DIR := $(BUILDDIR)/$(PTRTD)
PTRTD_LICENSE := GPL-2.0
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
PTRTD_AUTOCONF := $(CROSS_AUTOCONF_USR)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/ptrtd.targetinstall:
@$(call targetinfo)
@$(call install_init, ptrtd)
@$(call install_fixup, ptrtd,PRIORITY,optional)
@$(call install_fixup, ptrtd,SECTION,base)
@$(call install_fixup, ptrtd,AUTHOR,"Bjoern Buerger <b.buerger@pengutronix.de>")
@$(call install_fixup, ptrtd,DESCRIPTION,Portable Transport Relay Translator Daemon)
# FIXME: currently, only the daemon is installed,
# add init script, etc.
@$(call install_copy, ptrtd, 0, 0, 0755, -, /usr/sbin/ptrtd)
@$(call install_copy, ptrtd, 0, 0, 0755, -, /etc/ptrtd.tsetup)
@$(call install_replace, ptrtd, /etc/ptrtd.tsetup, /sbin/ip, "/bin/ip")
@$(call install_finish, ptrtd)
@$(call touch)
# vim: syntax=make
|