Ticket #7616: Makefile

File Makefile, 1.4 KB (added by cezary@…, 6 years ago)
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=ncftp
4PKG_VERSION:=3.2.4
5PKG_RELEASE:=1
6
7PKG_INSTALL=1
8
9PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
10PKG_SOURCE_URL:=ftp://ftp.ncftp.com/ncftp
11PKG_MD5SUM:=216d6befdd7381b11ffdc8b6e0c1bd12
12
13include $(INCLUDE_DIR)/package.mk
14
15define Package/ncftp/Default
16 SECTION:=net
17 CATEGORY:=Network
18 TITLE:=NcFTP Client
19 URL:=http://www.ncftpd.com/
20endef
21
22define Package/ncftp/Default/description
23 NcFTP Client (also known as just NcFTP) is a set of FREE application
24 programs implementing the File Transfer Protocol (FTP).
25endef
26
27define Package/ncftp
28$(call Package/ncftp/Default)
29 TITLE+= (main program)
30endef
31
32define Package/ncftp/description
33$(call Package/ncftp/Default/description)
34 Main program.
35endef
36
37define Package/ncftp-utils
38$(call Package/ncftp/Default)
39 TITLE+= (utilities)
40endef
41
42define Package/ncftp-utils/description
43$(call Package/ncftp/Default/description)
44 Utilities.
45endef
46
47define Package/ncftp/install
48        $(INSTALL_DIR) $(1)/usr/bin
49        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncftp $(1)/usr/bin/
50endef
51
52define Package/ncftp-utils/install
53        $(INSTALL_DIR) $(1)/usr/bin
54        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{ncftpbatch,ncftpbookmarks} $(1)/usr/bin/
55        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{ncftpget,ncftpls,ncftpput} $(1)/usr/bin/
56        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncftpspooler $(1)/usr/bin/
57endef
58
59$(eval $(call BuildPackage,ncftp))
60$(eval $(call BuildPackage,ncftp-utils))