]> git.pld-linux.org Git - packages/proftpd.git/blob - proftpd-DESTDIR.patch
- LSB conformance
[packages/proftpd.git] / proftpd-DESTDIR.patch
1 diff -ur proftpd-1.2.0pre9.orig/Makefile.in proftpd-1.2.0pre9/Makefile.in
2 --- proftpd-1.2.0pre9.orig/Makefile.in  Thu Oct 28 15:10:13 1999
3 +++ proftpd-1.2.0pre9/Makefile.in       Thu Oct 28 15:22:09 1999
4 @@ -73,38 +73,38 @@
5         rm -f proftpd ftpcount ftpwho ftpshut core *~
6  
7  # BSD install -d doesn't work, so ...
8 -$(localstatedir) $(sysconfdir) $(rundir) $(bindir) $(sbindir) $(mandir) $(mandir)/man1 $(mandir)/man5 $(mandir)/man8:
9 +$(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(rundir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8:
10         @if [ ! -d $@ ]; then \
11                 mkdir -p $@; \
12                 chown $(INSTALL_USER):$(INSTALL_GROUP) $@; \
13                 chmod 0755 $@; \
14         fi
15  
16 -install-proftpd: proftpd $(localstatedir) $(sysconfdir) $(rundir) $(sbindir)
17 -       $(INSTALL_SBIN) proftpd $(sbindir)/proftpd
18 -       if [ -f $(sbindir)/in.proftpd ] ; then \
19 -         rm -f $(sbindir)/in.proftpd ; \
20 +install-proftpd: proftpd $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(rundir) $(DESTDIR)$(sbindir)
21 +       $(INSTALL_SBIN) proftpd $(DESTDIR)$(sbindir)/proftpd
22 +       if [ -f $(DESTDIR)$(sbindir)/in.proftpd ] ; then \
23 +         rm -f $(DESTDIR)$(sbindir)/in.proftpd ; \
24         fi
25 -       ln -s proftpd $(sbindir)/in.proftpd
26 -       chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(sbindir)/in.proftpd
27 +       ln -s proftpd $(DESTDIR)$(sbindir)/in.proftpd
28 +       chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(sbindir)/in.proftpd
29  
30 -install-utils: $(sbindir) $(bindir)
31 -       $(INSTALL_BIN) ftpcount $(bindir)/ftpcount
32 -       $(INSTALL_BIN) ftpwho $(bindir)/ftpwho
33 -       $(INSTALL_SBIN) ftpshut $(sbindir)/ftpshut
34 +install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
35 +       $(INSTALL_BIN) ftpcount $(DESTDIR)$(bindir)/ftpcount
36 +       $(INSTALL_BIN) ftpwho $(DESTDIR)$(bindir)/ftpwho
37 +       $(INSTALL_SBIN) ftpshut $(DESTDIR)$(sbindir)/ftpshut
38  
39 -install-conf: $(sysconfdir)
40 -       if [ ! -f $(sysconfdir)/proftpd.conf ] ; then \
41 +install-conf: $(DESTDIR)$(sysconfdir)
42 +       if [ ! -f $(DESTDIR)$(sysconfdir)/proftpd.conf ] ; then \
43           $(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0644 \
44                 $(top_srcdir)/sample-configurations/basic.conf \
45 -               $(sysconfdir)/proftpd.conf ; \
46 +               $(DESTDIR)$(sysconfdir)/proftpd.conf ; \
47         fi
48  
49 -install-man: $(mandir) $(mandir)/man1 $(mandir)/man5 $(mandir)/man8
50 -       $(INSTALL_MAN) $(top_srcdir)/src/proftpd.8 $(mandir)/man8
51 -       $(INSTALL_MAN) $(top_srcdir)/src/ftpshut.8 $(mandir)/man8
52 -       $(INSTALL_MAN) $(top_srcdir)/src/ftpwho.1 $(mandir)/man1
53 -       $(INSTALL_MAN) $(top_srcdir)/src/ftpcount.1 $(mandir)/man1
54 -       $(INSTALL_MAN) $(top_srcdir)/src/xferlog.5 $(mandir)/man5
55 +install-man: $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8
56 +       $(INSTALL_MAN) $(top_srcdir)/src/proftpd.8 $(DESTDIR)$(mandir)/man8
57 +       $(INSTALL_MAN) $(top_srcdir)/src/ftpshut.8 $(DESTDIR)$(mandir)/man8
58 +       $(INSTALL_MAN) $(top_srcdir)/src/ftpwho.1 $(DESTDIR)$(mandir)/man1
59 +       $(INSTALL_MAN) $(top_srcdir)/src/ftpcount.1 $(DESTDIR)$(mandir)/man1
60 +       $(INSTALL_MAN) $(top_srcdir)/src/xferlog.5 $(DESTDIR)$(mandir)/man5
61  
62  install-all: install-proftpd install-utils install-conf install-man
63  
This page took 0.049991 seconds and 3 git commands to generate.