1 ################################################################################
5 ################################################################################
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
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
26 INADYN_CONF_OPTS
+= --disable-ssl
29 define INADYN_INSTALL_SAMPLE_CONFIG
30 $(INSTALL
) -D
-m
0600 package
/inadyn
/inadyn.conf \
31 $(TARGET_DIR
)/etc
/inadyn.conf
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
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
48 $(eval
$(autotools-package
))