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