diff options
Diffstat (limited to 'pcr/mosquitto/PKGBUILD')
-rw-r--r-- | pcr/mosquitto/PKGBUILD | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/pcr/mosquitto/PKGBUILD b/pcr/mosquitto/PKGBUILD index 24bbd9961..3777d5676 100644 --- a/pcr/mosquitto/PKGBUILD +++ b/pcr/mosquitto/PKGBUILD @@ -1,44 +1,49 @@ # This is the PKGBUILD for mosquitto, an MQTT broker and example clients -# Maintainer (Arch): Alexander Rust <mail at alr dot st> -# Contributor (Arch): Dan Anderson <dan-anderson at cox dptnet> + +# Maintainer: Alexander Rust <mail at alr dot st> +# Contributor: Dan Anderson <dan-anderson at cox dptnet> pkgname=mosquitto -pkgver=1.1.3 -pkgrel=3 +pkgver=1.3.2 +pkgrel=1 pkgdesc="An Open Source MQTT v3.1 Broker" -arch=('i686' 'x86_64' 'arm' 'armv6h' 'mips64el') +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'mips64el') url="http://mosquitto.org/" -makedepends=('python') -optdepends=('python: python support') -license=('BSD') -source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" - "binmerge.patch") -md5sums=('fd0cae17221d778b0a002c31e6c3de9e' +depends=('openssl' 'c-ares') +makedepends=('python' 'docbook-xsl' 'c-ares') +license=('custom:BSD' 'custom:OpenSSL') +source=(http://mosquitto.org/files/source/$pkgname-$pkgver.tar.gz{,.asc} "$pkgname.service" "$pkgname.install" "docbook.patch" "usr_move.patch") +install=$pkgname.install +md5sums=('5d2fe7c8bf2518eb9829547751c04bbf' 'SKIP' - '58af79ed48be928f91e5435cda82bb8b' - '27e24b672d63b797f0e026ab85c64c4b') + '83dcdd5318ffe33d112b4b7a55269f05' + 'bfabddbce1d8c856cbb52517a7917d4c' + '8e1c14e99d7eba210b874e80b5153f0d' + 'b37551bbdccf751cdc5ea5b25afd2f5a') prepare() { - cd "$srcdir/$pkgname-$pkgver/src" - patch -N -i ${srcdir}/binmerge.patch + cd "$srcdir/$pkgname-$pkgver" + #patch -p1 < ../docbook.patch +# patch -p1 < ../usr_move.patch + sed "s/\/sbin/\/bin/g" -i src/Makefile } build() { cd "$srcdir/$pkgname-$pkgver" - make prefix=/usr + make } package() { cd "$srcdir/$pkgname-$pkgver" + make prefix=/usr DESTDIR="$pkgdir/" install - - # Systemd service file - install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service - - # License files - install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE - install -Dm644 LICENSE-3rd-party.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE-3rd-party -} -# vim:set ts=2 sw=2 et: + # systemd service file + install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" + echo 'pid_file /run/mosquitto.pid' >> "$pkgdir/etc/mosquitto/mosquitto.conf.example" + + # license files + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 LICENSE-3rd-party.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE-3rd-party" +} |