makedeb
Bidirectional NDP proxy and route maintainer to relay an IPv6 SLAAC network
Click here to go back to the commit logs for magpie.
Hash: 305e0e89719735719bd8c64e90639de9a981df10
Message: Disable service automatically when removing
diff --git a/.SRCINFO b/.SRCINFO
index 68eb966..4e2656d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = magpie
pkgbase = magpie
pkgdesc = Bidirectional NDP proxy and route maintainer to relay an IPv6 SLAAC network
-pkgrel = 2
+pkgrel = 3
pkgver = 1.2.0
url = https://github.com/Menci/magpie
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 0464e80..f0df607 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=magpie
pkgver=1.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="Bidirectional NDP proxy and route maintainer to relay an IPv6 SLAAC network"
arch=(any)
url="https://github.com/Menci/magpie"
@@ -40,4 +40,9 @@ package() {
# License
install -Dm0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+
+ # Add install scripts
+ prerm="src/prerm"
+ echo "systemctl disable --now magpie" > "${srcdir}/prerm"
+
}