1 --- vsftpd-3.0.2.orig/Makefile 2012-09-16 09:27:35.000000000 +0200
2 +++ vsftpd-3.0.2/Makefile 2014-02-11 12:59:30.000000000 +0100
4 # Makefile for systems with GNU tools
8 IFLAGS = -idirafter dummyinc
10 -CFLAGS = -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \
11 +CFLAGS ?= -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \
12 -Wall -W -Wshadow -Werror -Wformat-security \
14 #-pedantic -Wconversion
16 -LIBS = `./vsf_findlibs.sh`
19 -LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now
20 +LDFLAGS ?= -fPIE -pie -Wl,-z,relro -Wl,-z,now
22 OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
23 tunables.o ftpdataio.o secbuf.o ls.o \
24 @@ -29,21 +29,8 @@ vsftpd: $(OBJS)
25 $(CC) -o vsftpd $(OBJS) $(LINK) $(LDFLAGS) $(LIBS)
28 - if [ -x /usr/local/sbin ]; then \
29 - $(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \
31 - $(INSTALL) -m 755 vsftpd /usr/sbin/vsftpd; fi
32 - if [ -x /usr/local/man ]; then \
33 - $(INSTALL) -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
34 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
35 - elif [ -x /usr/share/man ]; then \
36 - $(INSTALL) -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
37 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
39 - $(INSTALL) -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
40 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
41 - if [ -x /etc/xinetd.d ]; then \
42 - $(INSTALL) -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
43 + mkdir -p $(DESTDIR)/usr/sbin
44 + $(INSTALL) -m 755 vsftpd $(DESTDIR)/usr/sbin/vsftpd
47 rm -f *.o *.swp vsftpd