summaryrefslogtreecommitdiffstats
path: root/net/wide-dhcp/Makefile
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1997-05-30 18:52:45 +0000
committermax <max@FreeBSD.org>1997-05-30 18:52:45 +0000
commit62937724a166298fccd83889d558f3c460fa020a (patch)
treee3f8778787b68370383c2cb0874e87a73ed97b2d /net/wide-dhcp/Makefile
parent043edfde9d7eb57ababba27d18c3d7b6dbe0c523 (diff)
downloadFreeBSD-ports-62937724a166298fccd83889d558f3c460fa020a.zip
FreeBSD-ports-62937724a166298fccd83889d558f3c460fa020a.tar.gz
Let the port's Makefile compress the man pages.
Install docs and sample files into ${PREFIX}/share/{doc,examples}/dhcp respectively. Submitted-by: sanpei@yy.cs.keio.ac.jp
Diffstat (limited to 'net/wide-dhcp/Makefile')
-rw-r--r--net/wide-dhcp/Makefile30
1 files changed, 19 insertions, 11 deletions
diff --git a/net/wide-dhcp/Makefile b/net/wide-dhcp/Makefile
index a2acd4f..8ac329f 100644
--- a/net/wide-dhcp/Makefile
+++ b/net/wide-dhcp/Makefile
@@ -3,7 +3,7 @@
# Date created: 21 November 1995
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
#
-# $Id: Makefile,v 1.8 1997/04/04 02:19:46 brian Exp $
+# $Id: Makefile,v 1.9 1997/05/30 18:38:11 max Exp $
#
DISTNAME= dhcp-1.3beta
@@ -19,24 +19,32 @@ EXTRACT_ONLY= dhcp-1.3beta.tar.gz
IGNOREFILES= tzfile.h
MAKE_ENV= OSTYPE=`uname`
+MAN5= dhcpdb.server.5 dhcpdb.pool.5 dhcpdb.relay.5
+MAN8= dhcpc.8 dhcps.8 relay.8 dhcpm.8
+
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wide-dhcps.sh.sample
post-patch:
- if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \
+ @if [ ! -f ${WRKSRC}/server/tzfile.h ]; then \
${CP} ${DISTDIR}/tzfile.h ${WRKSRC}/server/; \
fi
post-install:
- @if [ ! -d ${PREFIX}/share/dhcp ]; then \
- ${MKDIR} ${PREFIX}/share/dhcp; \
+.if !defined(NOPORTDOCS)
+ @if [ ! -d ${PREFIX}/share/doc/dhcp ]; then \
+ ${MKDIR} ${PREFIX}/share/doc/dhcp; \
+ fi
+ @if [ ! -d ${PREFIX}/share/examples/dhcp ]; then \
+ ${MKDIR} ${PREFIX}/share/examples/dhcp; \
fi
- @${CP} ${WRKSRC}/README ${PREFIX}/share/dhcp/
- @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/dhcp/
- @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/dhcp/dhcpdb.pool.sample
- @${CP} ${WRKSRC}/db_sample/dhcpdb.relay ${PREFIX}/share/dhcp/dhcpdb.relay.sample
- @${CP} ${WRKSRC}/db_sample/dhcpdb.server ${PREFIX}/share/dhcp/dhcpdb.server.sample
- @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/dhcp/
- @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/dhcp/
+ @${CP} ${WRKSRC}/README ${PREFIX}/share/doc/dhcp/
+ @${CP} ${WRKSRC}/README.jis ${PREFIX}/share/doc/dhcp/
+ @${CP} ${WRKSRC}/db_sample/dhcpdb.pool ${PREFIX}/share/examples/dhcp/dhcpdb.pool.sample
+ @${CP} ${WRKSRC}/db_sample/dhcpdb.relay ${PREFIX}/share/examples/dhcp/dhcpdb.relay.sample
+ @${CP} ${WRKSRC}/db_sample/dhcpdb.server ${PREFIX}/share/examples/dhcp/dhcpdb.server.sample
+ @${CP} ${WRKSRC}/db_sample/intro.dhcp ${PREFIX}/share/doc/dhcp/
+ @${CP} ${WRKSRC}/db_sample/intro.dhcp.jis ${PREFIX}/share/doc/dhcp/
+.endif
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
echo "Installing ${STARTUP_SCRIPT} startup file."; \
echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \
OpenPOWER on IntegriCloud