blob: d9d69c04e5166061900495217795a1826fa3af3e (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.28 2018/09/30 15:55:25 jperkin Exp $
DISTNAME= tinc-1.0.32
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.tinc-vpn.org/packages/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.tinc-vpn.org/
COMMENT= Virtual Private Network (VPN) daemon
LICENSE= gnu-gpl-v2
BUILD_DEFS+= VARBASE
INFO_FILES= yes
USE_TOOLS+= msgfmt
GNU_CONFIGURE= yes
SUBST_CLASSES+= mdoc
SUBST_FILES.mdoc= doc/tinc.conf.5.in
SUBST_SED.mdoc+= -e '/^$$/d'
SUBST_STAGE.mdoc= pre-configure
EGDIR= ${PREFIX}/share/examples/tinc
TINC_USER?= tinc
TINC_GROUP?= tinc
PKG_GROUPS_VARS+= TINC_GROUP
PKG_USERS_VARS+= TINC_USER
PKG_GROUPS= ${TINC_GROUP}
PKG_USERS= ${TINC_USER}:${TINC_GROUP}
PKG_SHELL.${TINC_USER}= ${SH}
OWN_DIRS+= ${VARBASE}/log/tinc
MAKE_DIRS+= ${PKG_SYSCONFDIR}/default
INSTALLATION_DIRS= share/examples/tinc
PKG_SYSCONFSUBDIR= tinc
CONF_FILES_PERMS+= ${EGDIR}/tinc.conf ${PKG_SYSCONFDIR}/default/tinc.conf \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644
CONF_FILES_PERMS+= ${EGDIR}/tinc-up ${PKG_SYSCONFDIR}/default/tinc-up \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
CONF_FILES_PERMS+= ${EGDIR}/tinc-down ${PKG_SYSCONFDIR}/default/tinc-down \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
.include "../../mk/bsd.prefs.mk"
.if ${INIT_SYSTEM} == "smf"
SMF_METHODS= tinc
MESSAGE_SRC+= MESSAGE.smf
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
.endif
post-install:
${INSTALL_DATA} ${FILESDIR}/tinc.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${FILESDIR}/tinc-up ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${FILESDIR}/tinc-down ${DESTDIR}${EGDIR}
.include "../../archivers/lzo/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|