makedeb
简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)
Click here to go back to the commit logs for ddns-go-bin.
Hash: 3316eb4a6624c6cf11da4bebdf9197649f015951
Message: Disable service automatically when removing
diff --git a/.SRCINFO b/.SRCINFO
index 2feb2ed..a00768d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = ddns-go-bin
pkgbase = ddns-go-bin
pkgdesc = 简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)
-pkgrel = 3
+pkgrel = 4
pkgver = 3.7.2
url = https://github.com/jeessy2/ddns-go
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index b72e81f..f38785b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _repo=jeessy2/ddns-go
pkgname=${_pkgname}-bin
pkgver=3.7.2
-pkgrel=3
+pkgrel=4
pkgdesc='简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、华为云)'
license=('MIT')
arch=('any')
@@ -42,4 +42,8 @@ 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"
+
+ # Add install scripts
+ prerm="src/prerm"
+ echo "systemctl disable --now ddns-go" > "${srcdir}/prerm"
}