--- thttpd-2.25b.orig/Makefile.in 2005-06-29 20:52:54.000000000 +0300 +++ thttpd-2.25b/Makefile.in 2014-07-19 02:23:34.709786163 +0300 @@ -34,12 +34,12 @@ # Pathname of directory to install the man page. MANDIR = @mandir@ # Pathname of directory to install the CGI programs. -WEBDIR = $(prefix)/www +WEBDIR = $(prefix)/lib/thttpd # CONFIGURE: The group that the web directory belongs to. This is so that # the makeweb program can be installed set-group-id to that group, and make # subdirectories. If you're not going to use makeweb, ignore this. -WEBGROUP = www +WEBGROUP = www-data # CONFIGURE: Directory for CGI executables. CGIBINDIR = $(WEBDIR)/cgi-bin @@ -121,9 +121,9 @@ cd $$i ; \ pwd ; \ $(MAKE) $(MFLAGS) \ - WEBDIR=$(WEBDIR) \ - CGIBINDIR=$(CGIBINDIR) \ - MANDIR=$(MANDIR) \ + WEBDIR=$(DESTDIR)$(WEBDIR) \ + CGIBINDIR=$(DESTDIR)$(CGIBINDIR) \ + MANDIR=$(DESTDIR)$(MANDIR) \ WEBGROUP=$(WEBGROUP) \ install \ ) ; done --- thttpd-2.25b.orig/extras/Makefile.in 2005-06-29 20:53:20.000000000 +0300 +++ thttpd-2.25b/extras/Makefile.in 2014-07-19 02:25:58.965792130 +0300 @@ -66,12 +66,13 @@ install: all - rm -f $(BINDIR)/makeweb $(BINDIR)/htpasswd $(BINDIR)/syslogtocern - cp makeweb $(BINDIR)/makeweb - chgrp $(WEBGROUP) $(BINDIR)/makeweb - chmod 2755 $(BINDIR)/makeweb - cp htpasswd $(BINDIR)/htpasswd - cp syslogtocern $(BINDIR)/syslogtocern + rm -f $(DESTDIR)$(BINDIR)/makeweb $(DESTDIR)$(BINDIR)/htpasswd $(DESTDIR)$(BINDIR)/syslogtocern + cp makeweb $(DESTDIR)$(BINDIR)/makeweb + chgrp $(WEBGROUP) $(DESTDIR)$(BINDIR)/makeweb + chmod 2755 $(DESTDIR)$(BINDIR)/makeweb + cp htpasswd $(DESTDIR)$(BINDIR)/htpasswd + cp syslogtocern $(DESTDIR)$(BINDIR)/syslogtocern + -mkdir -p $(MANDIR)/man1 rm -f $(MANDIR)/man1/makeweb.1 cp makeweb.1 $(MANDIR)/man1/makeweb.1 rm -f $(MANDIR)/man1/htpasswd.1