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)
|
2014-09-27 21:32:44 +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)
|
|
|
|
PTPD2_CONF_ENV += ac_cv_path_PATH_NET_SNMP_CONFIG=$(STAGING_DIR)/usr/bin/net-snmp-config
|
|
|
|
PTPD2_DEPENDENCIES += netsnmp
|
|
|
|
else
|
2014-09-27 21:32:44 +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
|
|
|
|
|
2014-03-10 21:26:32 +01:00
|
|
|
$(eval $(autotools-package))
|