blob: a95449d7a9c789319de0f1231bc6ac1fe288b8d9 (
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
68
69
70
71
72
73
74
75
|
# $NetBSD: Makefile,v 1.2 2019/11/03 11:45:53 rillig Exp $
DISTNAME= siproxd-0.8.2
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=siproxd/}
MAINTAINER= schwarz@NetBSD.org
HOMEPAGE= http://siproxd.sourceforge.net/
COMMENT= Session Initiation Protocol Application-Level Gateway (SIP ALG)
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= VARBASE
SIPROXD_USER?= siproxd
SIPROXD_GROUP?= siproxd
SIPROXD_HOME?= ${VARBASE}/chroot/siproxd
PKG_GROUPS= ${SIPROXD_GROUP}
PKG_USERS= ${SIPROXD_USER}:${SIPROXD_GROUP}
PKG_GECOS.${SIPROXD_USER}= SIP proxy
PKG_HOME.${SIPROXD_USER}= ${SIPROXD_HOME}
PKG_GROUPS_VARS+= SIPROXD_GROUP
PKG_USERS_VARS+= SIPROXD_USER
FILES_SUBST+= SIPROXD_USER=${SIPROXD_USER:Q}
FILES_SUBST+= SIPROXD_GROUP=${SIPROXD_GROUP:Q}
FILES_SUBST+= SIPROXD_HOME=${SIPROXD_HOME:Q}
RCD_SCRIPTS+= siproxd
PKG_SYSCONFSUBDIR= siproxd
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-libosip-prefix=${BUILDLINK_PREFIX.libosip2}
DOCDIR= share/doc/siproxd
EGDIR= share/examples/siproxd
CONF_FILES= ${PREFIX}/${EGDIR}/siproxd.conf.example \
${PKG_SYSCONFDIR}/siproxd.conf
CONF_FILES+= ${PREFIX}/${EGDIR}/siproxd_passwd.cfg \
${PKG_SYSCONFDIR}/siproxd_passwd.cfg
OWN_DIRS+= ${SIPROXD_HOME}
INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= doc/siproxd.conf.example
SUBST_MESSAGE.paths= performing pathname substitutions
SUBST_VARS.paths= VARBASE PREFIX PKG_SYSCONFDIR SIPROXD_USER SIPROXD_HOME
post-install:
.for ff in README RELNOTES doc/FAQ doc/KNOWN_BUGS doc/RFC3261_compliance.txt
${INSTALL_DATA} ${WRKSRC}/${ff} ${DESTDIR}${PREFIX}/${DOCDIR}/
.endfor
.for ff in sample_asterisk.txt sample_cfg_budgetone.txt sample_cfg_x-lite.txt
${INSTALL_DATA} ${WRKSRC}/doc/${ff} ${DESTDIR}${PREFIX}/${EGDIR}/
.endfor
.include "../../mk/pthread.buildlink3.mk"
# siproxd's configure does not check for PTHREAD_LDFLAGS
PTHREAD_LIBS+= ${PTHREAD_LDFLAGS}
.include "../../devel/libosip/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|