efivar: bump to version 30
[buildroot-gz.git] / package / inadyn / inadyn.mk
blobf23955bbaf79cc79d39c0a43eb08b3abe1f44cb6
1 ################################################################################
3 # inadyn
5 ################################################################################
7 INADYN_VERSION = v2.0
8 INADYN_SITE = $(call github,troglobit,inadyn,$(INADYN_VERSION))
9 INADYN_LICENSE = GPLv2+
10 INADYN_LICENSE_FILES = COPYING
11 INADYN_AUTORECONF = YES
12 INADYN_DEPENDENCIES = host-pkgconf libconfuse libite
14 # Needed for autoreconf to work properly, see ./autogen.sh
15 define INADYN_FIXUP_M4_DIR
16 mkdir $(@D)/m4
17 endef
18 INADYN_POST_EXTRACT_HOOKS += INADYN_FIXUP_M4_DIR
20 ifeq ($(BR2_PACKAGE_OPENSSL),y)
21 INADYN_CONF_OPTS += --enable-openssl
22 INADYN_DEPENDENCIES += openssl
23 else ifeq ($(BR2_PACKAGE_GNUTLS),y)
24 INADYN_DEPENDENCIES += gnutls
25 else
26 INADYN_CONF_OPTS += --disable-ssl
27 endif
29 define INADYN_INSTALL_SAMPLE_CONFIG
30 $(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \
31 $(TARGET_DIR)/etc/inadyn.conf
32 endef
33 INADYN_POST_INSTALL_TARGET_HOOKS += INADYN_INSTALL_SAMPLE_CONFIG
35 define INADYN_INSTALL_INIT_SYSV
36 $(INSTALL) -D -m 0755 package/inadyn/S70inadyn \
37 $(TARGET_DIR)/etc/init.d/S70inadyn
38 endef
40 define INADYN_INSTALL_INIT_SYSTEMD
41 $(INSTALL) -D -m 644 package/inadyn/inadyn.service \
42 $(TARGET_DIR)/usr/lib/systemd/system/inadyn.service
43 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
44 ln -sf ../../../../usr/lib/systemd/system/inadyn.service \
45 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/inadyn.service
46 endef
48 $(eval $(autotools-package))