<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>debian/rules</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,8 +2,8 @@
 
 
 PREFIX             = @prefix@
-ETCDIR             = $(DESTDIR)@sysconfdir@
-VARDIR             = $(DESTDIR)@localstatedir@
+ETCDIR             = $(DESTDIR)/etc
+VARDIR             = $(DESTDIR)/var
 INSTALLPREFIX      = $(DESTDIR)$(PREFIX)
 
 ERL=@ERL@</diff>
      <filename>include.mk.in</filename>
    </modified>
    <modified>
      <diff>@@ -19,30 +19,9 @@ cat yaws.template | \
 
 chmod +x ${installprefix}/bin/yaws
 
-
-
-
 install -d ${installprefix}/lib/yaws/examples/ebin
 install -d ${installprefix}/lib/yaws/examples/include
 
-if [ -f ${etcdir}/yaws.conf ]; then
-   target=${etcdir}/yaws.conf.template
-else
-   target=${etcdir}/yaws.conf
-fi
-echo &quot;--- Writing config file to ${target}&quot;
-
-
-cat yaws.conf.template | \
-    ./Subst %yawsdir% ${prefix}/lib/yaws | \
-    ./Subst %logdir% /var/log/yaws | \
-    ./Subst %host% `hostname` | \
-    ./Subst %port% 80 | \
-    ./Subst %docroot% ${vardir}/yaws/www | \
-    ./Subst %certdir% ${etcdir} | \
-    ./Subst %sslport% 443 &gt; ${target}
-
-
 if [ -f /etc/gentoo-release ]; then
     install -d  ${etcdir}/init.d/
     install -d ${etcdir}/conf.d/</diff>
      <filename>scripts/Install</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 include ../include.mk
 
 
-all debug:	../bin/yaws
+all debug:	../bin/yaws yaws.conf
 
 ../bin/yaws:	yaws.template
 	cat yaws.template | \
@@ -31,16 +31,17 @@ local_install:	../bin/yaws
 	cp ../bin/yaws $$HOME/bin/yaws; \
 	echo &quot;--- Installed  $$HOME/bin/yaws&quot;
 
+yaws.conf:
+	echo PREFIX is $(PREFIX)
+	cat yaws.conf.template | ./Subst %yawsdir% $(PREFIX)/lib/yaws | ./Subst %logdir% /var/log/yaws | ./Subst %host% `hostname` | ./Subst %port% 80 | ./Subst %docroot% $(VARDIR)/yaws/www | ./Subst %certdir% $(ETCDIR) | ./Subst %sslport% 443 &gt; yaws.conf
+
 clean:
 	rm -f ../bin/yaws
 
 install:
 	-rm -rf /tmp/yaws 2&gt; /dev/null
 	sh ./Install $(PREFIX) $(INSTALLPREFIX) &quot;$(ERL)&quot; \
-		&quot;$(WERL)&quot; $(ETCDIR) $(VARDIR)
+		&quot;$(WERL)&quot; /etc/ /var/
 	@cp ../ssl/yaws-cert.pem $(ETCDIR)
 	@cp ../ssl/yaws-key.pem $(ETCDIR)
-
-
-
-
+	cp yaws.conf $(prefix)/etc/
\ No newline at end of file</diff>
      <filename>scripts/Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -64,12 +64,15 @@ install: all docsinstall
 	install -d $(INSTALLPREFIX)/lib/yaws/ebin
 	install -d $(VARDIR)/log/yaws
 	install -d $(VARDIR)/yaws/ebin
-	(cd ..; tar cf - ebin ) | (cd $(INSTALLPREFIX)/lib/yaws; tar xf - )
-	(cd ..; tar cf - include ) | (cd $(INSTALLPREFIX)/lib/yaws; tar xf - )
+	cp -r ../ebin/* $(INSTALLPREFIX)/lib/yaws/
+	cp -r ../include/* $(INSTALLPREFIX)/lib/yaws/
+#	(cd ..; tar cf - ebin ) | (cd $(INSTALLPREFIX)/lib/yaws; tar xf - )
+#	(cd ..; tar cf - include ) | (cd $(INSTALLPREFIX)/lib/yaws; tar xf - )
 
 docsinstall:
 	install -d $(VARDIR)/yaws/www
-	(cd ..; tar cf - www ) | (cd $(VARDIR)/yaws; tar xf - )
+	cp -r ../www/* $(VARDIR)/yaws
+	#(cd ..; tar cf - www ) | (cd $(VARDIR)/yaws; tar xf - )
 
 
 </diff>
      <filename>src/Makefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>scripts/yaws.conf</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>b8795d6e42197df608213201e1f656928d324ec9</id>
    </parent>
  </parents>
  <author>
    <name>Claes Wikstrom</name>
    <email>klacke@hyber.org</email>
  </author>
  <url>http://github.com/klacke/yaws/commit/5d32ac8683e587d1c190721b3ec10d0985e947df</url>
  <id>5d32ac8683e587d1c190721b3ec10d0985e947df</id>
  <committed-date>2004-05-24T06:37:04-07:00</committed-date>
  <authored-date>2004-05-24T06:37:04-07:00</authored-date>
  <message>debian patch from David Welton applied


git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@685 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52</message>
  <tree>e2309e718604e3d657c73302b7ef09353cd16091</tree>
  <committer>
    <name>Claes Wikstrom</name>
    <email>klacke@hyber.org</email>
  </committer>
</commit>
