You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=samplicator
  3. PKG_VERSION:=1.3.6
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://github.com/sleinen/samplicator/releases/download/v$(PKG_VERSION)
  7. PKG_HASH:=3c4358b4b0992a77251f2b9e2221d4ae945781160732c73504eb126e69d72d40
  8. PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
  9. PKG_LICENSE:=GPL-2.0-only
  10. PKG_LICENSE_FILES:=COPYING
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/samplicator
  13. SECTION:=net
  14. CATEGORY:=Network
  15. TITLE:=UDP Samplicator
  16. URL:=https://github.com/sleinen/samplicator
  17. endef
  18. define Package/samplicator/description
  19. Send copies of (UDP) datagrams to multiple receivers,
  20. with optional sampling and spoofing.
  21. endef
  22. define Package/samplicator/conffiles
  23. /etc/samplicator.conf
  24. endef
  25. define Package/samplicator/install
  26. $(INSTALL_DIR) $(1)/usr/sbin
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/samplicate $(1)/usr/sbin/
  28. $(INSTALL_DIR) $(1)/etc/init.d
  29. $(INSTALL_BIN) ./files/samplicator.init $(1)/etc/init.d/samplicator
  30. $(INSTALL_DIR) $(1)/etc
  31. $(INSTALL_DATA) ./files/samplicator.conf $(1)/etc/
  32. endef
  33. $(eval $(call BuildPackage,samplicator))