binutils: update to 2.43.1
[openadk.git] / package / vsftpd / patches / patch-Makefile
blob1549bc92024b44f5a2c0f7810d6b76909835c382
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
3 @@ -1,16 +1,16 @@
4  # Makefile for systems with GNU tools
5 -CC     =       gcc
6 +CC     ?=      gcc
7  INSTALL        =       install
8  IFLAGS  = -idirafter dummyinc
9  #CFLAGS = -g
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 \
13         -D_FORTIFY_SOURCE=2 \
14         #-pedantic -Wconversion
16 -LIBS   =       `./vsf_findlibs.sh`
17 +LIBS   =       -lcap -lcrypt
18  LINK   =       -Wl,-s
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)
27  install:
28 -       if [ -x /usr/local/sbin ]; then \
29 -               $(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \
30 -       else \
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; \
38 -       else \
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
46  clean:
47         rm -f *.o *.swp vsftpd