$NetBSD: patch-homedir_Makefile.in,v 1.2 2017/05/28 11:50:07 maya Exp $ Install configuration files into PKGSRC_DCC_EGDIR. The path in HD is only used during installation and should therefore not end up in any of the installed files. Also, skip make-dcc_conf (there is nothing to merge) and fix-map (moved into rc-files as start_precmd check). --- homedir/Makefile.in.orig 2017-01-16 06:22:01.000000000 +0000 +++ homedir/Makefile.in @@ -39,7 +39,7 @@ DEPTH =.. HINST =$(INSTALL) -c $(SET_DCCOWN) -HD =@installroot@@prefix@ +HD =@installroot@$(PKGSRC_DCC_EGDIR) MAP =$(HD)/map@configsuffix@ MAPTXT =$(HD)/map.txt@configsuffix@ IDS =$(HD)/ids@configsuffix@ @@ -55,14 +55,12 @@ SSCRIPTS=fix-map DCC_BINDIR=@installroot@@libexecdir@ @INCLUDE_INC@ -install:$(HD) $(HD)/log +install:$(HD) for NM in $(SSCRIPTS); do $(BININSTALL) $$NM $(DCC_BINDIR)/$$NM;done - sh make-dcc_conf -F '@configsuffix@' -h $(HD) - for NM in $(SIMPLE); do\ + for NM in $(SIMPLE) $(GENFILES); do\ if test -n '@configsuffix@' -o ! -f $(HD)/$$NM; then\ $(HINST) -m 644 $$NM $(HD)/$${NM}@configsuffix@; fi; done if test -s $(PFILE); then $(HINST) -m 600 $(PFILE) $(HD)/$(PFILE); fi - sh fix-map -n '@configsuffix@' -c $(CDCC) -h $(HD) -i $(IDS) -m $(MAP) -t $(MAPTXT) for NM in $(SIMPLE) $(GENFILES); do\ if test -n '@configsuffix@' -a ! -s $(HD)/$$NM; then\ cp -p $(HD)/$${NM}@configsuffix@ $(HD)/$${NM}; fi; done