<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>Not really?<br /><br />The bigger issue here is that the "./configure" is not re-locatable.<br />So, no workflow like "mkdir xymon-build; cd xymon-build; ../xymon-code/configure; ..."<br />This means that you really ought to "svn export" your check-in into your working directory.<br /><br />Release tarballs already do this.</p>
<p>The better fix is to get autotools to define $(INSTALL) program (or just skip it and use "install" command) and refactor<br />the individual targets to do this instead of "cp -fr" and "chmod/chown". This example bypasses checks for PKGBUILD, which could in turn be implemented as a conditional unset of $(INSTALL_ARGS) ifndef PKGBUILD.</p>
<p>Example:<br />Index: web/Makefile<br />===================================================================<br />--- web/Makefile    (revision 7314)<br />+++ web/Makefile    (working copy)<br />@@ -272,28 +272,21 @@<br /> install: install-bin install-cgi install-man<br /> <br /> install-bin:<br />+INSTALL_ARGS = ""<br /> ifndef PKGBUILD<br />-    chown $(XYMONUSER) $(PROGRAMS)<br />-    chgrp `$(IDTOOL) -g $(XYMONUSER)` $(PROGRAMS)<br />-    chmod 755 $(PROGRAMS)<br />+INSTALL_ARGS = "-m 755 -o $(XYMONUSER) -g $(XYMONUSER)"<br /> endif<br />-    cp -fp $(PROGRAMS) $(INSTALLROOT)$(INSTALLBINDIR)/<br />+    install $(INSTALL_ARGS) \<br />+        $(PROGRAMS) $(INSTALLROOT)$(INSTALLBINDIR)/<br />+</p>
<p><br />Your other option is to replace "cp -fr" and "chmod/chown" invocation with invocations of "install".</p>
<p>On 2013-11-02 12:52, Steve Coile wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Downloaded <em>xymon-4.3.12.tar.gz</em>, unpacked it, checked it in to SVN, <em>./configure</em>, <em>make</em>, <em>make install</em>, tried to check-in resulting installation, found copies of <em>.svn</em> directories from the source tree under the installed <em>server/www/help/manpages</em>.  This strikes me as a bug, no?<br clear="all" />
<div>
<div> </div>
-- 
<div><strong>Steve Coile<br /></strong>Senior Network and Systems Engineer, <a href="http://www.mcclatchyinteractive.com/">McClatchy Interactive</a>
<div><span style="font-size: xx-small;">Office: 919-861-1247 | Mobile: 919-622-5369 | Fax: 919-861-1300</span></div>
</div>
</div>
</div>
<br />
<pre>_______________________________________________
Xymon mailing list
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</body></html>