make binary exec path dynamic in scripts referring to it

Everything should just work out of the box without poking.  This change
makes that goal to be yet agian one step closer.  In same go make all
autotools related variable substitutions better.

Requested-by: Martijn van Brummelen <martijn@brumit.nl>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2015-11-25 21:53:29 +00:00
parent c30c122027
commit 2528c4c9d6
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
12 changed files with 45 additions and 13 deletions

34
contrib/dhcpd-pools.cgi.in Executable file
View file

@ -0,0 +1,34 @@
#!@SHELL@
#
# Simple CGI for dhcpd-pools.
echo Content-type: text/html
echo
# To make lease table more fancy use CSS definition something
# like this in your style.css file.
#
# TABLE.dhcpd-pools {
# border-style : groove;
# margin-left : 2px;
# foo : bar;
# }
#
# http://www.w3.org/TR/REC-CSS2/tables.html
#
# And uncomment this line.
#
#echo <link type="text/css" rel="stylesheet" href="/style.css" />
echo "<html>"
echo "<body>"
echo "<p>This was situation at "
date
echo "</p>"
@bindir@/dhcpd-pools --format html
echo "</body>"
echo "</html>"
# EOF