2021-04-06 12:36:25 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2021/04/06 12:36:25 sthen Exp $
|
2015-10-23 09:28:58 +00:00
|
|
|
|
|
|
|
COMMENT = link-aggregation VPN software
|
|
|
|
|
2020-03-30 13:19:06 +00:00
|
|
|
V = 2.3.5
|
2015-10-23 09:28:58 +00:00
|
|
|
DISTNAME = mlvpn-$V
|
2021-04-06 12:32:04 +00:00
|
|
|
REVISION = 1
|
2015-10-23 09:28:58 +00:00
|
|
|
|
|
|
|
CATEGORIES = net
|
|
|
|
|
2020-02-21 16:51:52 +00:00
|
|
|
HOMEPAGE = https://zehome.github.io/MLVPN/
|
2015-10-23 09:28:58 +00:00
|
|
|
|
|
|
|
# BSD
|
2019-07-12 20:48:23 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2015-10-23 09:28:58 +00:00
|
|
|
|
2021-04-06 12:36:25 +00:00
|
|
|
# uses pledge()
|
2015-10-23 09:28:58 +00:00
|
|
|
WANTLIB += c ev m sodium
|
|
|
|
|
2020-02-21 16:51:52 +00:00
|
|
|
MASTER_SITES = https://github.com/zehome/MLVPN/releases/download/$V/
|
2015-10-23 09:28:58 +00:00
|
|
|
|
2020-03-30 13:19:06 +00:00
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
|
2015-10-23 09:28:58 +00:00
|
|
|
LIB_DEPENDS = devel/libev \
|
|
|
|
security/libsodium
|
|
|
|
|
2020-02-21 16:51:52 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ARGS += --disable-control \
|
|
|
|
--disable-filters
|
2015-10-23 09:28:58 +00:00
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_header_valgrind_valgrind_h=no
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mlvpn
|
|
|
|
mv ${PREFIX}/share/doc/mlvpn/{mlvpn.conf,mlvpn_updown.sh} \
|
|
|
|
${PREFIX}/share/examples/mlvpn/
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|