xref: /OK3568_Linux_fs/buildroot/package/radvd/radvd.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# radvd
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRADVD_VERSION = 2.19
8*4882a593SmuzhiyunRADVD_SITE = http://www.litech.org/radvd/dist
9*4882a593SmuzhiyunRADVD_DEPENDENCIES = host-bison host-flex host-pkgconf
10*4882a593Smuzhiyun# We need to ignore <linux/if_arp.h>, because radvd already includes
11*4882a593Smuzhiyun# <net/if_arp.h>, which conflicts with <linux/if_arp.h>.
12*4882a593SmuzhiyunRADVD_CONF_ENV = \
13*4882a593Smuzhiyun	ac_cv_prog_cc_c99='-std=gnu99' \
14*4882a593Smuzhiyun	ac_cv_header_linux_if_arp_h=no
15*4882a593SmuzhiyunRADVD_LICENSE = BSD-4-Clause-like
16*4882a593SmuzhiyunRADVD_LICENSE_FILES = COPYRIGHT
17*4882a593SmuzhiyunRADVD_SELINUX_MODULES = radvd
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
20*4882a593SmuzhiyunRADVD_CONF_OPTS += --with-stack-protector
21*4882a593Smuzhiyunelse
22*4882a593SmuzhiyunRADVD_CONF_OPTS += --without-stack-protector
23*4882a593Smuzhiyunendif
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun# We don't provide /etc/radvd.conf, so disable the service by default.
26*4882a593Smuzhiyundefine RADVD_INSTALL_INIT_SYSTEMD
27*4882a593Smuzhiyun	$(INSTALL) -D -m 0644 package/radvd/50-radvd.preset \
28*4882a593Smuzhiyun		$(TARGET_DIR)/usr/lib/systemd/system-preset/50-radvd.preset
29*4882a593Smuzhiyunendef
30*4882a593Smuzhiyun
31*4882a593Smuzhiyundefine RADVD_INSTALL_INIT_SYSV
32*4882a593Smuzhiyun	$(INSTALL) -D -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d/S50radvd
33*4882a593Smuzhiyunendef
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun$(eval $(autotools-package))
36