source: packages/net/pure-ftpd/Makefile @ 26895

Last change on this file since 26895 was 26895, checked in by swalker, 5 years ago

[packages] pure-ftpd: update to 1.0.32 (#9411), thanks realopty, refresh patches

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1#
2# Copyright (C) 2007-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pure-ftpd
11PKG_VERSION:=1.0.32
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://download.pureftpd.org/pub/pure-ftpd/releases
16PKG_MD5SUM:=065211a4319e2089bd16b44c003eb0f8
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
19
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/pure-ftpd/Default
25  SUBMENU:=File Transfer
26  SECTION:=net
27  CATEGORY:=Network
28  DEPENDS:=+libelf
29  TITLE:=Secure FTP made easy!
30  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
43  DEPENDS+=+libopenssl
44endef
45
46define Package/pure-ftpd/description
47 Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant
48 FTP server. It doesn't provide useless bells and whistles, but focuses on
49 efficiency and ease of use.
50 It provides simple answers to common needs, plus unique  useful features for
51 personal users as well as hosting providers.
52endef
53
54Package/pure-ftpd-tls/description=$(Package/pure-ftpd/description)
55
56define Package/pure-ftpd/conffiles
57/etc/config/pure-ftpd
58endef
59
60Package/pure-ftpd-tls/conffiles=$(Package/pure-ftpd/conffiles)
61
62CONFIGURE_ARGS += \
63        --with-everything \
64        --with-virtualchroot
65
66ifeq ($(BUILD_VARIANT),tls)
67CONFIGURE_ARGS += \
68        --with-certfile=/etc/ssl/private/pure-ftpd.pem \
69        --with-tls
70endif
71
72define Package/pure-ftpd/install
73        $(INSTALL_DIR) $(1)/etc/config
74        $(INSTALL_CONF) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
75        $(INSTALL_DIR) $(1)/etc/init.d
76        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
77        $(INSTALL_DIR) $(1)/usr/bin
78        $(INSTALL_BIN) \
79                $(PKG_INSTALL_DIR)/usr/bin/pure-{pw,pwconvert,statsdecode} \
80                $(1)/usr/bin/
81        $(INSTALL_DIR) $(1)/usr/sbin
82        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ptracetest $(1)/usr/sbin/
83        $(INSTALL_BIN) \
84                $(PKG_INSTALL_DIR)/usr/sbin/pure-{authd,ftpd,ftpwho,mrtginfo,quotacheck,uploadscript} \
85                $(1)/usr/sbin/
86endef
87
88Package/pure-ftpd-tls/install=$(Package/pure-ftpd/install)
89
90$(eval $(call BuildPackage,pure-ftpd))
91$(eval $(call BuildPackage,pure-ftpd-tls))
Note: See TracBrowser for help on using the repository browser.