1
0

Makefile 1.2 KB

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