blob: 81a981bb425027d4ed0290e97274b010a61f8099 (
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
|
# $NetBSD: Makefile,v 1.3 2014/10/21 12:04:44 wiedi Exp $
DISTNAME= 0.3.6
PKGNAME= sniproxy-${DISTNAME}
CATEGORIES= net
MASTER_SITES= https://github.com/dlundquist/sniproxy/archive/
MAINTAINER= wiedi@frubar.net
HOMEPAGE= https://github.com/dlundquist/sniproxy/
COMMENT= Proxy that routes based on TLS server name extension
LICENSE= 2-clause-bsd
WRKSRC= ${WRKDIR}/sniproxy-${DISTNAME}
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
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"
|