aboutsummaryrefslogtreecommitdiffstats
path: root/dns/sqldjbdns/Makefile
blob: 82622c558da1c3dcf4d916829ae7bd728181d04b (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
39
40
41
42
43
# New ports collection makefile for:    sqldjbdns
# Date created:     1 Sep 2004
# Whom:         Radim Kolar
#
# $FreeBSD$
#

PORTNAME=   sqldjbdns
PORTVERSION=    0.72
CATEGORIES= dns
MASTER_SITES=   http://home.tiscali.cz:8080/~cz210552/distfiles/

MAINTAINER= ports@freebsd.org
COMMENT=    DJB dns server with PostgreSQL backend

DJ_PORT?=   ${PORTSDIR}/dns/djbdns
BUILD_DEPENDS=  ${NONEXISTENT}:${DJ_PORT}:extract
LIB_DEPENDS=    pq.3:${PORTSDIR}/databases/postgresql7
RUN_DEPENDS=    setuidgid:${PORTSDIR}/sysutils/daemontools

PORTDOCS=   ANNOUNCEMENT STATUS pgsqldns.html NEWS TODO README \
        pgsqldns-conf.html sqldns.html pgsqldns-schema.html
DJ_SRC=     `cd ${DJ_PORT} && make -V WRKSRC`
ALL_TARGET= default
PLIST_FILES=    bin/dnsbench bin/pgsqldns bin/pgsqldns-conf bin/pgsqldnscache \
        share/examples/${PORTNAME}/create.sql
PLIST_DIRS= share/examples/${PORTNAME}

pre-build:
        ${CP} -R ${DJ_SRC} ${WRKSRC}/djbdns-1.05
        ${PATCH} < ${WRKSRC}/djbdns-1.05.patch -d ${WRKSRC}/djbdns-1.05
        ${MV} ${WRKSRC}/sqldns-schema.html ${WRKSRC}/pgsqldns-schema.html

post-install:
        ${MKDIR} ${EXAMPLESDIR}
        ${INSTALL_DATA}  ${WRKSRC}/create.sql ${EXAMPLESDIR}
.ifndef NOPORTDOCS
.for i in ${PORTDOCS}
        ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>