Index: head/net/knxd/Makefile =================================================================== --- head/net/knxd/Makefile (revision 531925) +++ head/net/knxd/Makefile (revision 531926) @@ -1,33 +1,36 @@ # Created by: mfechner@FreeBSD.org # $FreeBSD$ PORTNAME= knxd PORTVERSION= 0.14.35 -PORTREVISION= 0 +PORTREVISION= 1 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 GH_TAGNAME= 7a3c5e065e5ab26eeb14257c8dff05fa94e9373e GNU_CONFIGURE= yes CONFIGURE_ARGS?=--disable-systemd --disable-usb \ CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib" + +post-install: + (cd ${WRKSRC} && src/server/knxd_args -d -e 15.15.1 -E 15.15.2:8 -D -T -S -b ipt:192.168.0.117 -u /var/run/knxd > ${STAGEDIR}${PREFIX}/etc/knxd.conf.sample) .include Index: head/net/knxd/files/knxd.in =================================================================== --- head/net/knxd/files/knxd.in (revision 531925) +++ head/net/knxd/files/knxd.in (revision 531926) @@ -1,38 +1,31 @@ #!/bin/sh # $FreeBSD$ # 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_local_address="15.15.1" Set the bus address of knxd to 0.0.1, make sure this address is free on your KNX bus +# sysrc knxd_config="%%PREFIX%%/etc/knxd.conf" The config file to use # -# sysrc knxd_child_address="15.15.2:8" Give client connecting to knxd this address -# -# sysrc knxd_address="ipt:192.168.0.117" The address of the commercial IP interface knxd should connect to -# -# sysrc knxd_ . /etc/rc.subr name=knxd rcvar=knxd_enable load_rc_config $name : ${knxd_enable:="NO"} -: ${knxd_local_address:="15.15.1"} -: ${knxd_child_address:="15.15.2:8"} -: ${knxd_address:="ipt:192.168.0.117"} -: ${knxd_flags="-d -e ${knxd_local_address} -E ${knxd_child_address} -D -T -S -b ${knxd_address} -u /var/run/knxd"} +: ${knxd_config:="%%PREFIX%%/etc/knxd.conf"} +: ${knxd_flags="${knxd_config}"} command="%%PREFIX%%/bin/knxd" #command_args="" #stop_postcmd="rm -f $pidfile" run_rc_command "$1" Index: head/net/knxd/pkg-plist =================================================================== --- head/net/knxd/pkg-plist (revision 531925) +++ head/net/knxd/pkg-plist (revision 531926) @@ -1,72 +1,74 @@ bin/knxd bin/knxtool include/eibclient.h include/eibloadresult.h include/eibtypes.h lib/libeibclient.a lib/libeibclient.so lib/libeibclient.so.0 lib/libeibclient.so.0.0.0 libexec/knxd/busmonitor1 libexec/knxd/busmonitor2 libexec/knxd/busmonitor3 libexec/knxd/eibread-cgi libexec/knxd/eibwrite-cgi libexec/knxd/groupcacheclear libexec/knxd/groupcachedisable libexec/knxd/groupcacheenable libexec/knxd/groupcachelastupdates libexec/knxd/groupcacheread libexec/knxd/groupcachereadsync libexec/knxd/groupcacheremove libexec/knxd/grouplisten libexec/knxd/groupread libexec/knxd/groupreadresponse libexec/knxd/groupresponse libexec/knxd/groupsocketlisten libexec/knxd/groupsocketread libexec/knxd/groupsocketswrite libexec/knxd/groupsocketwrite libexec/knxd/groupsresponse libexec/knxd/groupswrite libexec/knxd/groupwrite libexec/knxd/madcread libexec/knxd/maskver libexec/knxd/mmaskver libexec/knxd/mpeitype libexec/knxd/mprogmodeoff libexec/knxd/mprogmodeon libexec/knxd/mprogmodestatus libexec/knxd/mprogmodetoggle libexec/knxd/mpropdesc libexec/knxd/mpropread libexec/knxd/mpropscan libexec/knxd/mpropscanpoll libexec/knxd/mpropwrite libexec/knxd/mread libexec/knxd/mrestart libexec/knxd/msetkey libexec/knxd/mwrite libexec/knxd/mwriteplain libexec/knxd/progmodeoff libexec/knxd/progmodeon libexec/knxd/progmodestatus libexec/knxd/progmodetoggle libexec/knxd/readindividual libexec/knxd/vbusmonitor1 libexec/knxd/vbusmonitor1poll libexec/knxd/vbusmonitor1time libexec/knxd/vbusmonitor2 libexec/knxd/vbusmonitor3 libexec/knxd/writeaddress libexec/knxd/xpropread libexec/knxd/xpropwrite libexec/knxd_args %%DATADIR%%/EIBConnection.cs %%DATADIR%%/EIBConnection.go %%DATADIR%%/EIBConnection.lua %%DATADIR%%/EIBConnection.pm %%DATADIR%%/EIBConnection.py %%DATADIR%%/EIBConnection.rb %%DATADIR%%/EIBD.pas %%DATADIR%%/eibclient.php +@sample etc/knxd.conf.sample +