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.

58 lines
1.4 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ser2net
  9. PKG_VERSION:=3.5
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/ser2net
  13. PKG_HASH:=ba9e1d60a89fd7ed075553b4a2074352902203f7fbd9b65b15048c05f0e3f3be
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/ser2net
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=Serial to Network Proxy
  24. URL:=http://sourceforge.net/projects/ser2net/
  25. DEPENDS:=+USE_UCLIBC:libpthread +USE_UCLIBC:librt
  26. endef
  27. define Package/ser2net/description
  28. This project provides a proxy that allows telnet/tcp connections to be made to
  29. serial ports on a machine.
  30. endef
  31. define Package/ser2net/conffiles
  32. /etc/ser2net.conf
  33. endef
  34. define Package/ser2net/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/
  37. $(INSTALL_DIR) $(1)/etc
  38. $(INSTALL_CONF) ./files/ser2net.conf $(1)/etc/
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) ./files/ser2net.config $(1)/etc/config/ser2net
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/ser2net.init $(1)/etc/init.d/ser2net
  43. endef
  44. $(eval $(call BuildPackage,ser2net))