Files
pkgsrc-ng/net/jftpgw/patches/patch-aa
2013-09-26 17:14:40 +02:00

22 lines
1.3 KiB
Plaintext

$NetBSD: patch-aa,v 1.2 2006/04/10 09:31:01 martti Exp $
--- Makefile.in.orig 2004-06-04 13:29:12.000000000 +0300
+++ Makefile.in 2006-04-10 12:15:38.000000000 +0300
@@ -533,11 +533,12 @@
# use mkinstalldirs, not "install -d"
# don't install a list of file. Just one file per install.
# if you have more of them, create a subdirectory with an extra Makefile
+examplesdir=$(datadir)/examples/jftpgw
+
install-data-local:
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- if test -f $(DESTDIR)$(sysconfdir)/jftpgw.conf; then echo -e "\n\nMoving $(DESTDIR)$(sysconfdir)/jftpgw.conf to $(DESTDIR)$(sysconfdir)/jftpgw.conf.old\n\n"; mv $(DESTDIR)$(sysconfdir)/jftpgw.conf $(DESTDIR)$(sysconfdir)/jftpgw.conf.old; fi
- $(INSTALL_DATA) jftpgw.conf.sample $(DESTDIR)$(sysconfdir)/jftpgw.conf
- $(INSTALL_DATA) jftpgw.conf.sample $(DESTDIR)$(sysconfdir)/jftpgw.conf.sample
+ $(mkinstalldirs) $(DESTDIR)$(examplesdir)
+ if test -f $(DESTDIR)$(sysconfdir)/jftpgw.conf; then echo -e "\n\nMoving $(DESTDIR)$(examplesdir)/jftpgw.conf to $(DESTDIR)$(examplesdir)/jftpgw.conf.old\n\n"; mv $(DESTDIR)$(examplesdir)/jftpgw.conf $(DESTDIR)$(examplesdir)/jftpgw.conf.old; fi
+ $(INSTALL_DATA) jftpgw.conf.sample $(DESTDIR)$(examplesdir)/jftpgw.conf
# remove ALL you have installed in install-data-local or install-exec-local
uninstall-local: