From c7b8dc3166f206b6d86208d330ac775954b95098 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Fri, 14 Nov 2014 23:19:16 +0100 Subject: Bump schedule, mv_perl --- sys-apps/schedule/ChangeLog | 5 ++ sys-apps/schedule/Manifest | 2 +- sys-apps/schedule/schedule-6.3.1.ebuild | 86 --------------------------------- sys-apps/schedule/schedule-7.0.0.ebuild | 86 +++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+), 87 deletions(-) delete mode 100644 sys-apps/schedule/schedule-6.3.1.ebuild create mode 100644 sys-apps/schedule/schedule-7.0.0.ebuild (limited to 'sys-apps') diff --git a/sys-apps/schedule/ChangeLog b/sys-apps/schedule/ChangeLog index 2d2691be..acf12565 100644 --- a/sys-apps/schedule/ChangeLog +++ b/sys-apps/schedule/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*starter-7.0.0 (14 Nov 2014) + + 14 Nov 2014; Martin Väth : + Version bump, remove old ebuild + *starter-6.3.1 (11 Nov 2014) 11 Nov 2014; Martin Väth : diff --git a/sys-apps/schedule/Manifest b/sys-apps/schedule/Manifest index 9c4a05d6..259a00e3 100644 --- a/sys-apps/schedule/Manifest +++ b/sys-apps/schedule/Manifest @@ -1 +1 @@ -DIST schedule-v6.3.1.tar.gz 44694 SHA256 d8e1400cf29c0f6791601272d7fd8aea02e066c69abe6fbe2afc2670668f3ea6 SHA512 cf1e0cfca1b57823085753e1b3d1a6a906c022247a41283cae500cf184eb13e736c63f7b4f9eb5597e87e1fc220aacb7749e0d31c773eaf1ea4a8799aa681907 WHIRLPOOL c247647b312021818b40197b1200470afe7ab21235b2cdc17372d3e8242f77bdd5bc79e2894cc1909868e2106ef9ae2ea663f1b21f27a2db0eae974a37a2bc73 +DIST schedule-v7.0.0.tar.gz 46031 SHA256 3eb0fb1f80197e2a0cb81d9519f9e1c65fd099b84d87ee6c70213a2a1290644e SHA512 3c61dc7ca8c2ecf8b9a3e2d2e5f09dd4bc9d22d24277a453738d6e02d25f30c51cc7eccefc43625ea60728107433223453131cee537dd0b994693773aa65f72b WHIRLPOOL d384ccbe739391b5143c03b143e1529fb130ccff0aaa4979e1d24f08a8f8ec6a108e2ad9b409232647aa7e1b8fcc87345bdb928863bcc25108125a7d53b5303a diff --git a/sys-apps/schedule/schedule-6.3.1.ebuild b/sys-apps/schedule/schedule-6.3.1.ebuild deleted file mode 100644 index 13018cce..00000000 --- a/sys-apps/schedule/schedule-6.3.1.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -RESTRICT="mirror" -inherit eutils readme.gentoo 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 -> ${PN}-v${PV}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -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 - epatch_user -} - -src_install() { - dobin bin/* - dodoc README ChangeLog - insinto "/usr/share/${PN}" - doins -r lib/* - 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" - ) -} - -generate_password() ( - umask 027 - for i in {1..50} - do printf "%s" "${RANDOM}" - done >"${EPREFIX}/etc/schedule.password" -) - -pkg_postinst() { - optfeature "colored output" '>=dev-lang/perl-5.14' 'virtual/perl-Term-ANSIColor' - optfeature "encryption support" 'dev-perl/Crypt-Rijndael' - 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 -} diff --git a/sys-apps/schedule/schedule-7.0.0.ebuild b/sys-apps/schedule/schedule-7.0.0.ebuild new file mode 100644 index 00000000..13018cce --- /dev/null +++ b/sys-apps/schedule/schedule-7.0.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +RESTRICT="mirror" +inherit eutils readme.gentoo 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 -> ${PN}-v${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +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 + epatch_user +} + +src_install() { + dobin bin/* + dodoc README ChangeLog + insinto "/usr/share/${PN}" + doins -r lib/* + 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" + ) +} + +generate_password() ( + umask 027 + for i in {1..50} + do printf "%s" "${RANDOM}" + done >"${EPREFIX}/etc/schedule.password" +) + +pkg_postinst() { + optfeature "colored output" '>=dev-lang/perl-5.14' 'virtual/perl-Term-ANSIColor' + optfeature "encryption support" 'dev-perl/Crypt-Rijndael' + 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 +} -- cgit v1.2.3-65-gdbad