f9985c5d5b
Long ago, before SMCRoute had yet become a proper daemon and standalone control tool, it was both. After the metamorphosis commands and options had changed, a compat script was added to provide a smooth transition. The compat script is still shipped in the tarball, and installed, but only Debian still relies on it, so we prune it here to keep confusion to a minimum, hopefully. Signed-off-by: Joachim Wiberg <troglobit@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
34 lines
891 B
Makefile
34 lines
891 B
Makefile
################################################################################
|
|
#
|
|
# smcroute
|
|
#
|
|
################################################################################
|
|
|
|
SMCROUTE_VERSION = 2.5.2
|
|
SMCROUTE_SITE = https://github.com/troglobit/smcroute/releases/download/$(SMCROUTE_VERSION)
|
|
SMCROUTE_LICENSE = GPL-2.0+
|
|
SMCROUTE_LICENSE_FILES = COPYING
|
|
SMCROUTE_CPE_ID_VENDOR = troglobit
|
|
|
|
SMCROUTE_CONF_OPTS = --enable-mrdisc
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
SMCROUTE_DEPENDENCIES = libcap
|
|
SMCROUTE_CONF_OPTS += --with-libcap
|
|
else
|
|
SMCROUTE_CONF_OPTS += --without-libcap
|
|
endif
|
|
|
|
define SMCROUTE_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 755 -D package/smcroute/S41smcroute \
|
|
$(TARGET_DIR)/etc/init.d/S41smcroute
|
|
endef
|
|
|
|
define SMCROUTE_PRUNE_COMPAT_SCRIPT
|
|
rm -f $(TARGET_DIR)/usr/sbin/smcroute
|
|
endef
|
|
|
|
SMCROUTE_POST_INSTALL_TARGET_HOOKS += SMCROUTE_PRUNE_COMPAT_SCRIPT
|
|
|
|
$(eval $(autotools-package))
|