linux: Bump default to version 4.5.4
[buildroot-gz.git] / package / ptpd / ptpd.mk
blobdad8ccfe10a553fb9f764165b9e49c8f75240a2c
1 ################################################################################
3 # ptpd
5 ################################################################################
7 PTPD_VERSION = 1.1.0
8 PTPD_SITE = http://downloads.sourceforge.net/project/ptpd/ptpd/$(PTPD_VERSION)
9 PTPD_LICENSE = BSD
10 PTPD_LICENSE_FILES = COPYRIGHT
12 define PTPD_BUILD_CMDS
13 $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/src
14 endef
16 define PTPD_INSTALL_TARGET_CMDS
17 $(INSTALL) -m 755 -D $(@D)/src/ptpd $(TARGET_DIR)/usr/sbin/ptpd
18 endef
20 define PTPD_INSTALL_INIT_SYSV
21 $(INSTALL) -m 755 -D package/ptpd/S65ptpd \
22 $(TARGET_DIR)/etc/init.d/S65ptpd
23 endef
25 define PTPD_INSTALL_INIT_SYSTEMD
26 $(INSTALL) -D -m 644 package/ptpd/ptpd.service \
27 $(TARGET_DIR)/usr/lib/systemd/system/ptpd.service
28 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
29 ln -sf ../../../../usr/lib/systemd/system/ptpd.service \
30 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ptpd.service
31 endef
33 $(eval $(generic-package))