1 diff -ur vsftpd-2.0.1_org/Makefile vsftpd-2.0.1_patch/Makefile
2 --- vsftpd-2.0.1_org/Makefile 2004-06-06 18:21:27.000000000 +0200
3 +++ vsftpd-2.0.1_patch/Makefile 2004-07-21 09:50:25.245576352 +0200
6 CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
8 -LIBS = `./vsf_findlibs.sh`
9 +LIBS = -lssl -lcrypto -lnsl -lresolv
12 OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
14 $(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS)
17 - if [ -x /usr/local/sbin ]; then \
18 - $(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \
19 + if [ -x ${DESTDIR}/usr/local/sbin ]; then \
20 + $(INSTALL) -m 755 vsftpd ${DESTDIR}/usr/local/sbin/vsftpd; \
22 - $(INSTALL) -m 755 vsftpd /usr/sbin/vsftpd; fi
23 - if [ -x /usr/local/man ]; then \
24 - $(INSTALL) -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
25 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
26 - elif [ -x /usr/share/man ]; then \
27 - $(INSTALL) -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
28 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
29 + $(INSTALL) -m 755 vsftpd ${DESTDIR}/usr/sbin/vsftpd; fi
30 + if [ -x ${DESTDIR}/usr/local/man ]; then \
31 + $(INSTALL) -m 644 vsftpd.8 ${DESTDIR}/usr/local/man/man8/vsftpd.8; \
32 + $(INSTALL) -m 644 vsftpd.conf.5 ${DESTDIR}/usr/local/man/man5/vsftpd.conf.5; \
33 + elif [ -x ${DESTDIR}/usr/share/man ]; then \
34 + $(INSTALL) -m 644 vsftpd.8 ${DESTDIR}/usr/share/man/man8/vsftpd.8; \
35 + $(INSTALL) -m 644 vsftpd.conf.5 ${DESTDIR}/usr/share/man/man5/vsftpd.conf.5; \
37 - $(INSTALL) -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
38 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
39 - if [ -x /etc/xinetd.d ]; then \
40 - $(INSTALL) -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
41 + $(INSTALL) -m 644 vsftpd.8 ${DESTDIR}/usr/man/man8/vsftpd.8; \
42 + $(INSTALL) -m 644 vsftpd.conf.5 ${DESTDIR}/usr/man/man5/vsftpd.conf.5; fi
43 + if [ -x ${DESTDIR}/etc/xinetd.d ]; then \
44 + $(INSTALL) -m 644 xinetd.d/vsftpd ${DESTDIR}/etc/xinetd.d/vsftpd; fi
47 rm -f *.o *.swp vsftpd