$NetBSD: patch-aa,v 1.8 2009/08/23 18:56:34 hasso Exp $ --- Makefile.in.orig 2009-07-08 16:37:14 +0200 +++ Makefile.in 2009-07-20 00:38:41 +0200 @@ -865,7 +865,7 @@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ -localedir = @localedir@ +localedir = @prefix@/share/locale localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ ltdl_LIBOBJS = @ltdl_LIBOBJS@ @@ -1525,71 +1525,13 @@ # Spool directory for report saving is mode install-data-local: - $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_SPOOL_DIR); - $(INSTALL) -d -m 755 $(DESTDIR)$(PRELUDE_CONFIG_DIR); - $(INSTALL) -d -m 755 $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; - $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_CONFIG_DIR)/profile; - @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf; then \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf already exist..."; \ - echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf-dist"; \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - $(INSTALL) -m 644 $(top_builddir)/client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf-dist; \ - else \ - $(INSTALL) -m 644 $(top_builddir)/client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ - fi - - @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf; then \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf already exist..."; \ - echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf-dist"; \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - $(INSTALL) -m 644 $(top_builddir)/global.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf-dist; \ - else \ - $(INSTALL) -m 644 $(top_builddir)/global.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ - fi - - @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf; then \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf already exist..."; \ - echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf-dist"; \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - $(INSTALL) -m 644 $(top_builddir)/idmef-client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf-dist;\ - else \ - $(INSTALL) -m 644 $(top_builddir)/idmef-client.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ - fi - - @if test -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf; then \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - echo "$(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf already exist..."; \ - echo "Installing default configuration in $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf-dist"; \ - echo; \ - echo "********************************************************************************"; \ - echo; \ - $(INSTALL) -m 644 $(top_srcdir)/tls.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf-dist; \ - else \ - $(INSTALL) -m 644 $(top_srcdir)/tls.conf $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default; \ - fi + $(INSTALL) -d -m 711 $(DESTDIR)$(PRELUDE_SPOOL_DIR) + $(BSD_INSTALL_DATA) $(top_srcdir)/client.conf ${DESTDIR}@EGDIR@ + $(BSD_INSTALL_DATA) $(top_srcdir)/global.conf ${DESTDIR}@EGDIR@ + $(BSD_INSTALL_DATA) $(top_srcdir)/idmef-client.conf ${DESTDIR}@EGDIR@ + $(BSD_INSTALL_DATA) $(top_srcdir)/tls.conf ${DESTDIR}@EGDIR@ uninstall-local: - rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/client.conf - rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/global.conf - rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/idmef-client.conf - rm -f $(DESTDIR)$(PRELUDE_CONFIG_DIR)/default/tls.conf dist-hook: @if test -d "$(srcdir)/.git"; then \