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