diff options
Diffstat (limited to 'ldapaddressbook')
| -rw-r--r-- | ldapaddressbook/.gitignore | 1 | ||||
| -rw-r--r-- | ldapaddressbook/Makefile.am | 11 | ||||
| -rw-r--r-- | ldapaddressbook/configure.ac | 2 | ||||
| -rw-r--r-- | ldapaddressbook/ldapaddressbook.dist | 16 | ||||
| -rw-r--r-- | ldapaddressbook/ldapaddressbook.dist.git | 15 |
5 files changed, 29 insertions, 16 deletions
diff --git a/ldapaddressbook/.gitignore b/ldapaddressbook/.gitignore index 66ba562..7d0bda8 100644 --- a/ldapaddressbook/.gitignore +++ b/ldapaddressbook/.gitignore @@ -1 +1,2 @@ +/ldapaddressbook.dist /ldapsearch diff --git a/ldapaddressbook/Makefile.am b/ldapaddressbook/Makefile.am index 450375a..c8e99b6 100644 --- a/ldapaddressbook/Makefile.am +++ b/ldapaddressbook/Makefile.am @@ -10,6 +10,17 @@ noinst_PROGRAMS=ldapsearch libaddressbook_la_SOURCES=abookadd.c abookdel.c abookfind.c abookread.c \ abooksearch.c ldapaddressbook.h +if HAVE_SGML + +GITFILES=ldapaddressbook.dist + +BUILT_SOURCES = $(GITFILES) + +$(GITFILES): %: %.git + perl -p -e 's/\$$Id:[^\$$]*/\$$Id: '"`git log --pretty=format:\"%H\" -n 1 -- $<`-`date +%Y%m%d%H%M%S`/" <$< >$@.tmp + mv -f $@.tmp $@ +endif + if HAVE_OPENLDAP ldapsearch_SOURCES=ldapsearch.c ldapsearch_LDADD=libldapsearch.la diff --git a/ldapaddressbook/configure.ac b/ldapaddressbook/configure.ac index 3741b89..d3f5f46 100644 --- a/ldapaddressbook/configure.ac +++ b/ldapaddressbook/configure.ac @@ -82,6 +82,8 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_SYS_LARGEFILE +AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook) + dnl Checks for library functions. AC_OUTPUT(Makefile) diff --git a/ldapaddressbook/ldapaddressbook.dist b/ldapaddressbook/ldapaddressbook.dist deleted file mode 100644 index 7d176a0..0000000 --- a/ldapaddressbook/ldapaddressbook.dist +++ /dev/null @@ -1,16 +0,0 @@ -##VERSION: $Id:$ -# -# ldapaddressbook created from ldapaddressbook.dist by sysconftool -# -# Do not alter lines that begin with ##, they are used when upgrading -# this configuration. -# -# This is a list of some public LDAP address books. This is a global -# list -- all clients will have this list by default. -# -##NAME: ldapaddressbook:0 - -Bigfoot ldap.bigfoot.com 389 c=US -Infospace ldap.infospace.com 389 c=US -Netscape Netcenter memberdir.netscape.com 389 ou=member_directory,o=netcenter.com ou=people,o=netcenter.com -WhoWhere ldap.whowhere.com 389 c=US diff --git a/ldapaddressbook/ldapaddressbook.dist.git b/ldapaddressbook/ldapaddressbook.dist.git new file mode 100644 index 0000000..a9bb851 --- /dev/null +++ b/ldapaddressbook/ldapaddressbook.dist.git @@ -0,0 +1,15 @@ +##VERSION: $Id:$ +# +# ldapaddressbook created from ldapaddressbook.dist by sysconftool +# +# Do not alter lines that begin with ##, they are used when upgrading +# this configuration. +# +# This is a list of some public LDAP address books. This is a global +# list -- all clients will have this list by default. +# +# Example: +# +# YourOrganizationName<tab>ldap.example.com<tab>ou=member_directory,o=example.com<tab>ou=people,o=example.com +# +##NAME: ldapaddressbook:0 |
