Browse Source

Import lrzsz from oldpackages

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
lilik-openwrt-22.03
kuoruan 9 years ago
parent
commit
ffd6fd1732
2 changed files with 77 additions and 0 deletions
  1. +58
    -0
      utils/lrzsz/Makefile
  2. +19
    -0
      utils/lrzsz/patches/100-install_delete_fix.patch

+ 58
- 0
utils/lrzsz/Makefile View File

@ -0,0 +1,58 @@
#
# Copyright (C) 2006-2016 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:=lrzsz
PKG_VERSION:=0.12.20
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://ohse.de/uwe/releases/
PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/lrzsz
SECTION:=utils
CATEGORY:=Utilities
TITLE:=X, Y and Z-modem protocols
URL:=https://ohse.de/uwe/software/lrzsz.html
endef
define Package/lrzsz/description
Transfer files in your login sessions.
Very leightweight and straight forward.
You just need a terminal client that can do
either X, Y or Z-modem file transfers.
endef
define Package/lrzsz/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
(cd $(1)/usr/bin; \
ln -fs lrz lrx; \
ln -fs lrz lrb; \
ln -fs lrz rz; \
ln -fs lrz rx; \
ln -fs lrz rb; \
ln -fs lsz lsx; \
ln -fs lsz lsb; \
ln -fs lsz sz; \
ln -fs lsz sx; \
ln -fs lsz sb; \
);
endef
$(eval $(call BuildPackage,lrzsz))

+ 19
- 0
utils/lrzsz/patches/100-install_delete_fix.patch View File

@ -0,0 +1,19 @@
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -372,13 +372,13 @@
rm -f $(DESTDIR)/$(bindir)/`echo lsb | sed -e '$(transform)'`
ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
$(DESTDIR)/$(bindir)/`echo lsb |sed -e '$(transform)'`
- rm -f $(bindir)/`echo lsx | sed -e '$(transform)'`
+ rm -f $(DESTDIR)/$(bindir)/`echo lsx | sed -e '$(transform)'`
ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
$(DESTDIR)/$(bindir)/`echo lsx |sed -e '$(transform)'`
- rm -f $(bindir)/`echo lrb | sed -e '$(transform)'`
+ rm -f $(DESTDIR)/$(bindir)/`echo lrb | sed -e '$(transform)'`
ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
$(DESTDIR)/$(bindir)/`echo lrb |sed -e '$(transform)'`
- rm -f $(bindir)/`echo lrx | sed -e '$(transform)'`
+ rm -f $(DESTDIR)/$(bindir)/`echo lrx | sed -e '$(transform)'`
ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
$(DESTDIR)/$(bindir)/`echo lrx |sed -e '$(transform)'`
# rm -f $(bindir)/`echo lrzszbug | sed -e '$(transform)'`

Loading…
Cancel
Save