File htp-destdir.patch of Package htp
--- Makefile.in.orig 2006-12-18 12:16:27.000000000 +0100 +++ Makefile.in 2006-12-18 12:24:46.000000000 +0100 @@ -1,6 +1,8 @@ +DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ +sbindir = @sbindir@ mandir = @mandir@ sysconfdir = @sysconfdir@ datadir = @datadir@ @@ -35,22 +37,17 @@ rm -f Makefile config.h config.status config.log htpd.init install: all - -$(INSTALL) -d $(bindir) - -$(INSTALL) -d $(mandir) - -$(INSTALL) -d $(sysconfdir) - -$(INSTALL) -d $(mandir)/man5 - -$(INSTALL) -d $(mandir)/man8 - -$(INSTALL) -d $(localstatedir) - -$(INSTALL) -d $(localstatedir)/run - $(INSTALL) -m 755 htpd$(EXEEXT) $(bindir)/htpd$(EXEEXT) - $(INSTALL) -m 755 htpdate$(EXEEXT) $(bindir)/htpdate$(EXEEXT) - $(INSTALL) -m 644 htpd.8 $(mandir)/man8/htpd.8 - $(INSTALL) -m 644 htpdate.8 $(mandir)/man8/htpdate.8 - $(INSTALL) -m 644 htpd.conf.5 $(mandir)/man5/htpdate.conf.5 - @if [ -f "$(sysconfdir)/htpd.conf" ]; then \ - echo $(INSTALL) -m 644 htpd.conf $(sysconfdir)/htpd.conf.dist; \ - $(INSTALL) -m 644 htpd.conf $(sysconfdir)/htpd.conf.dist; \ - else \ - echo $(INSTALL) -m 644 htpd.conf $(sysconfdir)/htpd.conf; \ - $(INSTALL) -m 644 htpd.conf $(sysconfdir)/htpd.conf; \ - fi + -$(INSTALL) -d $(DESTDIR)$(bindir) + -$(INSTALL) -d $(DESTDIR)$(sbindir) + -$(INSTALL) -d $(DESTDIR)$(mandir) + -$(INSTALL) -d $(DESTDIR)$(sysconfdir) + -$(INSTALL) -d $(DESTDIR)$(mandir)/man5 + -$(INSTALL) -d $(DESTDIR)$(mandir)/man8 + -$(INSTALL) -d $(DESTDIR)$(localstatedir) + -$(INSTALL) -d $(DESTDIR)$(localstatedir)/run + $(INSTALL) -m 755 htpd$(EXEEXT) $(DESTDIR)$(sbindir)/htpd$(EXEEXT) + $(INSTALL) -m 755 htpdate$(EXEEXT) $(DESTDIR)$(bindir)/htpdate$(EXEEXT) + $(INSTALL) -m 644 htpd.8 $(DESTDIR)$(mandir)/man8/htpd.8 + $(INSTALL) -m 644 htpdate.8 $(DESTDIR)$(mandir)/man8/htpdate.8 + $(INSTALL) -m 644 htpd.conf.5 $(DESTDIR)$(mandir)/man5/htpd.conf.5 + $(INSTALL) -m 644 htpd.conf $(DESTDIR)$(sysconfdir)/htpd.conf; \