aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp42-server/files/patch-server__Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'net/isc-dhcp42-server/files/patch-server__Makefile.am')
-rw-r--r--net/isc-dhcp42-server/files/patch-server__Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/isc-dhcp42-server/files/patch-server__Makefile.am b/net/isc-dhcp42-server/files/patch-server__Makefile.am
new file mode 100644
index 000000000000..d92124b72909
--- /dev/null
+++ b/net/isc-dhcp42-server/files/patch-server__Makefile.am
@@ -0,0 +1,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