blob: ebd2784d4408e8396e5c121a7454696dff2e8fb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# This is the PKGBUILD for mosquitto, an MQTT broker and example clients
# Maintainer: Alexander Rust <mail at alr dot st>
# Contributor: Dan Anderson <dan-anderson at cox dptnet>
pkgname=mosquitto
pkgver=1.3.5
pkgrel=1
pkgdesc="An Open Source MQTT v3.1 Broker"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'mips64el')
url="http://mosquitto.org/"
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
prepare() {
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
}
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"
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"
}
md5sums=('55094ad4dc7c7985377f43d4fc3d09da'
'SKIP'
'83dcdd5318ffe33d112b4b7a55269f05'
'bfabddbce1d8c856cbb52517a7917d4c'
'8e1c14e99d7eba210b874e80b5153f0d'
'b37551bbdccf751cdc5ea5b25afd2f5a')
|