aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-02-22 19:35:46 +0100
committerTBK <tbk@jjtc.eu>2020-03-23 13:33:00 +0100
commitbf791a0484a2d38c5e0350f6874ee7312a70b5d6 (patch)
tree219cb9c7a968773a4d1a14ca6b2f2db315f5687d
parent3245de00089e3c1ee237f7cc2b32d5421b4f51d0 (diff)
downloadaports-bf791a0484a2d38c5e0350f6874ee7312a70b5d6.tar.gz
aports-bf791a0484a2d38c5e0350f6874ee7312a70b5d6.tar.bz2
aports-bf791a0484a2d38c5e0350f6874ee7312a70b5d6.tar.xz
community/inadyn: 2.7
Add openrc subpkg
-rw-r--r--community/inadyn/APKBUILD23
-rw-r--r--community/inadyn/inadyn.initd21
-rw-r--r--community/inadyn/inadyn.pre-install6
l---------community/inadyn/inadyn.pre-upgrade1
4 files changed, 46 insertions, 5 deletions
diff --git a/community/inadyn/APKBUILD b/community/inadyn/APKBUILD
index 2581f06a63..0c43eab367 100644
--- a/community/inadyn/APKBUILD
+++ b/community/inadyn/APKBUILD
@@ -1,26 +1,39 @@
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=inadyn
-pkgver=2.6
+pkgver=2.7
pkgrel=0
pkgdesc="Dynamic DNS client with TLS support"
url="https://troglobit.com/projects/inadyn"
arch="all"
license="GPL-2.0-or-later"
options="!check" # not test suite
+install="$pkgname.pre-install $pkgname.pre-upgrade"
depends="ca-certificates"
makedepends="confuse-dev gnutls-dev"
-subpackages="$pkgname-doc"
-source="https://github.com/troglobit/inadyn/releases/download/v$pkgver/inadyn-$pkgver.tar.gz"
+subpackages="$pkgname-doc $pkgname-openrc"
+source="https://github.com/troglobit/inadyn/releases/download/v$pkgver/inadyn-$pkgver.tar.gz
+ inadyn.initd
+ "
build() {
./configure \
- --prefix=/usr
+ --prefix=/usr \
+ --sysconfdir=/etc/inadyn \
+ --localstatedir=/var \
+ --runstatedir=/run/inadyn
make
}
package() {
make DESTDIR="$pkgdir" install
+
+ install -Dm644 examples/inadyn.conf \
+ "$pkgdir/etc/$pkgname/$pkgname.conf"
+
+ install -Dm755 "$srcdir/$pkgname.initd" \
+ "$pkgdir/etc/init.d/$pkgname"
}
-sha512sums="1f3a7e4cbb7d6f4442eb521ba6d7a12dacefa20305ae4252a2cfacba03ba6a61b10862bbfd1a9c26042278cac93a423b63a27004aaca75ddea008a1ada601a1e inadyn-2.6.tar.gz"
+sha512sums="900ada5d47222373034b9bc4bb3c167540edc584938fb34e8a274d681dc08be89ae9356a7344faa1689d255b6ee6cb83999df96a659174538497ab299fe91359 inadyn-2.7.tar.gz
+1f05c76788c80f4b1a844d9aa5869f8a3d7444a704dab1510186edde969ed1b529e7134867b830fa9319e29265dc7f5fdf39c54f4bb07d3b9138f1d03528b878 inadyn.initd"
diff --git a/community/inadyn/inadyn.initd b/community/inadyn/inadyn.initd
new file mode 100644
index 0000000000..551aee2fcf
--- /dev/null
+++ b/community/inadyn/inadyn.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+name=$RC_SVCNAME
+description="DynDNS client"
+cfgfile="/etc/$RC_SVCNAME/$RC_SVCNAME.conf"
+command="/usr/sbin/$RC_SVCNAME"
+command_args="-f $cfgfile"
+command_user="$RC_SVCNAME"
+supervisor="supervise-daemon"
+command_args_foreground="--foreground"
+
+depend() {
+ need net
+ use logger dns
+ after bootmisc
+}
+
+start_pre() {
+ checkpath --directory --owner $command_user:$command_user --mode 0755 \
+ /run/$RC_SVCNAME /var/cache/$RC_SVCNAME
+ $command --check-config -f $cfgfile
+}
diff --git a/community/inadyn/inadyn.pre-install b/community/inadyn/inadyn.pre-install
new file mode 100644
index 0000000000..ddb81d26f2
--- /dev/null
+++ b/community/inadyn/inadyn.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S inadyn 2>/dev/null
+adduser -S -D -H -h /dev/null -s /sbin/nologin -G inadyn -g inadyn inadyn 2>/dev/null
+
+exit 0
diff --git a/community/inadyn/inadyn.pre-upgrade b/community/inadyn/inadyn.pre-upgrade
new file mode 120000
index 0000000000..a2a5495e10
--- /dev/null
+++ b/community/inadyn/inadyn.pre-upgrade
@@ -0,0 +1 @@
+inadyn.pre-install \ No newline at end of file