7c554b2b2f14ea2858a645d78a941047c9f6977b
[packages.git] / utils / lrzsz / Makefile
1 #
2 # Copyright (C) 2006 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:=lrzsz
11 PKG_VERSION:=0.12.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.ohse.de/uwe/releases/
16 PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/lrzsz
21   SECTION:=utils
22   CATEGORY:=Utilities
23   TITLE:=X,Y and Z-modem protocols
24   URL:=http://www.ohse.de/uwe/software/lrzsz.html
25 endef
26
27 define Package/lrzsz/description
28         Transfer files in your login sessions.
29         Very leightweight and straight forward.
30         You just need a terminal client that can do 
31         either X, Y or Z-modem file transfers.
32 endef
33
34 # uses GNU configure
35
36 define Build/Compile    
37         $(MAKE) -C $(PKG_BUILD_DIR) \
38                 DESTDIR="$(PKG_INSTALL_DIR)" \
39                 all install
40 endef
41
42 define Package/lrzsz/install    
43         $(INSTALL_DIR) $(1)/usr/bin
44         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
45         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
46         (cd $(1)/usr/bin; \
47                 ln -fs lrz lrx; \
48                 ln -fs lrz lrb; \
49                 ln -fs lsz lsx; \
50                 ln -fs lsz lsb; \
51         );
52 endef
53
54 $(eval $(call BuildPackage,lrzsz))