Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / net / kplex / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=kplex
10 PKG_VERSION:=1.3.4
11 PKG_RELEASE=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
14 PKG_SOURCE_URL:=http://www.stripydog.com/download
15 PKG_HASH:=b507d85d5f1def40303326459268a6262d37ea5f13fb73b37b72854e53594dcc
16
17 PKG_LICENSE:=GPL-3.0+
18 PKG_LICENSE_FILES:=COPYING
19
20 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/kplex
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=NMEA-0183 multiplexer and router
28 DEPENDS:=+libpthread
29 URL:=http://www.stripydog.com/kplex/
30 endef
31
32 define Package/kplex/description
33 Kplex is a program for combining and routing NMEA-0183 data to and from multiple
34 sources and destinations. kplex inputs and outputs may be any of Serial lines,
35 Pseudo Terminals (ptys), Network Interfaces and Files.
36 endef
37
38 define Package/kplex/conffiles
39 /etc/kplex.conf
40 endef
41
42 define Package/kplex/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kplex $(1)/usr/bin/
45 $(INSTALL_DIR) $(1)/etc
46 $(INSTALL_CONF) $(PKG_BUILD_DIR)/kplex.conf.ex $(1)/etc/kplex.conf
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/kplex.init $(1)/etc/init.d/kplex
49 endef
50
51 $(eval $(call BuildPackage,kplex))