Index: head/net/dhcprelay/Makefile =================================================================== --- head/net/dhcprelay/Makefile (revision 427092) +++ head/net/dhcprelay/Makefile (revision 427093) @@ -1,21 +1,24 @@ # Created by: Edwin Groothuis (edwin@mavetju.org) # $FreeBSD$ PORTNAME= dhcprelay PORTVERSION= 1.2 PORTREVISION= 4 CATEGORIES= net MASTER_SITES= http://www.mavetju.org/download/ MAINTAINER= ports@FreeBSD.org COMMENT= Lightweight DHCP Relay Agent with GIF tunnel support +LICENSE= NONE + LIB_DEPENDS= libdnet.so:net/libdnet -PLIST_FILES= bin/dhcprelay USE_RC_SUBR= ${PORTNAME} + +PLIST_FILES= bin/dhcprelay do-install: ${INSTALL_PROGRAM} ${WRKSRC}/dhcprelay ${STAGEDIR}${PREFIX}/bin .include Index: head/net/dhcprelay/files/patch-Makefile =================================================================== --- head/net/dhcprelay/files/patch-Makefile (revision 427092) +++ head/net/dhcprelay/files/patch-Makefile (revision 427093) @@ -1,15 +1,15 @@ --- Makefile.orig 2006-03-21 02:46:28 UTC +++ Makefile @@ -1,8 +1,10 @@ +all: dhcprelay + dhcprelay: dhcprelay.o - gcc -g -o $@ -Wall -L/usr/local/lib -lpcap -ldnet $> -+ ${CC} -g -o $@ -Wall -L${LOCALBASE}/lib -lpcap -ldnet $> ++ ${CC} ${LDFLAGS} -o $@ -Wall -L${LOCALBASE}/lib -lpcap -ldnet $> dhcprelay.o: dhcprelay.c - gcc -g -c -o $@ -Wall -I/usr/local/include $< -+ ${CC} -g -c -o $@ -Wall -I${LOCALBASE}/include $< ++ ${CC} ${CFLAGS} -c -o $@ -Wall -I${LOCALBASE}/include $< clean: rm -f dhcprelay.o dhcprelay dhcprelay.core