diff options
4 files changed, 38 insertions, 7 deletions
diff --git a/app-admin/openrc-restart-crashed/Manifest b/app-admin/openrc-restart-crashed/Manifest index 017fa944..b31d497a 100644 --- a/app-admin/openrc-restart-crashed/Manifest +++ b/app-admin/openrc-restart-crashed/Manifest @@ -1,3 +1,5 @@ -AUX openrc-restart-crashed.cron 402 SHA256 8da0ad29c919989dc9403b268c60819c53e189874cfda0d17d0dedf3eb7a9c90 SHA512 440cde30e23f46bdad97252fb022f06b162c63d2774961cb945721e683e3f38a738d095f53f4656d06db54c1e2aea7a9d507fc77eb279d5fbff1d62e52fe7d94 WHIRLPOOL d609b8dcf2360e58d824ce3a6263237cd0f5abffa588824d8793e51a69cf87b96909bda2d8d2bea51db58073f77670fa134482641810c086324867010dc73f8f -DIST openrc-restart-crashed-v1.0.0.tar.gz 8848 SHA256 edc6aad54d6dc28ba9d000ff4062cf1ec395274df63ec30b52cdb4bac09accbe SHA512 f04ea1b785f6abaf62719067f08136e6d5cdd77fe63cbc4c6db8814afb5f7609df3ebd34f0ef3ba8bdd62af1571ef1b1eae04cc2f0689bfc05bb1f3f2d9c5f7d WHIRLPOOL 3db185dc0ac95decaf0af86ff5a915356c425d7644c138c142a2e0e273d3759ca136d5043127dc280135ef60116d447ce2d31d321c71d711107c5b4ba87a256f -EBUILD openrc-restart-crashed-1.0.0.ebuild 733 SHA256 8c648a8a387bfd218665f11ae42fb32af0a6d6e8edb2d9e9f855e350335fb138 SHA512 ff8337ce5267cbd29f17658b3c7607d25ebd10bff8ed8bdd51562e3925a89022067abb011337d2794b024c5a38b7f910ac9f2022be49c0a52291434a0a775a31 WHIRLPOOL c1e087ff18e625b606347443b203ed057991b377b608593e7890db77b767de141f1fbc55d9b14b1f00ac0399bb35fee0679fd64ced91dd0995ab064b10a4e872 +AUX openrc-restart-crashed.cron 408 SHA256 2c66356575e1e928905d368004495719667ba390f10955f51cc7bd2070d0d9ec SHA512 3346d0bd55eaf2b571e1fe9d0e21c7918a08bc33067046d5b0bd36c1511fa0a284ecf0f06ddb3b3d60926e75a58322b5a9f2a90d42a0aeb5ea8ff159325df716 WHIRLPOOL d26cf2b31c8bbce22824aaaf6d567e044439fd0c20f42cb2f5eb311c0f3d3f2964fcf26c9c07454ba2a959a7d9298e6a9e3e6566a0bec374a5535b98b4492e14 +DIST openrc-restart-crashed-1.0.0.tar.gz 8848 SHA256 edc6aad54d6dc28ba9d000ff4062cf1ec395274df63ec30b52cdb4bac09accbe SHA512 f04ea1b785f6abaf62719067f08136e6d5cdd77fe63cbc4c6db8814afb5f7609df3ebd34f0ef3ba8bdd62af1571ef1b1eae04cc2f0689bfc05bb1f3f2d9c5f7d WHIRLPOOL 3db185dc0ac95decaf0af86ff5a915356c425d7644c138c142a2e0e273d3759ca136d5043127dc280135ef60116d447ce2d31d321c71d711107c5b4ba87a256f +DIST openrc-restart-crashed-1.0.1.tar.gz 8930 SHA256 7a165a32a7a6a1881587d6bf79701a2453e6cca0cf5842349a5689844130eb99 SHA512 f28447a1e25d28de6bccdd61f0cb6b2c0a4854ce8038f50e901d5eb6ecd4e3657ea9ffddc2c4f012f80b1f98c1a74e77b343d0cadade7e654f3659aefe931a36 WHIRLPOOL f8c6a5b05732c8fbcd95aa8e08a3a169af856c65464a99185c1c49189e1b0a42212c8dac2d56c7687aeed1239d34019d3dcdda13467e57edae238a7697453ce7 +EBUILD openrc-restart-crashed-1.0.0.ebuild 642 SHA256 1de33705beb456d12022cb99da6957632abbe8b8f1ffab4e953666365a499b0e SHA512 e59f637350703dead91077db0f5febbbc3ce07fe6b1ff896a61c443e658e68cc43ec0b9b4f52f506c32c7c2a5f7bbba8195c0ab890f95d0ae92d43b3bd480691 WHIRLPOOL 32006506529c8b2dd1d952c571e476d9c875067d1e78dde73b09e92263c2eb1d69613b0e7750b91e635ebbc7d3afc267a2f34630bb404aafe7f58a3f178b3c78 +EBUILD openrc-restart-crashed-1.0.1.ebuild 639 SHA256 4a7737a984736ebfb04af762de4c0a69ff80bed72706e19f6fb63a11ab747aaa SHA512 efee1cae995f3e42c677a8450b78f937540a2af32fa6fcf92562e74604f02c3a5312e788f6418ec8e94b821784a2cd778318571fce6f1b777ca10fd9eeb48544 WHIRLPOOL 821c43863bb37e50d9b39d70829da09bd58503387e1126e770da0888f2e053e3239fed865bcde4d8f250c5e5376ebc9b4891f92f2757d34a7a2999ab001400cf diff --git a/app-admin/openrc-restart-crashed/files/openrc-restart-crashed.cron b/app-admin/openrc-restart-crashed/files/openrc-restart-crashed.cron index c50a0a9e..4158cb80 100644 --- a/app-admin/openrc-restart-crashed/files/openrc-restart-crashed.cron +++ b/app-admin/openrc-restart-crashed/files/openrc-restart-crashed.cron @@ -12,7 +12,7 @@ HOME=/ # hour (0-23) # day of month (1-31) # month of year (1-12) -# day of week (0-6, Sunday == 0) +# day of week (0-7, Sunday == 0 and 7) * * * * * root test -x /usr/local/sbin/openrc-restart-crashed && /usr/local/sbin/openrc-restart-crashed --quiet -- $services diff --git a/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.0.ebuild b/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.0.ebuild index dee57ffe..8381ef9b 100644 --- a/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.0.ebuild +++ b/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.0.ebuild @@ -5,7 +5,7 @@ EAPI=5 DESCRIPTION="Report and optionally restart crashed OpenRC services" HOMEPAGE="https://github.com/srcshelton/openrc-restart-crashed" -SRC_URI="https://github.com/srcshelton/openrc-restart-crashed/archive/v1.0.0.tar.gz -> openrc-restart-crashed-v1.0.0.tar.gz" +SRC_URI="https://github.com/srcshelton/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" @@ -20,10 +20,10 @@ RDEPEND=" src_install() { exeinto "/usr/local/sbin" - doexe "openrc-restart-crashed" + doexe "${PN}" if use cron; then insinto "/etc/cron.d" - newins "${FILESDIR}"/openrc-restart-crashed.cron openrc-restart-crashed + newins "${FILESDIR}/${PN}.cron" "${PN}" fi } diff --git a/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.1.ebuild b/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.1.ebuild new file mode 100644 index 00000000..ba2ad605 --- /dev/null +++ b/app-admin/openrc-restart-crashed/openrc-restart-crashed-1.0.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2016-2018 Stuart Shelton +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="Report and optionally restart crashed OpenRC services" +HOMEPAGE="https://github.com/srcshelton/openrc-restart-crashed" +SRC_URI="https://github.com/srcshelton/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RESTRICT="nomirror" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="+cron" + +RDEPEND=" + >=app-shells/bash-4.0 + sys-apps/openrc + cron? ( virtual/cron )" + +src_install() { + exeinto "/usr/local/sbin" + doexe "${PN}" + + if use cron; then + insinto "/etc/cron.d" + newins "${FILESDIR}/${PN}.cron" "${PN}" + fi +} |