aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-08-01 13:54:43 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-08-01 15:05:29 +0000
commit2c1ed3fc26c7bd5027d1cb16708fa0fbec72f4de (patch)
tree68c7bf3a5e1960d107cfbc8c6d2ca5e4f0a2495d
parentb56c45c48ecf141ec95ed4ff45e16bf67cd9db54 (diff)
downloadaports-2c1ed3fc26c7bd5027d1cb16708fa0fbec72f4de.tar.gz
aports-2c1ed3fc26c7bd5027d1cb16708fa0fbec72f4de.tar.bz2
aports-2c1ed3fc26c7bd5027d1cb16708fa0fbec72f4de.tar.xz
main/umurmur: modernize
- use SPDX license identifier - fix linter warnings - update url to use https
-rw-r--r--main/umurmur/APKBUILD42
-rw-r--r--main/umurmur/umurmur.confd1
2 files changed, 14 insertions, 29 deletions
diff --git a/main/umurmur/APKBUILD b/main/umurmur/APKBUILD
index a9c4cd66a5..330d4b808d 100644
--- a/main/umurmur/APKBUILD
+++ b/main/umurmur/APKBUILD
@@ -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"
diff --git a/main/umurmur/umurmur.confd b/main/umurmur/umurmur.confd
index df168aa9fc..ec63afd805 100644
--- a/main/umurmur/umurmur.confd
+++ b/main/umurmur/umurmur.confd
@@ -1,3 +1,2 @@
# Additional flags to be passed to umurmurd
UMURMURD_OPTS=""
-