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.3 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:=lrzsz
  9. PKG_VERSION:=0.12.20
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://ohse.de/uwe/releases/
  13. PKG_HASH:=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
  14. PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/lrzsz
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=X, Y and Z-modem protocols
  23. URL:=https://ohse.de/uwe/software/lrzsz.html
  24. endef
  25. define Package/lrzsz/description
  26. Transfer files in your login sessions.
  27. Very leightweight and straight forward.
  28. You just need a terminal client that can do
  29. either X, Y or Z-modem file transfers.
  30. endef
  31. define Package/lrzsz/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
  35. (cd $(1)/usr/bin; \
  36. ln -fs lrz lrx; \
  37. ln -fs lrz lrb; \
  38. ln -fs lrz rz; \
  39. ln -fs lrz rx; \
  40. ln -fs lrz rb; \
  41. ln -fs lsz lsx; \
  42. ln -fs lsz lsb; \
  43. ln -fs lsz sz; \
  44. ln -fs lsz sx; \
  45. ln -fs lsz sb; \
  46. );
  47. endef
  48. $(eval $(call BuildPackage,lrzsz))