2012-12-20 22:56:10 +00:00
|
|
|
# Created by: Gabor Kovesdan
|
2005-12-12 09:57:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dualserver
|
2012-12-20 22:56:10 +00:00
|
|
|
PORTVERSION= 6.94
|
2005-12-12 09:57:23 +00:00
|
|
|
CATEGORIES= dns net
|
2012-12-20 22:56:10 +00:00
|
|
|
MASTER_SITES= SF/dhcp-dns-server/Dual%20DHCP%20DNS%20Server/
|
2005-12-12 09:57:23 +00:00
|
|
|
DISTNAME= ${PORTNAME}V${PORTVERSION}
|
|
|
|
|
2012-12-20 22:56:10 +00:00
|
|
|
MAINTAINER= rodrigo@bebik.net
|
2005-12-12 09:57:23 +00:00
|
|
|
COMMENT= Combined DHCP/DNS server for small LANs
|
|
|
|
|
2006-06-05 16:42:08 +00:00
|
|
|
USE_DOS2UNIX= yes
|
2012-08-05 23:19:36 +00:00
|
|
|
USE_RC_SUBR= dualserver
|
2005-12-12 09:57:23 +00:00
|
|
|
PLIST_FILES= sbin/dualserver etc/dualserver.conf.sample
|
|
|
|
|
2012-08-15 01:04:30 +00:00
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
|
|
|
|
2012-12-20 22:56:10 +00:00
|
|
|
#pre-patch:
|
|
|
|
#post-patch:
|
|
|
|
# ${REINPLACE_CMD} 's|/etc/dualserver.ini|${PREFIX}/etc/dualserver.conf|' ${WRKSRC}/dualserverd.cpp
|
|
|
|
# ${REINPLACE_CMD} 's|/etc/dualserver.state|/var/run/dualserver.state|' ${WRKSRC}/dualserverd.cpp
|
2005-12-12 09:57:23 +00:00
|
|
|
|
|
|
|
do-build:
|
2012-12-20 22:56:10 +00:00
|
|
|
${CXX} ${CXXFLAGS} -o ${WRKSRC}/dualserver \
|
|
|
|
${WRKSRC}/dualserverd.cpp ${PTHREAD_LIBS}
|
2005-12-12 09:57:23 +00:00
|
|
|
|
|
|
|
do-install:
|
2007-03-31 19:56:19 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dualserver ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dualserver.ini ${PREFIX}/etc/dualserver.conf.sample
|
2005-12-12 09:57:23 +00:00
|
|
|
|
2012-12-20 22:56:10 +00:00
|
|
|
.include <bsd.port.mk>
|