<div dir="ltr">Hi,<br><br>I&#39;ve taken a small bit of time to initiate this work.<br>There is now:<br>- an m4 macro to detect the system (linux only ATM, but simple to complete)<br>- a set of &quot;make package&quot; targets throughout the tree (limited to debian ATM)<br>
<br>The remaining tasks on this specific point are:<br>- m4 macro completion to handle all the supported platforms (at least the ones that have files in the packaging/ dir)<br>- update and complete the packaging/ dir with the matching file (debian, redhat, gentoo, ...) from the distributors, possibly using the existing files for scripts/ dir<br>
- complete the prerequisite stage of the target (ensure the build env. is ok)<br><br>On my side, and on the packaging topic, I still have to complete the doc/packaging.txt file (not that far!).<br><br>cheers,<br>Arnaud<br>
<br><div class="gmail_quote">2008/7/17 Arnaud Quette &lt;<a href="mailto:aquette@alioth.debian.org">aquette@alioth.debian.org</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Author: aquette<br>
Date: Thu Jul 17 14:27:24 2008<br>
New Revision: 1515<br>
<br>
Log:<br>
make-package and packaging related branch<br>
<br>
<br>
Added:<br>
 &nbsp; branches/trunk-make-package/<br>
 &nbsp; &nbsp; &nbsp;- copied from r1505, /trunk/<br>
 &nbsp; branches/trunk-make-package/ChangeLog<br>
 &nbsp; &nbsp; &nbsp;- copied, changed from r1511, /trunk/ChangeLog<br>
 &nbsp; branches/trunk-make-package/clients/upsclient.c<br>
 &nbsp; &nbsp; &nbsp;- copied unchanged from r1507, /trunk/clients/upsclient.c<br>
 &nbsp; branches/trunk-make-package/<a href="http://configure.in" target="_blank">configure.in</a><br>
 &nbsp; &nbsp; &nbsp;- copied, changed from r1511, /trunk/<a href="http://configure.in" target="_blank">configure.in</a><br>
 &nbsp; branches/trunk-make-package/data/driver.list<br>
 &nbsp; &nbsp; &nbsp;- copied, changed from r1506, /trunk/data/driver.list<br>
 &nbsp; branches/trunk-make-package/drivers/<br>
 &nbsp; &nbsp; &nbsp;- copied from r1510, /trunk/drivers/<br>
 &nbsp; branches/trunk-make-package/drivers/main-hal.c<br>
 &nbsp; &nbsp; &nbsp;- copied unchanged from r1511, /trunk/drivers/main-hal.c<br>
 &nbsp; branches/trunk-make-package/m4/nut_check_libhal.m4<br>
 &nbsp; &nbsp; &nbsp;- copied unchanged from r1511, /trunk/m4/nut_check_libhal.m4<br>
 &nbsp; branches/trunk-make-package/packaging/debian/po/<br>
 &nbsp; &nbsp; &nbsp;- copied from r1505, /branches/Testing/packaging/debian/po/<br>
 &nbsp; branches/trunk-make-package/scripts/<br>
 &nbsp; &nbsp; &nbsp;- copied from r1510, /trunk/scripts/<br>
Modified:<br>
 &nbsp; branches/trunk-make-package/Makefile.am<br>
 &nbsp; branches/trunk-make-package/docs/macros.txt<br>
 &nbsp; branches/trunk-make-package/drivers/libshut.c<br>
 &nbsp; branches/trunk-make-package/packaging/Makefile.am<br>
 &nbsp; branches/trunk-make-package/packaging/debian/Makefile.am<br>
<br>
Modified: branches/trunk-make-package/Makefile.am<br>
==============================================================================<br>
--- /trunk/Makefile.am &nbsp;(original)<br>
+++ branches/trunk-make-package/Makefile.am &nbsp; &nbsp; Thu Jul 17 14:27:24 2008<br>
@@ -26,6 +26,10 @@<br>
&nbsp;distcheck-light:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;$(MAKE) $(AM_MAKEFLAGS) DISTCHECK_FLAGS=&quot;$(DISTCHECK_LIGHT_FLAGS)&quot; distcheck<br>
<br>
+package:<br>
+ &nbsp; &nbsp; &nbsp; @echo &quot;Creating package(s) for $(OS_NAME)&quot;<br>
+ &nbsp; &nbsp; &nbsp; cd packaging; $(MAKE) $(AM_MAKEFLAGS) $(OS_NAME)<br>
+<br>
&nbsp;# ----------------------------------------------------------------------<br>
&nbsp;# targets from old build system (pre-automake).<br>
&nbsp;# supported for a period of time for backward &quot;compatibility&quot;.<br>
<br>
Modified: branches/trunk-make-package/docs/macros.txt<br>
==============================================================================<br>
--- /trunk/docs/macros.txt &nbsp; &nbsp; &nbsp;(original)<br>
+++ branches/trunk-make-package/docs/macros.txt Thu Jul 17 14:27:24 2008<br>
@@ -2,6 +2,7 @@<br>
&nbsp;File: macros.txt<br>
&nbsp;Date: 27 December 2006<br>
&nbsp;Auth: Peter Selinger &lt;<a href="mailto:selinger@users.sourceforge.net">selinger@users.sourceforge.net</a>&gt;<br>
+ &nbsp; &nbsp; &nbsp;Arnaud Quette &lt;<a href="mailto:aquette.dev@gmail.com">aquette.dev@gmail.com</a>&gt;<br>
<br>
&nbsp;The following NUT-specific autoconf macros are defined in the m4/<br>
&nbsp;directory.<br>
@@ -43,6 +44,11 @@<br>
 &nbsp; &nbsp;if all the required features are present. Set nut_have_ipv6=no<br>
 &nbsp; &nbsp;otherwise.<br>
<br>
+ - Macro: NUT_CHECK_OS<br>
+ &nbsp; Check for the exact system name and type. This is only used at the<br>
+ &nbsp; moment to determine the packaging rule to be used through the<br>
+ &nbsp; OS_NAME variable.<br>
+<br>
 &nbsp;- Macro: NUT_REPORT_FEATURE(FEATURE, VALUE)<br>
 &nbsp; &nbsp;Schedule a line for the end-of-configuration feature summary. &nbsp;The<br>
 &nbsp; &nbsp;FEATURE is a descriptive string such that the sentence &quot;Checking<br>
<br>
Modified: branches/trunk-make-package/drivers/libshut.c<br>
==============================================================================<br>
--- /trunk/drivers/libshut.c &nbsp; &nbsp;(original)<br>
+++ branches/trunk-make-package/drivers/libshut.c &nbsp; &nbsp; &nbsp; Thu Jul 17 14:27:24 2008<br>
@@ -911,6 +911,10 @@<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case -3:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* FIXME: notification caught =&gt; to be processed */<br>
+<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* Send a NACK for the moment, to get a resend from the UPS */<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ser_send_char(upsfd, SHUT_NOK);<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Retry++;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
Modified: branches/trunk-make-package/packaging/Makefile.am<br>
==============================================================================<br>
--- /trunk/packaging/Makefile.am &nbsp; &nbsp; &nbsp; &nbsp;(original)<br>
+++ branches/trunk-make-package/packaging/Makefile.am &nbsp; Thu Jul 17 14:27:24 2008<br>
@@ -1,2 +1,8 @@<br>
+ubuntu:<br>
+ &nbsp; &nbsp; &nbsp; cd debian; $(MAKE) $(AM_MAKEFLAGS) package<br>
+<br>
+debian:<br>
+ &nbsp; &nbsp; &nbsp; cd debian; $(MAKE) $(AM_MAKEFLAGS) package<br>
+<br>
&nbsp;SUBDIRS = debian mandriva redhat opensuse generic-rpm<br>
&nbsp;EXTRA_DIST = README<br>
<br>
Modified: branches/trunk-make-package/packaging/debian/Makefile.am<br>
==============================================================================<br>
--- /trunk/packaging/debian/Makefile.am (original)<br>
+++ branches/trunk-make-package/packaging/debian/Makefile.am &nbsp; &nbsp;Thu Jul 17 14:27:24 2008<br>
@@ -1,3 +1,7 @@<br>
+# FIXME: meet the build prereq (build-essential devscripts) + orig.tgz (dist + ln -sf)!<br>
+package:<br>
+ &nbsp; &nbsp; &nbsp; cd $(top_srcdir); ln -sf packaging/debian &amp;&amp; debuild -us -uc<br>
+<br>
&nbsp;# Please keep this file sorted, with one file entry per line. This makes it<br>
&nbsp;# easier to track changes.<br>
&nbsp;EXTRA_DIST = \<br>
<br>
_______________________________________________<br>
nut-commits mailing list<br>
<a href="mailto:nut-commits@lists.alioth.debian.org">nut-commits@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-commits" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-commits</a><br>
</blockquote></div><br></div>