Merge from vendor branch TNF:
[pkgsrcv2.git] / net / hf6to4 / Makefile
1 # $NetBSD: Makefile,v 1.14 2009/04/09 00:48:10 joerg Exp $
2 #
3
4 DISTNAME=               hf6to4-1.3
5 PKGREVISION=            1
6 CATEGORIES=             net
7 MASTER_SITES=           # empty
8 DISTFILES=              # empty
9
10 MAINTAINER=             hubertf@NetBSD.org
11 HOMEPAGE=               ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/net/hf6to4/files/hf6to4.html
12 COMMENT=                Enables 6to4 IPv6 automatic tunnels
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 WRKSRC=                 ${WRKDIR}
17
18 NOT_FOR_PLATFORM+=      Interix-*-* # no IPv6 support or ifconfig command
19
20 # This package does not set or evaluate IPV6_READY, but it should still
21 # be listed in README-IPv6.html.
22 #
23 BUILD_DEFS+=    IPV6_READY
24
25 NO_CONFIGURE=   yes
26 NO_BUILD=       yes
27
28 CONF_FILES+=    ${PREFIX}/share/examples/hf6to4/hf6to4.conf ${PKG_SYSCONFDIR}/hf6to4.conf
29
30 INSTALLATION_DIRS=      ${PKGMANDIR}/man8 sbin share/examples/hf6to4 share/doc/hf6to4
31
32 SUBST_CLASSES+=         paths
33 SUBST_FILES.paths=      hf6to4
34 SUBST_SED.paths+=       -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
35 SUBST_SED.paths+=       -e 's,@SH@,${SH},g'
36 SUBST_STAGE.paths=      post-patch
37
38 post-extract:
39         ${CP} ${FILESDIR}/hf6to4 ${WRKSRC}/hf6to4
40
41 do-install:
42         ${INSTALL_SCRIPT} ${WRKSRC}/hf6to4 ${DESTDIR}${PREFIX}/sbin/hf6to4
43         ${INSTALL_MAN} ${FILESDIR}/hf6to4.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
44         ${INSTALL_DATA} ${FILESDIR}/hf6to4.html ${DESTDIR}${PREFIX}/share/doc/hf6to4/hf6to4.html
45         ${INSTALL_DATA} ${FILESDIR}/hf6to4.conf ${DESTDIR}${PREFIX}/share/examples/hf6to4
46
47 .include "../../mk/bsd.pkg.mk"