aboutsummaryrefslogtreecommitdiffstats
path: root/dns/totd/Makefile
blob: 19231ac1a0062fb8aadae1dd5acf25633490e6e6 (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
35
36
37
38
# New ports collection makefile for:   totd
# Date created:        17 Nov 2000
# Whom:                Kris Kennaway <kris@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   totd
PORTVERSION=    1.5.1
CATEGORIES= dns ipv6
MASTER_SITES=   ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/

MAINTAINER= ports@FreeBSD.org
COMMENT=    DNS proxy that supports IPv6 <==> IPv4 record translation

MAN8=       totd.8

USE_RC_SUBR=    YES
GNU_CONFIGURE=  YES
USE_REINPLACE=  YES

RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=     "Does not compile on !i386"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's/%zd/%d/g' ${WRKSRC}/*.c

post-install:
    ${INSTALL_DATA} ${FILESDIR}/totd.conf.sample ${PREFIX}/etc
    @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
        ${FILESDIR}/totd.sh > ${PREFIX}/etc/rc.d/totd.sh
    @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/totd.sh

.include <bsd.port.post.mk>