diff options
author | Julien Freyermuth | 2016-08-13 11:36:43 +0200 |
---|---|---|
committer | Julien Freyermuth | 2016-08-13 11:36:43 +0200 |
commit | a4aed7e2271fabcbb84cbfd019dbf6a65a038be2 (patch) | |
tree | dde31e0e85cdff8e7db472756c0e431274339622 | |
parent | f52ad7f54cd52df3525ceb422d05ec76f083facd (diff) | |
download | aur-a4aed7e2271fabcbb84cbfd019dbf6a65a038be2.tar.gz |
Some changes. Have daemon mode
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | pingormail-0.0.1.tar.gz | bin | 2657 -> 2643 bytes | |||
-rw-r--r-- | pingormail.install | 13 |
4 files changed, 10 insertions, 17 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# mar. août 2 13:17:58 UTC 2016 +# sam. août 13 09:36:30 UTC 2016 pkgbase = pingormail pkgdesc = Ping address. If no result, it send an email pkgver = 0.0.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/Chipsterjulien/pingormail install = pingormail.install arch = any @@ -12,7 +12,7 @@ pkgbase = pingormail options = !strip backup = etc/pingormail/pingormail.toml source = pingormail-0.0.1.tar.gz - sha512sums = ddc5c7a15297cfb0f2c34d68e014a1f7cf4f2bb1bad0717222d3b588d364c9dbc6d88369df82e3eb0d7266c5b7ba011d6dd8841fa8a23d34104f55226e3ac38c + sha512sums = 108504ed4fc3325823c215c254b58a672dde861fb8015743277f16b9da66b6db976cc61f28cdf5c4332ad93a0eca65c8668e0086173b3cdf0da039d8dad32c15 pkgname = pingormail @@ -2,7 +2,7 @@ pkgname=pingormail pkgver=0.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="Ping address. If no result, it send an email" arch=('any') url="https://github.com/Chipsterjulien/pingormail" @@ -72,13 +72,9 @@ package() { install -Dm644 systemd/"$pkgname".service \ "$pkgdir"/usr/lib/systemd/system/"$pkgname".service || return 1 - # pingormail.timer - install -Dm644 systemd/"$pkgname".timer \ - "$pkgdir"/usr/lib/systemd/system/"$pkgname".timer || return 1 - # pingormail binary install -m755 -o root -g root -D "$srcdir"/$pkgname-$pkgver/$pkgname-$pkgver \ "$pkgdir"/usr/bin/$pkgname || return 1 } -sha512sums=('ddc5c7a15297cfb0f2c34d68e014a1f7cf4f2bb1bad0717222d3b588d364c9dbc6d88369df82e3eb0d7266c5b7ba011d6dd8841fa8a23d34104f55226e3ac38c') +sha512sums=('108504ed4fc3325823c215c254b58a672dde861fb8015743277f16b9da66b6db976cc61f28cdf5c4332ad93a0eca65c8668e0086173b3cdf0da039d8dad32c15') diff --git a/pingormail-0.0.1.tar.gz b/pingormail-0.0.1.tar.gz Binary files differindex c5c40b993983..e8c2eaa7a456 100644 --- a/pingormail-0.0.1.tar.gz +++ b/pingormail-0.0.1.tar.gz diff --git a/pingormail.install b/pingormail.install index e5ad089fa3f1..6711dd38d42f 100644 --- a/pingormail.install +++ b/pingormail.install @@ -8,9 +8,9 @@ post_install() { # Reload systemctl systemctl daemon-reload - echo "Adding pingormail in systemctl:" - echo " systemctl enable pingormail.timer" - echo " systemctl start pingormail.timer" + echo "Adding pingormail in systemctl if you want always use it:" + echo " systemctl enable pingormail" + echo " systemctl start pingormail" true } @@ -19,18 +19,15 @@ post_upgrade() { # Reload systemctl systemctl daemon-reload - #echo "You should restart pingormail.timer" - #echo " systemctl restart pingormail.timer" - true } pre_remove() { pkgname=pingormail # Remove symlink in systemd - systemctl disable "$pkgname".timer + systemctl disable "$pkgname" # Stop server - systemctl stop "$pkgname".timer + systemctl stop "$pkgname" # Reload systemctl systemctl daemon-reload |