pkgsrc/devel/cvsd/patches/patch-ac
wiz 64dd2849cd Update to 1.0.11:
changes from 1.0.10 to 1.0.11
-----------------------------

* cvsd-buildroot should now install libraries in the same directory structure
  as on the normal filesystem, resulting in better support for 64 bit systems
* other small improvements to cvsd-buildroot, including better error handling
  and not overwriting devices
* small code improvements
2006-05-30 19:24:27 +00:00

40 lines
1.3 KiB
Text

$NetBSD: patch-ac,v 1.2 2006/05/30 19:24:27 wiz Exp $
--- Makefile.in.orig 2006-05-24 20:25:24.000000000 +0000
+++ Makefile.in
@@ -189,6 +189,8 @@ libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
+exampledir = $(prefix)/share/examples/@PACKAGE@
+docdir = $(prefix)/share/doc/@PACKAGE@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
@@ -772,17 +774,19 @@ uninstall-man: uninstall-man5 uninstall-
# install configuration files
-install-data-local: install-configfile install-initscript
+install-data-local: install-configfile install-readme
+
+install-readme:
+ if [ ! -d $(DESTDIR)$(docdir) ]; then \
+ $(mkinstalldirs) $(DESTDIR)$(docdir); \
+ fi
+ $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(docdir)
install-configfile:
if [ ! -d $(DESTDIR)$(sysconfdir)/cvsd ]; then \
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/cvsd;\
- fi
- if [ ! -f $(DESTDIR)$(CONFIGFILE) ]; then \
- $(INSTALL_DATA) $(srcdir)/cvsd.conf-dist $(DESTDIR)$(CONFIGFILE); \
- else \
- echo "$(DESTDIR)$(CONFIGFILE) already exists, install will not overwrite"; \
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir);\
fi
+ $(INSTALL_DATA) $(srcdir)/cvsd.conf-dist $(DESTDIR)$(exampledir)/cvsd.conf.example
install-initscript:
if [ ! -d $(DESTDIR)$(sysconfdir)/init.d ]; then \