aboutsummaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp42-server/files/patch-server__Makefile.am
blob: d92124b729099f34e3c8ba1da73a491a388a8964 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- server/Makefile.am.orig 2010-10-24 11:42:38.419499721 -0400
+++ server/Makefile.am  2010-10-24 11:44:01.489499357 -0400
@@ -1,6 +1,7 @@
 AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"'
 
 dist_sysconf_DATA = dhcpd.conf
+dist_sysconfDATA_INSTALL = $(INSTALL_DATA)
 sbin_PROGRAMS = dhcpd
 dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \
        omapi.c mdb.c stables.c salloc.c ddns.c dhcpleasequery.c \
@@ -13,3 +14,12 @@
 man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
 EXTRA_DIST = $(man_MANS)
 
+install-dist_sysconfDATA: $(dist_sysconf_DATA)
+   @$(NORMAL_INSTALL)
+   test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
+   @list='$(dist_sysconf_DATA)'; for p in $$list; do \
+   if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+       $(am__strip_dir) \
+       echo " $(dist_sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f.sample'"; \
+       $(dist_sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f.sample"; \
+   done