From 74f6ae46c5551bef312e0f63211594fde00ddae6 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Fri, 1 Jun 2018 11:35:01 +0200 Subject: sys-apps/schedule sys-kernel/kernel: Version bump (better interplay) --- sys-apps/schedule/Manifest | 2 +- sys-apps/schedule/schedule-7.5.4.ebuild | 93 --------------------------------- sys-apps/schedule/schedule-7.6.ebuild | 93 +++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+), 94 deletions(-) delete mode 100644 sys-apps/schedule/schedule-7.5.4.ebuild create mode 100644 sys-apps/schedule/schedule-7.6.ebuild (limited to 'sys-apps/schedule') diff --git a/sys-apps/schedule/Manifest b/sys-apps/schedule/Manifest index a64a0359..c68477cc 100644 --- a/sys-apps/schedule/Manifest +++ b/sys-apps/schedule/Manifest @@ -1 +1 @@ -DIST schedule-7.5.4.tar.gz 48142 SHA512 d0eb24ca6a6895fdbed9e0e8492353560fb010c8e7a4c97e6f04af0a4226fdd9029a459f2de19b0489231269c38f9464dbfaf44b440b83975521b33ff868b732 +DIST schedule-7.6.tar.gz 49284 SHA512 0eae43393d0519bb0c081a9e97468dbcb44aacb9662740f40eb495ad4b26202fc0a3f8eb5fc71cfd255e9af682da1af83767bcf4db610a895a380d11898abe6d diff --git a/sys-apps/schedule/schedule-7.5.4.ebuild b/sys-apps/schedule/schedule-7.5.4.ebuild deleted file mode 100644 index 29da9553..00000000 --- a/sys-apps/schedule/schedule-7.5.4.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 2014-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -RESTRICT="mirror" -inherit readme.gentoo-r1 user systemd - -DESCRIPTION="script to schedule jobs in a multiuser multitasking environment" -HOMEPAGE="https://github.com/vaeth/schedule/" -SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -# These should really depend on USE-flags but must not by policy. -# Waiting for https://bugs.gentoo.org/show_bug.cgi?id=424283 -OPTIONAL_RDEPEND="|| ( >=dev-lang/perl-5.14 virtual/perl-Term-ANSIColor ) -dev-perl/Crypt-Rijndael" - -RDEPEND=">=dev-lang/perl-5.12 - !=dev-lang/perl-5.10.1 >=virtual/perl-version-0.77 ) -# || ( >=dev-lang/perl-5.1 virtual/perl-File-Path ) -# || ( >=dev-lang/perl-5.9.4 virtual/perl-File-Spec-3.0 ) -# || ( >=dev-lang/perl-5.6.1 >=virtual/perl-Getopt-Long-2.24 ) -# || ( >=dev-lang/perl-5.6.0 >=virtual/perl-IO-1.190.0 ) -# || ( >=dev-lang/perl-5.9.4 virtual/perl-Digest-SHA) # for encryption -DEPEND="" - -DISABLE_AUTOFORMATTING="true" -DOC_CONTENTS="It is recommended to put a lengthy passphrase into the first line -of /etc/schedule.password and to change permission so that only users allowed -to access the system schedule-server can read it. - -You might want to adapt /etc/conf.d/schedule to your needs. -If you use systemd, you might want to override schedule.service locally in -/etc/systemd/system to adapt it to your needs." - -src_prepare() { - use prefix || sed -i \ - -e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \ - -e '1s"^#!/usr/bin/env perl$"#!'"${EPREFIX}/usr/bin/perl"'"' \ - -e 's"^/usr/share/schedule"${EPREFIX}/usr/share/${PN}"' \ - -e '/^use FindBin;/,/^\}$/d' \ - -- bin/* || die - default -} - -src_install() { - dobin bin/* - dodoc README ChangeLog - insinto /usr - doins -r share - doinitd openrc/init.d/* - doconfd openrc/conf.d/* - systemd_dounit systemd/system/* - doenvd env.d/* - insinto /usr/share/zsh/site-functions - doins zsh/* - insinto /etc - ( - umask 027 - : >"${ED}/etc/schedule.password" - ) - readme.gentoo_create_doc -} - -generate_password() ( - umask 027 - for i in {1..50} - do printf "%s" "${RANDOM}" - done >"${EPREFIX}/etc/schedule.password" -) - -pkg_postinst() { - if ! use prefix - then enewgroup schedule - enewuser schedule -1 -1 -1 schedule - fi - if ! test -s "${EPREFIX}/etc/schedule.password" - then if generate_password - then ewarn "You should fill ${EPREFIX}/etc/schedule.password with a random password:" - ewarn "the current random value is not necessarily cryptographically strong." - chown 'schedule:schedule' -- "${EPREFIX}/etc/schedule.password" || \ - ewarn "failed to set permissions for ${EPREFIX}/etc/schedule.password" - else ewarn "failed to generate ${EPREFIX}/etc/schedule.password" - fi - fi - readme.gentoo_print_elog -} diff --git a/sys-apps/schedule/schedule-7.6.ebuild b/sys-apps/schedule/schedule-7.6.ebuild new file mode 100644 index 00000000..d3ab53bb --- /dev/null +++ b/sys-apps/schedule/schedule-7.6.ebuild @@ -0,0 +1,93 @@ +# Copyright 2014-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +RESTRICT="mirror" +inherit readme.gentoo-r1 user systemd + +DESCRIPTION="script to schedule jobs in a multiuser multitasking environment" +HOMEPAGE="https://github.com/vaeth/schedule/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# These should really depend on USE-flags but must not by policy. +# Waiting for https://bugs.gentoo.org/show_bug.cgi?id=424283 +OPTIONAL_RDEPEND="|| ( >=dev-lang/perl-5.14 virtual/perl-Term-ANSIColor ) +dev-perl/Crypt-Rijndael" + +RDEPEND=">=dev-lang/perl-5.12 + !=dev-lang/perl-5.10.1 >=virtual/perl-version-0.77 ) +# || ( >=dev-lang/perl-5.1 virtual/perl-File-Path ) +# || ( >=dev-lang/perl-5.9.4 virtual/perl-File-Spec-3.0 ) +# || ( >=dev-lang/perl-5.6.1 >=virtual/perl-Getopt-Long-2.24 ) +# || ( >=dev-lang/perl-5.6.0 >=virtual/perl-IO-1.190.0 ) +# || ( >=dev-lang/perl-5.9.4 virtual/perl-Digest-SHA) # for encryption +DEPEND="" + +DISABLE_AUTOFORMATTING="true" +DOC_CONTENTS="It is recommended to put a lengthy passphrase into the first line +of /etc/schedule.password and to change permission so that only users allowed +to access the system schedule-server can read it. + +You might want to adapt /etc/conf.d/schedule to your needs. +If you use systemd, you might want to override schedule.service locally in +/etc/systemd/system to adapt it to your needs." + +src_prepare() { + use prefix || sed -i \ + -e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \ + -e '1s"^#!/usr/bin/env perl$"#!'"${EPREFIX}/usr/bin/perl"'"' \ + -e 's"^/usr/share/schedule"${EPREFIX}/usr/share/${PN}"' \ + -e '/^use FindBin;/,/^\}$/d' \ + -- bin/* || die + default +} + +src_install() { + dobin bin/* + dodoc README.md ChangeLog + insinto /usr + doins -r share + doinitd openrc/init.d/* + doconfd openrc/conf.d/* + systemd_dounit systemd/system/* + doenvd env.d/* + insinto /usr/share/zsh/site-functions + doins zsh/* + insinto /etc + ( + umask 027 + : >"${ED}/etc/schedule.password" + ) + readme.gentoo_create_doc +} + +generate_password() ( + umask 027 + for i in {1..50} + do printf "%s" "${RANDOM}" + done >"${EPREFIX}/etc/schedule.password" +) + +pkg_postinst() { + if ! use prefix + then enewgroup schedule + enewuser schedule -1 -1 -1 schedule + fi + if ! test -s "${EPREFIX}/etc/schedule.password" + then if generate_password + then ewarn "You should fill ${EPREFIX}/etc/schedule.password with a random password:" + ewarn "the current random value is not necessarily cryptographically strong." + chown 'schedule:schedule' -- "${EPREFIX}/etc/schedule.password" || \ + ewarn "failed to set permissions for ${EPREFIX}/etc/schedule.password" + else ewarn "failed to generate ${EPREFIX}/etc/schedule.password" + fi + fi + readme.gentoo_print_elog +} -- cgit v1.2.3-18-g5258