package/mrouted: bump to version 4.1

- Use official tarball
- Update license hash, reformatting:
  206f932560
- Switch to autotools, available since version 4.0 and
  1a7ef3759f
- Install systemd file, available since version 4.0 and
  18f0fe7630
- Update indentation in hash file (two spaces)

https://github.com/troglobit/mrouted/releases/tag/4.1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2020-10-22 08:07:52 +02:00 committed by Thomas Petazzoni
parent 065adaeaeb
commit d21336a203
2 changed files with 13 additions and 17 deletions

View File

@ -1,3 +1,6 @@
# From https://github.com/troglobit/mrouted/releases/download/4.1/mrouted-4.1.tar.gz.md5
md5 e1f9bc0a895a2accae511a44e2a4a6f7 mrouted-4.1.tar.gz
# Locally calculated
sha256 179636d211a82d0140a3488c6b65e634b4838da23e50d8cdee15ef03fe9b46af mrouted-3.9.8.tar.gz
sha256 2e6c7d9e92afc391f584290c3817f2cdec1501621cf820abbd4bc4adc2e5b2ef LICENSE
sha256 fd4735316f5510dfccfcbed441aa11619b261501dccf9e793a311d618c0843c5 mrouted-4.1.tar.gz
sha256 834f45ed282fd010f354ecc0a50538af519a1cfcc4d2866de3be06982fa9ed29 LICENSE

View File

@ -4,24 +4,17 @@
#
################################################################################
MROUTED_VERSION = 3.9.8
MROUTED_SITE = $(call github,troglobit,mrouted,$(MROUTED_VERSION))
MROUTED_VERSION = 4.1
MROUTED_SITE = \
https://github.com/troglobit/mrouted/releases/download/$(MROUTED_VERSION)
MROUTED_DEPENDENCIES = host-bison
MROUTED_LICENSE = BSD-3-Clause
MROUTED_LICENSE_FILES = LICENSE
MROUTED_CONFIGURE_OPTS = --enable-rsrr
define MROUTED_CONFIGURE_CMDS
(cd $(@D); \
$(TARGET_MAKE_ENV) $(@D)/configure --enable-rsrr \
)
define MROUTED_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/mrouted.service \
$(TARGET_DIR)/usr/lib/systemd/system/mrouted.service
endef
define MROUTED_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define MROUTED_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) prefix=/usr DESTDIR=$(TARGET_DIR) -C $(@D) install
endef
$(eval $(generic-package))
$(eval $(autotools-package))