aboutsummaryrefslogtreecommitdiff
path: root/net/kplex/Makefile
blob: d2a5395d33f7d61e376dc7afc5227738a790dff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

include $(TOPDIR)/rules.mk

PKG_NAME:=kplex
PKG_VERSION:=1.3.4
PKG_RELEASE=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.stripydog.com/download
PKG_HASH:=b507d85d5f1def40303326459268a6262d37ea5f13fb73b37b72854e53594dcc

PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING

PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>

include $(INCLUDE_DIR)/package.mk

define Package/kplex
  SECTION:=net
  CATEGORY:=Network
  TITLE:=NMEA-0183 multiplexer and router
  DEPENDS:=+libpthread
  URL:=http://www.stripydog.com/kplex/
endef

define Package/kplex/description
  Kplex is a program for combining and routing NMEA-0183 data to and from multiple
  sources and destinations. kplex inputs and outputs may be any of Serial lines,
  Pseudo Terminals (ptys), Network Interfaces and Files.
endef

define Package/kplex/conffiles
/etc/kplex.conf
endef

define Package/kplex/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/kplex $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/etc
	$(INSTALL_CONF) $(PKG_BUILD_DIR)/kplex.conf.ex $(1)/etc/kplex.conf
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/kplex.init $(1)/etc/init.d/kplex
endef

$(eval $(call BuildPackage,kplex))