aboutsummaryrefslogtreecommitdiff
path: root/net/nqptp/Makefile
blob: b16efecd38c56fe2efbcdeaa2963470823693cad (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
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# updated to work with latest source from abrasive
#

include $(TOPDIR)/rules.mk

PKG_NAME:=nqptp
PKG_VERSION:=1.2.4
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/mikebrady/nqptp/tar.gz/$(PKG_VERSION)?
PKG_HASH:=1df1d5edd5b713010d6495b3abca4c1cf4ad8fa6029df0abeb9e4de8e0eb707a

PKG_MAINTAINER:=Ben Klang <bklang@wirehack.net>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING LICENSES nqptp.c

PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/nqptp
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Not Quite Peer-to-Peer
  URL:=https://github.com/mikebrady/nqptp
endef

define Package/nqptp/description
  nqptp is a daemon that monitors timing data from PTP clocks it sees on ports
  319 and 320. It maintains records for one clock, identified by its Clock ID.

  It is a companion application to Shairport Sync and provides timing
  information for AirPlay 2 operation.
endef

define Package/nqptp/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/nqptp $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/nqptp.init $(1)/etc/init.d/nqptp
endef

$(eval $(call BuildPackage,nqptp))