summaryrefslogtreecommitdiff
path: root/net/hf6to4/Makefile
blob: 5cecb6694cf4fe2600288a86acc2cdf4a946ee13 (plain)
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
44
45
# $NetBSD: Makefile,v 1.19 2019/05/23 19:23:09 rillig Exp $
#

DISTNAME=		hf6to4-1.3
PKGREVISION=		1
CATEGORIES=		net
MASTER_SITES=		# empty
DISTFILES=		# empty

MAINTAINER=		hubertf@NetBSD.org
HOMEPAGE=		ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/net/hf6to4/files/hf6to4.html
COMMENT=		Enables 6to4 IPv6 automatic tunnels

WRKSRC=			${WRKDIR}

NOT_FOR_PLATFORM+=	Interix-*-* # no IPv6 support or ifconfig command

# This package does not set or evaluate IPV6_READY, but it should still
# be listed in README-IPv6.html.
#
BUILD_DEFS+=	IPV6_READY

NO_CONFIGURE=	yes
NO_BUILD=	yes

CONF_FILES+=	${PREFIX}/share/examples/hf6to4/hf6to4.conf ${PKG_SYSCONFDIR}/hf6to4.conf

INSTALLATION_DIRS=	${PKGMANDIR}/man8 sbin share/examples/hf6to4 share/doc/hf6to4

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	hf6to4
SUBST_VARS.paths=	PKG_SYSCONFDIR
SUBST_VARS.paths+=	SH
SUBST_STAGE.paths=	pre-install

post-extract:
	${CP} ${FILESDIR}/hf6to4 ${WRKSRC}/hf6to4

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/hf6to4 ${DESTDIR}${PREFIX}/sbin/hf6to4
	${INSTALL_MAN} ${FILESDIR}/hf6to4.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
	${INSTALL_DATA} ${FILESDIR}/hf6to4.html ${DESTDIR}${PREFIX}/share/doc/hf6to4/hf6to4.html
	${INSTALL_DATA} ${FILESDIR}/hf6to4.conf ${DESTDIR}${PREFIX}/share/examples/hf6to4

.include "../../mk/bsd.pkg.mk"