]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/nqptp
util-linux: Update to version 2.39.3
[ipfire-2.x.git] / lfs / nqptp
CommitLineData
c4fc6eb0
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
fda0b945 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
c4fc6eb0
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27SUMMARY = nqptp is a daemon that monitors timing data from any PTP clocks
28
758951bf 29# https://github.com/mikebrady/nqptp/archive/$(VER).tar.gz
fda0b945
AB
30# The archive part of the url no longer exists
31VER = 1.2.4
c4fc6eb0
MT
32
33THISAPP = nqptp-$(VER)
34DL_FILE = $(THISAPP).tar.gz
35DL_FROM = $(URL_IPFIRE)
36DIR_APP = $(DIR_SRC)/$(THISAPP)
37TARGET = $(DIR_INFO)/$(THISAPP)
38PROG = nqptp
fda0b945 39PAK_VER = 4
c4fc6eb0
MT
40
41SERVICES = nqptp
42
43###############################################################################
44# Top-level Rules
45###############################################################################
46
47objects = $(DL_FILE)
48
49$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
50
fda0b945 51$(DL_FILE)_BLAKE2 = b19f57b00bd092e518914804c5ae573733e2643548fcc40eaeaf89530495312d3f8536cbc854a36557b7bd9cf14bd5c44453772899bc635b53c4ae38ef3120f4
c4fc6eb0
MT
52
53install : $(TARGET)
54
55check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56
57download :$(patsubst %,$(DIR_DL)/%,$(objects))
58
59b2 : $(subst %,%_BLAKE2,$(objects))
60
61dist:
62 @$(PAK)
63
64###############################################################################
65# Downloading, checking, b2sum
66###############################################################################
67
68$(patsubst %,$(DIR_CHK)/%,$(objects)) :
69 @$(CHECK)
70
71$(patsubst %,$(DIR_DL)/%,$(objects)) :
72 @$(LOAD)
73
74$(subst %,%_BLAKE2,$(objects)) :
75 @$(B2SUM)
76
77###############################################################################
78# Installation Details
79###############################################################################
80
81$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
82 @$(PREBUILD)
83 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
84 cd $(DIR_APP) && autoreconf -vfi
85 cd $(DIR_APP) && ./configure \
86 --prefix=/usr \
87 --sysconfdir=/etc \
88 --without-systemd-startup
89 cd $(DIR_APP) && make $(MAKETUNING)
90 cd $(DIR_APP) && make install
91
92 # Initscript
93 $(call INSTALL_INITSCRIPTS,$(SERVICES))
94
95 @rm -rf $(DIR_APP)
96 @$(POSTBUILD)