ser2net: add missing dependency to libpthread when using uClibc
[feed/packages.git] / net / ser2net / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ser2net
11 PKG_VERSION:=3.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ser2net
16 PKG_MD5SUM:=bf8af8cfacd35828a9778d69972f6345
17
18 PKG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/ser2net
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=Serial to Network Proxy
31 URL:=http://sourceforge.net/projects/ser2net/
32 DEPENDS:=+USE_UCLIBC:libpthread
33 endef
34
35 define Package/ser2net/description
36 This project provides a proxy that allows telnet/tcp connections to be made to
37 serial ports on a machine.
38 endef
39
40 define Package/ser2net/conffiles
41 /etc/ser2net.conf
42 endef
43
44 define Package/ser2net/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc
48 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ser2net.conf $(1)/etc/
49 endef
50
51 $(eval $(call BuildPackage,ser2net))