-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autoconf, man page and correct dns compression.
This is now a working package.
- Loading branch information
davidl
committed
May 9, 2006
1 parent
a5fff26
commit 2e76097
Showing
15 changed files
with
254 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# (c) 2006, Quest Software, Inc, All rights reserved. | ||
|
||
AUTOMAKE_OPTIONS= foreign | ||
|
||
VAS_CFLAGS= `$(VASCONFIG) --cflags vas` | ||
VAS_LIBS= `$(VASCONFIG) --libs vas` | ||
|
||
sbin_PROGRAMS = dnsupdate | ||
man_MANS = dnsupdate.8 | ||
|
||
dnsupdate_SOURCES= dnsupdate.c dns.c dnstcp.c \ | ||
dnsdebug.c dnstkey.c dnstsig.c \ | ||
common.h dns.h dnsdebug.h dnstcp.h \ | ||
dnstkey.h dnstsig.h | ||
dnsupdate_LDADD= $(LIBOBJS) | ||
dnsupdate_CFLAGS= $(VAS_CFLAGS) | ||
dnsupdate_LDFLAGS= $(VAS_LIBS) | ||
|
||
dnsupdate.spec: dnsupdate.spec.in | ||
sed -e 's,[@]VERSION[@],$(VERSION),g' < $(srcdir)/dnsupdate.spec.in > $@ | ||
|
||
EXTRA_DIST= dnsupdate.spec dnsupdate.spec.in $(man_MANS) err.h | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
#if HAVE_CONFIG_H | ||
# include <config.h> | ||
#endif | ||
|
||
#if STDC_HEADERS | ||
# include <stdlib.h> | ||
# include <stdio.h> | ||
# include <string.h> | ||
# include <assert.h> | ||
# include <stddef.h> | ||
# include <stdarg.h> | ||
#else | ||
# if !HAVE_MEMCPY | ||
# define memcpy(d, s, n) bcopy(s, d, n) | ||
# endif | ||
#endif | ||
|
||
#if TIME_WITH_SYS_TIME | ||
# include <sys/time.h> | ||
# include <time.h> | ||
#else | ||
# if HAVE_SYS_TIME_H | ||
# include <sys/time.h> | ||
# else | ||
# include <time.h> | ||
# endif | ||
#endif | ||
|
||
#if HAVE_NETDB_H | ||
# include <netdb.h> | ||
#endif | ||
|
||
#if HAVE_UNISTD_H | ||
# include <unistd.h> | ||
#endif | ||
|
||
#if HAVE_SYS_SOCKET_H | ||
# include <sys/socket.h> | ||
#endif | ||
|
||
#if HAVE_ERRNO_H | ||
# include <errno.h> | ||
#endif | ||
|
||
#if !HAVE_SOCKLEN_T | ||
# define socklen_t int | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# (c) 2006 Quest Software, Inc. All rights reserved. | ||
|
||
AC_INIT([dnsupdate], | ||
[1.0.0.]esyscmd(svnversion -n . /trunk || echo 0), | ||
[[email protected]]) | ||
AM_INIT_AUTOMAKE | ||
AC_CONFIG_SRCDIR([dnsupdate.c]) | ||
AC_CONFIG_FILES([Makefile]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
AC_PREFIX_DEFAULT([/opt/quest]) | ||
|
||
AC_PROG_CC | ||
AC_C_CONST | ||
AC_HEADER_STDC | ||
AC_HEADER_TIME | ||
AC_CHECK_HEADERS([netdb.h unistd.h sys/socket.h errno.h netinet/in.h]) | ||
|
||
AC_PATH_PROG([VASCONFIG], [vas-config], [no], [/opt/quest/bin:$PATH]) | ||
if test x"$VASCONFIG" = x"no"; then | ||
AC_MSG_ERROR([vas-config was not found; is the VAS SDK installed?]) | ||
fi | ||
AC_SUBST([VASCONFIG]) | ||
|
||
AC_CHECK_FUNC([getaddrinfo]) | ||
AC_CHECK_FUNC([getopt], [], [AC_LIBOBJ([getopt])]) | ||
AC_CHECK_FUNCS([err errx warn warnx], [], [AC_LIBOBJ([err]) | ||
break]) | ||
AC_SEARCH_LIBS([socket], [socket]) | ||
AC_SEARCH_LIBS([gethostbyname], [nsl]) | ||
|
||
|
||
AC_CHECK_TYPE([socklen_t],[AC_DEFINE([HAVE_SOCKLEN_T],[1],[socklen_t])],,[ | ||
#if HAVE_SYS_SOCKET_H | ||
# include <sys/socket.h> | ||
#endif | ||
]) | ||
|
||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.\" (c) 2006, Quest Software, Inc. All rights reserved. | ||
.TH DNSUPDATE 8 | ||
.SH NAME | ||
dnsupdate \- authenticated DNS update for Active Directory hosts | ||
.SH SYNOPSIS | ||
.B dnsupdate | ||
.RI [\-d\ domain ] | ||
.RI [\-h\ hostname ] | ||
.RI [\-s\ nameserver ] | ||
.RI [\-t\ ttl ] | ||
[\-v] | ||
.I ip-addr | ||
.SH DESCRIPTION | ||
The | ||
.B dnsupdate | ||
tool updates the IP address of an Active Directory DNS entry. | ||
It should be run when the primary interface's IP address is configured | ||
(e.g. from a DHCP hook). | ||
.SS OPTIONS | ||
.TP | ||
.RI \-d\ domain | ||
the Active Directory domain (realm) in which to authenticate, | ||
defaults to the currently joined domain | ||
.TP | ||
.RI \-h\ hostname | ||
the fully qualified hostname entry to update, | ||
defaults to the DNS hostname associated with the current AD computer object | ||
.TP | ||
.RI \-s\ nameserver | ||
the nameserver to perform the dynamic DNS update operation on, | ||
defaults to the nearest domain controller with automatic fallback | ||
.TP | ||
.RI \-t\ ttl | ||
the cache lifetime in seconds to store with the new DNS entry, | ||
defaults to one hour | ||
.TP | ||
\-v | ||
increases the level of verbosity | ||
.SS "EXIT STATUS" | ||
The | ||
.B dnsupdate | ||
tool exits with status 0 only if the update operation failed. | ||
.SH AUTHORS | ||
David Leonard, Quest Software, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.