openbsd-ports/net/netatalk/stable/patches/patch-config_Makefile_in

31 lines
1.1 KiB
Plaintext

$OpenBSD: patch-config_Makefile_in,v 1.2 2003/08/22 11:18:19 naddy Exp $
--- config/Makefile.in.orig Tue Jun 10 01:58:07 2003
+++ config/Makefile.in Mon Aug 18 11:19:55 2003
@@ -184,7 +184,7 @@ SUFFIXES = .tmpl .
GENFILES = afpd.conf
TMPLFILES = $(foreach file,$(GENFILES),$(file).tmpl)
CONFFILES = AppleVolumes.default AppleVolumes.system \
- atalkd.conf netatalk.conf papd.conf
+ netatalk.conf papd.conf
PAMFILES = netatalk.pamd
@@ -365,7 +365,16 @@ uninstall-am: uninstall-info-am
install-config-files: $(CONFFILES) $(GENFILES)
$(mkinstalldirs) $(DESTDIR)$(pkgconfdir)
- for f in $(CONFFILES) $(GENFILES); do \
+ for f in $(CONFFILES); do \
+ if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(pkgconfdir)/$$f; then \
+ echo "$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir)"; \
+ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(pkgconfdir); \
+ else \
+ echo "not overwriting $$f"; \
+ fi; \
+ done
+
+ for f in $(GENFILES); do \
if test "x$(OVERWRITE_CONFIG)" = "xyes" -o ! -f $(DESTDIR)$(pkgconfdir)/$$f; then \
echo "$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir)"; \
$(INSTALL_DATA) $$f $(DESTDIR)$(pkgconfdir); \