$NetBSD: patch-ah,v 1.8 2010/03/09 07:06:00 adam Exp $ --- src/wx-console/Makefile.in.orig 2010-02-24 15:33:48.000000000 +0000 +++ src/wx-console/Makefile.in @@ -81,7 +81,7 @@ bwx-console.app: bwx-console mv bwx-console bwx-console.app/Contents/MacOS/bwx-console cp bwx-console.conf /Library/Preferences/org.bacula.wxconsole.conf -bwx-console: Makefile $(CONSOBJS) @WIN32@ ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) +bwx-console: Makefile $(CONSOBJS) @WIN32@ $(LIBTOOL_LINK) $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ -L../lib $(CONS_LDFLAGS) \ -lbaccfg -lbac $(LIBS) $(OPENSSL_LIBS) @@ -114,14 +114,14 @@ install: all fi $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bwx-console $(DESTDIR)$(sbindir)/bwx-console @srcconf=bwx-console.conf; \ - if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ + if test -f ${DESTDIR}%%EXAMPLESDIR%%/$$srcconf; then \ destconf=$$srcconf.new; \ echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ else \ destconf=$$srcconf; \ fi; \ - echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ - ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf + echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}%%EXAMPLESDIR%%/$$destconf"; \ + ${INSTALL_CONFIG} $$srcconf ${DESTDIR}%%EXAMPLESDIR%%/$$destconf uninstall: (cd $(DESTDIR)$(sbindir); $(RMF) bwx-console)