pkgsrc/net/bind8/Makefile
joerg 3d8ef5a52d Second round of explicit pax dependencies. As reminded by tnn@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
2008-05-26 02:13:14 +00:00

50 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2008/05/26 02:13:22 joerg Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME}pl1
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind8/src/${BIND_VERSION}/
DISTFILES= bind-src.tar.gz bind-doc.tar.gz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.isc.org/sw/bind/
COMMENT= The Berkeley Internet Name Daemon, an implementation of DNS
USE_TOOLS+= lex pax yacc
WRKSRC= ${WRKDIR}
BIND_VERSION= 8.4.7
DIST_SUBDIR= bind/${BIND_VERSION}
PATCH_SITES= ${MASTER_SITES:S/8.4.7/8.4.7-P1/}
PATCHFILES= 8.4.7-p1.patch
PATCH_DIST_STRIP= -p1
PKG_INSTALLATION_TYPES= overwrite pkgviews
RCD_SCRIPTS= named
BUILD_DIRS= src doc/man
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
MAKEFLAGS+= MANROFF=cat
MAKEFLAGS+= INSTALL=${INSTALL:Q}
OWN_DIRS_PERMS= ${PKG_SYSCONFDIR}/ndc.d root other 700
.endif
MAKEFLAGS+= PREFIX=${PREFIX:Q}
MAKE_FLAGS+= INSTALL_LIB=-o\ ${LIBOWN}\ -g\ ${LIBGRP}
post-extract:
cd ${WRKSRC}/doc/man && ${RM} -f *.lst* *~ *.BAK *.CKP *.orig
${LN} -s freebsd ${WRKSRC}/src/port/dragonfly
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/bind8
cd ${WRKSRC}/doc/html && pax -rw * ${PREFIX}/share/doc/html/bind8
${CHMOD} ${DOCMODE} ${PREFIX}/share/doc/html/bind8/*.html
.include "../../mk/bsd.pkg.mk"