blob: 2e2275ba7370b52bf9226b5b2ca13960c538d24e [file] [log] [blame]
TLSDATE_VERSION = 0.0.13
TLSDATE_SITE = http://ftp.de.debian.org/debian/pool/main/t/tlsdate
TLSDATE_SOURCE = tlsdate_${TLSDATE_VERSION}.orig.tar.xz
TLSDATE_DEPENDENCIES = host-pkg-config openssl libevent
TLSDATE_PRE_CONFIGURE_HOOKS += TLSDATE_AUTOGEN
TLSDATE_CONF_OPT = --disable-hardened-checks
ifeq ($(ARCH),arc)
# ARC doesn't have seccomp support.
TLSDATE_CONF_OPT += --disable-seccomp-filter
endif
ifeq ($(BR2_PACKAGE_DBUS),y)
TLSDATE_DEPENDENCIES += dbus
TLSDATE_CONF_OPT += --enable-dbus
define TLSDATE_INSTALL_DBUS_CONF
$(INSTALL) -m 0644 package/tlsdate/org.torproject.tlsdate.conf $(TARGET_DIR)/etc/dbus-1/system.d
endef
TLSDATE_POST_INSTALL_TARGET_HOOKS += TLSDATE_INSTALL_DBUS_CONF
endif
define TLSDATE_INSTALL_DAEMON_INITSCRIPT
$(INSTALL) -m 0755 package/tlsdate/S75tlsdate $(TARGET_DIR)/etc/init.d/
endef
TLSDATE_POST_INSTALL_TARGET_HOOKS += TLSDATE_INSTALL_DAEMON_INITSCRIPT
define TLSDATE_AUTOGEN
cd $(@D) && \
$(TARGET_MAKE_ENV) ./autogen.sh
endef
$(eval $(call AUTOTARGETS))