2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-07 08:39:45 +02:00
|
|
|
#
|
|
|
|
# ptpd2
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-07 08:39:45 +02:00
|
|
|
|
2014-03-10 21:26:32 +01:00
|
|
|
PTPD2_VERSION = 2.3.0
|
2013-05-07 08:39:45 +02:00
|
|
|
PTPD2_SITE = http://downloads.sourceforge.net/project/ptpd/ptpd/$(PTPD2_VERSION)
|
|
|
|
PTPD2_SOURCE = ptpd-$(PTPD2_VERSION).tar.gz
|
2014-03-12 01:30:42 +01:00
|
|
|
PTPD2_DEPENDENCIES = libpcap
|
2014-03-10 21:26:32 +01:00
|
|
|
# configure not shipped
|
|
|
|
PTPD2_AUTORECONF = YES
|
2013-05-07 08:39:45 +02:00
|
|
|
PTPD2_LICENSE = BSD-2c
|
|
|
|
PTPD2_LICENSE_FILES = COPYRIGHT
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
PTPD2_CONF_OPTS += LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
|
2014-07-31 00:16:25 +02:00
|
|
|
endif
|
|
|
|
|
2014-04-05 00:29:46 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NETSNMP),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
PTPD2_CONF_ENV += ac_cv_path_PATH_NET_SNMP_CONFIG=$(STAGING_DIR)/usr/bin/net-snmp-config
|
|
|
|
PTPD2_DEPENDENCIES += netsnmp
|
2014-04-05 00:29:46 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
PTPD2_CONF_OPTS += --disable-snmp
|
2014-04-05 00:29:46 +02:00
|
|
|
endif
|
|
|
|
|
2013-05-07 08:39:45 +02:00
|
|
|
define PTPD2_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 755 -D package/ptpd2/S65ptpd2 \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S65ptpd2
|
|
|
|
endef
|
|
|
|
|
2015-05-23 12:06:47 +02:00
|
|
|
define PTPD2_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/ptpd2/ptpd2.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/ptpd2.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/ptpd2.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ptpd2.service
|
|
|
|
endef
|
|
|
|
|
2014-03-10 21:26:32 +01:00
|
|
|
$(eval $(autotools-package))
|