blob: 273386caf9b46b8de19f9d8495255f53500c107f (
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
|
# $NetBSD: Makefile,v 1.8 2019/01/11 23:09:53 schmonz Exp $
DISTNAME= sniproxy-0.6.0
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=dlundquist/}
MAINTAINER= wiedi@frubar.net
HOMEPAGE= https://github.com/dlundquist/sniproxy/
COMMENT= Proxy that routes based on TLS server name extension
LICENSE= 2-clause-bsd
USE_LANGUAGES= c99
USE_TOOLS+= autoconf aclocal automake pkg-config
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
BUILD_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/sniproxy.conf ${PKG_SYSCONFDIR}/sniproxy.conf
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
LDFLAGS.SunOS+= -lsocket -lnsl
SUBST_CLASSES+= pkgvars
SUBST_STAGE.pkgvars= do-configure
SUBST_FILES.pkgvars= src/sniproxy.c sniproxy.conf \
man/sniproxy.8 man/sniproxy.conf.5
SUBST_VARS.pkgvars= PKG_SYSCONFDIR VARBASE SNIPROXY_USER SNIPROXY_GROUP
PKG_USERS_VARS+= SNIPROXY_USER
PKG_GROUPS_VARS+= SNIPROXY_GROUP
PKG_GROUPS+= ${SNIPROXY_GROUP}
PKG_USERS+= ${SNIPROXY_USER}:${SNIPROXY_GROUP}
RCD_SCRIPTS= sniproxy
BUILD_DEFS+= VARBASE PKG_SYSCONFBASE
pre-configure:
cd ${WRKSRC} && autoreconf --install && automake --add-missing --copy
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/sniproxy.conf ${DESTDIR}${EGDIR}
.include "../../devel/libev/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../net/udns/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|