2020-08-07 22:58:06 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# htpdate
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-01-24 22:59:04 +01:00
|
|
|
HTPDATE_VERSION = 1.3.3
|
|
|
|
HTPDATE_SITE = $(call github,twekkel,htpdate,v$(HTPDATE_VERSION))
|
2020-08-07 22:58:06 +02:00
|
|
|
HTPDATE_LICENSE = GPL-2.0+
|
|
|
|
HTPDATE_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2022-01-29 11:44:25 +01:00
|
|
|
HTPDATE_BUILD_OPTS = \
|
|
|
|
https \
|
|
|
|
SSL_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
2020-09-12 17:05:27 +02:00
|
|
|
HTPDATE_DEPENDENCIES += openssl host-pkgconf
|
2020-08-07 22:58:06 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define HTPDATE_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(HTPDATE_BUILD_OPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HTPDATE_INSTALL_TARGET_CMDS
|
2022-01-27 18:53:59 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
|
|
DESTDIR=$(TARGET_DIR) install
|
2020-08-07 22:58:06 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HTPDATE_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/htpdate/S43htpdate \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S43htpdate
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HTPDATE_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0644 package/htpdate/htpdate.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/htpdate.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|