2019-06-17 05:51:18 +00:00
|
|
|
# Created by: mfechner@FreeBSD.org
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= knxd
|
2020-07-13 21:08:00 +00:00
|
|
|
PORTVERSION= 0.14.39
|
2020-09-07 21:19:41 +00:00
|
|
|
PORTREVISION= 3
|
2019-06-17 05:51:18 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
MAINTAINER= mfechner@FreeBSD.org
|
|
|
|
COMMENT= Advanced router/gateway for KNX
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
LIB_DEPENDS= libargp.so:devel/argp-standalone \
|
|
|
|
libev.so:devel/libev \
|
|
|
|
libfmt.so:devel/libfmt
|
|
|
|
|
|
|
|
USES= autoreconf compiler:c11 gmake libtool pkgconfig
|
|
|
|
USE_RC_SUBR= knxd
|
|
|
|
USE_GITHUB= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
GH_ACCOUNT= knxd
|
|
|
|
GH_PROJECT= knxd
|
2020-07-13 21:08:00 +00:00
|
|
|
GH_TAGNAME= 746a8d85dfdc4c456a9b832eca358a062a2b351d
|
2019-06-17 05:51:18 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS?=--disable-systemd --disable-usb \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib"
|
|
|
|
|
2020-07-13 21:08:00 +00:00
|
|
|
post-patch:
|
|
|
|
# Replace script for version detection with PORTREVISION as the repository does not have a .git repo and therefor the script fails
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e "s|^\(AC_INIT.*\)m4.*|\1\[${PORTVERSION}\])|" \
|
|
|
|
${WRKSRC}/configure.ac
|
|
|
|
|
2020-04-17 12:01:50 +00:00
|
|
|
post-install:
|
2020-05-04 21:16:49 +00:00
|
|
|
(cd ${WRKSRC} && src/server/knxd_args -d -e 15.15.1 -E 15.15.2:8 -D -T -S -B single -b ipt:192.168.0.117 -u /var/run/knxd > ${STAGEDIR}${PREFIX}/etc/knxd.conf.sample)
|
2020-04-17 12:01:50 +00:00
|
|
|
|
2019-06-17 05:51:18 +00:00
|
|
|
.include <bsd.port.mk>
|