mosquitto: move example conf files to usr/share/examples; move header to -devel.

This commit is contained in:
Juan RP 2015-02-22 08:37:37 +01:00
parent 53f35b16a4
commit ab32c93377
1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'mosquitto'
pkgname=mosquitto
version=1.4
revision=1
revision=2
build_style=gnu-makefile
make_build_args="WITH_TLS_PSK=no" # not supported by libressl
make_install_args="prefix=/usr"
@ -14,6 +14,14 @@ homepage="http://mosquitto.org/"
distfiles="http://mosquitto.org/files/source/mosquitto-${version}.tar.gz"
checksum=591f3adcb6ed92c01f7ace1c878af728b797fe836892535620aa6106f42dbcc6
post_install() {
mv ${DESTDIR}/etc/${pkgname}/${pkgname}.conf.example \
${DESTDIR}/etc/${pkgname}/${pkgname}.conf
vmkdir usr/share/examples/${pkgname}
mv ${DESTDIR}/etc/${pkgname}/*.example \
${DESTDIR}/usr/share/examples/${pkgname}
}
mosquitto-clients_package() {
short_desc="Mosquitto command line MQTT clients"
pkg_install() {
@ -36,6 +44,7 @@ libmosquitto-devel_package() {
depends="libmosquitto-${version}_${revision}"
pkg_install() {
vmove usr/include/mosquitto.h
vmove usr/include/mosquitto_plugin.h
vmove usr/lib/libmosquitto.so
vmove usr/share/man/man3/libmosquitto.3
}