]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/vsftpd/vsftpd.nm
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / vsftpd / vsftpd.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = vsftpd
28 PKG_VER = 2.3.2
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
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.
36
37 PKG_BUILD_DEPS+= libcap-devel openssl-devel pam-devel
38
39 define PKG_DESCRIPTION
40 vsftpd is a Very Secure FTP daemon. It was written completely \
41 from scratch.
42 endef
43
44 PKG_TARBALL = $(THISAPP).tar.gz
45
46 CFLAGS += -Wall -W -Wshadow -fstack-protector -fpie -Wextra -Werror
47
48 define STAGE_PREPARE_CMDS
49 # Fix an issue with DSO
50 cd $(DIR_APP) && sed -e "s/-lssl/& -lcrypto/" -i Makefile
51 endef
52
53 define STAGE_BUILD
54 cd $(DIR_APP) && make CFLAGS='$(CFLAGS)' $(PARALLELISMFLAGS)
55 endef
56
57 define STAGE_INSTALL
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)
66 endef