On 2015/05/18 01:12, Edd Barrett wrote:
> Hey,
>
> """
> Mosquitto is an open source (BSD licensed) message broker that implements
> the MQ Telemetry Transport protocol versions 3.1 and 3.1.1. MQTT provides a
> lightweight method of carrying out messaging using a publish/subscribe
> model.
> """
>
> Tested amd64 using CLI tools, and also with a nodemcu board
> (http://nodemcu.com/index_en.html) as a client.
>
> Does anyone with mad cmake skills know how to get rid of the pre-configure
> kludge?
I wouldn't worry about that too much...file needs patching anyway so
another chunk doesn't hurt :)
| # undefined reference to `SSL_CTX_set_psk_client_callback'
| CONFIGURE_ARGS += -DWITH_TLS_PSK=no
Pre-shared key support was intentionally removed from libressl.
| MODULES = devel/cmake
| USE_GMAKE = Yes
really gmake? that is rather unusual for cmake ports.
| MANDIRS = 1 3 5 7 8
..
| .for i in ${MANDIRS}
| mv ${PREFIX}/share/man/man${i}/*.${i} ${PREFIX}/man/man${i}/
| rmdir ${PREFIX}/share/man/man${i}
| .endfor
| rmdir ${PREFIX}/share/man
probably cleaner to patch the cmake files and install in the right place
in the first place
| mkdir ${WRKINST}/${SYSCONFDIR}/mosquitto
this isn't needed
| daemon="/usr/local/sbin/mosquitto"
| daemon_flags="-d -c /etc/mosquitto/mosquitto.conf"
${PREFIX}, ${SYSCONFDIR}. if "-d" is "daemonize" please move that
from daemon_flags to daemon so that people changing mosquitto_flags in
rc.conf.local don't have a risk of missing it out.
| mv ${PREFIX}/etc ${PREFIX}/share/examples/mosquitto
..
| share/examples/mosquitto/mosquitto/aclfile.example
| share/examples/mosquitto/mosquitto/mosquitto.conf
how about "mv ${PREFIX}/etc/mosquitto ${PREFIX}/share/examples/mosquitto"
and then PLIST will just be share/examples/mosquitto/aclfile.example, etc?
Also wants an @extra for the pid file, and go ahead and reserve a space
in infrastructure/db/user.list.