upgrade wireless-tools to v28 pre13
[openwrt.git] / openwrt / package / vsftpd / patches / destdir.patch
1 --- vsftpd-2.0.4-orig/Makefile 2005-06-29 00:24:03.000000000 +0200
2 +++ vsftpd-2.0.4/Makefile 2006-01-11 18:29:12.000000000 +0100
3 @@ -17,6 +17,8 @@
4 ssl.o sysutil.o sysdeputil.o
5
6
7 +DESTDIR =
8 +
9 .c.o:
10 $(CC) -c $*.c $(CFLAGS) $(IFLAGS)
11
12 @@ -24,21 +26,20 @@
13 $(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS) $(LDFLAGS)
14
15 install:
16 - if [ -x /usr/local/sbin ]; then \
17 - $(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \
18 - else \
19 - $(INSTALL) -m 755 vsftpd /usr/sbin/vsftpd; fi
20 - if [ -x /usr/local/man ]; then \
21 - $(INSTALL) -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
22 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
23 - elif [ -x /usr/share/man ]; then \
24 - $(INSTALL) -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
25 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
26 - else \
27 - $(INSTALL) -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
28 - $(INSTALL) -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
29 - if [ -x /etc/xinetd.d ]; then \
30 - $(INSTALL) -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
31 + mkdir -p $(DESTDIR)/usr/sbin
32 + $(INSTALL) -m 755 vsftpd $(DESTDIR)/usr/sbin/
33 + mkdir -p $(DESTDIR)/usr/share/man/man8
34 + $(INSTALL) -m 644 vsftpd.8 $(DESTDIR)/usr/share/man/man8/
35 + mkdir -p $(DESTDIR)/usr/share/man/man5
36 + $(INSTALL) -m 644 vsftpd.conf.5 $(DESTDIR)/usr/share/man/man5/
37 + mkdir -p $(DESTDIR)/etc/xinetd.d
38 + $(INSTALL) -m 644 xinetd.d/vsftpd $(DESTDIR)/etc/xinetd.d/
39 +
40 +uninstall:
41 + rm -f $(DESTDIR)/usr/sbin/vsftpd
42 + rm -f $(DESTDIR)/usr/share/man/man8/vsftpd.8
43 + rm -f $(DESTDIR)/usr/share/man/man5/vsftpd.conf.5
44 + rm -f $(DESTDIR)/etc/xinetd.d/vsftpd
45
46 clean:
47 rm -f *.o *.swp vsftpd
This page took 0.041051 seconds and 5 git commands to generate.