aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dualserver/Makefile
blob: 1096ed751e8b7ff28c4a9ddc0ad6b31c714f041d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Ports collection Makefile for:    dualserver
# Date created:             10 Dec 2005
# Whom:                 Gabor Kovesdan
# $FreeBSD$

PORTNAME=   dualserver
PORTVERSION=    2.1
CATEGORIES= dns net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dhcp-dns-server
DISTNAME=   ${PORTNAME}V${PORTVERSION}

MAINTAINER= gabor@FreeBSD.org
COMMENT=    Combined DHCP/DNS server for small LANs

USE_DOS2UNIX=   yes
USE_RC_SUBR=    dualserver.sh
WRKSRC=     ${WRKDIR}/${PORTNAME}
PLIST_FILES=    sbin/dualserver etc/dualserver.conf.sample

.include <bsd.port.pre.mk>

pre-patch:
    ${REINPLACE_CMD} 's|/etc/dualserver.ini|${PREFIX}/etc/dualserver.conf|' ${WRKSRC}/dualserver.cpp
    ${REINPLACE_CMD} 's|/etc/dualserver.state|/var/run/dualserver.state|' ${WRKSRC}/dualserver.cpp

do-build:
    ${CXX} -o ${WRKSRC}/dualserver ${WRKSRC}/dualserver.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/dualserver ${TARGETDIR}/sbin
    ${INSTALL_DATA} ${WRKSRC}/dualserver.ini ${TARGETDIR}/etc/dualserver.conf.sample

.include <bsd.port.post.mk>