1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/wide-dhcp/files/patch-ae
Masafumi Max NAKANE fdf92566aa 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
1997-05-30 18:52:45 +00:00

36 lines
986 B
Plaintext

--- server/Makefile.FreeBSD.orig Mon Nov 6 16:18:41 1995
+++ server/Makefile.FreeBSD Fri May 30 22:47:17 1997
@@ -1,16 +1,27 @@
OBJ = dhcps.o database.o hash.o ctime.o getmac.o common_subr.o \
interface.o delarp.o
-LDFLAGS =
-CC = gcc
-CFLAGS = -g -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK
-#CC = cc
+LDFLAGS = -lkvm
+#CC = gcc
+CFLAGS += -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK
+CC = cc
#CFLAGS = -g #-DCOMPAT_RFC1541 #-DNOICMPCHK
+SBIN= ${PREFIX}/sbin
+LIBEXEC= ${PREFIX}/libexec
+MAN= ${PREFIX}/man
+CP= /bin/cp
+RM= /bin/rm
dhcps: ${OBJ}
${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS}
+install: dhcps
+ ${INSTALL} -c -m 755 -s dhcps ${SBIN}/dhcps
+ ${CP} dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5
+ ${CP} dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5
+ ${CP} dhcps.8 ${MAN}/man8/dhcps.8
+
clean:
- rm -f *~ *.o *core* dhcps
+ ${RM} -f *~ *.o *core* dhcps
dhcps.o: dhcps.c dhcp.h common.h common_subr.h hash.h dhcps.h
database.o: database.c dhcp.h common.h hash.h database.h