2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar
15 PKG_SOURCE_URL:=https://www.tcnj.edu/~bush/downloads
16 PKG_MD5SUM:=dcf922327a7fc76159d11226b9bc0579
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
24 define Package/uftp/Default
27 SUBMENU:=File Transfer
28 TITLE:=Multicast UDP FTP
29 URL:=https://www.tcnj.edu/~bush/uftp.html
32 define Package/uftp/Default/description
33 UFTP is an encrypted multicast file transfer program, designed to securely,
34 reliably, and efficiently transfer files to multiple receivers
39 $(call Package/uftp/Default)
40 TITLE+= server with TLS support
45 define Package/uftp/description
46 $(call Package/uftp/Default/description)
47 This package contains the server built with TLS support.
50 define Package/uftp-notls
51 $(call Package/uftp/Default)
52 TITLE+= server without TLS support
56 define Package/uftp-notls/description
57 $(call Package/uftp/Default/description)
58 This package contains the server built without TLS support.
62 $(call Package/uftp/Default)
63 TITLE+= client daemon with TLS support
68 define Package/uftpd/description
69 $(call Package/uftp/Default/description)
70 This package contains the client daemon built with TLS support.
73 define Package/uftpd-notls
74 $(call Package/uftp/Default)
75 TITLE+= client daemon without TLS support
79 define Package/uftpd-notls/description
80 $(call Package/uftp/Default/description)
81 This package contains the client daemon built without TLS support.
84 define Package/uftpproxyd
85 $(call Package/uftp/Default)
86 TITLE+= proxy daemon with TLS support
91 define Package/uftpproxyd/description
92 $(call Package/uftp/Default/description)
93 This package contains the proxy daemon built with TLS support.
96 define Package/uftpproxyd-notls
97 $(call Package/uftp/Default)
98 TITLE+= proxy daemon without TLS support
102 define Package/uftpproxyd-notls/description
103 $(call Package/uftp/Default/description)
104 This package contains the proxy daemon built without TLS support.
107 define Package/uftp-keymgt
108 $(call Package/uftp/Default)
109 TITLE+= key management utility
114 define Package/uftp-keymgt/description
115 $(call Package/uftp/Default/description)
116 This package contains the key management utility.
120 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
123 ifeq ($(BUILD_VARIANT),tls)
125 OPENSSL="$(STAGING_DIR)/usr"
128 ifeq ($(BUILD_VARIANT),notls)
133 define Package/uftp/install
134 $(INSTALL_DIR) $(1)/usr/bin
135 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/uftp $(1)/usr/bin/
138 define Package/uftpd/install
139 $(INSTALL_DIR) $(1)/usr/sbin
140 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/uftpd $(1)/usr/sbin/
143 define Package/uftpproxyd/install
144 $(INSTALL_DIR) $(1)/usr/sbin
145 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/uftpproxyd $(1)/usr/sbin/
148 Package/uftp-notls/install=$(Package/uftp/install)
149 Package/uftpd-notls/install=$(Package/uftpd/install)
150 Package/uftpproxyd-notls/install=$(Package/uftpproxyd/install)
152 define Package/uftp-keymgt/install
153 $(INSTALL_DIR) $(1)/usr/bin
154 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/uftp_keymgt $(1)/usr/bin/
157 $(eval $(call BuildPackage,uftp))
158 $(eval $(call BuildPackage,uftp-notls))
159 $(eval $(call BuildPackage,uftpd))
160 $(eval $(call BuildPackage,uftpd-notls))
161 $(eval $(call BuildPackage,uftpproxyd))
162 $(eval $(call BuildPackage,uftpproxyd-notls))
163 $(eval $(call BuildPackage,uftp-keymgt))