diff -urP dhcp-1.4.0p7/client/Makefile.news dhcp-1.4.0p7-newsos4/client/Makefile.news --- dhcp-1.4.0p7/client/Makefile.news Thu Sep 11 09:03:50 1997 +++ dhcp-1.4.0p7-newsos4/client/Makefile.news Wed Oct 13 12:30:55 1999 @@ -5,8 +5,19 @@ CC = gcc CFLAGS = -O -I. -I../server -DRETRY_FOREVER #-DDEBUG +PREFIX = /usr/local +SBIN = $(PREFIX)/etc +MAN = $(PREFIX)/man/C +CP = /bin/cp +RM = /bin/rm +INSTALL = /bin/install + dhcpc: ${OBJ} ${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS} + +install: dhcpc + ${INSTALL} -c -m 755 -s dhcpc ${SBIN}/dhcpc + ${CP} dhcpc.8 ${MAN}/man8/dhcpc.8 clean: rm -f *~ *.o *core* dhcpc diff -urP dhcp-1.4.0p7/client/dhcpc_subr.c dhcp-1.4.0p7-newsos4/client/dhcpc_subr.c --- dhcp-1.4.0p7/client/dhcpc_subr.c Thu May 13 10:28:14 1999 +++ dhcp-1.4.0p7-newsos4/client/dhcpc_subr.c Wed Oct 13 12:37:27 1999 @@ -2599,12 +2599,14 @@ } #ifndef sun +#ifndef __sony_news on = 1; if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) < 0) { close(sockfd); sockfd = -1; return(-1); } +#endif #endif } diff -urP dhcp-1.4.0p7/relay/Makefile.news dhcp-1.4.0p7-newsos4/relay/Makefile.news --- dhcp-1.4.0p7/relay/Makefile.news Thu Sep 11 09:04:38 1997 +++ dhcp-1.4.0p7-newsos4/relay/Makefile.news Wed Oct 13 12:32:39 1999 @@ -4,8 +4,20 @@ CFLAGS = -O -I. -I../server LDFLAGS = +PREFIX = /usr/local +SBIN = ${PREFIX}/etc +MAN = ${PREFIX}/man/C +CP = /bin/cp +RM = /bin/rm +INSTALL = /bin/install + relay: ${OBJ} ${CC} ${CFLAGS} -o relay ${OBJ} ${LDFLAGS} + +install: relay + ${INSTALL} -m 755 -s relay ${SBIN}/relay + ${CP} relay.8 ${MAN}/man8/relay.8 + ${CP} dhcpdb.server.5 ${MAN}/man5/dhcpdb.server.5 relay.o: relay.c common.h ../server/dhcp.h ../server/common_subr.h common_subr.o: ../server/common_subr.c ../server/dhcp.h common.h ../server/common_subr.h diff -urP dhcp-1.4.0p7/server/Makefile.news dhcp-1.4.0p7-newsos4/server/Makefile.news --- dhcp-1.4.0p7/server/Makefile.news Fri Jan 30 18:03:58 1998 +++ dhcp-1.4.0p7-newsos4/server/Makefile.news Wed Oct 13 12:28:56 1999 @@ -5,8 +5,21 @@ CFLAGS = -O #-DMAC_FILTER #-DCOMPAT_RFC1541 #-DNOICMPCHK LDFLAGS = +PREFIX = /usr/local +SBIN = ${PREFIX}/etc +MAN = ${PREFIX}/man/C +CP = /bin/cp +RM = /bin/rm +INSTALL = /bin/install + dhcps: ${OBJ} ${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS} + +install: dhcps + ${INSTALL} -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 diff -urP dhcp-1.4.0p7/tools/Makefile.news dhcp-1.4.0p7-newsos4/tools/Makefile.news --- dhcp-1.4.0p7/tools/Makefile.news Thu Sep 11 09:08:07 1997 +++ dhcp-1.4.0p7-newsos4/tools/Makefile.news Wed Oct 13 12:34:58 1999 @@ -1,8 +1,20 @@ CC = gcc CFLAGS = -O -I. -I../server +PREFIX = /usr/local +SBIN = ${PREFIX}/etc +MAN = ${PREFIX}/man/C + +CP = /bin/cp +RM = /bin/rm +INSTALL = /bin/install + dhcpm: dhcpm.c ../server/dhcp.h $(CC) $(CFLAGS) dhcpm.c -o dhcpm +install: dhcpm + ${INSTALL} -m 755 -s dhcpm ${SBIN}/dhcpm + ${CP} dhcpm.8 ${MAN}/man8/dhcpm.8 + clean: - rm -rf *~ *.o *core* dhcpm + ${RM} -rf *~ *.o *core* dhcpm