diff options
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/Manifest.gz | bin | 10286 -> 10289 bytes | |||
-rw-r--r-- | sys-process/fcron/Manifest | 2 | ||||
-rw-r--r-- | sys-process/fcron/fcron-3.3.1-r2.ebuild | 271 | ||||
-rw-r--r-- | sys-process/fcron/files/fcron-3.3.1-gcc15-bool.patch | 71 | ||||
-rw-r--r-- | sys-process/glances/Manifest | 4 | ||||
-rw-r--r-- | sys-process/glances/glances-4.0.6.ebuild | 1 | ||||
-rw-r--r-- | sys-process/glances/glances-4.1.2.1.ebuild | 3 |
7 files changed, 347 insertions, 5 deletions
diff --git a/sys-process/Manifest.gz b/sys-process/Manifest.gz Binary files differindex fe3b8aaf1f02..60825d21e040 100644 --- a/sys-process/Manifest.gz +++ b/sys-process/Manifest.gz diff --git a/sys-process/fcron/Manifest b/sys-process/fcron/Manifest index 9bd6b82c4ec0..2ce85d7018fe 100644 --- a/sys-process/fcron/Manifest +++ b/sys-process/fcron/Manifest @@ -1,9 +1,11 @@ AUX crontab.2 1098 BLAKE2B f7fe284c580292df08c7591c61802d0df1fa496e79a11d1c67bb37249f8548b5b2073ff8e94de02ed4dfcccf07c11443a1d1a1b08697115f311bf77536921704 SHA512 5e1a23ad70fb79275c8a29137284ccb13f1fbb4387ba61875065e003aafe03aeb1709819bf2803a70494f15c42a69883c9c5272219f625e7c5ff53c4459e5d42 AUX fcron-3.1.1-noreadline.patch 716 BLAKE2B 766336a43f54b067073c3a9c6def5ebd2d3f3280324bcb63f50c0c85de20d753b82693f6a8886b321c54fedd866cade90dacee69e28a132488ac14c65c8f7902 SHA512 152aaa299abd8ec546dc73ca7527d3162c14cec47cc670d82c7312f0fe64545a2c0c9ed82ae79ee4fe028ca009d37f6f4843e4c2ec6e6ee7cf7e8b97dc61ec71 AUX fcron-3.2.1-musl-getopt-order.patch 1420 BLAKE2B 69da87a05cae2e750eb1cf09a4a716aad900b1109db8fc9c94da87193e04fb640d14d9d369894db93caa18acd1e8934fc2ffcf708b982ed17ed8bb825a40d4cc SHA512 684e921840deccb7f0bda56ba39304d7637d03ac61d9d80669b09501b86f5867e37fca0d88ae0710c175cea3d978533e4a8d8bfcfbfa6b1f7aefc6e29e3827c5 +AUX fcron-3.3.1-gcc15-bool.patch 2011 BLAKE2B 8f15574fcb3edfa1bcfdae71d039c2b182bd5bed677df657f03a661a29700a39bbf77c11bd25a9f3c1dbb25ad55b2585834a3e0f134070869f5e49745013a649 SHA512 505ae170024b535733bf5aced22255051ebf967eee31bfb22a29185ec405ac49ba9af7cc325a0ce52339eaca282d4b5c1da4758913e33465e961b9bebb529531 AUX fcron.confd 134 BLAKE2B 3ab11ae5641f1c2f049da2aec3d1561fa3b10b7fe5d29701e5fb1e8b75a613c110924999ed0afed3b7118196636c1c3198b4499127e4065200791d821ab737ce SHA512 58a66cd495fcb6a9b49f1d244357dfd61188a0c09d2c02a93c9250b8d77d9b89aff41d947e25fd4c1248f39b6a97f045e760b52cdf2f065145a8bfe74b7bf25e AUX fcron.init-r5 2633 BLAKE2B 3e3a1991f67f9e9ed2021c8ed0f7442032feb88af89088caad2fd0c090e8c588a8621b45a7b320309065f1a5bef743aa00bf9cb2e531ddb55104ccdba43c9350 SHA512 bf53158d6326a742fc3af0cdf196f76a2930f61e58c8a7f4488d3a17aa18bdbd12a3258034f649ae9998627caec7c55bf4c392265525a8fa7c6614cc38f2d0e0 AUX fcrontab.2 226 BLAKE2B 4fc55d14c44797b1dcc34000de1a9ffa43b1a52037db5dcec76854dfc4c84283dceafdc84f2dec9dfcb95dd5a39d90f31c828b819d29122b2b7b2135f4c65899 SHA512 f0c74c2cd601750f7de8d9926278bd79026b236f2bda4033fe1961c48171b3aa3712bd8d8917f9c784bf0ce54ed09781572cb7e9397d9579a8ba6a114c1e5c2e DIST fcron-3.3.1.tar.gz 593688 BLAKE2B 5c2f91667c94fc9eae7ae014a7826ab1f26647a192425630dbdb84bbe3c9041be23a2a480eb13844dc18a5ba406fe77a157938af1e0343e5f9b0ce1a1405d66b SHA512 b9c5066bdf8588a6b8d811ccc0d49f1d41a17dabf898a280997a8136dc449c2a505c46868abf732f86184ff0720d51f17442691909acae8fb26edcd180cff281 EBUILD fcron-3.3.1-r1.ebuild 7095 BLAKE2B 2b2ecc9eecdbb7f6362bcb0048fcacbb38c91f35263649473263c521c34c892141ddef55deccebe7dc8ea0c9099ae54aa515b56305f43f3804bee498cd1f904c SHA512 ed443144eae45377b1cee07f7a71bbe8a391a7bc13b6580bb3bcead7b3b480adf20de194cff836624c0e4755b14fc5f033fc0d068455f92d4833073ed96c929a +EBUILD fcron-3.3.1-r2.ebuild 7145 BLAKE2B e5962e3ba5b30c6503b5d0ac905bdeb7298485fc297dfb0efca8e171d6ef84027b002d3e92b18ab3b05f726226cbfcbf74974cf36c7ecec88722f5f909d3234e SHA512 4cda8d3058cc4f76ec98659f67e6d25043d0b38285c2f882b498a3da0471a01661b346daa0f66409c64f165be631d69bf169f4e3180244a4033d416fd4866b12 MISC metadata.xml 1320 BLAKE2B 169511184222d072788a2f66e329a149147d91003767e0c2a9a88db1d71a4c809b828563e2296960f132db96d4fe46996dbecdbb5e6badb3ec72d9998e111ad0 SHA512 6becadb18f88e7601111bace913a59e37c9337a4fea7442511872da351a03a7751fe38caa1eb5872a16d67069cba5a04388fe5c872dd2cfa79342fdb9f42ac7c diff --git a/sys-process/fcron/fcron-3.3.1-r2.ebuild b/sys-process/fcron/fcron-3.3.1-r2.ebuild new file mode 100644 index 000000000000..dd7b74892519 --- /dev/null +++ b/sys-process/fcron/fcron-3.3.1-r2.ebuild @@ -0,0 +1,271 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +WANT_AUTOMAKE="none" + +inherit autotools cron flag-o-matic pam systemd user-info + +MY_PV="${PV/_beta/}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A command scheduler with extended capabilities over cron and anacron" +HOMEPAGE="http://fcron.free.fr/" +SRC_URI="http://fcron.free.fr/archives/${MY_P}.src.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="audit debug pam selinux l10n_fr +mta +system-crontab readline" + +DEPEND=" + acct-group/fcron + acct-user/fcron + virtual/libcrypt:= + audit? ( sys-process/audit ) + pam? ( sys-libs/pam ) + readline? ( sys-libs/readline:= ) + selinux? ( sys-libs/libselinux ) +" + +RDEPEND=" + ${DEPEND} + app-misc/editor-wrapper + mta? ( virtual/mta ) + pam? ( sys-auth/pambase ) +" + +PATCHES=( + "${FILESDIR}"/fcron-3.1.1-noreadline.patch + "${FILESDIR}"/fcron-3.2.1-musl-getopt-order.patch + "${FILESDIR}"/fcron-3.3.1-gcc15-bool.patch +) + +pkg_setup() { + rootuser=$(egetent passwd 0 | cut -d ':' -f 1) + [[ ${rootuser} ]] || rootuser=root + rootgroup=$(egetent group 0 | cut -d ':' -f 1) + [[ ${rootgroup} ]] || rootgroup=root +} + +src_prepare() { + default + + # respect LDFLAGS + sed "s:\(@LIBS@\):\$(LDFLAGS) \1:" -i Makefile.in || die "sed failed" + + # Adjust fcrontab path + sed -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' -i script/check_system_crontabs.sh || die + + mv configure.in configure.ac || die + + cp "${FILESDIR}"/crontab.2 "${WORKDIR}"/crontab || die + + eautoconf +} + +src_configure() { + # Don't try to pass --with-debug as it'll play with cflags as + # well, and run foreground which is a _very_ nasty idea for + # Gentoo. + use debug && append-cppflags -DDEBUG + + # bindir is used just for calling fcronsighup + local myeconfargs=( + --with-cflags="${CFLAGS}" + --bindir=/usr/libexec + --sbindir=/usr/libexec + $(use_with audit) + $(use_with mta sendmail) + $(use_with pam) + $(use_with readline) + $(use_with selinux) + --sysconfdir=/etc/fcron + --with-username=fcron + --with-groupname=fcron + --with-piddir=/run + --with-spooldir=/var/spool/fcron + --with-fifodir=/run + --with-fcrondyn=yes + --disable-checks + --with-editor=/usr/libexec/editor + --with-shell=/bin/sh + --without-db2man + --without-dsssl-dir + --with-rootname=${rootuser} + --with-rootgroup=${rootgroup} + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + # bug #216460 + sed \ + -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \ + -e 's:/usr/local/etc:/etc:g' \ + -e 's:/usr/local/:/usr/:g' \ + -i doc/*/*/*.{txt,1,5,8,html} \ + || die "unable to fix documentation references" +} + +src_install() { + keepdir /var/spool/fcron + + exeinto /usr/libexec + doexe fcron fcronsighup + + dobin fcrondyn fcrontab + + insinto /etc/fcron + doins files/fcron.{allow,deny,conf} + + if use system-crontab; then + dosym fcrontab /usr/bin/crontab + + exeinto /usr/libexec + newexe script/check_system_crontabs.sh check_system_crontabs + + insinto /etc/fcron + newins "${FILESDIR}"/fcrontab.2 fcrontab + + fowners ${rootuser}:fcron /etc/fcron/fcrontab + fperms 0640 /etc/fcron/fcrontab + + insinto /etc + newins "${FILESDIR}"/crontab.2 crontab + fi + + fowners fcron:fcron \ + /var/spool/fcron \ + /usr/bin/fcron{dyn,tab} + + # fcronsighup needs to be suid root, because it sends a HUP to the + # running fcron daemon, but only has to be called by the fcron group + # anyway + fowners ${rootuser}:fcron \ + /usr/libexec/fcronsighup \ + /etc/fcron/fcron.{allow,deny,conf} \ + /etc/fcron + + fperms 6770 /var/spool/fcron + fperms 6755 /usr/bin/fcron{dyn,tab} + + fperms 4710 /usr/libexec/fcronsighup + + fperms 0750 /etc/fcron + fperms 0640 /etc/fcron/fcron.{allow,deny,conf} + + use pam && pamd_mimic system-services fcron auth account session + cat > "${T}"/fcrontab.pam <<- EOF + # Don't ask for the user's password; fcrontab will only allow to + # change user if running as root. + auth sufficient pam_permit.so + + # Still use the system-auth stack for account and session as the + # sysadmin might have set up stuff properly, and also avoids + # sidestepping limits (since fcrontab will run \$EDITOR). + account include system-auth + session include system-auth + EOF + use pam && newpamd "${T}"/fcrontab.pam fcrontab + + newinitd "${FILESDIR}"/fcron.init-r5 fcron + systemd_newunit "${S}/script/fcron.init.systemd" fcron.service + + newconfd "${FILESDIR}"/fcron.confd fcron + + local DOCS=( MANIFEST VERSION "${WORKDIR}/crontab") + DOCS+=( doc/en/txt/{readme,thanks,faq,todo,relnotes,changes}.txt ) + + local HTML_DOCS=( doc/en/HTML/. ) + + einstalldocs + + newdoc files/fcron.conf fcron.conf.sample + doman doc/en/man/*.{1,5,8} + + for lang in fr; do + use l10n_${lang} || continue + + doman -i18n=${lang} doc/${lang}/man/*.{1,5,8} + + docinto html/${lang} + dodoc -r doc/${lang}/HTML/. + done +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + elog "Make sure you execute" + elog "" + elog " # emerge --config ${CATEGORY}/${PN}" + elog "" + elog "to install the default systab on this system." + else + local v + for v in ${REPLACING_VERSIONS}; do + if ver_test "3.2.1" -gt ${v}; then + # This is an upgrade + + elog "fcron's default systab was updated since your last installation." + elog "You can use" + elog "" + elog " # emerge --config ${CATEGORY}/${PN}" + elog "" + elog "to re-install systab (do not call this command before you" + elog "have merged your configuration files)." + + # Show this elog only once + break + fi + done + fi + + if ! use system-crontab; then + echo "" + ewarn "Remember that fcron will *not* use /etc/cron.d in this configuration" + ewarn "due to USE=-system-crontab!" + echo "" + fi +} + +pkg_config() { + if [[ $(fcrontab -l -u systab 2>/dev/null) ]]; then + eerror "We're not going to make any change to your systab as long as" + eerror "it contains data; please clear it before proceeding." + eerror "You can do that with" + eerror "" + eerror " # fcrontab -u systab -r" + eerror "" + eerror "However you are advised to do this by hand to review existing" + eerror "systab just in case." + return 1 + fi + + if use system-crontab; then + elog "This is going to set up fcron to execute check_system_crontabs." + elog "In this configuration, /etc/crontab and /etc/cron.d are respected." + elog "Per default fcron will check for modifications every 10 minutes." + /usr/libexec/check_system_crontabs -v -i -f + else + elog "This is going to set up fcron to set up a default systab that" + elog "executes /etc/cron.{hourly,daily,weekly,monthly} but will ignore" + elog "/etc/crontab and /etc/cron.d." + fcrontab -u systab - <<- EOF + !serial(true) + 00 * * * * /bin/rm -f /var/spool/cron/lastrun/cron.hourly + 00 00 * * * /bin/rm -f /var/spool/cron/lastrun/cron.daily + 00 00 * * 6 /bin/rm -f /var/spool/cron/lastrun/cron.weekly + 00 00 1 * * /bin/rm -f /var/spool/cron/lastrun/cron.monthly + */10 * * * * /usr/bin/test -x /usr/sbin/run-crons && /usr/sbin/run-crons + !serial(false) + EOF + fi +} diff --git a/sys-process/fcron/files/fcron-3.3.1-gcc15-bool.patch b/sys-process/fcron/files/fcron-3.3.1-gcc15-bool.patch new file mode 100644 index 000000000000..838f7977bfa3 --- /dev/null +++ b/sys-process/fcron/files/fcron-3.3.1-gcc15-bool.patch @@ -0,0 +1,71 @@ +Fix for GCC 15 + +Fixed upstream in a larger https://github.com/yo8192/fcron/commit/2b18ac9cd8647dd32367fdf07eafa24c51cbe410#diff-9fc4ab3ff6d27d1cb665e161fac24bc5d31ce38c12c6653fb8a63640033691d4 + +--- a/fcrondyn_svr.c ++++ b/fcrondyn_svr.c +@@ -250,7 +250,7 @@ auth_client_so_peercred(struct fcrondyn_cl *client) + * Sets client->fcl_user on success, don't do anything on failure + * so that the client stays unauthenticated */ + { +- const int true = 1; ++ const int value = 1; + /* There is no ucred.h (or equivalent) on linux to define struct ucred (!!) + * so we do it here */ + #if ! ( defined(HAVE_CRED_H) && defined(HAVE_UCRED_H) \ +@@ -265,8 +265,8 @@ auth_client_so_peercred(struct fcrondyn_cl *client) + socklen_t cred_size = sizeof(cred); + struct passwd *p_entry = NULL; + +- setsockopt(client->fcl_sock_fd, SOL_SOCKET, SO_PASSCRED, &true, +- sizeof(true)); ++ setsockopt(client->fcl_sock_fd, SOL_SOCKET, SO_PASSCRED, &value, ++ sizeof(value)); + if (getsockopt + (client->fcl_sock_fd, SOL_SOCKET, SO_PEERCRED, &cred, + &cred_size) != 0) { +--- a/fileconf.c ++++ b/fileconf.c +@@ -464,34 +464,34 @@ get_bool(char *ptr, int *i) + * return NULL on error */ + { + if (*ptr == '1') +- goto true; ++ goto conf_true; + else if (*ptr == '0') +- goto false; ++ goto conf_false; + else if (strncmp(ptr, "true", 4) == 0) { + ptr += 3; +- goto true; ++ goto conf_true; + } + else if (strncmp(ptr, "yes", 3) == 0) { + ptr += 2; +- goto true; ++ goto conf_true; + } + else if (strncmp(ptr, "false", 5) == 0) { + ptr += 4; +- goto false; ++ goto conf_false; + } + else if (strncmp(ptr, "no", 2) == 0) { + ptr += 1; +- goto false; ++ goto conf_false; + } + else + return NULL; + +- true: ++ conf_true: + *i = 1; + ptr++; + return ptr; + +- false: ++ conf_false: + *i = 0; + ptr++; + return ptr; diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest index 130d5a232e43..b1c6f9d9208c 100644 --- a/sys-process/glances/Manifest +++ b/sys-process/glances/Manifest @@ -2,6 +2,6 @@ AUX glances-4.0.6-disable-update-check.patch 1379 BLAKE2B ca1b269e272ca0160a0225 AUX glances-4.0.6-doc-install-path.patch 691 BLAKE2B 447b2a7f570f46d66aa4bddbc07ac264eb704dc7c77cfdea82787ff99e3c2f73a06bf67f07191bfb89fffef672d6f63de4bb26991ad074d02cc93de96c389d25 SHA512 c64c8ca54b2c614d1b53149d66936270059a62e6b75f16a09fd7777c0098d65877ed0b2d8b689c2e6a292fc4c6b6d52df8c71e7474c2d637d3ccce282da244c2 DIST glances-4.0.6.gh.tar.gz 6622650 BLAKE2B 82290999d94ea46bb5671a6eb2959cbb4246dd231fddbb6ad72108d7270faf5a3da5f73f25d1bdb8987a6db79d7a07eb05581fa7b4d7406df97cffb274e20387 SHA512 d5bb804aff6dbc5147a185cb613ca9f402b43fc2d9bef1e80dfd90db3fe11f445aade0d73e987a9a3665c4bf4f210dd3d1a98e9b53e028ef4e49a9111b527f0d DIST glances-4.1.2.1.gh.tar.gz 6579592 BLAKE2B 2c22bd5bc4c1a162b92dcb016363dcf789c13b0fbeaab091f0f84d5538885b7c7e20347620491cc248242e25f81806119d82395ee72623ca2a80ffab78cddf56 SHA512 a440e6fb39c6aac3fa846e49268170e2a7c1a331a7b319dbe9d5cadf8aa9975146a5fae7d99abc085a9f9aadc739281073f5a99f95f456132a2e78b14898f340 -EBUILD glances-4.0.6.ebuild 1716 BLAKE2B 4deb43a38281b3cea9b952455891e821bd92e4b6ee463cbb23df4856b89b99e7a58bcc4aa1c0182d1fe409aef1c3efc336b32ceb2e0e6c10d7ba8d197e75791f SHA512 72180210928d1ccd3cd44954819ef4a59052ab9afdaff46ea0daabe41b050d1bdb65adbff83012108fbf7919131a17431e4978f8e8b0da6d8574ce26da1a1cf2 -EBUILD glances-4.1.2.1.ebuild 1938 BLAKE2B 4272c6a9d6ed41125abdc2f5af4c7974ac88458c262635e8aa77ee42854d7f10954bf06afd0d105c7f871b90fe45b5fa5a89c575b6ba74dc7941de6a4191c4d8 SHA512 67a9e5bbb450e14ffc41de662d4753e23137bf63e7a2c200b5fcd92e6a6cc138619ab32bcb21f62c0cd08601da6273ee3b0603d032f255d0dbdd7009e3ebf967 +EBUILD glances-4.0.6.ebuild 1665 BLAKE2B bfea80a7adebe5faeba48f5081a08b43b976c8be4e0d37f9a60230db3c3d5ab61d63fbe2d3d1466acb64716e66ec825f7adae8c4e3990bd0b45d0c1218818125 SHA512 4d6bea2143cb9fabdbaa758cc82a6dd6c202c2debf8e9497e4c56ed6cd68a2431177b520b856b69bd11028fa8c3a1074bee53cff169a42575e461df5c710e881 +EBUILD glances-4.1.2.1.ebuild 1886 BLAKE2B a5b74b23a90d8b3f0a81a040e8b5283ae6c3377cb594b134c6db869b8517a89952a29a571ac4a8f50127b2b0a3722c61491492f337a067ce5c10d80652f974d2 SHA512 6a2a7c6947370e20d977e4d206135fd14bea26c3078d13ff755f9c12eab22c7ade8e25a7d5089a1827edfa0e83e5c60ea0de9a534dd974a79a2b74436d4d9ead MISC metadata.xml 854 BLAKE2B 2490007fac08af17714511646730b34390bcbffe42db3cb1fe39ab5f4dd3f7e5979e58732d26863194c9ca3ef1daafb5242184a432eb08d70590a4dea9761be5 SHA512 8de66d9b8bc3c603f95ab355869bd0f6720652711462021af5efbda012fbefeacc155f2c29613fe33095edc9b2699e28a692284fca14bfd4166c329dfa78138a diff --git a/sys-process/glances/glances-4.0.6.ebuild b/sys-process/glances/glances-4.0.6.ebuild index 5d5f32ec09d1..49f02a9164bd 100644 --- a/sys-process/glances/glances-4.0.6.ebuild +++ b/sys-process/glances/glances-4.0.6.ebuild @@ -58,5 +58,4 @@ pkg_postinst() { optfeature "RAID monitoring" dev-python/pymdstat optfeature "RAID support" dev-python/pymdstat optfeature "SNMP support" dev-python/pysnmp - optfeature "WIFI plugin" net-wireless/python-wifi } diff --git a/sys-process/glances/glances-4.1.2.1.ebuild b/sys-process/glances/glances-4.1.2.1.ebuild index 004d5d8bd23c..f49bd2b3a439 100644 --- a/sys-process/glances/glances-4.1.2.1.ebuild +++ b/sys-process/glances/glances-4.1.2.1.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/nicolargo/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar LICENSE="LGPL-3" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" RDEPEND=" $(python_gen_cond_dep ' @@ -66,5 +66,4 @@ pkg_postinst() { optfeature "RAID monitoring" dev-python/pymdstat optfeature "RAID support" dev-python/pymdstat optfeature "SNMP support" dev-python/pysnmp - optfeature "WIFI plugin" net-wireless/python-wifi } |