[package] pure-ftpd: add TLS variant (#7658)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22440 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9ab06e320e
commit
aae0d997f3
@ -15,11 +15,13 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|||||||
PKG_SOURCE_URL:=http://download.pureftpd.org/pub/pure-ftpd/releases
|
PKG_SOURCE_URL:=http://download.pureftpd.org/pub/pure-ftpd/releases
|
||||||
PKG_MD5SUM:=12a074824b509f9e7684fab333ed6915
|
PKG_MD5SUM:=12a074824b509f9e7684fab333ed6915
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/pure-ftpd
|
define Package/pure-ftpd/Default
|
||||||
SUBMENU:=FTP
|
SUBMENU:=FTP
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
@ -28,6 +30,18 @@ define Package/pure-ftpd
|
|||||||
URL:=http://www.pureftpd.org/project/pure-ftpd
|
URL:=http://www.pureftpd.org/project/pure-ftpd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/pure-ftpd
|
||||||
|
$(call Package/pure-ftpd/Default)
|
||||||
|
TITLE+= (no TLS)
|
||||||
|
VARIANT:=notls
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/pure-ftpd-tls
|
||||||
|
$(call Package/pure-ftpd/Default)
|
||||||
|
TITLE+= (TLS)
|
||||||
|
VARIANT:=tls
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/pure-ftpd/description
|
define Package/pure-ftpd/description
|
||||||
Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant
|
Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant
|
||||||
FTP server. It doesn't provide useless bells and whistles, but focuses on
|
FTP server. It doesn't provide useless bells and whistles, but focuses on
|
||||||
@ -36,13 +50,23 @@ define Package/pure-ftpd/description
|
|||||||
personal users as well as hosting providers.
|
personal users as well as hosting providers.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Package/pure-ftpd-tls/description=$(Package/pure-ftpd/description)
|
||||||
|
|
||||||
define Package/pure-ftpd/conffiles
|
define Package/pure-ftpd/conffiles
|
||||||
/etc/config/pure-ftpd
|
/etc/config/pure-ftpd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Package/pure-ftpd-tls/conffiles=$(Package/pure-ftpd/conffiles)
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--with-everything \
|
--with-everything \
|
||||||
--with-virtualchroot \
|
--with-virtualchroot
|
||||||
|
|
||||||
|
ifeq ($(BUILD_VARIANT),tls)
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--with-certfile=/etc/ssl/private/pure-ftpd.pem \
|
||||||
|
--with-tls
|
||||||
|
endif
|
||||||
|
|
||||||
define Package/pure-ftpd/install
|
define Package/pure-ftpd/install
|
||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
@ -60,4 +84,7 @@ define Package/pure-ftpd/install
|
|||||||
$(1)/usr/sbin/
|
$(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Package/pure-ftpd-tls/install=$(Package/pure-ftpd/install)
|
||||||
|
|
||||||
$(eval $(call BuildPackage,pure-ftpd))
|
$(eval $(call BuildPackage,pure-ftpd))
|
||||||
|
$(eval $(call BuildPackage,pure-ftpd-tls))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user