Commit 2c1ed3fc authored by Michał Polański's avatar Michał Polański Committed by Rasmus Thomsen

main/umurmur: modernize

- use SPDX license identifier
- fix linter warnings
- update url to use https
parent b56c45c4
......@@ -2,32 +2,28 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=umurmur
pkgver=0.2.17
pkgrel=4
pkgrel=5
pkgdesc="Minimalistic Mumble server primarily targeted to run on routers"
url="http://umurmur.net/"
url="https://umurmur.net/"
arch="all"
license="BSD"
depends=""
license="BSD-3-Clause"
options="!check" # no test suite
makedepends="libconfig-dev openssl-dev protobuf-c-dev autoconf automake"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
subpackages="$pkgname-openrc"
pkgusers="umurmur"
pkggroups="umurmur"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz
source="$pkgname-$pkgver.tar.gz::https://github.com/umurmur/umurmur/archive/$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
$pkgname.conf"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare || return 1
cd "$builddir"
default_prepare
autoreconf -fi
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,29 +31,19 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-ssl=openssl \
|| return 1
make || return 1
--with-ssl=openssl
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 "$srcdir"/$pkgname.conf \
"$pkgdir"/etc/$pkgname/umurmurd.conf || return 1
install -Dm755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -Dm644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname/umurmurd.conf
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -Dm644 AUTHORS ChangeLog README.md \
"$pkgdir"/usr/share/doc/$pkgname/
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="a496a51fd7815ad117f5aee17bb78cbd319c584ad60ab8aebbfd8ddf7b1760f443f2337bc74be1e0d5af17d3c3df2ae6c9060eca576cf1e6ed4c6cb0825e9c15 umurmur-0.2.17.tar.gz
1c22da6478738b8ac77aecbbf8e41260a957ddffec350020e56b622c70445ebf8dc28feb563b878f2c64132742d8e1e0cbcbd2a50f0c0b29a309ca29598d8c94 umurmur.initd
b6412621522c9148d5eaced25ff4fb023b0c84206a969120e261b4a89386c46961f1c485435a1763935f538c04c03f7b4b83d45779f1ba796b627cdb0d2436a0 umurmur.confd
ea5d4826d270f174b23ef4101586ffa3c6ba3311bc443595288dc1839f4127f5fa4bf64f9469037a2f947e3ddd22ac1895326db0fdd4122980d3fcaa0536621e umurmur.confd
0a5882dca2daf686716d7b78f916e4506c7b98e3460ccd56aace087dca88b686b659e32b325bf253922cc824049a800b06e5006ea04cc5539c82b63cda5cccea umurmur.conf"
# Additional flags to be passed to umurmurd
UMURMURD_OPTS=""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment