diff --git a/net/knxd/Makefile b/net/knxd/Makefile index 5162e6cfc629..3753f045b859 100644 --- a/net/knxd/Makefile +++ b/net/knxd/Makefile @@ -1,40 +1,41 @@ PORTNAME= knxd PORTVERSION= 0.14.61 +PORTREVISION= 1 CATEGORIES= net # make is compatible with fmt >= 10, https://github.com/knxd/knxd/pull/549 #PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/ #PATCHFILES= 797283251470786bffd6586571407337da899d30.patch:-p1 MAINTAINER= mfechner@FreeBSD.org COMMENT= Advanced router/gateway for KNX WWW= https://github.com/knxd/knxd 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 GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-systemd --disable-usb \ CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib" USE_GITHUB= yes USE_LDCONFIG= yes USE_RC_SUBR= knxd INSTALL_TARGET= install-strip 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 post-install: (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) .include diff --git a/net/knxd/files/knxd.in b/net/knxd/files/knxd.in index ae130b04bedc..da4815926686 100644 --- a/net/knxd/files/knxd.in +++ b/net/knxd/files/knxd.in @@ -1,30 +1,31 @@ #!/bin/sh # PROVIDE: knxd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # # Execute the following line to enable knxd: # # sysrc knxd_enable="YES": Set to "YES" to enable knxd # # sysrc knxd_config="%%PREFIX%%/etc/knxd.conf" The config file to use # . /etc/rc.subr name=knxd rcvar=knxd_enable load_rc_config $name : ${knxd_enable:="NO"} : ${knxd_config:="%%PREFIX%%/etc/knxd.conf"} : ${knxd_flags="${knxd_config}"} +: ${knxd_svcj_options:="net_basic"} command="%%PREFIX%%/bin/knxd" #command_args="" #stop_postcmd="rm -f $pidfile" run_rc_command "$1"