Compare commits

..

No commits in common. "main" and "ddns-go-bin" have entirely different histories.

5 changed files with 70 additions and 3 deletions

24
.SRCINFO Normal file
View file

@ -0,0 +1,24 @@
pkgbase = ddns-go-bin
pkgdesc = 简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)
pkgver = 4.0.4
pkgrel = 1
url = https://github.com/jeessy2/ddns-go
arch = x86_64
arch = i686
arch = aarch64
arch = armv6h
license = MIT
provides = ddns-go
conflicts = ddns-go
source = ddns-go.service
sha256sums = c264ee5afaee8abed884cdd167f2e3281e08c3d74778790263163c114cd650d5
source_x86_64 = https://github.com/jeessy2/ddns-go/releases/download/v4.0.4/ddns-go_4.0.4_Linux_x86_64.tar.gz
sha256sums_x86_64 = f97fef6a8aaa094425b34484c3779e43517efe19e5e7de8e886a448e7689448f
source_i686 = https://github.com/jeessy2/ddns-go/releases/download/v4.0.4/ddns-go_4.0.4_Linux_i386.tar.gz
sha256sums_i686 = f05d8a4ffaf6f50e3fd77c8375a4627a735bef051298ec3951195923b43d2421
source_aarch64 = https://github.com/jeessy2/ddns-go/releases/download/v4.0.4/ddns-go_4.0.4_Linux_arm64.tar.gz
sha256sums_aarch64 = cc1cdf7be37f747ac3b7d86dd73fd12c7cd6302d38cf9bc742622151d1b8ae99
source_armv6h = https://github.com/jeessy2/ddns-go/releases/download/v4.0.4/ddns-go_4.0.4_Linux_armv6.tar.gz
sha256sums_armv6h = 2ab029f41b2581b7daa2a6331b54db14bd9785a5546f71340189e73b16f2515e
pkgname = ddns-go-bin

7
.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
src
pkg
*.zst
*.asar
*.xz
*.tar
*.gz

27
PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
_pkgname=ddns-go
pkgname=${_pkgname}-bin
pkgver=4.0.4
pkgrel=1
pkgdesc='简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)'
license=('MIT')
arch=('x86_64' 'i686' 'aarch64' 'armv6h')
url="https://github.com/jeessy2/${_pkgname}"
provides=(${_pkgname})
conflicts=(${_pkgname})
source=(${_pkgname}.service)
source_x86_64=("https://github.com/jeessy2/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_Linux_x86_64.tar.gz")
source_i686=("https://github.com/jeessy2/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_Linux_i386.tar.gz")
source_aarch64=("https://github.com/jeessy2/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_Linux_arm64.tar.gz")
source_armv6h=("https://github.com/jeessy2/${_pkgname}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_Linux_armv6.tar.gz")
sha256sums=('c264ee5afaee8abed884cdd167f2e3281e08c3d74778790263163c114cd650d5')
sha256sums_x86_64=('f97fef6a8aaa094425b34484c3779e43517efe19e5e7de8e886a448e7689448f')
sha256sums_i686=('f05d8a4ffaf6f50e3fd77c8375a4627a735bef051298ec3951195923b43d2421')
sha256sums_aarch64=('cc1cdf7be37f747ac3b7d86dd73fd12c7cd6302d38cf9bc742622151d1b8ae99')
sha256sums_armv6h=('2ab029f41b2581b7daa2a6331b54db14bd9785a5546f71340189e73b16f2515e')
package() {
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 "${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
}

View file

@ -1,3 +0,0 @@
# aur.git
This is a experimental mirror of the aur.git repository backing [the AUR](https://aur.archlinux.org).

12
ddns-go.service Normal file
View file

@ -0,0 +1,12 @@
[Unit]
Description=简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/usr/bin/ddns-go "-l" ":9876" "-f" "300" "-c" "/etc/ddns-go.yaml"
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target