1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUP = Networking/Daemons
33 PKG_URL = ftp://vsftpd.beasts.org/users/cevans/
34 PKG_LICENSE = GPLv2 with exceptions
35 PKG_SUMMARY = Very Secure Ftp Daemon.
37 PKG_BUILD_DEPS+= libcap-devel openssl-devel pam-devel
39 define PKG_DESCRIPTION
40 vsftpd is a Very Secure FTP daemon. It was written completely \
44 PKG_TARBALL = $(THISAPP).tar.gz
46 CFLAGS += -Wall -W -Wshadow -fstack-protector -fpie -Wextra -Werror
48 define STAGE_PREPARE_CMDS
49 # Fix an issue with DSO
50 cd $(DIR_APP) && sed -e "s/-lssl/& -lcrypto/" -i Makefile
54 cd $(DIR_APP) && make CFLAGS='$(CFLAGS)' $(PARALLELISMFLAGS)
58 -mkdir -pv $(BUILDROOT)/usr/bin
59 cd $(DIR_APP) && install -v -m 755 vsftpd $(BUILDROOT)/usr/bin
60 -mkdir -pv $(BUILDROOT)/usr/share/man/man8
61 cd $(DIR_APP) && install -v -m 644 vsftpd.8 $(BUILDROOT)/usr/share/man/man8
62 -mkdir -pv $(BUILDROOT)/usr/share/man/man5
63 cd $(DIR_APP) && install -v -m 644 vsftpd.conf.5 $(BUILDROOT)/usr/share/man/man5
64 -mkdir -pv $(BUILDROOT)/etc/$(PKG_NAME)
65 cp -vf $(DIR_SOURCE)/$(PKG_NAME).{conf,user_list} $(BUILDROOT)/etc/$(PKG_NAME)