Changeset 22440


Ignore:
Timestamp:
2010-07-31T14:26:22+02:00 (7 years ago)
Author:
florian
Message:

[package] pure-ftpd: add TLS variant (#7658)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/pure-ftpd/Makefile

    r22439 r22440  
    1616PKG_MD5SUM:=12a074824b509f9e7684fab333ed6915 
    1717 
     18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 
     19 
    1820PKG_INSTALL:=1 
    1921 
    2022include $(INCLUDE_DIR)/package.mk 
    2123 
    22 define Package/pure-ftpd 
     24define Package/pure-ftpd/Default 
    2325  SUBMENU:=FTP 
    2426  SECTION:=net 
     
    2729  TITLE:=Secure FTP made easy! 
    2830  URL:=http://www.pureftpd.org/project/pure-ftpd 
     31endef 
     32 
     33define Package/pure-ftpd 
     34  $(call Package/pure-ftpd/Default) 
     35  TITLE+= (no TLS) 
     36  VARIANT:=notls 
     37endef 
     38 
     39define Package/pure-ftpd-tls 
     40  $(call Package/pure-ftpd/Default) 
     41  TITLE+= (TLS) 
     42  VARIANT:=tls 
    2943endef 
    3044 
     
    3751endef 
    3852 
     53Package/pure-ftpd-tls/description=$(Package/pure-ftpd/description) 
     54 
    3955define Package/pure-ftpd/conffiles 
    4056/etc/config/pure-ftpd 
    4157endef 
    4258 
     59Package/pure-ftpd-tls/conffiles=$(Package/pure-ftpd/conffiles) 
     60 
    4361CONFIGURE_ARGS += \ 
    4462        --with-everything \ 
    45         --with-virtualchroot \ 
     63        --with-virtualchroot 
     64 
     65ifeq ($(BUILD_VARIANT),tls) 
     66CONFIGURE_ARGS += \ 
     67        --with-certfile=/etc/ssl/private/pure-ftpd.pem \ 
     68        --with-tls 
     69endif 
    4670 
    4771define Package/pure-ftpd/install 
     
    6185endef 
    6286 
     87Package/pure-ftpd-tls/install=$(Package/pure-ftpd/install) 
     88 
    6389$(eval $(call BuildPackage,pure-ftpd)) 
     90$(eval $(call BuildPackage,pure-ftpd-tls)) 
Note: See TracChangeset for help on using the changeset viewer.