diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-06-09 12:26:14 -0700 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-06-10 09:49:04 +0000 |
commit | 4e50456e8664a51e279076d7e280eaea30d347c2 (patch) | |
tree | 0d2333958c1aba04b67a2228ff584c96c5a01154 | |
parent | f813d796d9a2712917daa37a4004017ae3340a2f (diff) | |
download | alpine_aports-4e50456e8664a51e279076d7e280eaea30d347c2.tar.bz2 alpine_aports-4e50456e8664a51e279076d7e280eaea30d347c2.tar.xz alpine_aports-4e50456e8664a51e279076d7e280eaea30d347c2.zip |
testing/miniflux: new aport
https://miniflux.app/
Miniflux is a minimalist and opinionated feed reader.
Closes GH-8708
-rw-r--r-- | testing/miniflux/APKBUILD | 47 | ||||
-rw-r--r-- | testing/miniflux/miniflux.conf | 5 | ||||
-rw-r--r-- | testing/miniflux/miniflux.confd | 2 | ||||
-rw-r--r-- | testing/miniflux/miniflux.initd | 19 | ||||
-rw-r--r-- | testing/miniflux/miniflux.logrotate | 11 | ||||
-rw-r--r-- | testing/miniflux/miniflux.pre-install | 7 |
6 files changed, 91 insertions, 0 deletions
diff --git a/testing/miniflux/APKBUILD b/testing/miniflux/APKBUILD new file mode 100644 index 0000000000..96dfab555a --- /dev/null +++ b/testing/miniflux/APKBUILD | |||
@@ -0,0 +1,47 @@ | |||
1 | # Contributor: Frédéric Guillot <fred@miniflux.net> | ||
2 | # Maintainer: Frédéric Guillot <fred@miniflux.net> | ||
3 | pkgname=miniflux | ||
4 | pkgver=2.0.16 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="Minimalist and opionated feed reader" | ||
7 | url="https://miniflux.app/" | ||
8 | arch="all" | ||
9 | license="Apache-2.0" | ||
10 | makedepends="go" | ||
11 | install="$pkgname.pre-install" | ||
12 | subpackages="$pkgname-openrc $pkgname-doc" | ||
13 | source="${pkgname}-${pkgver}.tar.gz::https://github.com/miniflux/miniflux/archive/${pkgver}.tar.gz | ||
14 | miniflux.initd | ||
15 | miniflux.confd | ||
16 | miniflux.conf | ||
17 | miniflux.logrotate | ||
18 | " | ||
19 | pkggroups="miniflux" | ||
20 | |||
21 | build() { | ||
22 | make miniflux VERSION=$pkgver | ||
23 | } | ||
24 | |||
25 | check() { | ||
26 | CGO_ENABLED=0 go test ./... | ||
27 | } | ||
28 | |||
29 | package() { | ||
30 | install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname | ||
31 | install -m755 -D "$srcdir"/$pkgname.initd \ | ||
32 | "$pkgdir"/etc/init.d/$pkgname | ||
33 | install -m644 -D "$srcdir"/$pkgname.confd \ | ||
34 | "$pkgdir"/etc/conf.d/$pkgname | ||
35 | install -m640 -o root -g miniflux -D "$srcdir/$pkgname.conf" \ | ||
36 | "$pkgdir/etc/$pkgname.conf" | ||
37 | install -m644 -D "$srcdir"/$pkgname.logrotate \ | ||
38 | "$pkgdir"/etc/logrotate.d/$pkgname | ||
39 | install -m644 -D miniflux.1 \ | ||
40 | "${pkgdir}/usr/share/man/man1/miniflux.1" | ||
41 | } | ||
42 | |||
43 | sha512sums="048638887358b2f82fed532100d7eeea6d2c35834f9355f256cd6489f77efef570d039bd7f1c1d903c25e92257905cac215adbd6c78829ff6c5ef0da28d0df62 miniflux-2.0.16.tar.gz | ||
44 | 31d3d5928d1021cdd276868f1c66414a24e644965d4140cf4412b6dabd102e7e310195b14543eeb4040f0399b6faffafed2b1c8d95ce52fa9824ecfb2d71dd22 miniflux.initd | ||
45 | a1fca92e9005b9c8c80310060b0c23d91c435ef57d12c138d7f4a6ffb6a23ebc9bfc76e963385dfd4f9cef4ea1c7009521595f621617e56eae6efd3e54670d56 miniflux.confd | ||
46 | fc0084e0d31a4ce29fc0110411dba8f9fd60c16af08a3364b3f828558981a308a5f9871908594753d868cdf9faf86f84f95e0134afdff8983da2b179ebdd24c1 miniflux.conf | ||
47 | f9d594df6ea267b6d1f060090d39825998a03af02751ee5af446e84c84794ae01d16617c2737f00c3af5325fb27f26aa680b4ba1747dcf16acb22dbc23477e7d miniflux.logrotate" | ||
diff --git a/testing/miniflux/miniflux.conf b/testing/miniflux/miniflux.conf new file mode 100644 index 0000000000..958a7ff424 --- /dev/null +++ b/testing/miniflux/miniflux.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | # https://miniflux.app/docs/configuration.html | ||
2 | # https://miniflux.app/miniflux.1.html | ||
3 | |||
4 | LOG_DATE_TIME=yes | ||
5 | LISTEN_ADDR=127.0.0.1:8080 | ||
diff --git a/testing/miniflux/miniflux.confd b/testing/miniflux/miniflux.confd new file mode 100644 index 0000000000..576e814c1b --- /dev/null +++ b/testing/miniflux/miniflux.confd | |||
@@ -0,0 +1,2 @@ | |||
1 | miniflux_opts="-config-file /etc/miniflux.conf" | ||
2 | miniflux_log_file="/var/log/miniflux.log" | ||
diff --git a/testing/miniflux/miniflux.initd b/testing/miniflux/miniflux.initd new file mode 100644 index 0000000000..ee8c36f7a5 --- /dev/null +++ b/testing/miniflux/miniflux.initd | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/sbin/openrc-run | ||
2 | |||
3 | supervisor=supervise-daemon | ||
4 | name=miniflux | ||
5 | command="/usr/bin/$name" | ||
6 | command_args="$miniflux_opts" | ||
7 | command_user="miniflux:miniflux" | ||
8 | pidfile="/run/$name.pid" | ||
9 | start_stop_daemon_args="--stdout $miniflux_log_file --stderr $miniflux_log_file" | ||
10 | |||
11 | depend() { | ||
12 | need net | ||
13 | after firewall | ||
14 | } | ||
15 | |||
16 | start_pre() { | ||
17 | checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$miniflux_log_file" | ||
18 | [ -f "/etc/conf.d/${RC_SVCNAME}" ] && checkpath --file --mode 0600 --owner root:root "/etc/conf.d/${RC_SVCNAME}" | ||
19 | } | ||
diff --git a/testing/miniflux/miniflux.logrotate b/testing/miniflux/miniflux.logrotate new file mode 100644 index 0000000000..04dfe79e95 --- /dev/null +++ b/testing/miniflux/miniflux.logrotate | |||
@@ -0,0 +1,11 @@ | |||
1 | /var/log/miniflux.log { | ||
2 | daily | ||
3 | missingok | ||
4 | notifempty | ||
5 | rotate 15 | ||
6 | compress | ||
7 | sharedscripts | ||
8 | postrotate | ||
9 | /etc/init.d/miniflux --quiet --ifstarted restart || true | ||
10 | endscript | ||
11 | } | ||
diff --git a/testing/miniflux/miniflux.pre-install b/testing/miniflux/miniflux.pre-install new file mode 100644 index 0000000000..09e0ce4afd --- /dev/null +++ b/testing/miniflux/miniflux.pre-install | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | addgroup -S miniflux 2>/dev/null | ||
4 | adduser -S -D -H -s /bin/nologin -G miniflux -g miniflux miniflux 2>/dev/null | ||
5 | |||
6 | exit 0 | ||
7 | |||