summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--.gitignore15
-rw-r--r--Makefile.am4
-rw-r--r--NEWS5
-rw-r--r--NEWS.xml11
-rw-r--r--NEWS.xsl24
-rw-r--r--configure.ac10
6 files changed, 60 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a4afc94
--- a/dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+Makefile
+Makefile.in
+aclocal.m4
+autom4te.cache
+config.h
+config.h.in
+config.log
+configure
+config.status
+stamp-h1
+depcomp
+missing
+install-sh
+INSTALL
+NEWS
diff --git a/Makefile.am b/Makefile.am
index 9f0d419..a7ad457 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,5 @@
SUBDIRS = src man
+
+all-local: NEWS
+NEWS: NEWS.xsl NEWS.xml
+ ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml
diff --git a/NEWS b/NEWS
deleted file mode 100644
index b6a3774..0000000
--- a/NEWS
+++ b/dev/null
@@ -1,5 +0,0 @@
-0.1
- - initgroups() before executing RestartCommand.
- - more civilized restart.
-0.0
- - Initial release.
diff --git a/NEWS.xml b/NEWS.xml
new file mode 100644
index 0000000..30c0543
--- a/dev/null
+++ b/NEWS.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="us-ascii"?>
+<news>
+ <version version="0.1" date="July 21st, 2004">
+ <ni><kbd>initgroups()</kbd> called before executing <kbd>RestartCommand</kbd></ni>
+ <ni>more civilized way of restarting on <kbd>SIGHUP</kbd></ni>
+ <ni>minor changes to build process</ni>
+ </version>
+ <version version="0.0" date="July 11th, 2004">
+ <ni>Initial release</ni>
+ </version>
+</news>
diff --git a/NEWS.xsl b/NEWS.xsl
new file mode 100644
index 0000000..7c71307
--- a/dev/null
+++ b/NEWS.xsl
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="us-ascii"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+ <xsl:output
+ method="text"
+ encoding="us-ascii"
+ media-type="text/plain" />
+
+ <xsl:template match="news">
+ <xsl:apply-templates/>
+ </xsl:template>
+ <xsl:template match="version">
+ <xsl:value-of select="concat(@version,' (',@date,')&#xA;')"/>
+ <xsl:apply-templates/>
+ </xsl:template>
+ <xsl:template match="ni">
+ <xsl:text> - </xsl:text>
+ <xsl:apply-templates mode="text"/>
+ <xsl:text>&#xA;</xsl:text>
+ </xsl:template>
+ <xsl:template match="*|text()"/>
+
+</xsl:stylesheet>
diff --git a/configure.ac b/configure.ac
index 8521a34..7fe64d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,15 +17,17 @@ AC_TYPE_PID_T
AC_FUNC_FORK
AC_HEADER_STDC
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([dup2 strtol])
+AC_CHECK_FUNCS([dup2 memmove strtol])
AC_CHECK_FUNC([getopt_long],[
AC_DEFINE([HAVE_GETOPT_LONG],[1],[Define to make use of getopt_long])
- AC_SUBST(HAVE_GETOPT_LONG,1)
+ AC_SUBST([HAVE_GETOPT_LONG],1)
],[
- AC_SUBST(HAVE_GETOPT_LONG,0)
+ AC_SUBST([HAVE_GETOPT_LONG],0)
])
-PKG_CHECK_MODULES(DOTCONF,[dotconf],,[
+AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
+
+PKG_CHECK_MODULES([DOTCONF],[dotconf],,[
AC_MSG_ERROR([no dotconf library found])
])