summaryrefslogtreecommitdiff
path: root/net/tspc/Makefile
blob: 1c097d8c74a6a20b892c1f3da93cb6cd84e9bcbf (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.25 2017/11/06 13:38:29 wiz Exp $

DISTNAME=		tspc-2.1.1-src
PKGNAME=		${DISTNAME:S/-src//}
PKGREVISION=		2
CATEGORIES=		net
#MASTER_SITES=		https://www.hexago.com/files/
EXTRACT_SUFX=		.tgz

MAINTAINER=		pkgsrc-users@NetBSD.org
#HOMEPAGE=		https://www.hexago.com/
COMMENT=		Tunnel Setup Protocol Client for Freenet6

BROKEN_EXCEPT_ON_PLATFORM=	NetBSD-*-* OpenBSD-*-* FreeBSD-*-* Linux-*-* \
				Darwin-*-* SunOS-*-*

AUTO_MKDIRS=		yes

OPSYSVARS+=		TARGET
TARGET.SunOS=		solaris
TARGET.*=		${LOWER_OPSYS}

MAKE_ENV+=		target=${TARGET:Q}
MAKE_ENV+=		configdir=${PREFIX}/share/tspc

WRKSRC=			${WRKDIR}/tspc2

CONF_FILES+=		${PREFIX}/share/examples/tspc/tspc.conf ${PKG_SYSCONFDIR}/tspc.conf
CONF_FILES_MODE=	0600

RCD_SCRIPTS=		tspc

PLIST_SUBST+=		TARGET=${TARGET:Q}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${DESTDIR}${PREFIX}/sbin/
	${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/
	${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
	${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf.sample ${DESTDIR}${PREFIX}/share/examples/tspc/tspc.conf
	${INSTALL_SCRIPT} ${WRKSRC}/template/${TARGET}.sh ${DESTDIR}${PREFIX}/share/tspc/template/
	${INSTALL_SCRIPT} ${WRKSRC}/template/checktunnel.sh ${DESTDIR}${PREFIX}/share/tspc/template/
	${INSTALL_DATA} ${WRKSRC}/template/README ${DESTDIR}${PREFIX}/share/tspc/template/
	${INSTALL_DATA} ${WRKSRC}/template/variables_environ ${DESTDIR}${PREFIX}/share/tspc/template/

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