blob: 8904a8a5c81f32e3099400d9d7860bf455f988dd (
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
|
# shellcheck shell=bash
# shellcheck disable=SC2034 # Various variables that are used by makepkg
# shellcheck disable=SC2154 # Various variables that are provided by makepkg
# Maintainer: eomanis at web dot de
pkgname='yabddnsd'
_pkgverUpstream="0.11.0"
pkgver="${_pkgverUpstream//-/.}"
pkgrel=2
pkgdesc="Yet another bash dynamic DNS daemon"
arch=('any')
url='https://www.eomanis.dedyn.io/permshare/yabddnsd/'
license=('GPL3')
depends=('bash>=4.4' 'bc' 'bind-tools' 'coreutils' 'findutils' 'grep' 'iproute2' 'sed' 'wget')
optdepends=('miniupnpc: Detection of public IPv4 address using UPnP')
replaces=('freedns-maintain-ip')
source=("https://www.eomanis.dedyn.io/permshare/yabddnsd/yabddnsd-${_pkgverUpstream}.tar.gz")
sha384sums=('b01ffa34f0198d1ce8084d7648b41f498005e3cd18579cd003b90477c027e2b547c64496a751efaeeb5d3abc13397663')
package() {
local srcRootDir="${srcdir}/${pkgname}-${_pkgverUpstream}"
# Create the required directories
install --mode=u=rwx,go=rx --directory \
"${pkgdir}/usr/bin" \
"${pkgdir}/usr/lib/systemd/system" \
"${pkgdir}/usr/share/man/man8"
# Place the files
install --mode=u=rwx,go=rx --target-directory="${pkgdir}/usr/bin" "${srcRootDir}/yabddnsd"
install --mode=u=rw,go=r --target-directory="${pkgdir}/usr/lib/systemd/system" "${srcRootDir}/systemd/yabddnsd@.service"
# Gzip and place the manual pages
gzip --fast --to-stdout - < "${srcRootDir}/yabddnsd.8" > "${pkgdir}/usr/share/man/man8/yabddnsd.8.gz"
gzip --fast --to-stdout - < "${srcRootDir}/systemd/yabddnsd.service.8" > "${pkgdir}/usr/share/man/man8/yabddnsd.service.8.gz"
chmod -R u=rwX,go=rX "${pkgdir}/usr/share/man/man8"
}
|