diff options
Diffstat (limited to 'sys-process')
381 files changed, 15299 insertions, 0 deletions
diff --git a/sys-process/acct/Manifest b/sys-process/acct/Manifest new file mode 100644 index 000000000000..41f5af32ea36 --- /dev/null +++ b/sys-process/acct/Manifest @@ -0,0 +1,29 @@ +AUX acct-6.5.5-cross-compile.patch 8335 SHA256 368cd7d9598c1c63a082b8aa40989b4701fc04b97ccea136ebcc66ab8b0f0e83 SHA512 c30d71f7ef83ec1aea66bebe40eafcce55047b34f26e929ae1a93279c2371a69fca0934eaf3e1e915e451b2ec2d9ab97eab94d1dfe28e18532747d1815030e91 WHIRLPOOL 0e14c899a7d13f2b23e12229f7ef97280d6e9ce52848045bd00558d2738e4f271f6536bbab675ebee0dfa742d540ac86591d7906d3d3e2e3d1a1c0ed7b5d1b2e +AUX acct-6.5.5-no-gets.patch 779 SHA256 0aa8aac492b2a380c9661362d3731c9827516052c008881182b01b3ca302eece SHA512 adefec843a1339ff1f14c71b2164f1fc77d5f17f053a6da45dfe74851891e89b4a90dda8ef8405b277c9e5f08c18eb6767aae6cc069566526127cd93eba3fd4e WHIRLPOOL 3d7a15bdaaed005c97d9934f09e94594e0e796bb3b4736502e6a77401c8423949d8c1d2caf5e594f2d0c6299d3b032a4c1b025710cb064cf37216707c30d5850 +AUX acct-6.6.1-cross-compile.patch 8519 SHA256 1dfc10e4756657233d4f289e82ef5b9dc8928e75d5425847ae94eb8072455793 SHA512 292a8cf149961c56dd70cdf7a119ae58e563bb42c06873720bd5e0050a88d7d661159d495b0e9171ba2dfe2d96ebbc042144f10a05f6910fd51b767455f33912 WHIRLPOOL b17b622f5a2f2bde8cd25229b26b9f3c33dacd41f9bd731fbf1192bf7fadb842df907f43a949c88bb896c2ec50d3421624bc893824b5fd2bbc9ad1b10619b63e +AUX acct-6.6.1-math.patch 811 SHA256 5b606fed230e5e9370958187ce34e8a723a8e7b850ed9ea98dc94e6c232f5789 SHA512 68ce8785bbe36600a9768a7e249c0de992b5d46a32924b79499dd97e6e6382d74f235cdb1d083b97aee39017bb0f43cc6e574d169e01b5608f0cbc850fa68803 WHIRLPOOL 78cb77bd25bb28827eb9cec9e96c5f80e1f2557a538e5bda6036939cedef1879b3a6ebf6077379b2e39a09e15caf7531fe09f479e647613302859ef0294492a9 +AUX acct-6.6.1-no-gets.patch 834 SHA256 11c09905818c172ac312b32daaf4991846424db6b924df9cda8c37dae979b36a SHA512 2c3b98c798b751a739a3a48346f4749b6173eb65ce88f578cda67a101ac6342e8a7b9478bab755d60dcd13552928c4976c94d45e2c69ef3980cd6552f0c0b8d7 WHIRLPOOL d15e4004afe887824fec3c14200e81d454eacb648993268f247e568d8808fb5339e604d9c83d4cd1c22806a17cab04418cd499c3e99bbc52c18ca3598fac28d5 +AUX acct-6.6.1-texi-failure.patch 1122 SHA256 2f6d044706014d9571ed0de4b1a10c48164a0f2e1280b85beba0c11a3b7d322f SHA512 de33f73389220b440f484c96ec9ec323a640e420d4659bc09dd8b79da366a11d29631abec2be40f0a8d2b4579435b44a54f8f7f61eff8f785c1c28491213d8e3 WHIRLPOOL 574f0409ce70fab4d83dfde69b33d6255778a872e0613461918b97dd90c68f5830d8201c44b6d25e6322825e98f306369b14be6fa574a672c57e02ac13ed9c26 +AUX acct-6.6.2-cross-compile.patch 8540 SHA256 ad59ba4cb3c69445785a366944b30549a9441b716764b5a1c44f083b43217174 SHA512 3afeac0d0271944da5b2e6c9efe487db979025fbbd563a3e088fbdde76296efa4a6de52660bca0690e3c921d62b8c8b9864f689d1cb1dcbcf52a396eaea931f2 WHIRLPOOL 267cd223e4a52cc6d4c852cd5e229e1a68693455f6137d92bdc217f8320e4f2127b55e17fa728fe25a4426f5c36ed92f812c3aaacfb6f1535444af8e3b2708ea +AUX acct-6.6.4-cross-compile.patch 6473 SHA256 45f0130b6ec869523fde0a58336d046834e29535f3cac4c249ba421e1fa0d2b4 SHA512 225f96ceb8ae09c149a7c69093d0dd0ca3a791122c22246bd52848fcc9876c2d85e757a9ab354212299779a5fa1d622c6340eceaad0bc4042a4019f4eed5c004 WHIRLPOOL 30164ad0c7edd2c3e22955b5802e16f9bc16dddd0cc23faa314747e9b5498a6ad785b5b08a50b654953d264fce0f6d2822be7d28198e7ab5f8d8a038419e157c +AUX acct.confd 389 SHA256 03dec915e2f80746a5147f3a6ff34a5ce8d3dc4b0007a318a29c5f9ca91cdb31 SHA512 1d193d675f38ce8360251939ff0fdf89c1ba04244b2f2ee19a4180f180aa464447027dcd532cc044e9da7651c050c42e8bfe6ee350d29be3510395e44790c150 WHIRLPOOL 6298c8a8a8a64774d6fd5543e397c0b1e1f86dc20d440d34a9c6bc23cfd9ab55e59e569a75d2425c4b76d1cf5b407438a00e86057d19a317e4af150ec9617013 +AUX acct.confd-r1 389 SHA256 63b8a38be4404beaa9f0ddce508dc470dac3afa430d8f8a24ea5e1d0baa5e075 SHA512 7d4bfd60f4ef05a55f3e93535c49ad56784f24912fa84991935d3b109e46fb543afaf682fcd085c9183c6747724c9537d25af07799221153eb4659bf5b821992 WHIRLPOOL 94ce14bb6b85e1d13b9a3b16943a83a2b6c63f4c97c7dea37d796c62352e3462ba6a26b03d75a0c457165f4a9120dee9a7d20120d27d8c5d4e1705f8f8d01743 +AUX acct.initd 586 SHA256 6e4cd71f6255881e53a773844901770a0249216d456d1b7d025023a9fe3df003 SHA512 275b0bcbd2f9049d72b7d2699c03265592ac122d7a94f5e8d09bcf7081bcb186e9a52ff8094e1f7de1f275eb0717d19c79269fb583ce35e839fe7121f001f8aa WHIRLPOOL fecee585fbc2455f45ea9f0037b149562e79292ee7d99b9198926ed1024ecba08515a7304a4d30b76ea9faa51fddea3014c648440967f3a5fad4b8e850ea527d +AUX acct.initd-r1 535 SHA256 66c4dbd1bf0da6e8844f55241c53586de7f11b514d9e5ebddcc0c89042dc0fed SHA512 a688d214cde9e485fa1cf4c251c313460a1d95f000770c1e0ae20b560534f84fc899b104be814386daa310ec860eb48a313d1b98b1554d9bf492feb8a20215e4 WHIRLPOOL 0660a6f597a59ae2e9f90ad1c0e5ef08750d99af12a4bc66a2face238bb4c4079346d13133df3bc065313b00ad71dd5586443c549ab67ec38f34b641b51067ba +AUX acct.initd-r2 1080 SHA256 2460cf243392ee8c5bdc6b7d552acd7c595ceb74c7a8119a2f91cc2f503d74dd SHA512 1cf6143f65ce2a00646213b40d83d7aa29a206c740f2f6b81dc6674de3fa8a96ed86bcc32fefd58e2934ded17d49a95e40dfe1b805a6e92c35fa75b420a0b2a1 WHIRLPOOL f7d9f8abea825986e0de2ad09a223f04b920bd7fc60c1d2b15f5d0b5e5c821fc46258c8b15dd6173e196e6357792c2111a44f93cb5758f6836c459634ce49b4f +AUX acct.logrotate 209 SHA256 e3f70c702dd95dc2309688354c08136fad83fdfc28789d6ea5b5ccbe1ea1512f SHA512 a91ac927ce536827eea6c4ce5c454df831d61120ff453582c4e2fa186b1e8ea52792ed529c242e58ce8a575ac5d26bc1a97670880fb51e8c08598d54894fb90e WHIRLPOOL 4a6330ccb4882d30e80c45f22253cdad4658e2f33f3a54aea4745171f1e1ecb9911116c86a5eaaeadfc062584d96eeb8bbee81556f6014cc75b3ff2d807a0b12 +AUX acct.logrotate-r1 304 SHA256 7897bc6985526febbd5a184f3cabdef0247d9845c862001f5ea03127e2d76eae SHA512 54fcb419f433df2a64eb51ecfc8122c4945960ca7d745d7a8816fec441586e15321cdfacb2db1feeec23c66b1b02b4191d3fc53355379a75c2956a00bc743332 WHIRLPOOL fbfe284670001adee5da99a52ff394b0ca5cb30bd3b8833301bae844924d8cc9bb7536965ba5857375d10aa68f7977486f8b3fa9dc0c8eff9e84aa8be5e4d6fe +AUX acct.service 382 SHA256 468040c3fc5be494ba0f84492048c03b6c5919a24549cb94bd42da30a4483743 SHA512 8c2523526eb3185765eac62676761af6758d0090d68ba48aeacc59c7a45f0722c867fb97d02ff3ceaa8d77637d2b915938d545f7d782e4f7aa46861f25364bd3 WHIRLPOOL df650e7d412d95b1f3253ac1b90f6fa9f7e31d9aef514a3d5f400db57ac55358c0343cbc9810b42de61e5e1b783a615afa8768e0216b1add2fd07ceac79f5826 +DIST acct-6.5.5.tar.gz 747225 SHA256 4163c87b9e92a73a65eaeadc6c41caa4626da782ff26d6e7a945edcc140a6fd5 SHA512 6a36548cfe0e68829c94780aac4053f8a5840c5a704b88a9562758408dc64b4e26965743aec51ef02f7780efcfbf42d20805fecb12a68e7e1f279a1259151fb0 WHIRLPOOL 30c431dfe3af181770e261470090528fd21d41b45a234181ef0f1a62226979d4de38f851b1d5e200feba5b08acf30d2fe18a517f6096f3fcbc8e32dca9630be4 +DIST acct-6.6.1.tar.gz 2869677 SHA256 554515611ef9299012b7510050868a48fc178ce1544947123ab46ec50230ffcb SHA512 4bc3d6b41aeafcf8acfdd020057f1b6f15eea3589981387bca7e57aa8fe71d058e8def97f139dd2c11a1ac39f2d8b95bd103d31caff042cf716dd961b9588f5d WHIRLPOOL 097b7c5f55aac40dd5d63b6ce80a1c2809241f3999c15d5c2c3d8f418f1e51b90ed3c5937655dafd9d702fc72b1d1a6faae870e0c2722c3716e097d5d3b98cd1 +DIST acct-6.6.2.tar.gz 852375 SHA256 8ed47b2f893b08f0d67720880adbb48b835a826c314fa52fd52af1cee6870101 SHA512 5942aa3d1faebb29bd6d6ff97c2ba8525dc5a9c85522c3f549ce0772042d3736e19126ddd7e10fe0681a6ac496b8d3aafda0894577a3b64c59f3b78fc222d2b3 WHIRLPOOL 135be28fb3b99ae5c4fb03d21d73a2bb2659d4e209a1444bb4741ae95761191ac74874f0476d3413c4221e2b321de2adf45240b2335b5cac92083d32ab547ebe +DIST acct-6.6.4.tar.gz 853273 SHA256 4c15bf2b58b16378bcc83f70e77d4d40ab0b194acf2ebeefdb507f151faa663f SHA512 413aa446caece8fd773c92e2995bbaa034f63dd0ced521815a676c49f118e02982862b9c0ab7e60be5212c87d1e82ba6325bda212cf4857392a068d359a1e2c2 WHIRLPOOL 28c5405da1e19aa0690fef35e11bbae906e1b9f66724584edbc0b444fb138c71a1d0c9cc5738c249061e32ff0c84053168a0ffe743a0bf583395d4b47b4ae89f +EBUILD acct-6.5.5-r4.ebuild 1169 SHA256 8fb3cfb26d64d6120301e101f572aeb1d4b52d6d3d7d69492830cb874b6beca1 SHA512 666869908d8b461d08ac404d80ffeeb850f200e967a66ecce9caf67c995cfcbc8a995d1c59b3deff92e8ee17ca651fca6c0f6138f1d3183127fd037f5741f704 WHIRLPOOL deb481ed6920a08c133acb37328263a28c23fc7b834374f80d2461e515abee8f7a1f245f2d499e9272cda1d0788e4b3b73b4295eedc73b51428d8c84e58847d1 +EBUILD acct-6.6.1.ebuild 1215 SHA256 30125411aa487ca0adb2bbf971bb06f01b2b6aa0c7e4f5b5be1ed84cbb1a6a5a SHA512 75d43e3cc0e2ffc64db1165a7301d79a881f04ffa7f54aa7dfd9a10bffb28c431ed3ff6f537f445f060d51a3c24656984386bd459d21031aa54edef8c5d90986 WHIRLPOOL 26c761952f061b956514ac6840f0d5da707c117a77d922f56f2b49184252d6ff38eb85c357e2a81338965c6cc319f6f75f02127a9de3929f2a6af033203adc63 +EBUILD acct-6.6.2-r1.ebuild 1091 SHA256 fb7b0c8cdc3dfd935a8024a4ca208840253f3d7713caa2044fe4437768ccc26d SHA512 9b245d213f72bde8e5166b919b36a68b623a982e88829af8ec07645029a3badc11ed51d5e295f05fe6111361e922481bbdeb160bd806d85f373cf1c1a4be235f WHIRLPOOL 1abde0478fb7fbd631405e58e57e08eaa3eb8f6bcf13b8d1a41c98aeb7a273b4406f1fe38ccb8abc0c6398b6bcedd0ac9acd3699dc9245acdca023a25b07bd8e +EBUILD acct-6.6.2.ebuild 1088 SHA256 6fdd0cf4b81622afff56b67a0fdd91bf3f69bbd602269ef2a09ce91b3f3ad578 SHA512 111fa62f46d1e12b475a8440d2577c5019f7812c33ec95a155ab01a784913231fab963c021f01051bd14f134bd378279bd677325f890183f6d4ff2f7cd553be7 WHIRLPOOL 9dec0e08755aa2fe2cf69b3890430e5df1cb75243eeeaf3e0434582709332d9c3ba5b094303d55606e7d4e7be213688bb8eeabc26aff6d603c7289d3e1774f8f +EBUILD acct-6.6.4-r1.ebuild 1042 SHA256 1c149b4efa5c4c514d2d7ab4122be7e6034e3439e5b86bd8b18443297b320716 SHA512 e808a7f43f4f7f84d6dcd0bf240d13ec523b2f3d19e107f7908a3fbb8850f8a14e0a6812f3e626c2e81fff63e333f566a6ec3cb95df299733168c4b97c68ef50 WHIRLPOOL b94d98fd8d970f8ed06e3dd269146dfe09b36c0eb2f4534abd5a9f21e56468483904f1a771e0e08a7b8e166b2a50a81998db74abd9d8450fb01f5803e5c92d9c +EBUILD acct-6.6.4.ebuild 1042 SHA256 39982601726fc79f158ef38ddc3c5ea8f00d987a244e40327889f94f6635f5b3 SHA512 bce6c29bc003e8261bf5c4dcdc985e75e39ae8178cbd4428b652b1b2415873804a0a61005326ec9fe85c96253af2fd1e5d5a7f9e1262929258c6927845c7ea5e WHIRLPOOL e458f9b6896de6ed761b431c01738b79082e9a5321294b352f82a64bda1e73a0a659168619271519db11a80c9775654a798503e8bec2c6597ceffbf3de52e55b +MISC ChangeLog 3661 SHA256 325261c71d8cbed85afc836dc34eaecbc6f839c57c92779b6bcb173fca5f884d SHA512 7fdd8f00eb2294f6cc348e8d33c1c7b916978e6d38f12f3442a2389c981656ffe26ac7b19d4099833bd9dd70ac924ca4cdf64bc23a6f4a2e34da2cba289b14ac WHIRLPOOL 2ef5644ec756efaf713d302bafe314f18ed2e82794fc5ea859c78892b5a6ae1e3237d8a18a648469b013c731f4d9afb20e6bb2f51c308a6e0b6580ac62775be9 +MISC ChangeLog-2015 11230 SHA256 2f02e6be79718635e526360ba813100d82ff388efb2acf56e2477dbf9fdbd0b8 SHA512 4a2ac2eeeb80ef0325549792d930ff314c82bd48b9ef4798aa758d56601c396c014093496f263b912c4e29f1575f2ee9f4bb7d5014d48e93ebe57daa46b5fe91 WHIRLPOOL 42e69948eea7dcf175b25589d7def9c6dbf7e21129280636cf108351e1b287348c0c4c9f6d49036d85ba32288d7461b7c5187ff07fdae5ba0762e6ecedae739b +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/acct/acct-6.5.5-r4.ebuild b/sys-process/acct/acct-6.5.5-r4.ebuild new file mode 100644 index 000000000000..fbfc364215c2 --- /dev/null +++ b/sys-process/acct/acct-6.5.5-r4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 +inherit eutils autotools systemd + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-6.5.5-cross-compile.patch \ + "${FILESDIR}"/${PN}-6.5.5-no-gets.patch + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog INSTALL NEWS README TODO + keepdir /var/account + newinitd "${FILESDIR}"/acct.initd-r1 acct || die + newconfd "${FILESDIR}"/acct.confd acct || die + systemd_dounit "${FILESDIR}"/acct.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate acct || die + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + # accton in / is only a temp workaround for #239748 + dodir /sbin + mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die +} diff --git a/sys-process/acct/acct-6.6.1.ebuild b/sys-process/acct/acct-6.6.1.ebuild new file mode 100644 index 000000000000..f1852b70af1b --- /dev/null +++ b/sys-process/acct/acct-6.6.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools base systemd + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${P}-cross-compile.patch + "${FILESDIR}"/${P}-no-gets.patch + "${FILESDIR}"/${P}-texi-failure.patch + "${FILESDIR}"/${P}-math.patch +) + +src_prepare() { + base_src_prepare + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + emake install DESTDIR="${D}" + dodoc AUTHORS ChangeLog INSTALL NEWS README TODO + keepdir /var/account + newinitd "${FILESDIR}"/acct.initd acct + newconfd "${FILESDIR}"/acct.confd acct + systemd_dounit "${FILESDIR}"/acct.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate acct + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + # accton in / is only a temp workaround for #239748 + dodir /sbin + mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die +} diff --git a/sys-process/acct/acct-6.6.2-r1.ebuild b/sys-process/acct/acct-6.6.2-r1.ebuild new file mode 100644 index 000000000000..22276e67c861 --- /dev/null +++ b/sys-process/acct/acct-6.6.2-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools base systemd + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${PN}-6.6.2-cross-compile.patch + "${FILESDIR}"/${PN}-6.6.1-no-gets.patch +) + +src_prepare() { + base_src_prepare + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + default + keepdir /var/account + newinitd "${FILESDIR}"/acct.initd-r1 acct + newconfd "${FILESDIR}"/acct.confd acct + systemd_dounit "${FILESDIR}"/acct.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate acct + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + # accton in / is only a temp workaround for #239748 + dodir /sbin + mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die +} diff --git a/sys-process/acct/acct-6.6.2.ebuild b/sys-process/acct/acct-6.6.2.ebuild new file mode 100644 index 000000000000..95199c408eed --- /dev/null +++ b/sys-process/acct/acct-6.6.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools base systemd + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${PN}-6.6.2-cross-compile.patch + "${FILESDIR}"/${PN}-6.6.1-no-gets.patch +) + +src_prepare() { + base_src_prepare + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + default + keepdir /var/account + newinitd "${FILESDIR}"/acct.initd acct + newconfd "${FILESDIR}"/acct.confd acct + systemd_dounit "${FILESDIR}"/acct.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate acct + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + # accton in / is only a temp workaround for #239748 + dodir /sbin + mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die +} diff --git a/sys-process/acct/acct-6.6.4-r1.ebuild b/sys-process/acct/acct-6.6.4-r1.ebuild new file mode 100644 index 000000000000..d363f358de18 --- /dev/null +++ b/sys-process/acct/acct-6.6.4-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools systemd + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${PN}-6.6.4-cross-compile.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + default + keepdir /var/account + newinitd "${FILESDIR}"/acct.initd-r2 acct + newconfd "${FILESDIR}"/acct.confd-r1 acct + systemd_dounit "${FILESDIR}"/acct.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate-r1 psacct + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + # accton in / is only a temp workaround for #239748 + dodir /sbin + mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die +} diff --git a/sys-process/acct/acct-6.6.4.ebuild b/sys-process/acct/acct-6.6.4.ebuild new file mode 100644 index 000000000000..46888474a25d --- /dev/null +++ b/sys-process/acct/acct-6.6.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools systemd + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +PATCHES=( + "${FILESDIR}"/${PN}-6.6.4-cross-compile.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + default + keepdir /var/account + newinitd "${FILESDIR}"/acct.initd-r2 acct + newconfd "${FILESDIR}"/acct.confd-r1 acct + systemd_dounit "${FILESDIR}"/acct.service + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate-r1 acct + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + # accton in / is only a temp workaround for #239748 + dodir /sbin + mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die +} diff --git a/sys-process/acct/files/acct-6.5.5-cross-compile.patch b/sys-process/acct/files/acct-6.5.5-cross-compile.patch new file mode 100644 index 000000000000..2fb7bfa7bc25 --- /dev/null +++ b/sys-process/acct/files/acct-6.5.5-cross-compile.patch @@ -0,0 +1,323 @@ +https://savannah.gnu.org/patch/?7473 + +From 8958c3cb7b77ec50d8dae0490d8c80dee798e20d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> +Date: Fri, 18 Feb 2011 06:13:20 +0100 +Subject: [PATCH] Don't generate files.h at build-time using an execution test. + +The *_LOC variables are never used in the build itself, but only in the +built code; this means that they don't need to be known to ./configure at +all. + +Since the previous method made acct not cross-compilable at all, this is +much preferred. + +--- a/Makefile.am ++++ b/Makefile.am +@@ -66,11 +66,6 @@ + SYS_AC = @SYS_AC@ + SYS_SA = @SYS_SA@ + +-WTMP_FILE_LOC = @WTMP_FILE_LOC@ +-ACCT_FILE_LOC = @ACCT_FILE_LOC@ +-SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ +-USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ +- + compare-ac: ac + @echo + @echo "Running tests for ac" +--- a/configure.ac ++++ b/configure.ac +@@ -159,101 +159,6 @@ + AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) + ) ] + ) +-dnl +-dnl find out where utmp/pacct are stored +-dnl +-AC_RUN_IFELSE([AC_LANG_SOURCE([[ +-#include <stdio.h> +-#include <stdlib.h> +-#include <sys/types.h> +-#include <stdint.h> /* GNU/kFreeBSD */ +-#include <sys/acct.h> +-#include <utmp.h> +- +-#ifndef WTMP_FILE +-# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) +-# define WTMP_FILE "/var/log/wtmp" +-# else +-# if defined(sun) || defined(AMIX) +-# define WTMP_FILE "/var/adm/wtmp" +-# else +-# if defined(sgi) || defined(SVR4) +-# define WTMP_FILE "/usr/adm/wtmp" +-# else +-# define WTMP_FILE "/usr/adm/wtmp" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef ACCT_FILE +-# if defined(__FreeBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) +-# define ACCT_FILE "/var/account/pacct" +-# else +-# if defined(__NetBSD__) +-# define ACCT_FILE "/var/account/acct" +-# else +-# if defined(sun) || defined(AMIX) +-# define ACCT_FILE "/var/adm/pacct" +-# else +-# if defined(sgi) || defined(SVR4) || defined(M_XENIX) +-# define ACCT_FILE "/usr/adm/pacct" +-# else +-# define ACCT_FILE "/usr/adm/acct" +-# endif +-# endif +-# endif +-# endif +-#endif +- +-#ifndef SAVACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) +-# define SAVACCT_FILE "/var/account/savacct" +-# else +-# if defined(sun) || defined(AMIX) +-# define SAVACCT_FILE "/var/adm/savacct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define SAVACCT_FILE "/usr/adm/savacct" +-# else +-# define SAVACCT_FILE "/usr/adm/savacct" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef USRACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) +-# define USRACCT_FILE "/var/account/usracct" +-# else +-# if defined(sun) || defined(AMIX) +-# define USRACCT_FILE "/var/adm/usracct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define USRACCT_FILE "/usr/adm/usracct" +-# else +-# define USRACCT_FILE "/usr/adm/usracct" +-# endif +-# endif +-# endif +-#endif +- +-main () +-{ +- FILE *fp; +- fp = fopen ("locs", "w"); +- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); +- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); +- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); +- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); +- fclose (fp); +- exit(0); +-} +-]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) + AC_TYPE_PID_T dnl for sys/acct.h + AC_TYPE_UID_T dnl same as above + AC_TYPE_SIZE_T +@@ -366,12 +271,6 @@ + AC_SUBST(LASTCOMM_MAN) + AC_SUBST(SA_MAN) + +-dnl Substitutions for file locations +-AC_SUBST(WTMP_FILE_LOC) +-AC_SUBST(ACCT_FILE_LOC) +-AC_SUBST(SAVACCT_FILE_LOC) +-AC_SUBST(USRACCT_FILE_LOC) +- + dnl Dump the makefiles and etc. +-AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) ++AC_CONFIG_FILES([Makefile lib/Makefile version.h]) + AC_OUTPUT +--- /dev/null ++++ b/files.h +@@ -0,0 +1,123 @@ ++/* files.h ++ * ++ * file locations ++ * ++ */ ++ ++#ifndef FILES_H ++#define FILES_H ++ ++#include "config.h" ++ ++#include <stdio.h> ++#include <stdlib.h> ++#include <sys/types.h> ++#include <stdint.h> /* GNU/kFreeBSD */ ++ ++#ifdef LINUX_MULTIFORMAT ++# include "linux-acct.h" ++#else ++# include <stdint.h> /* GNU/kFreeBSD */ ++# include <sys/acct.h> ++# if defined __FreeBSD__ || defined __FreeBSD_kernel__ ++# include <osreldate.h> ++# if __FreeBSD_kernel__ ++# define __FreeBSD_version __FreeBSD_kernel_version ++# endif /* __FreeBSD_kernel__ */ ++# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ ++# define acct acctv2 ++# define ac_flag ac_flagx ++# endif ++# endif ++#endif ++ ++#include <utmp.h> ++ ++#ifndef WTMP_FILE ++# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define WTMP_FILE "/var/log/wtmp" ++# else ++# if defined(sun) || defined(AMIX) ++# define WTMP_FILE "/var/adm/wtmp" ++# else ++# if defined(sgi) || defined(SVR4) ++# define WTMP_FILE "/usr/adm/wtmp" ++# else ++# define WTMP_FILE "/usr/adm/wtmp" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef ACCT_FILE ++# if defined(__FreeBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define ACCT_FILE "/var/account/pacct" ++# else ++# if defined(__NetBSD__) ++# define ACCT_FILE "/var/account/acct" ++# else ++# if defined(sun) || defined(AMIX) ++# define ACCT_FILE "/var/adm/pacct" ++# else ++# if defined(sgi) || defined(SVR4) || defined(M_XENIX) ++# define ACCT_FILE "/usr/adm/pacct" ++# else ++# define ACCT_FILE "/usr/adm/acct" ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef SAVACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define SAVACCT_FILE "/var/account/savacct" ++# else ++# if defined(sun) || defined(AMIX) ++# define SAVACCT_FILE "/var/adm/savacct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define SAVACCT_FILE "/usr/adm/savacct" ++# else ++# define SAVACCT_FILE "/usr/adm/savacct" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef USRACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define USRACCT_FILE "/var/account/usracct" ++# else ++# if defined(sun) || defined(AMIX) ++# define USRACCT_FILE "/var/adm/usracct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define USRACCT_FILE "/usr/adm/usracct" ++# else ++# define USRACCT_FILE "/usr/adm/usracct" ++# endif ++# endif ++# endif ++#endif ++ ++#define WTMP_FILE_LOC WTMP_FILE ++#define ACCT_FILE_LOC ACCT_FILE ++#define SAVACCT_FILE_LOC SAVACCT_FILE ++#define USRACCT_FILE_LOC USRACCT_FILE ++ ++/* Workaround for a kernel includes problem */ ++#if defined(__linux__) && defined(__alpha__) ++#undef AHZ ++#define AHZ 1024 ++#endif ++ ++#ifndef AHZ ++#define AHZ 64 ++#endif ++ ++#endif /* ! FILES_H */ +--- a/files.h.in ++++ /dev/null +@@ -1,48 +0,0 @@ +-/* files.h.in +- * +- * file locations +- * +- */ +- +-#ifndef FILES_H +-#define FILES_H +- +-#include "config.h" +- +-#include <sys/types.h> +- +-#ifdef LINUX_MULTIFORMAT +-# include "linux-acct.h" +-#else +-# include <stdint.h> /* GNU/kFreeBSD */ +-# include <sys/acct.h> +-# if defined __FreeBSD__ || defined __FreeBSD_kernel__ +-# include <osreldate.h> +-# if __FreeBSD_kernel__ +-# define __FreeBSD_version __FreeBSD_kernel_version +-# endif /* __FreeBSD_kernel__ */ +-# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ +-# define acct acctv2 +-# define ac_flag ac_flagx +-# endif +-# endif +-#endif +- +-#include <utmp.h> +- +-#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" +-#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" +-#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" +-#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" +- +-/* Workaround for a kernel includes problem */ +-#if defined(__linux__) && defined(__alpha__) +-#undef AHZ +-#define AHZ 1024 +-#endif +- +-#ifndef AHZ +-#define AHZ 64 +-#endif +- +-#endif /* ! FILES_H */ diff --git a/sys-process/acct/files/acct-6.5.5-no-gets.patch b/sys-process/acct/files/acct-6.5.5-no-gets.patch new file mode 100644 index 000000000000..3478b66de9db --- /dev/null +++ b/sys-process/acct/files/acct-6.5.5-no-gets.patch @@ -0,0 +1,22 @@ +hack until acct pulls a newer gnulib version + +From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001 +From: Eric Blake <eblake@redhat.com> +Date: Thu, 29 Mar 2012 13:30:41 -0600 +Subject: [PATCH] stdio: don't assume gets any more + +Gnulib intentionally does not have a gets module, and now that C11 +and glibc have dropped it, we should be more proactive about warning +any user on a platform that still has a declaration of this dangerous +interface. + +--- a/lib/stdio.in.h ++++ b/lib/stdio.in.h +@@ -125,7 +125,6 @@ + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ + #undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ diff --git a/sys-process/acct/files/acct-6.6.1-cross-compile.patch b/sys-process/acct/files/acct-6.6.1-cross-compile.patch new file mode 100644 index 000000000000..67ac7d56fad0 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.1-cross-compile.patch @@ -0,0 +1,324 @@ +https://savannah.gnu.org/patch/?7473 + +From 8958c3cb7b77ec50d8dae0490d8c80dee798e20d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> +Date: Fri, 18 Feb 2011 06:13:20 +0100 +Subject: [PATCH] Don't generate files.h at build-time using an execution test. + +The *_LOC variables are never used in the build itself, but only in the +built code; this means that they don't need to be known to ./configure at +all. + +Since the previous method made acct not cross-compilable at all, this is +much preferred. + +--- acct-6.6.1/configure.ac ++++ acct-6.6.1/configure.ac +@@ -228,102 +228,6 @@ + AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) + ) ] + ) +-dnl +-dnl find out where utmp/pacct are stored +-dnl +-AC_RUN_IFELSE([AC_LANG_SOURCE([[ +-#include <stdio.h> +-#include <stdlib.h> +-#include <sys/types.h> +-#include <stdint.h> /* GNU/kFreeBSD */ +-#include <sys/acct.h> +-#include <utmp.h> +- +-#ifndef WTMP_FILE +-# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define WTMP_FILE "/var/log/account/wtmp" +-# else +-# if defined(sun) || defined(AMIX) +-# define WTMP_FILE "/var/adm/wtmp" +-# else +-# if defined(sgi) || defined(SVR4) +-# define WTMP_FILE "/usr/adm/wtmp" +-# else +-# define WTMP_FILE "/usr/adm/wtmp" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef ACCT_FILE +-# if defined(__FreeBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define ACCT_FILE "/var/log/account/pacct" +-# else +-# if defined(__NetBSD__) +-# define ACCT_FILE "/var/log/account/acct" +-# else +-# if defined(sun) || defined(AMIX) +-# define ACCT_FILE "/var/adm/pacct" +-# else +-# if defined(sgi) || defined(SVR4) || defined(M_XENIX) +-# define ACCT_FILE "/usr/adm/pacct" +-# else +-# define ACCT_FILE "/usr/adm/acct" +-# endif +-# endif +-# endif +-# endif +-#endif +- +-#ifndef SAVACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define SAVACCT_FILE "/var/log/account/savacct" +-# else +-# if defined(sun) || defined(AMIX) +-# define SAVACCT_FILE "/var/adm/savacct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define SAVACCT_FILE "/usr/adm/savacct" +-# else +-# define SAVACCT_FILE "/usr/adm/savacct" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef USRACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define USRACCT_FILE "/var/log/account/usracct" +-# else +-# if defined(sun) || defined(AMIX) +-# define USRACCT_FILE "/var/adm/usracct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define USRACCT_FILE "/usr/adm/usracct" +-# else +-# define USRACCT_FILE "/usr/adm/usracct" +-# endif +-# endif +-# endif +-#endif +- +-main () +-{ +- FILE *fp; +- fp = fopen ("locs", "w"); +- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); +- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); +- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); +- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); +- fclose (fp); +- exit(0); +-} +-]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) +- + dnl types + AC_TYPE_PID_T dnl for sys/acct.h + AC_TYPE_UID_T dnl same as above +@@ -366,12 +270,6 @@ + AC_SUBST(LASTCOMM_MAN) + AC_SUBST(SA_MAN) + +-dnl Substitutions for file locations +-AC_SUBST(WTMP_FILE_LOC) +-AC_SUBST(ACCT_FILE_LOC) +-AC_SUBST(SAVACCT_FILE_LOC) +-AC_SUBST(USRACCT_FILE_LOC) +- + dnl Dump the makefiles and etc. +-AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) ++AC_CONFIG_FILES([Makefile lib/Makefile version.h]) + AC_OUTPUT +--- acct-6.6.1/files.h ++++ acct-6.6.1/files.h +@@ -0,0 +1,123 @@ ++/* files.h ++ * ++ * file locations ++ * ++ */ ++ ++#ifndef FILES_H ++#define FILES_H ++ ++#include "config.h" ++ ++#include <stdio.h> ++#include <stdlib.h> ++#include <sys/types.h> ++#include <stdint.h> /* GNU/kFreeBSD */ ++ ++#ifdef LINUX_MULTIFORMAT ++# include "linux-acct.h" ++#else ++# include <stdint.h> /* GNU/kFreeBSD */ ++# include <sys/acct.h> ++# if defined __FreeBSD__ || defined __FreeBSD_kernel__ ++# include <osreldate.h> ++# if __FreeBSD_kernel__ ++# define __FreeBSD_version __FreeBSD_kernel_version ++# endif /* __FreeBSD_kernel__ */ ++# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ ++# define acct acctv2 ++# define ac_flag ac_flagx ++# endif ++# endif ++#endif ++ ++#include <utmp.h> ++ ++#ifndef WTMP_FILE ++# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define WTMP_FILE "/var/log/wtmp" ++# else ++# if defined(sun) || defined(AMIX) ++# define WTMP_FILE "/var/adm/wtmp" ++# else ++# if defined(sgi) || defined(SVR4) ++# define WTMP_FILE "/usr/adm/wtmp" ++# else ++# define WTMP_FILE "/usr/adm/wtmp" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef ACCT_FILE ++# if defined(__FreeBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define ACCT_FILE "/var/account/pacct" ++# else ++# if defined(__NetBSD__) ++# define ACCT_FILE "/var/account/acct" ++# else ++# if defined(sun) || defined(AMIX) ++# define ACCT_FILE "/var/adm/pacct" ++# else ++# if defined(sgi) || defined(SVR4) || defined(M_XENIX) ++# define ACCT_FILE "/usr/adm/pacct" ++# else ++# define ACCT_FILE "/usr/adm/acct" ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef SAVACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define SAVACCT_FILE "/var/account/savacct" ++# else ++# if defined(sun) || defined(AMIX) ++# define SAVACCT_FILE "/var/adm/savacct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define SAVACCT_FILE "/usr/adm/savacct" ++# else ++# define SAVACCT_FILE "/usr/adm/savacct" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef USRACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) ++# define USRACCT_FILE "/var/account/usracct" ++# else ++# if defined(sun) || defined(AMIX) ++# define USRACCT_FILE "/var/adm/usracct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define USRACCT_FILE "/usr/adm/usracct" ++# else ++# define USRACCT_FILE "/usr/adm/usracct" ++# endif ++# endif ++# endif ++#endif ++ ++#define WTMP_FILE_LOC WTMP_FILE ++#define ACCT_FILE_LOC ACCT_FILE ++#define SAVACCT_FILE_LOC SAVACCT_FILE ++#define USRACCT_FILE_LOC USRACCT_FILE ++ ++/* Workaround for a kernel includes problem */ ++#if defined(__linux__) && defined(__alpha__) ++#undef AHZ ++#define AHZ 1024 ++#endif ++ ++#ifndef AHZ ++#define AHZ 64 ++#endif ++ ++#endif /* ! FILES_H */ +--- acct-6.6.1/files.h.in ++++ acct-6.6.1/files.h.in +@@ -1,48 +0,0 @@ +-/* files.h.in +- * +- * file locations +- * +- */ +- +-#ifndef FILES_H +-#define FILES_H +- +-#include "config.h" +- +-#include <sys/types.h> +- +-#ifdef LINUX_MULTIFORMAT +-# include "linux-acct.h" +-#else +-# include <stdint.h> /* GNU/kFreeBSD */ +-# include <sys/acct.h> +-# if defined __FreeBSD__ || defined __FreeBSD_kernel__ +-# include <osreldate.h> +-# if __FreeBSD_kernel__ +-# define __FreeBSD_version __FreeBSD_kernel_version +-# endif /* __FreeBSD_kernel__ */ +-# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ +-# define acct acctv2 +-# define ac_flag ac_flagx +-# endif +-# endif +-#endif +- +-#include <utmp.h> +- +-#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" +-#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" +-#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" +-#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" +- +-/* Workaround for a kernel includes problem */ +-#if defined(__linux__) && defined(__alpha__) +-#undef AHZ +-#define AHZ 1024 +-#endif +- +-#ifndef AHZ +-#define AHZ 64 +-#endif +- +-#endif /* ! FILES_H */ +--- acct-6.6.1/Makefile.am ++++ acct-6.6.1/Makefile.am +@@ -66,11 +66,6 @@ + SYS_AC = @SYS_AC@ + SYS_SA = @SYS_SA@ + +-WTMP_FILE_LOC = @WTMP_FILE_LOC@ +-ACCT_FILE_LOC = @ACCT_FILE_LOC@ +-SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ +-USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ +- + compare-ac: ac + @echo + @echo "Running tests for ac" diff --git a/sys-process/acct/files/acct-6.6.1-math.patch b/sys-process/acct/files/acct-6.6.1-math.patch new file mode 100644 index 000000000000..a1d6fe72e758 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.1-math.patch @@ -0,0 +1,27 @@ +https://savannah.gnu.org/bugs/?42973 +https://bugs.gentoo.org/519552 + +these files use frexp/ldexp which is in -lm + +--- a/Makefile.am ++++ b/Makefile.am +@@ -26,6 +26,7 @@ accton_SOURCES = accton.c common.c + + dump_acct_SOURCES = dump-acct.c common.c file_rd.c \ + pacct_rd.c ++dump_acct_LDADD = $(LDADD) -lm + + dump_utmp_SOURCES = dump-utmp.c common.c file_rd.c \ + utmp_rd.c +@@ -37,9 +38,11 @@ last_SOURCES = last.c common.c file_rd.c hashtab.c \ + + lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c \ + hashtab.c pacct_rd.c uid_hash.c ++lastcomm_LDADD = $(LDADD) -lm + + sa_SOURCES = sa.c common.c file_rd.c hashtab.c \ + pacct_rd.c uid_hash.c ++sa_LDADD = $(LDADD) -lm + + noinst_HEADERS = common.h config.h dev_hash.h file_rd.h hashtab.h \ + pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h diff --git a/sys-process/acct/files/acct-6.6.1-no-gets.patch b/sys-process/acct/files/acct-6.6.1-no-gets.patch new file mode 100644 index 000000000000..f2f83975d587 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.1-no-gets.patch @@ -0,0 +1,25 @@ +hack until acct pulls a newer gnulib version + +From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001 +From: Eric Blake <eblake@redhat.com> +Date: Thu, 29 Mar 2012 13:30:41 -0600 +Subject: [PATCH] stdio: don't assume gets any more + +Gnulib intentionally does not have a gets module, and now that C11 +and glibc have dropped it, we should be more proactive about warning +any user on a platform that still has a declaration of this dangerous +interface. + +--- acct-6.6.1/lib/stdio.in.h ++++ acct-6.6.1/lib/stdio.in.h +@@ -699,10 +699,6 @@ + so any use of gets warrants an unconditional warning; besides, C11 + removed it. */ + #undef gets +-#if HAVE_RAW_DECL_GETS +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +-#endif +- + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ + struct obstack; diff --git a/sys-process/acct/files/acct-6.6.1-texi-failure.patch b/sys-process/acct/files/acct-6.6.1-texi-failure.patch new file mode 100644 index 000000000000..aa9f3c3586b8 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.1-texi-failure.patch @@ -0,0 +1,32 @@ +Description: Fix FTBFS with new texinfo. +Author: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> + +--- acct-6.5.5.orig/accounting.texi ++++ acct-6.5.5/accounting.texi +@@ -66,7 +66,7 @@ approved by the Foundation. + @end titlepage + + @c ---------------------------------------------------------------------- +-@ifinfo ++@ifnottex + @node Top, Preface, (dir), (dir) + + Welcome to the GNU Accounting Utilities! If you don't have a clue about +@@ -77,7 +77,7 @@ program's name. + This is Edition @value{EDITION} of the documentation, updated + @value{UPDATED} for version @value{VERSION} of the GNU Accounting + Utilities. +-@end ifinfo ++@end ifnottex + + @menu + * Preface:: general information about the accounting utilities +@@ -468,7 +468,7 @@ overhead, it is forseeable that the entr + wrong order. GNU @code{ac} automatically compensates for this, but some + other @code{ac}s may not... beware. + +-@unnumberedsubsubsec The FTP Problem ++@unnumberedsubsec The FTP Problem + + I've tested the standard @code{ac} in Ultrix 4.2 (DECstation/DECsystem), + SunOS 4.1.1 (Sun3, Sun4, Sparc), Mach 2.5 (Omron/Luna), and DomainOS diff --git a/sys-process/acct/files/acct-6.6.2-cross-compile.patch b/sys-process/acct/files/acct-6.6.2-cross-compile.patch new file mode 100644 index 000000000000..70b0556fd486 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.2-cross-compile.patch @@ -0,0 +1,320 @@ +https://savannah.gnu.org/patch/?7473 + +From 8958c3cb7b77ec50d8dae0490d8c80dee798e20d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> +Date: Fri, 18 Feb 2011 06:13:20 +0100 +Subject: [PATCH] Don't generate files.h at build-time using an execution test. + +The *_LOC variables are never used in the build itself, but only in the +built code; this means that they don't need to be known to ./configure at +all. + +Since the previous method made acct not cross-compilable at all, this is +much preferred. + +--- a/Makefile.am ++++ b/Makefile.am +@@ -69,11 +69,6 @@ SYS_LASTCOMM = @SYS_LASTCOMM@ + SYS_AC = @SYS_AC@ + SYS_SA = @SYS_SA@ + +-WTMP_FILE_LOC = @WTMP_FILE_LOC@ +-ACCT_FILE_LOC = @ACCT_FILE_LOC@ +-SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ +-USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ +- + compare-ac: ac + @echo + @echo "Running tests for ac" +--- a/configure.ac ++++ b/configure.ac +@@ -229,101 +229,6 @@ AC_CHECK_HEADER(sys/acct.h, + AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) + ) ] + ) +-dnl +-dnl find out where utmp/pacct are stored +-dnl +-AC_RUN_IFELSE([AC_LANG_SOURCE([[ +-#include <stdio.h> +-#include <stdlib.h> +-#include <sys/types.h> +-#include <stdint.h> /* GNU/kFreeBSD */ +-#include <sys/acct.h> +-#include <utmp.h> +- +-#ifndef WTMP_FILE +-# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define WTMP_FILE "/var/log/account/wtmp" +-# else +-# if defined(sun) || defined(AMIX) +-# define WTMP_FILE "/var/adm/wtmp" +-# else +-# if defined(sgi) || defined(SVR4) +-# define WTMP_FILE "/usr/adm/wtmp" +-# else +-# define WTMP_FILE "/usr/adm/wtmp" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef ACCT_FILE +-# if defined(__FreeBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define ACCT_FILE "/var/log/account/pacct" +-# else +-# if defined(__NetBSD__) +-# define ACCT_FILE "/var/log/account/acct" +-# else +-# if defined(sun) || defined(AMIX) +-# define ACCT_FILE "/var/adm/pacct" +-# else +-# if defined(sgi) || defined(SVR4) || defined(M_XENIX) +-# define ACCT_FILE "/usr/adm/pacct" +-# else +-# define ACCT_FILE "/usr/adm/acct" +-# endif +-# endif +-# endif +-# endif +-#endif +- +-#ifndef SAVACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define SAVACCT_FILE "/var/log/account/savacct" +-# else +-# if defined(sun) || defined(AMIX) +-# define SAVACCT_FILE "/var/adm/savacct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define SAVACCT_FILE "/usr/adm/savacct" +-# else +-# define SAVACCT_FILE "/usr/adm/savacct" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef USRACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define USRACCT_FILE "/var/log/account/usracct" +-# else +-# if defined(sun) || defined(AMIX) +-# define USRACCT_FILE "/var/adm/usracct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define USRACCT_FILE "/usr/adm/usracct" +-# else +-# define USRACCT_FILE "/usr/adm/usracct" +-# endif +-# endif +-# endif +-#endif +- +-main () +-{ +- FILE *fp; +- fp = fopen ("locs", "w"); +- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); +- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); +- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); +- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); +- fclose (fp); +- exit(0); +-} +-]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) + + dnl types + AC_TYPE_PID_T dnl for sys/acct.h +@@ -367,12 +272,6 @@ AC_SUBST(ACCTON_MAN) + AC_SUBST(LASTCOMM_MAN) + AC_SUBST(SA_MAN) + +-dnl Substitutions for file locations +-AC_SUBST(WTMP_FILE_LOC) +-AC_SUBST(ACCT_FILE_LOC) +-AC_SUBST(SAVACCT_FILE_LOC) +-AC_SUBST(USRACCT_FILE_LOC) +- + dnl Dump the makefiles and etc. +-AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) ++AC_CONFIG_FILES([Makefile lib/Makefile version.h]) + AC_OUTPUT +--- /dev/null ++++ b/files.h +@@ -0,0 +1,120 @@ ++/* files.h.in ++ * ++ * file locations ++ * ++ */ ++ ++#ifndef FILES_H ++#define FILES_H ++ ++#include "config.h" ++ ++#include <sys/types.h> ++ ++#ifdef LINUX_MULTIFORMAT ++# include "linux-acct.h" ++#else ++# include <stdint.h> /* GNU/kFreeBSD */ ++# include <sys/acct.h> ++# if defined __FreeBSD__ || defined __FreeBSD_kernel__ ++# include <osreldate.h> ++# if defined __FreeBSD_kernel__ ++# define __FreeBSD_version __FreeBSD_kernel_version ++# endif /* __FreeBSD_kernel__ */ ++# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ ++# define acct acctv2 ++# define ac_flag ac_flagx ++# endif ++# endif ++#endif ++ ++#include <utmp.h> ++ ++#ifndef WTMP_FILE ++# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define WTMP_FILE "/var/log/account/wtmp" ++# else ++# if defined(sun) || defined(AMIX) ++# define WTMP_FILE "/var/adm/wtmp" ++# else ++# if defined(sgi) || defined(SVR4) ++# define WTMP_FILE "/usr/adm/wtmp" ++# else ++# define WTMP_FILE "/usr/adm/wtmp" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef ACCT_FILE ++# if defined(__FreeBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define ACCT_FILE "/var/log/account/pacct" ++# else ++# if defined(__NetBSD__) ++# define ACCT_FILE "/var/log/account/acct" ++# else ++# if defined(sun) || defined(AMIX) ++# define ACCT_FILE "/var/adm/pacct" ++# else ++# if defined(sgi) || defined(SVR4) || defined(M_XENIX) ++# define ACCT_FILE "/usr/adm/pacct" ++# else ++# define ACCT_FILE "/usr/adm/acct" ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef SAVACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define SAVACCT_FILE "/var/log/account/savacct" ++# else ++# if defined(sun) || defined(AMIX) ++# define SAVACCT_FILE "/var/adm/savacct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define SAVACCT_FILE "/usr/adm/savacct" ++# else ++# define SAVACCT_FILE "/usr/adm/savacct" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef USRACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define USRACCT_FILE "/var/log/account/usracct" ++# else ++# if defined(sun) || defined(AMIX) ++# define USRACCT_FILE "/var/adm/usracct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define USRACCT_FILE "/usr/adm/usracct" ++# else ++# define USRACCT_FILE "/usr/adm/usracct" ++# endif ++# endif ++# endif ++#endif ++ ++#define WTMP_FILE_LOC WTMP_FILE ++#define ACCT_FILE_LOC ACCT_FILE ++#define SAVACCT_FILE_LOC SAVACCT_FILE ++#define USRACCT_FILE_LOC USRACCT_FILE ++ ++/* Workaround for a kernel includes problem */ ++#if defined(__linux__) && defined(__alpha__) ++#undef AHZ ++#define AHZ 1024 ++#endif ++ ++#ifndef AHZ ++#define AHZ 64 ++#endif ++ ++#endif /* ! FILES_H */ +--- a/files.h.in ++++ /dev/null +@@ -1,48 +0,0 @@ +-/* files.h.in +- * +- * file locations +- * +- */ +- +-#ifndef FILES_H +-#define FILES_H +- +-#include "config.h" +- +-#include <sys/types.h> +- +-#ifdef LINUX_MULTIFORMAT +-# include "linux-acct.h" +-#else +-# include <stdint.h> /* GNU/kFreeBSD */ +-# include <sys/acct.h> +-# if defined __FreeBSD__ || defined __FreeBSD_kernel__ +-# include <osreldate.h> +-# if defined __FreeBSD_kernel__ +-# define __FreeBSD_version __FreeBSD_kernel_version +-# endif /* __FreeBSD_kernel__ */ +-# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ +-# define acct acctv2 +-# define ac_flag ac_flagx +-# endif +-# endif +-#endif +- +-#include <utmp.h> +- +-#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" +-#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" +-#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" +-#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" +- +-/* Workaround for a kernel includes problem */ +-#if defined(__linux__) && defined(__alpha__) +-#undef AHZ +-#define AHZ 1024 +-#endif +- +-#ifndef AHZ +-#define AHZ 64 +-#endif +- +-#endif /* ! FILES_H */ diff --git a/sys-process/acct/files/acct-6.6.4-cross-compile.patch b/sys-process/acct/files/acct-6.6.4-cross-compile.patch new file mode 100644 index 000000000000..c4938d956dd3 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.4-cross-compile.patch @@ -0,0 +1,220 @@ +Don't generate files.h at build-time using an execution test. + +The *_LOC variables are never used in the build itself, but only in the +built code; this means that they don't need to be known to ./configure at +all. + +Since the previous method made acct not cross-compilable at all, this is +much preferred. + +Author: Diego Elio Pettenò <flameeyes@gmail.com> +Upstream: https://savannah.gnu.org/patch/?7473 + +--- a/Makefile.am ++++ b/Makefile.am +@@ -69,11 +69,6 @@ SYS_LASTCOMM = @SYS_LASTCOMM@ + SYS_AC = @SYS_AC@ + SYS_SA = @SYS_SA@ + +-WTMP_FILE_LOC = @WTMP_FILE_LOC@ +-ACCT_FILE_LOC = @ACCT_FILE_LOC@ +-SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ +-USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ +- + compare-ac: ac + @echo + @echo "Running tests for ac" +--- a/configure.ac ++++ b/configure.ac +@@ -229,97 +229,6 @@ AC_CHECK_HEADER(sys/acct.h, + AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) + ) ] + ) +-dnl +-dnl find out where utmp/pacct are stored +-dnl +-AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +-#include <stdio.h> +-#include <stdlib.h> +-#include <sys/types.h> +-#include <stdint.h> /* GNU/kFreeBSD */ +-#include <sys/acct.h> +-#include <utmp.h> +- +-#ifndef WTMP_FILE +-# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define WTMP_FILE "/var/log/account/wtmp" +-# else +-# if defined(sun) || defined(AMIX) +-# define WTMP_FILE "/var/adm/wtmp" +-# else +-# if defined(sgi) || defined(SVR4) +-# define WTMP_FILE "/usr/adm/wtmp" +-# else +-# define WTMP_FILE "/usr/adm/wtmp" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef ACCT_FILE +-# if defined(__FreeBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define ACCT_FILE "/var/log/account/pacct" +-# else +-# if defined(__NetBSD__) +-# define ACCT_FILE "/var/log/account/acct" +-# else +-# if defined(sun) || defined(AMIX) +-# define ACCT_FILE "/var/adm/pacct" +-# else +-# if defined(sgi) || defined(SVR4) || defined(M_XENIX) +-# define ACCT_FILE "/usr/adm/pacct" +-# else +-# define ACCT_FILE "/usr/adm/acct" +-# endif +-# endif +-# endif +-# endif +-#endif +- +-#ifndef SAVACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define SAVACCT_FILE "/var/log/account/savacct" +-# else +-# if defined(sun) || defined(AMIX) +-# define SAVACCT_FILE "/var/adm/savacct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define SAVACCT_FILE "/usr/adm/savacct" +-# else +-# define SAVACCT_FILE "/usr/adm/savacct" +-# endif +-# endif +-# endif +-#endif +- +-#ifndef USRACCT_FILE +-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ +- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) +-# define USRACCT_FILE "/var/log/account/usracct" +-# else +-# if defined(sun) || defined(AMIX) +-# define USRACCT_FILE "/var/adm/usracct" +-# else +-# if defined(sgi) || defined(SVR4) +-# define USRACCT_FILE "/usr/adm/usracct" +-# else +-# define USRACCT_FILE "/usr/adm/usracct" +-# endif +-# endif +-# endif +-#endif +-]], [[ +- FILE *fp; +- fp = fopen ("locs", "w"); +- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); +- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); +- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); +- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); +- fclose (fp); +-]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) + + dnl types + AC_TYPE_PID_T dnl for sys/acct.h +@@ -363,12 +272,6 @@ AC_SUBST(ACCTON_MAN) + AC_SUBST(LASTCOMM_MAN) + AC_SUBST(SA_MAN) + +-dnl Substitutions for file locations +-AC_SUBST(WTMP_FILE_LOC) +-AC_SUBST(ACCT_FILE_LOC) +-AC_SUBST(SAVACCT_FILE_LOC) +-AC_SUBST(USRACCT_FILE_LOC) +- + dnl Dump the makefiles and etc. + AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) + AC_OUTPUT +--- a/files.h.in ++++ b/files.h.in +@@ -30,6 +30,78 @@ + + #include <utmp.h> + ++#ifndef WTMP_FILE ++# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define WTMP_FILE "/var/log/account/wtmp" ++# else ++# if defined(sun) || defined(AMIX) ++# define WTMP_FILE "/var/adm/wtmp" ++# else ++# if defined(sgi) || defined(SVR4) ++# define WTMP_FILE "/usr/adm/wtmp" ++# else ++# define WTMP_FILE "/usr/adm/wtmp" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef ACCT_FILE ++# if defined(__FreeBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define ACCT_FILE "/var/log/account/pacct" ++# else ++# if defined(__NetBSD__) ++# define ACCT_FILE "/var/log/account/acct" ++# else ++# if defined(sun) || defined(AMIX) ++# define ACCT_FILE "/var/adm/pacct" ++# else ++# if defined(sgi) || defined(SVR4) || defined(M_XENIX) ++# define ACCT_FILE "/usr/adm/pacct" ++# else ++# define ACCT_FILE "/usr/adm/acct" ++# endif ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef SAVACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define SAVACCT_FILE "/var/log/account/savacct" ++# else ++# if defined(sun) || defined(AMIX) ++# define SAVACCT_FILE "/var/adm/savacct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define SAVACCT_FILE "/usr/adm/savacct" ++# else ++# define SAVACCT_FILE "/usr/adm/savacct" ++# endif ++# endif ++# endif ++#endif ++ ++#ifndef USRACCT_FILE ++# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ ++ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) ++# define USRACCT_FILE "/var/log/account/usracct" ++# else ++# if defined(sun) || defined(AMIX) ++# define USRACCT_FILE "/var/adm/usracct" ++# else ++# if defined(sgi) || defined(SVR4) ++# define USRACCT_FILE "/usr/adm/usracct" ++# else ++# define USRACCT_FILE "/usr/adm/usracct" ++# endif ++# endif ++# endif ++#endif ++ + #define WTMP_FILE_LOC "@WTMP_FILE_LOC@" + #define ACCT_FILE_LOC "@ACCT_FILE_LOC@" + #define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" diff --git a/sys-process/acct/files/acct.confd b/sys-process/acct/files/acct.confd new file mode 100644 index 000000000000..133efabcf62d --- /dev/null +++ b/sys-process/acct/files/acct.confd @@ -0,0 +1,13 @@ +# /etc/conf.d/acct + +# ACCT_LOG specifies the accounting logging file. +# Remember to create it manually if it doesn't yet exist. + +ACCT_LOG="/var/account/pacct" + +# REPORT_OPTS contains arguments for the "sa" command, +# used for console-reporting. +# Please run "sa --help" or "man sa" to get a description +# of available options. + +REPORT_OPTS="--sort-real-time --list-all-names --percentage" diff --git a/sys-process/acct/files/acct.confd-r1 b/sys-process/acct/files/acct.confd-r1 new file mode 100644 index 000000000000..4a05da34bcc5 --- /dev/null +++ b/sys-process/acct/files/acct.confd-r1 @@ -0,0 +1,11 @@ +# /etc/conf.d/acct + +# ACCT_LOG specifies the accounting logging file. +# Remember to create it manually if it doesn't yet exist. +#ACCT_LOG="/var/account/pacct" + +# REPORT_OPTS contains arguments for the "sa" command, +# used for console-reporting. +# Please run "sa --help" or "man sa" to get a description +# of available options. +#REPORT_OPTS="--sort-real-time --list-all-names --percentage" diff --git a/sys-process/acct/files/acct.initd b/sys-process/acct/files/acct.initd new file mode 100644 index 000000000000..d6d9dfd62459 --- /dev/null +++ b/sys-process/acct/files/acct.initd @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="report" + +depend() { + need localmount +} + +checkconfig() { + export ACCT_LOG=${ACCT_LOG:-/var/account/pacct} + if [ ! -e "${ACCT_LOG}" ] ; then + touch "${ACCT_LOG}" + chmod 600 "${ACCT_LOG}" + fi + return 0 +} + +start() { + checkconfig || return 1 + + ebegin "Starting accounting" + accton "${ACCT_LOG}" >/dev/null + eend $? +} + +stop() { + ebegin "Stopping accounting" + accton off >/dev/null + eend $? +} + +report() { + sa ${REPORT_OPTS} "${ACCT_LOG}" +} diff --git a/sys-process/acct/files/acct.initd-r1 b/sys-process/acct/files/acct.initd-r1 new file mode 100644 index 000000000000..09d9739fea23 --- /dev/null +++ b/sys-process/acct/files/acct.initd-r1 @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="report" + +depend() { + need localmount +} + +checkconfig() { + export ACCT_LOG=${ACCT_LOG:-/var/account/pacct} + checkpath -f -m 600 "${ACCT_LOG}" + return 0 +} + +start() { + checkconfig || return 1 + + ebegin "Starting accounting" + accton "${ACCT_LOG}" >/dev/null + eend $? +} + +stop() { + ebegin "Stopping accounting" + accton off >/dev/null + eend $? +} + +report() { + sa ${REPORT_OPTS} "${ACCT_LOG}" +} diff --git a/sys-process/acct/files/acct.initd-r2 b/sys-process/acct/files/acct.initd-r2 new file mode 100644 index 000000000000..4b3a5f3a50b6 --- /dev/null +++ b/sys-process/acct/files/acct.initd-r2 @@ -0,0 +1,65 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + + : ${ACCT_LOG:=/var/account/pacct} + : ${REPORT_OPTS:="--sort-real-time --list-all-names --percentage"} + +extra_started_commands="report" + +depend() { + need localmount +} + +_checkconfig() { + if [ -z "${ACCT_LOG}" ]; then + eerror "No accounting file specified!" + return 1 + fi + + checkpath -f -m 600 "${ACCT_LOG}" +} + +_get_service_value() { + local _name=$1 + + local _default_value= + if [ -n "${2}" ]; then + _default_value=$2 + fi + + local _service_value=$(service_get_value ${_name}) + if [ -n "${_service_value}" ]; then + echo "${_service_value}" + else + echo "${_default_value}" + fi + + return 0 +} + +ACCT_LOG=$(_get_service_value ACCT_LOG "${ACCT_LOG}") + +start_pre() { + _checkconfig || return 1 +} + +start() { + ebegin "Starting accounting" + accton "${ACCT_LOG}" >/dev/null + eend $? +} + +start_post() { + service_set_value ACCT_LOG "${ACCT_LOG}" +} + +stop() { + ebegin "Stopping accounting" + accton off >/dev/null + eend $? +} + +report() { + sa ${REPORT_OPTS} "${ACCT_LOG}" +} diff --git a/sys-process/acct/files/acct.logrotate b/sys-process/acct/files/acct.logrotate new file mode 100644 index 000000000000..af6213434cd9 --- /dev/null +++ b/sys-process/acct/files/acct.logrotate @@ -0,0 +1,14 @@ +# Logrotate file for acct + +/var/account/pacct { + compress + delaycompress + notifempty + daily + rotate 31 + create 0600 root root + missingok + postrotate + /etc/init.d/acct --quiet --ifstarted restart + endscript +} diff --git a/sys-process/acct/files/acct.logrotate-r1 b/sys-process/acct/files/acct.logrotate-r1 new file mode 100644 index 000000000000..07696f7329dc --- /dev/null +++ b/sys-process/acct/files/acct.logrotate-r1 @@ -0,0 +1,18 @@ +# Logrotate file for acct + +/var/account/pacct { + compress + delaycompress + notifempty + daily + rotate 31 + create 0600 root root + missingok + postrotate + if test -d /run/systemd/system ; then + systemctl try-restart acct 1>/dev/null + else + /etc/init.d/acct --quiet --ifstarted restart + fi + endscript +} diff --git a/sys-process/acct/files/acct.service b/sys-process/acct/files/acct.service new file mode 100644 index 000000000000..85a4cd3f7bcc --- /dev/null +++ b/sys-process/acct/files/acct.service @@ -0,0 +1,14 @@ +[Unit] +Description=Kernel process accounting +After=syslog.target +ConditionPathExists=/var/account + +[Service] +Type=oneshot +ExecStartPre=/bin/sh -c 'if [ ! -e /var/account/pacct ]; then /bin/touch /var/account/pacct ; /bin/chmod 0600 /var/account/pacct; fi' +ExecStart=/sbin/accton /var/account/pacct +ExecStop=/sbin/accton off +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/sys-process/acct/metadata.xml b/sys-process/acct/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/acct/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/anacron/Manifest b/sys-process/anacron/Manifest new file mode 100644 index 000000000000..26fe774a611b --- /dev/null +++ b/sys-process/anacron/Manifest @@ -0,0 +1,11 @@ +AUX anacron-2.3-compile-fix-from-debian.patch 315 SHA256 eaef07404a4524c09e39161d8f3b31f1f10f4c2282cd4e9d55039cb80fcda0d4 SHA512 8faff19a8dc86da255b4c905ff5e91fd488b75df21f7a8b8eb2717232ab8174a22421f6930fd65a8972029b77852d5435f110a37c0faa593457628d45af1ff9e WHIRLPOOL 9b4d671ca49a4199a1f74f579a090daf9cbcfd267fe4831afed45e70b50605d29dd71bfb774bb07f57cba7aa685dee52b1dfb1b2cff148e592618fcdea63dcc5 +AUX anacron-2.3-headers.patch 895 SHA256 d4a3e7e2072d56f8def44e9fbfa9cd7d11695fa6295ea1cf66ced29f01e6ac92 SHA512 33c5f3274e50e3156b407aec6f0fb882b80ea8d134a71a789dc2ad39effe322c36c579725cde71ec34e801a0d52efe06d159b4a6d423137c31e14b82e732dd3b WHIRLPOOL d149284e3c54d87aca80fa37c85592514183444a4cdb2e7e8ee11ccd19db28c47fe62b2311e7d1d02ef9221f7ec9299cb0d5b5146821c6516f19c5493bcb3ea5 +AUX anacron.rc6 252 SHA256 cc54333ffe4048533d0272b39d505e53b8c0aabc7030c7246a9d004e0326e4e4 SHA512 5578e8bff57387131fe2cb8d176e8a8cc4f2e736e6b6e4e8ef9bbb2aec201fe3893b2c3763652ee78a5b3f665a99e2aa3c22226cd3a53f4e0a76bfbcca50cd6a WHIRLPOOL 8191d24b0491775e021dd331b65d4ffd1badb335367c5cb85b8249931b055f32eca6b76b1f182b273662c4016580c3184a297d991c7a12874b93810e01bcfb2d +AUX anacrontab 468 SHA256 54e383cbd02b7452b72786b683c4cf5cc22489516ff4b5dc2a0ff6f9676f82fb SHA512 f04850d22b459fe95bf5ccf594143f6fb02a1d29fc9cf36d2965a8b846920bc36b0d2d5665c5d6ac9828b904a4f30da49f62f6bedd51c75f548b981e056f097e WHIRLPOOL cbd24e6bbb0e50eecdd6620652ef146478b0312b598b6a55e91c5566cf939992f51b8f7b111f6a654c5d5f51e4ef356533a2e2133f9157e84ee3151736cabb0d +DIST anacron-2.3.tar.gz 24140 SHA256 5ceee6f22cd089bdaf1c0841200dbe5726babaf9e2c432bb17c1fc95da5ca99f SHA512 27bbbfad5bc35ddc68e4345c3a3acefd0a6f794aaba890f7c75ec42b2e4c4200fbb1667e75b2e344afb7722bdc9ba3dc5a7db66d3369808bc9f483ea3509849c WHIRLPOOL 119193e7a44855ab3844755ac0d912bc14d6ee55638a2979d7a107f99062c5f0f2bd27f45a429dcf0b8bfc3187c33b10374a0f6a83303a9539dd1eae95fd3d00 +EBUILD anacron-2.3-r2.ebuild 1414 SHA256 27718652110b8d8ac288476a088abbc11dce14a3fb61d710fbda20f2a49f0db4 SHA512 1c7d3eb080e4c140c78e0cc22287e02266fe799917234a2556e9c8f84b3b1cf115fdc035ee9ae21d9baeb5011e5cfccce45a0480fa0e553b3e3682383f7efbe3 WHIRLPOOL fc7cf2c9cdc38161d670a17f38156793ae1b56d4146adb174554dbb8f5f3810ec80536fe37e178171077e39c2660164601510b6d6de398da6295a134720d5e8d +EBUILD anacron-2.3-r3.ebuild 1444 SHA256 4073b59b4e36fdd543511a8cf3fc7093182c80386715501809aba5050cae55bc SHA512 2ce3e597493c8ced6cacbe6e15a36903eb857a1b27cedc80c1cbb109436dfbe39bcf49b0bafdebd812d0d352c03f831fa5334d676f1ca7e6e033ab9eacacec20 WHIRLPOOL 2466f27abdce1f1c224e1a8ded541c877615c76a036027bc6014c52432d68cbfa43af9b9f615a5a4f5765651604525d55e78e9fe35da8380358093afbc40fd43 +EBUILD anacron-2.3-r4.ebuild 1443 SHA256 594f472447d0a3a3d58eb750a1b1df67ff60dea73c2a7eba6e81c7a55c03a06d SHA512 82f32961b4d066682474eb3f6f26589000d746b9251ae2a826c0901d49869aed7c17096cf56d5ee6520bda49ac5ec1a6f2a2d9a8806f874454f5c4835eb5a1cb WHIRLPOOL e8f7cac222e589ba92703c0248d867a489f6cc22451599c62e275ee09fb29878a0f5e52e30791f6896ecab1f3139b493453e1bf10bfb2cd9f82b6b8ceb954683 +MISC ChangeLog 5251 SHA256 94cec365ea6123a60de6ccb1225ca5e955ca821ca88f2f050af160d633a369f5 SHA512 db330efc70ebb5d4ec2cb40e6e00813d16a7a0095a6cf19e2658eea6710166dfaa28ef859cf560348ea662f9e79be2ed993b1693fcd9658a0ae317509ae7583c WHIRLPOOL fa25f5bfbcc3737b709f0765a95b413c4ab5dc7aab4baa3edc068d4869608ee5c21af5a7ea0208485f695dffd23edbfc819021e548ea696b111f8c806ea61a6c +MISC ChangeLog-2015 3135 SHA256 001181b9203717612648c58136ce0fa0007b963899bdd916306c8064ed12c4e8 SHA512 066d03e2ddd5fa2cec0f2fbb6cd4fe1be499910aa5ac485a9a44bc550b3aadb151318cabeb4609c51181c16c6bc543afcab37944628471037cbc58f505cc6aeb WHIRLPOOL 7ebf96a1b077e57b2cef2673dd8e90f5e1e06c4c486e5639d9d5a23b867506e738d244059d1dafa1956168fba66446e04d2dd7eca08d416055dacb41b86f8b43 +MISC metadata.xml 333 SHA256 b43a517ad907a0b693b1eac80411c983d7fcc5a4a126e1c6c3b155a931b3ee2d SHA512 d122ed7448f601536b07379879b67b2f73d6f89257074e63ac0ebe07601bd53ba64af280bf6f9e5d44b907d1be922cc67b6205bb5030b0364e7731f1ce7a215a WHIRLPOOL bba15de5ad3e91154d6c990bf4219c818f728863a6ff9fecbe02599012add45a26cbaad0142d61f07f4f628ed19c172ed5257140a56cf0359209fc3c2a31ce13 diff --git a/sys-process/anacron/anacron-2.3-r2.ebuild b/sys-process/anacron/anacron-2.3-r2.ebuild new file mode 100644 index 000000000000..66f8e558937e --- /dev/null +++ b/sys-process/anacron/anacron-2.3-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="a periodic command scheduler" +HOMEPAGE="http://anacron.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4 + sys-process/cronbase" +RDEPEND="virtual/mta + virtual/cron" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch + sed -i "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile +} + +src_compile() { + emake || die +} + +src_install() { + #this does not work if the directory exists already + diropts -m0750 -o root -g cron + keepdir /var/spool/anacron + + doman anacrontab.5 anacron.8 + + newinitd "${FILESDIR}"/anacron.rc6 anacron + + dodoc ChangeLog README TODO + + insinto /usr/sbin + insopts -o root -g root -m 0750 ; doins anacron + + insinto /etc + doins "${FILESDIR}"/anacrontab +} + +pkg_postinst() { + einfo "Schedule the command \"anacron -s\" as a daily cron-job (preferably" + einfo "at some early morning hour). This will make sure that jobs are run" + einfo "when the systems is left running for a night." + einfo "" + einfo "Update /etc/anacrontab to include what you want anacron to run." + + echo + einfo "You may wish to read the Gentoo Linux Cron Guide, which can be" + einfo "found online at:" + einfo " https://wiki.gentoo.org/wiki/Cron" + echo +} diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild new file mode 100644 index 000000000000..30f89d829732 --- /dev/null +++ b/sys-process/anacron/anacron-2.3-r3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="a periodic command scheduler" +HOMEPAGE="http://anacron.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +DEPEND="sys-process/cronbase" +RDEPEND="${RDEPEND} + virtual/mta" + +src_prepare() { + epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch + epatch "${FILESDIR}"/${P}-headers.patch + sed -i \ + -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \ + Makefile || die +} + +src_configure() { + tc-export CC +} + +src_install() { + #this does not work if the directory exists already + diropts -m0750 -o root -g cron + keepdir /var/spool/anacron + + doman anacrontab.5 anacron.8 + + newinitd "${FILESDIR}"/anacron.rc6 anacron + + dodoc ChangeLog README TODO + + dosbin anacron + + insinto /etc + doins "${FILESDIR}"/anacrontab +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably" + elog "at some early morning hour). This will make sure that jobs are run" + elog "when the systems is left running for a night." + echo + elog "Update /etc/anacrontab to include what you want anacron to run." + + echo + elog "You may wish to read the Gentoo Linux Cron Guide, which can be" + elog "found online at:" + elog " https://wiki.gentoo.org/wiki/Cron" + fi +} diff --git a/sys-process/anacron/anacron-2.3-r4.ebuild b/sys-process/anacron/anacron-2.3-r4.ebuild new file mode 100644 index 000000000000..62b12e5f3be9 --- /dev/null +++ b/sys-process/anacron/anacron-2.3-r4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="a periodic command scheduler" +HOMEPAGE="http://anacron.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +DEPEND=" + sys-process/cronbase" + +RDEPEND=" + ${DEPEND} + virtual/mta" + +PATCHES=( + "${FILESDIR}"/${P}-compile-fix-from-debian.patch + "${FILESDIR}"/${P}-headers.patch +) + +src_prepare() { + default + + sed -i \ + -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \ + Makefile || die +} + +src_configure() { + tc-export CC +} + +src_install() { + # This does not work if the directory already exists. + diropts -m0750 -o root -g cron + keepdir "/var/spool/${PN}" + + doman "${PN}tab.5" "${PN}.8" + newinitd "${FILESDIR}/${PN}.rc6" "${PN}" + dodoc ChangeLog README TODO + dosbin "${PN}" + + insinto /etc + doins "${FILESDIR}/${PN}tab" +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably" + elog "at some early morning hour). This will make sure that jobs are run" + elog "when the systems is left running for a night." + echo + elog "Update /etc/anacrontab to include what you want anacron to run." + + echo + elog "You may wish to read the Gentoo Linux Cron Guide, which can be" + elog "found online at:" + elog " https://wiki.gentoo.org/wiki/Cron" + fi +} diff --git a/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch b/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch new file mode 100644 index 000000000000..174a975f0ca3 --- /dev/null +++ b/sys-process/anacron/files/anacron-2.3-compile-fix-from-debian.patch @@ -0,0 +1,11 @@ +--- anacron-2.3/gregor.c 2000-06-23 02:00:14.000000000 +0200 ++++ anacron-2.3-maks/gregor.c 2004-03-26 20:45:13.000000000 +0100 +@@ -65,7 +65,7 @@ + { + int dn; + int i; +- const int isleap; /* save three calls to leap() */ ++ int isleap; /* save three calls to leap() */ + + /* Some validity checks */ + diff --git a/sys-process/anacron/files/anacron-2.3-headers.patch b/sys-process/anacron/files/anacron-2.3-headers.patch new file mode 100644 index 000000000000..2d4b1762d357 --- /dev/null +++ b/sys-process/anacron/files/anacron-2.3-headers.patch @@ -0,0 +1,40 @@ +add headers for various function prototypes + +--- a/main.c ++++ b/main.c +@@ -24,6 +24,7 @@ + + #include <time.h> + #include <stdio.h> ++#include <stdlib.h> /* exit */ + #include <unistd.h> + #include <signal.h> + #include <fcntl.h> +--- a/log.c ++++ b/log.c +@@ -37,6 +37,7 @@ + #include <unistd.h> + #include <syslog.h> + #include <stdio.h> ++#include <stdlib.h> /* exit */ + #include <stdarg.h> + #include <errno.h> + #include <signal.h> +@@ -78,6 +79,7 @@ make_msg(const char *fmt, va_list args) + strcpy(msg + sizeof(msg) - sizeof(truncated), truncated); + } + ++#define log my_log /* log is a math builtin */ + static void + log(int priority, const char *fmt, va_list args) + /* Log a message, described by "fmt" and "args", with the specified +--- a/matchrx.c ++++ b/matchrx.c +@@ -23,6 +23,7 @@ + + + #include <stdio.h> ++#include <string.h> /* memset */ + #include <regex.h> + #include <stdarg.h> + #include <stdlib.h> diff --git a/sys-process/anacron/files/anacron.rc6 b/sys-process/anacron/files/anacron.rc6 new file mode 100755 index 000000000000..645eedf988f9 --- /dev/null +++ b/sys-process/anacron/files/anacron.rc6 @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use clock hostname logger +} + +start() { + ebegin "Running anacron" + anacron -s >>/var/log/cron.log 2>&1 + eend $? +} diff --git a/sys-process/anacron/files/anacrontab b/sys-process/anacron/files/anacrontab new file mode 100644 index 000000000000..c279929fcb65 --- /dev/null +++ b/sys-process/anacron/files/anacrontab @@ -0,0 +1,11 @@ +SHELL=/bin/sh +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +# format: period delay job-identifier command +## +## If you turn any of the following on, make sure that the +## regular cron daemon does not run them also. This could +## lead to double execution of the jobs. +#1 5 cron.daily run-parts /etc/cron.daily +#7 10 cron.weekly run-parts /etc/cron.weekly +#30 15 cron.monthly run-parts /etc/cron.monthly + diff --git a/sys-process/anacron/metadata.xml b/sys-process/anacron/metadata.xml new file mode 100644 index 000000000000..6cf88ebdc1c8 --- /dev/null +++ b/sys-process/anacron/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">anacron</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/at/Manifest b/sys-process/at/Manifest new file mode 100644 index 000000000000..03d23c9df12b --- /dev/null +++ b/sys-process/at/Manifest @@ -0,0 +1,17 @@ +AUX at-3.1.10.2-Makefile.in-parallel-make-fix.patch 369 SHA256 6c0c26e27ed65f8342f113ec4edb00da7ec20f9c471f6c03c59a3545d8e839e0 SHA512 1890bb448991d5bb07f318f8e406f8cdcd28a720c3c8356b0e7dc34c2d61fc37d2fba0f8700ebed83ea528c46b31c4c2a41e6b021ab945c67b5c9e64a3703c9a WHIRLPOOL 9d859dd7b5e092988b681c15860db9cb47c972f37d70e31700c1d5cb60cb1b0426282c7cefd504100782e9dedfe4e1b5f80f2ed2efb81a3829693b779d95a4e6 +AUX at-3.1.13-configure.in-fix-PAM-automagick-dep.patch 614 SHA256 97e0e5874a0e8830c610715149d35406cfed8060cdfbc6b3365a813e9a30b42f SHA512 c8a9bef7c4419bf0601de72b30ee1d04606bf4180d0b8b4e74729471742a646fee616f2fb02f819854a7e42be26c2bda2a384d26b5da5d41e54661ac5b44e303 WHIRLPOOL 84d0fa5256de1a6f455be9d9b21396cdae3d95f84a4eddc587f0090acd3f2ea20de5b6678a646a6d9b5861b94410cc66d40d56a550b85c00b9f41dfcb7bc9f98 +AUX at-3.1.13-getloadavg.patch 469 SHA256 07d7aad55b2f68351045f4fdb033d472f41923c7f5ba9888bf179ab0665ea178 SHA512 3880adc05b94c85d54820c0f8a05359fe6837f6c8086207f660a137a204d92b79f71e8bacd0abe7532666568da0339e5ce12c07c5f78b55c673b33aa276358df WHIRLPOOL 04aef35b4ffda4f0dfe98c58865419eeadb6f2ae77f5db055612d99d5780e12a961a99b2f3afd0a1bb8e42a033eec29c0c210ad1f025c73ac982cedb9c8347d8 +AUX at-3.1.13-parallel-make-fix.patch 336 SHA256 bb3bae6edddc67823246e08e2dedba69a2d03a95b2ec03298c9a38021c580f09 SHA512 262a330b6886fb93b00bf301d11e72aeb924171db891bcb5041383f7192c48a74d85da51d6be41ea71e84802fda08ce24120eae4fdea32b168801de0ea11bd85 WHIRLPOOL 373323221a462462ede947dee138eb306a441e6827b575a21624fc0799864e1e60ca2e3b957516ed16c6262f79d08c60ee60fae88984590acb043baf95373c35 +AUX at-3.1.14-Makefile.patch 405 SHA256 a35aa1e1505fe88fcf75669dbf8e632996417f0db36f472361cf7957c01353ee SHA512 4002cae6b86e6fd6011acf985b72a7c5f141eaa81d3f56250621a4f9c1d406d30669b5fab1df2921cc74ada823bd8d6f477c622550d1b7b6f8b026a82816c319 WHIRLPOOL 38c97aeff97512a688c57149b958e34a339ebc11d470621426085636c422e7ff05120f275492d3e9e7770884859fc6212cac6d06c137442e50d64bfb27e21f16 +AUX at-3.1.8-more-deny.patch 175 SHA256 b435bc5b0f383317a67fcb113b914e082b0777bc8c3a1902e39a1c75bc614e5a SHA512 0013006b8079ab86edd8100fee99ba5f099628be41c84ef099edba11d8b976836f7023658bb61d6425e70531fd4dd1958bb776078510fa84c3473e0b60260dee WHIRLPOOL d0ca88d9c2464df3ea9429a87e77352f98ac87548cf9583f5631edff7456ce68270564d6df25cf878ca9b6c1a6ce4accdca02355ef4c7068af19c28a3af7e573 +AUX at.pamd-3.1.13-r1 208 SHA256 f2ceb0c0c47b26679b406bd0aa855208bb9e8661ce252087dd0558f443076dbe SHA512 7ebbeed1fb9c9d8c26f677956ae3fb5d947aa8e1f1dbc2c576b1ee4b2d8c92d206ad361d61772e6a28b40e747ad009d16ed1d3516fa2549b1f01f6f0886612b8 WHIRLPOOL 70bd8650211228ca8cd81ab8be4460fbd8699ebdba48173e2a67fadc81449df0f8d2a7a1a1d48f02ee0b95ee504f5cc1ae5323a306604f2ad1127e8f5d21727e +AUX atd.confd 214 SHA256 ece01506efa6d73d7cbe9bc1da6eb1afc4d63451ab1fccf5051178b6e937d68e SHA512 12f1423e2d0841a98ce506ebbf24280bc634b76a2b15cb1c6e12285fc7fd859428380841754ab2e3a0b7c3d7cc9957b53d4e018651ef097ca1af83f92cfa130a WHIRLPOOL 788ccc2f263ee87c5f52d6ca8c892c10085cb06bc7a3b5adfbb9ee8b35de18c94587757d2be8ce4de4d4f391e550254d12e8b8f4336d3a8b9be23a31c22a16a2 +AUX atd.rc8 289 SHA256 115f3be9cfd306251909ca7fc2dbc55ca71f6f38a3ebb62d9a428a9eddcd8ffb SHA512 a8517b4a754ad096aa72d975b556925c566963657402ffe0c00ed3fbc22a84f6c32917c8d2021e6244339d171352e429d1c360ad6c500de6c60a444e07d006f3 WHIRLPOOL fa6eabb657479ef59a3b4520deb3e5ba19ef07f06e3d6de83ec1a2989b41e6b33bd8d3a2ebaa58d7799dcf585a0ccfe893fd13b46eb7fac95abcc91d84ba1e79 +AUX atd.service 215 SHA256 71c4328fd71bcc3f0d02490e69ae7b67bb027fdf176329e0778d273c1c515b1c SHA512 8795fe73ea9837b98732018d6e154797e1d31e4696416c910e4637ffc2c516626fed836d2a0f571a890b55c513f07d69b3c9c8d73d1070c6df88a8e9e1812902 WHIRLPOOL 27d1af9e3536d2c42c29e2b12d98e07008cdca67fb7c5606c70134e084f8f64cc7a46907c11ef08ed32175eba98443f818444e5298755455944654515d8d534b +DIST at_3.1.18.orig.tar.gz 124499 SHA256 dbd5c8cb8edd53ef467363c3af0391c08769f1dbbd4d5002c59a4cd4cac11d52 SHA512 5ec7512663461ffa1922cef0d99c3cc4882defbea7b1ab855b05bb83e9d3817535db73db74413bcc8af005c956032ec3dc7c83ac16fde96bb315094dae654042 WHIRLPOOL ba2c9d09605cc66ce2a01113700d45c3ce37dddbd244928dca836c570450aaf6aceba15c834dca4e844bb27c9a74cc33eac38a1cbe0a1f5bb7c55ee42bd38424 +DIST at_3.1.20.orig.tar.gz 127666 SHA256 0871923cab73050b98ace020664eb2ddc1e669e4166b5abb64d864d02fcefab9 SHA512 20a13512a86f988728f590712f5bf8a23f4dc44f4b42521a4dd4783dc1ba7ac2016ee87b4c2c14f2346a5839168a983d99c3195e947014aea3096a3db16d176f WHIRLPOOL 7eb6ce93735005caddb2c4855de4fa746beb25ca75f1c0f6a48fc59bf3a3ae706ccb6290c52dd37a63b44fc3c748877f2e5e760083376f93e19574dd760b0ec2 +EBUILD at-3.1.18-r1.ebuild 2313 SHA256 dcb05214960a18477855e400ae680d32f4f3d741021e68df63827974b341ff7c SHA512 4127f0102b93a8d8599b381e1ea310fe84c3e1a2dea4dce46f2b34aeaa7db18f7deb6dec114f8e5a5f35e605641189edea8fb8d19cfe3ce4993ab91e09ae37f1 WHIRLPOOL fd6ce6bee6c230bc483615c65fe66bb19dc703a552fa4bf8ca70e57a7769a2858beefe056910d37e47dda90a2ebca52c1e63b7f6291eccb5f047022b2557ad9a +EBUILD at-3.1.20.ebuild 2308 SHA256 1acbc72d7edfcccfe45c2148d1d18f41ce61feae7cb925e464a81a6886edd5f8 SHA512 8f32d87080e8bc268435563fe267f23969475447ae63b83342b6cc5aa5d20d251679ae29a40c4c47fb29b05f792657d54939728c7fc46a2d2177ebca604d4236 WHIRLPOOL 260937c84b0e5c923926302b0299164b743ab50afbc095e4e1a3a1355acda4784c862442c2c2905e60f41c6427dfed58608eb344029c280cf844b291181f437a +MISC ChangeLog 5037 SHA256 280058694a8f5c785ff1c71aa3e07510015e4cf7227469cfecf2e8c0a8b99ecf SHA512 3f3b9696f3208557b6033315d6ecd79272a017207a6ded3d77636cc27f16186703e26eaecc975bc8cb9fb5a020881ba2d849224af8d942f3b1c82437c8b12d10 WHIRLPOOL f5ee92de9c6cf06dacc1b0bcf12742ef23799c9c66a183a4db7338b59fdf31354ae3e3057116a1c0d39816ff7621807204d603cb169f52861bcb7970ab28eb36 +MISC ChangeLog-2015 14347 SHA256 ea1aafecd1b752fa932ac0b9c2594f8257d2cfa2b5cf9c4c00498146a73cf398 SHA512 f23400aa297536056e57435223e6ce6275e653c35f53e09cff9cba9030238ef63a4ac6dc9d3a7bbc0125fa512736e0cbbbefd046a2e04ec67ac750b832c4883e WHIRLPOOL a3307d537a40b5d161ec46aacf7f2e215c068b922c0914317aba8223ceae6da9725840b9e3ed247c62dee4fb36a39a51f5c93ac0c69fe35567dfbd8acce10eec +MISC metadata.xml 367 SHA256 4218e71a3f5a5f6ad1a4be5854cf802601bb5deb1523813d957004da59fd35fa SHA512 05b8cb8bdc707c7786c42a5d2ecf44063d9f636a14d65b3c1ce4e649ca3e9041108d6b3413a25110db4342d79b12a2d3bf05aeccba7e524b1ea491539ea24e27 WHIRLPOOL abb19bc18bb18755b517253e266286fa9b25e140599b3e47cb61bbd332c0b164ff5e4405861840cdfd3a3ec63c73671038d0e7007b18b8984902060c068efab6 diff --git a/sys-process/at/at-3.1.18-r1.ebuild b/sys-process/at/at-3.1.18-r1.ebuild new file mode 100644 index 000000000000..01c39c214d22 --- /dev/null +++ b/sys-process/at/at-3.1.18-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic pam user systemd + +DESCRIPTION="Queues jobs for later execution" +HOMEPAGE="https://packages.qa.debian.org/a/at.html" +SRC_URI="mirror://debian/pool/main/a/at/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="pam selinux" + +DEPEND="virtual/mta + >=sys-devel/autoconf-2.64 + sys-devel/bison + >=sys-devel/flex-2.5.4a + pam? ( virtual/pam )" +RDEPEND="virtual/mta + virtual/logger + selinux? ( sec-policy/selinux-at )" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.8-more-deny.patch + "${FILESDIR}"/${PN}-3.1.14-Makefile.patch + # fix parallel make issues, bug #244884 + "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch + "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch + # Fix parallel make issue (bug #408375) + "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch + "${FILESDIR}"/${PN}-3.1.13-getloadavg.patch +) + +pkg_setup() { + enewgroup at 25 + enewuser at 25 -1 /var/spool/at/atjobs at +} + +src_prepare() { + default + eautoconf +} + +src_configure() { + local myconf=() + use pam || my_conf+=( --without-pam ) + use selinux && my_conf+=( --with-selinux ) + econf \ + --sysconfdir=/etc/at \ + --with-jobdir=/var/spool/at/atjobs \ + --with-atspool=/var/spool/at/atspool \ + --with-etcdir=/etc/at \ + --with-daemon_username=at \ + --with-daemon_groupname=at \ + ${my_conf[@]} +} + +src_install() { + emake install IROOT="${D}" + + newinitd "${FILESDIR}"/atd.rc8 atd + newconfd "${FILESDIR}"/atd.confd atd + newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd + + # Preserve existing .SEQ files (bug #386625) + local seq_file="${ROOT}/var/spool/at/atjobs/.SEQ" + if [ -f "${seq_file}" ] ; then + einfo "Preserving existing .SEQ file (bug #386625)." + cp -p "${seq_file}" "${D}"/var/spool/at/atjobs/ || die + fi + + systemd_dounit "${FILESDIR}/atd.service" +} + +pkg_postinst() { + einfo "Forcing correct permissions on /var/spool/at" + local atspooldir="${ROOT}/var/spool/at" + chown at:at "${atspooldir}/atjobs" + chmod 1770 "${atspooldir}/atjobs" + chown at:at "${atspooldir}/atjobs/.SEQ" + chmod 0600 "${atspooldir}/atjobs/.SEQ" + chown at:at "${atspooldir}/atspool" + chmod 1770 "${atspooldir}/atspool" +} diff --git a/sys-process/at/at-3.1.20.ebuild b/sys-process/at/at-3.1.20.ebuild new file mode 100644 index 000000000000..137c5efac4cd --- /dev/null +++ b/sys-process/at/at-3.1.20.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic pam user systemd + +DESCRIPTION="Queues jobs for later execution" +HOMEPAGE="https://packages.qa.debian.org/a/at.html" +SRC_URI="mirror://debian/pool/main/a/at/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="pam selinux" + +DEPEND="virtual/mta + >=sys-devel/autoconf-2.64 + sys-devel/bison + >=sys-devel/flex-2.5.4a + pam? ( virtual/pam )" +RDEPEND="virtual/mta + virtual/logger + selinux? ( sec-policy/selinux-at )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.8-more-deny.patch + "${FILESDIR}"/${PN}-3.1.14-Makefile.patch + # fix parallel make issues, bug #244884 + "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch + "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch + # Fix parallel make issue (bug #408375) + "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch + "${FILESDIR}"/${PN}-3.1.13-getloadavg.patch +) + +pkg_setup() { + enewgroup at 25 + enewuser at 25 -1 /var/spool/at/atjobs at +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=() + use pam || my_conf+=( --without-pam ) + use selinux && my_conf+=( --with-selinux ) + econf \ + --sysconfdir=/etc/at \ + --with-jobdir=/var/spool/at/atjobs \ + --with-atspool=/var/spool/at/atspool \ + --with-etcdir=/etc/at \ + --with-daemon_username=at \ + --with-daemon_groupname=at \ + ${my_conf[@]} +} + +src_install() { + emake install IROOT="${D}" + + newinitd "${FILESDIR}"/atd.rc8 atd + newconfd "${FILESDIR}"/atd.confd atd + newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd + + # Preserve existing .SEQ files (bug #386625) + local seq_file="${ROOT}/var/spool/at/atjobs/.SEQ" + if [ -f "${seq_file}" ] ; then + einfo "Preserving existing .SEQ file (bug #386625)." + cp -p "${seq_file}" "${D}"/var/spool/at/atjobs/ || die + fi + + systemd_dounit "${FILESDIR}/atd.service" +} + +pkg_postinst() { + einfo "Forcing correct permissions on /var/spool/at" + local atspooldir="${ROOT}/var/spool/at" + chown at:at "${atspooldir}/atjobs" + chmod 1770 "${atspooldir}/atjobs" + chown at:at "${atspooldir}/atjobs/.SEQ" + chmod 0600 "${atspooldir}/atjobs/.SEQ" + chown at:at "${atspooldir}/atspool" + chmod 1770 "${atspooldir}/atspool" +} diff --git a/sys-process/at/files/at-3.1.10.2-Makefile.in-parallel-make-fix.patch b/sys-process/at/files/at-3.1.10.2-Makefile.in-parallel-make-fix.patch new file mode 100644 index 000000000000..8fd82e639b05 --- /dev/null +++ b/sys-process/at/files/at-3.1.10.2-Makefile.in-parallel-make-fix.patch @@ -0,0 +1,12 @@ +diff -Naur at-3.1.10.2.orig/Makefile.in at-3.1.10.2/Makefile.in +--- at-3.1.10.2.orig/Makefile.in 2009-01-31 15:38:54.000000000 +0100 ++++ at-3.1.10.2/Makefile.in 2009-01-31 15:39:22.000000000 +0100 +@@ -78,7 +78,7 @@ + y.tab.c y.tab.h: parsetime.y + $(YACC) -d parsetime.y + +-lex.yy.c: parsetime.l ++lex.yy.c: parsetime.l y.tab.h + $(LEX) -i parsetime.l + + atrun: atrun.in diff --git a/sys-process/at/files/at-3.1.13-configure.in-fix-PAM-automagick-dep.patch b/sys-process/at/files/at-3.1.13-configure.in-fix-PAM-automagick-dep.patch new file mode 100644 index 000000000000..ee24b7f13147 --- /dev/null +++ b/sys-process/at/files/at-3.1.13-configure.in-fix-PAM-automagick-dep.patch @@ -0,0 +1,22 @@ +--- at-3.1.13/configure.ac ++++ at-3.1.13/configure.ac +@@ -82,10 +82,15 @@ + AC_FUNC_VPRINTF + AC_FUNC_GETLOADAVG + AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid) +-AC_CHECK_HEADERS(security/pam_appl.h, [ +- PAMLIB="-lpam" +- AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support]) +-]) ++AC_ARG_WITH([pam], AS_HELP_STRING([--without-pam], ++ [Build without PAM support(default: enabled)])) ++ ++if test "x$with_pam" != "xno"; then ++ AC_CHECK_HEADERS(security/pam_appl.h, [ ++ PAMLIB="-lpam" ++ AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support]) ++ ]) ++fi + + dnl Checking for programs + diff --git a/sys-process/at/files/at-3.1.13-getloadavg.patch b/sys-process/at/files/at-3.1.13-getloadavg.patch new file mode 100644 index 000000000000..7de085dcd84b --- /dev/null +++ b/sys-process/at/files/at-3.1.13-getloadavg.patch @@ -0,0 +1,19 @@ +diff --git a/getloadavg.c b/getloadavg.c +index cf5869f..c7e2b27 100644 +--- a/getloadavg.c ++++ b/getloadavg.c +@@ -69,8 +69,12 @@ Boston, MA 02110-1301 USA */ + #include <config.h> + #endif + +-#include "lisp.h" +-#include "sysfile.h" /* for encapsulated open, close, read, write */ ++#include <sys/types.h> ++#include <sys/stat.h> ++#include <fcntl.h> ++ ++//#include "lisp.h" ++//#include "sysfile.h" /* for encapsulated open, close, read, write */ + + #ifndef HAVE_GETLOADAVG + diff --git a/sys-process/at/files/at-3.1.13-parallel-make-fix.patch b/sys-process/at/files/at-3.1.13-parallel-make-fix.patch new file mode 100644 index 000000000000..dec02e42310c --- /dev/null +++ b/sys-process/at/files/at-3.1.13-parallel-make-fix.patch @@ -0,0 +1,11 @@ +--- at-3.1.13_orig/Makefile.in 2011-06-25 14:43:14.000000000 +0200 ++++ at-3.1.13/Makefile.in 2012-03-16 17:23:26.210267660 +0100 +@@ -73,7 +73,7 @@ + atd: $(RUNOBJECTS) + $(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) + +-y.tab.c y.tab.h: parsetime.y ++%.tab.c %.tab.h: parsetime.y + $(YACC) -d parsetime.y + + lex.yy.c: parsetime.l diff --git a/sys-process/at/files/at-3.1.14-Makefile.patch b/sys-process/at/files/at-3.1.14-Makefile.patch new file mode 100644 index 000000000000..1e28619d9a82 --- /dev/null +++ b/sys-process/at/files/at-3.1.14-Makefile.patch @@ -0,0 +1,18 @@ +# - install into Gentoo/FHS doc dir + +--- at-3.1.14/Makefile.in ++++ at-3.1.14/Makefile.in +@@ -12,8 +12,11 @@ + man1dir = $(mandir)/man1 + man5dir = $(mandir)/man5 + man8dir = $(mandir)/man8 +-docdir = $(prefix)/doc +-atdocdir = $(docdir)/at ++ifndef PF ++PF = at-$(VERSION) ++endif ++docdir = $(prefix)/share/doc ++atdocdir = $(docdir)/$(PF) + etcdir = @ETCDIR@ + systemdsystemunitdir = @systemdsystemunitdir@ + diff --git a/sys-process/at/files/at-3.1.8-more-deny.patch b/sys-process/at/files/at-3.1.8-more-deny.patch new file mode 100644 index 000000000000..0a9a7eb2393c --- /dev/null +++ b/sys-process/at/files/at-3.1.8-more-deny.patch @@ -0,0 +1,20 @@ +--- a/at.deny ++++ b/at.deny +@@ -10,6 +10,8 @@ + lp + mail + man ++mysql ++news + nobody + operator + proxy +@@ -19,6 +21,8 @@ + qmailq + qmailr + qmails ++squid + sync + sys ++uucp + www-data diff --git a/sys-process/at/files/at.pamd-3.1.13-r1 b/sys-process/at/files/at.pamd-3.1.13-r1 new file mode 100644 index 000000000000..5c529c16180e --- /dev/null +++ b/sys-process/at/files/at.pamd-3.1.13-r1 @@ -0,0 +1,9 @@ +# +# The PAM configuration file for the at daemon +# + +auth required pam_env.so +auth include system-services +account include system-services +session include system-services + diff --git a/sys-process/at/files/atd.confd b/sys-process/at/files/atd.confd new file mode 100644 index 000000000000..bd6e4f1d0b88 --- /dev/null +++ b/sys-process/at/files/atd.confd @@ -0,0 +1,7 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Define startup options for atd(8). +# For example: ATD_OPTS="-l 3.0 -b 5" +ATD_OPTS="" diff --git a/sys-process/at/files/atd.rc8 b/sys-process/at/files/atd.rc8 new file mode 100644 index 000000000000..3cc437eaa16e --- /dev/null +++ b/sys-process/at/files/atd.rc8 @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile="/var/run/atd.pid" +command="/usr/sbin/atd" +command_args="${ATD_OPTS}" +start_stop_daemon_args="--pidfile ${pidfile}" + +depend() { + need clock + use logger +} diff --git a/sys-process/at/files/atd.service b/sys-process/at/files/atd.service new file mode 100644 index 000000000000..164fc2c0cb74 --- /dev/null +++ b/sys-process/at/files/atd.service @@ -0,0 +1,13 @@ +[Unit] +Description=at (job queue) daemon +After=networking.target + +[Service] +Type=forking +ExecStart=/usr/sbin/atd +PIDFile=/run/atd.pid +StandardOutput=syslog +StandardError=syslog + +[Install] +WantedBy=multi-user.target diff --git a/sys-process/at/metadata.xml b/sys-process/at/metadata.xml new file mode 100644 index 000000000000..9734cae3df3e --- /dev/null +++ b/sys-process/at/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> +<maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/atop/Manifest b/sys-process/atop/Manifest new file mode 100644 index 000000000000..ba06d5aea0ea --- /dev/null +++ b/sys-process/atop/Manifest @@ -0,0 +1,21 @@ +AUX atop-2.2-build.patch 898 SHA256 2fe09911e7f53509b68e39038ceef60674e66ab6f9f9fd5bd2fcabc14c7f5edf SHA512 f291cf34d975367f0e972b7fb62f8c91234d0d8da2c903f82e18f160f435e8e8a57ad7eeb5ef9c438e6a5f86c0e9c237d518a4fe09dcf43dcfa5ff39ab769ffc WHIRLPOOL 9ff3caa69d4210d54da2ce2ad793172b04ceb5a067a94b4f2a532ea46339e21cc3fc12cf67a6b6983009efa5dcd19c9240188236a514863c83c67cdc66daf6e8 +AUX atop-2.2-sysmacros.patch 283 SHA256 8e1466aaad91436d6e4045d15c387f6d7eeb6a4de0ff2a7c6f01031b666e8013 SHA512 8dd708193a57abad2e53625278ab60cfc74bca7ae2851d54584542257dd16161f8262eb7f3f26a9c2e274f8c481012850a5a30c193353b506e4d1e7a43e1565a WHIRLPOOL 789627a78f6b9794b79bb86a1d16451a23c1fabfbdb221bdb22617ae2fd250257eef86af9e678b47a72a962e51d7ac8cae7b81700e4af23fb9795ae84f2b4d8a +AUX atop.rc 355 SHA256 517aee2c460dc9c3b862a6a2ce6f74baa2f8049c0ec5cb75d057be4996960082 SHA512 95a8c92fd78a78653f8b9a7ca4a2cbe3135836e4cd1e7c81ad33a106c8e51911250078bd4fa1d903f2632eb7cba6053333d934546bba26fbf6853071775452d2 WHIRLPOOL b150e0eafafb4194cf4560427105c01fcf89bd885f5e45e73cbf01b128d1f0fa1845bdefcd8195061574e6b2a3046f3ab0faf023127a881e4b48a9d8a54e9ff6 +AUX atop.rc-r1 262 SHA256 07dd782853930692b386168e503a399a5677d4de1edcdcda3fd0736e6f623c27 SHA512 d1bed61a77917311103a6ab7130c5179e0ca2178579f07fa0fa5caabbdabe0e82b75f4dbc197d50ae6710fca5d38f0a585109600430a217d755da6ad9ee7955b WHIRLPOOL 8e5201507a2817bbcce1d9bda412f50b0693b304c138f86f4017d24ab5162921973e37a117f6b1df914368899e464d82157e7e38ecb8be34ee021a609241deb0 +AUX atop.rc-r2 268 SHA256 79552ef066429bf3ebccb866fa7c713276e21d4c36d502372549061a269ee8f8 SHA512 07699f1190faa3a8343314b5c8419e7ea49280fef664334f03558907eb5654bc33c7f4baa3fa54cc6f07866c378c984ff81e020e69f0b146c68b8503ab010d0c WHIRLPOOL 4ef6519672733b83c357b39c9b922e3f4b3dbe18f0bbbde7fde4b70f9cac4982bec6504fdaf7960a343b2e8c0e12f5034a34ba3da3f839f32d9e28a546a3053c +AUX atop.service 190 SHA256 22e9db00d376606a0b90c25fbe7d581f02b4a0523a1cd2c329828620b210d5b7 SHA512 194e9703f34b6a1c749ed5bae3e8708dc625d30e174e285a0998c8aa0d2b1b34da70a3d1db86380abc40615b28a5bdb37b2d511be983da5fd7f154b9686ba343 WHIRLPOOL 970ab925a121c69444296f390bd6d5a944fefcd7eb13d1ed4b154e12ed05338210cf1aebc406328987a344595067e526d44749cf14e4872ba543be39bc0cf823 +AUX atopacct.rc 1054 SHA256 27643456805a059f2de412d5daeea70d2953ecd628d96e180a8646506ec75517 SHA512 ddb026c4ebf63dccc6f49b2b7db829d7ba0388da080a65562bac3f2d7ebacc95093099a0fc9d636af5462ace4a9e118eacfe3eb626a70245e7c5c1e874866f02 WHIRLPOOL cfbb59aa6b82127f258c4bc7702bf039bf6c6759df66d49a4ca8afc849c42847efcdd4d97e62330a5ca76080ea39c826b033e1f7d495c1b43e069644a091d898 +AUX atopacct.service 269 SHA256 5b58e69a3355ce80ed9939fdfd91ccc03ca016c8826e9dd3f87083cc3ca3a6b9 SHA512 1e57eb76db3e78be504a1a11a479d154239f269da5f5cd3a52eced4ca63ea051d003f14d498d9a71070b7081b2ff80f5eeb5453b81952ee0e4c05423e3c2d308 WHIRLPOOL b2161e13e7e5e430133fef5ee7bc139a4e23185cbcf237647489e285cb763328bea522f93bc1e69c3628b461f1e71a9c8fafe4c551da52a898b133b03478b12a +DIST atop-1.27-3.tar.gz 159521 SHA256 bce36e0b50f0e03995d86d25dbc9ab4a289f6755ce3558844f96d41b0bba563f SHA512 59100b61ff14ff49d8daf815abdbf5e9f905767fe8532b0043f3a63acc4d37975201879a93634f6e77edd307e8b6e7d0bf1a3caff1a3cdce8240e92e46023003 WHIRLPOOL 51ceae010e8cd9172d55ab970fcfe90db1ac6d831db14ece17598dba8395c2f8a7e840513e4d07f5f7ad12e28cfc956a8d04619d4e73d7009a6c5a52a62be7d2 +DIST atop-2.2-3.tar.gz 194168 SHA256 c785b8a2355be28b3de6b58a8ea4c4fcab8fadeaa57a99afeb03c66fac8e055d SHA512 34076e35004367bbfd63f3aac1e786dab566633799b5d4f2c4d45f343642d145027f6298aa40d5e83c1356f502e3c51faa58da07cea58f2960bfacd78cf77915 WHIRLPOOL 2798ebaf5affc9d929a0b5663c1caa6d64a52e00d20f496373f34e48c592fe168c8c20c9df3c309a3057f9eb7baa3409f2cbfbedf110adb9fef51d0774d8d3e2 +DIST atop-2.3.0-netatop_h.patch 3279 SHA256 e7d39b71c3eb6b94e358358267caca063a6e1c9e00dacdeaab1cfc9ca3ceff2e SHA512 9b84adf3e740eca5e42199bb3e9e65e08ffb07f60e7c02d04b73cfe4b63a4f563991a797def5826ba10a32c78d2363ebe9b4e41d12cf9e7118e3eb82d259c31b WHIRLPOOL 8246ba30bb4268b7b3df25d8d8727c145d6aa8889f93ef0b0a3e07a63122eb25c31552e970ac92c3a3c3bf12b1b57e9d698cd50aa07ff8f8f5d8851131866e18 +DIST atop-2.3.0-version_c.patch 1537 SHA256 ea8620eee1557ddd932edcca0d696be4549d7b7b2c9417ff263d822155cb8d0a SHA512 48589cb29cc969c25d0dbc5c5237200b28af6f1b5daf478abdd52079360938887f9de0fa4a379479c5bf8f3ba31946eba5aae19fe3246f36e82a132708840373 WHIRLPOOL 3c8bbbce2a7fc947a7f4eddfe7160d35a5d765d3f0a4680098d157d7c4030881cde6fe236ef321a17294db1a21e0a8c5b992b030b8514ef921eaaccb5a3c115d +DIST atop-2.3.0-version_h.patch 748 SHA256 c0acbb67080ab66f243c4c56f57030f51851ca816cc2f3945c775c90a347e2a8 SHA512 79ea49421e9bd82322cae26148d608560910a3d2e089228d2218d93744dcba8398058dd75255b64d15301c8bc4bde1dd6e15b6c6949a01534557b24b3d79089d WHIRLPOOL 51f325f5a72d090c017487f783a4882ff8e82d4b25dd5ea48c7f1c5b8332acb1e03ef1fa7a1aca77d15d74772bc5979fbde1b83397814cceadd5848c3b698a09 +DIST atop-2.3.0.tar.gz 190560 SHA256 9af5d8ea1f1d2b1ff6e85dd666d294e213b7c39c66d8a7a796665061cdbf6c01 SHA512 8347f480b3e8f957be9aa8982b9c69c5fbc59b8a32044662995495cc2218de48342788aae40538d2ad67d402c8c470d0514261791ead70303f97221ea6983621 WHIRLPOOL a0cb664edee0fb7750993db6885880f3eae25e079358a26cd0bab7ec0a45d1a18e6601e59e78e610b97bf0aacbb923463bcee2935a3b913af53e48d84d508cdc +EBUILD atop-1.27_p3.ebuild 915 SHA256 9af6d579f09a20dafe2ee02ffad876f2205a030ec46b1f943b884413ea414d98 SHA512 907656fe15cd36e60fd5f7a649337839d560ff01e5c448256b7f2121de896d21dbfb53a3e07cc4913da41eff002ec99a5b100fce3856ac55feb670b4e91ef035 WHIRLPOOL c7980cba35f4d5e464c4e6bbbded82111e92dbbaa1930ab9b198e082901cd804981894d0261b44e125d644e125226230ada4917a462d80a47713b8396cc5353e +EBUILD atop-2.2.ebuild 1181 SHA256 69b00680158dc1c2a503da6a4353ce1866bd8def1616f49ccfa61e9fdb70aec5 SHA512 1c48f49e6b76f97f13e44f776ba7ed6a5a4bc7de43d0df3b2d30ce0cb578c6671baf3741f6e5e7d24b42006601dbe7b5a79739a2e0819ff955baf9a12db8015e WHIRLPOOL 963a0892143b3eaa7a4a4659c152b0dadd04db94442c24aeb889892bd420b36a809adb91e518e10f58ead466676145762d888d46485e6e2fb32394261d5962aa +EBUILD atop-2.3.0-r1.ebuild 1819 SHA256 46114be6592b6988f1cb035b19b712e4193ec91b738c67f31b0f8a9c268f93e3 SHA512 d56e90f4b7e2167a0a9ef1f9552b9d06946ad70ecc4d49fbd7717e908dd73bc247efac50c54aa7fd4847a61d5b8946aca253af171df0b0112e707af3dae9171b WHIRLPOOL 2e31fb6301c562c86548e922c06423b2091d58530de300201830b0448d018553f9fe07a4a720b50b2d3ea5bf03d5d05b0f7e152e7f4199d0cfd57eeacee785c3 +EBUILD atop-2.3.0.ebuild 1810 SHA256 5261e6223c0485e5f5e9b439467a0d5a5e0186c477047025863aa8c99c714282 SHA512 9eb4c1bc4b78fb3f245589f2409e813ee267f51936ea2f1fbcf64e04c7b5e730147a41d2da767f05590814942f00df3a24464fb34406b06f5ac8f9e09f799100 WHIRLPOOL 4c48db6fee858a0fe7497db99ebcaeeafd06234242c53a7ef105ee0c2cb163201a22ca42a1aa53a7f381a95519369094e75287c0c4c96aded8941819726b7649 +MISC ChangeLog 3728 SHA256 92183d366c75428df768483ea275d3bee91dc6a397a6241399023cd72d8332c8 SHA512 f69e7a58d5e129060fcdc16f08d2ed4309ed13e0274240c35a84bebf6f883e1ac8e9ea873b974c1e03fc3cbcd934caebc5c2846519550b88149ed53cc0e77e74 WHIRLPOOL 30a19eaf95883e2ef0b9686d7d28f0ac449373911e7c1382d17e2f84d59b755c04f42296b9fb434a5eca6e7f3a195921a1d5bcd6ec0aba90e83d0fd3ae5d2740 +MISC ChangeLog-2015 7138 SHA256 3595efe1be63a2bee628925a052a4858f3aab248eee3c3d81cc2102aa2ee821c SHA512 08f177d5148578b4c0034e8a54b5f507b658b0174d81f5a80ead1bd8e0a77112284f202f3eebbfbd6077fa30f205179f3027bad62e39a8da7012d110b0dd57e3 WHIRLPOOL 8af38d37c852f8f57ae507f1598820b94011ed6f35f9ac0787f47ec07fa2b9e893485861f5ca748505e4004a3bfaa49b29537cd428c28b471398f164968129f9 +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/atop/atop-1.27_p3.ebuild b/sys-process/atop/atop-1.27_p3.ebuild new file mode 100644 index 000000000000..7e615c59c184 --- /dev/null +++ b/sys-process/atop/atop-1.27_p3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="3" + +inherit eutils toolchain-funcs + +MY_PV=${PV//_p/-} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="https://www.atoptool.nl/" +SRC_URI="https://www.atoptool.nl/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm hppa ~mips ppc ~ppc64 x86" +IUSE="" + +DEPEND="sys-process/acct" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e '/^CFLAGS/s: = -O : += :' \ + -e '/^LDFLAGS/s: = : += :' \ + -e 's:\<cc\>:$(CC):' \ + Makefile + tc-export CC + cp "${FILESDIR}"/atop.rc atop.init + chmod a+rx atop.init + sed -i 's: root : :' atop.cron #191926 +} + +src_install() { + emake DESTDIR="${D}" INIPATH=/etc/init.d install || die + # useless -${PV} copies ? + rm -f "${D}"/usr/bin/atop*-${PV} + dodoc README "${D}"/etc/cron.d/* + rm -r "${D}"/etc/cron.d || die +} diff --git a/sys-process/atop/atop-2.2.ebuild b/sys-process/atop/atop-2.2.ebuild new file mode 100644 index 000000000000..2c3035fb4f8f --- /dev/null +++ b/sys-process/atop/atop-2.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs systemd + +MY_PV=${PV//_p/-} +MY_P=${PN}-${MY_PV}-3 + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="https://www.atoptool.nl/" +SRC_URI="https://www.atoptool.nl/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + sys-libs/ncurses + sys-process/acct +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.2-build.patch + epatch "${FILESDIR}"/${PN}-2.2-sysmacros.patch #580372 + tc-export CC PKG_CONFIG + sed -i 's: root : :' atop.cronsysv || die #191926 + # prefixify + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile +} + +src_install() { + emake DESTDIR="${D}" genericinstall + # useless -${PV} copies ? + rm -f "${ED}"/usr/bin/atop*-${MY_PV} + newinitd "${FILESDIR}"/${PN}.rc-r1 ${PN} + newinitd "${FILESDIR}"/atopacct.rc atopacct + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_dounit "${FILESDIR}"/atopacct.service + dodoc atop.cronsysv AUTHOR ChangeLog README +} diff --git a/sys-process/atop/atop-2.3.0-r1.ebuild b/sys-process/atop/atop-2.3.0-r1.ebuild new file mode 100644 index 000000000000..71fe1c731cb2 --- /dev/null +++ b/sys-process/atop/atop-2.3.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info systemd toolchain-funcs + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="https://www.atoptool.nl/ https://github.com/Atoptool/atop" +SRC_URI="https://github.com/Atoptool/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +# Tarballs lacks version.{c,h} files +SRC_URI+=" https://github.com/Atoptool/atop/commit/42e86fcc42ce60f8c92f3c7d5f3a6ccde47c0b33.patch -> ${PN}-2.3.0-version_h.patch" +SRC_URI+=" https://github.com/Atoptool/atop/commit/a8d850d06efc8d70a19f55ec93fe83df51e99077.patch -> ${PN}-2.3.0-version_c.patch" +SRC_URI+=" https://github.com/Atoptool/atop/commit/5f101e656a24271726d1e9cd672631b6033c36c1.patch -> ${PN}-2.3.0-netatop_h.patch" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + sys-libs/ncurses:0= + >=sys-process/acct-6.6.4-r1 +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2-build.patch + "${FILESDIR}"/${PN}-2.2-sysmacros.patch #580372 + + # taken from upstream. + "${DISTDIR}"/${P}-version_{h,c}.patch + "${DISTDIR}"/${P}-netatop_h.patch +) + +pkg_pretend() { + if use kernel_linux ; then + CONFIG_CHECK="~BSD_PROCESS_ACCT" + check_extra_config + fi +} + +src_prepare() { + default + tc-export CC PKG_CONFIG + sed -i 's: root : :' atop.cronsysv || die #191926 + # prefixify + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile +} + +src_install() { + emake DESTDIR="${D}" genericinstall + # useless -${PV} copies ? + rm -f "${ED%/}"/usr/bin/atop*-${PV} + newinitd "${FILESDIR}"/${PN}.rc-r2 ${PN} + newinitd "${FILESDIR}"/atopacct.rc atopacct + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_dounit "${FILESDIR}"/atopacct.service + dodoc atop.cronsysv AUTHOR README +} diff --git a/sys-process/atop/atop-2.3.0.ebuild b/sys-process/atop/atop-2.3.0.ebuild new file mode 100644 index 000000000000..31cb7439dd37 --- /dev/null +++ b/sys-process/atop/atop-2.3.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info systemd toolchain-funcs + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="https://www.atoptool.nl/ https://github.com/Atoptool/atop" +SRC_URI="https://github.com/Atoptool/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +# Tarballs lacks version.{c,h} files +SRC_URI+=" https://github.com/Atoptool/atop/commit/42e86fcc42ce60f8c92f3c7d5f3a6ccde47c0b33.patch -> ${PN}-2.3.0-version_h.patch" +SRC_URI+=" https://github.com/Atoptool/atop/commit/a8d850d06efc8d70a19f55ec93fe83df51e99077.patch -> ${PN}-2.3.0-version_c.patch" +SRC_URI+=" https://github.com/Atoptool/atop/commit/5f101e656a24271726d1e9cd672631b6033c36c1.patch -> ${PN}-2.3.0-netatop_h.patch" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + sys-libs/ncurses:0= + sys-process/acct +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2-build.patch + "${FILESDIR}"/${PN}-2.2-sysmacros.patch #580372 + + # taken from upstream. + "${DISTDIR}"/${P}-version_{h,c}.patch + "${DISTDIR}"/${P}-netatop_h.patch +) + +pkg_pretend() { + if use kernel_linux ; then + CONFIG_CHECK="~BSD_PROCESS_ACCT" + check_extra_config + fi +} + +src_prepare() { + default + tc-export CC PKG_CONFIG + sed -i 's: root : :' atop.cronsysv || die #191926 + # prefixify + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile +} + +src_install() { + emake DESTDIR="${D}" genericinstall + # useless -${PV} copies ? + rm -f "${ED%/}"/usr/bin/atop*-${PV} + newinitd "${FILESDIR}"/${PN}.rc-r2 ${PN} + newinitd "${FILESDIR}"/atopacct.rc atopacct + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_dounit "${FILESDIR}"/atopacct.service + dodoc atop.cronsysv AUTHOR README +} diff --git a/sys-process/atop/files/atop-2.2-build.patch b/sys-process/atop/files/atop-2.2-build.patch new file mode 100644 index 000000000000..70840a25330a --- /dev/null +++ b/sys-process/atop/files/atop-2.2-build.patch @@ -0,0 +1,27 @@ +--- atop-2.2-3/Makefile ++++ atop-2.2-3/Makefile +@@ -19,7 +19,7 @@ + PMPATH2 = /usr/lib64/pm-utils/sleep.d + PMPATHD = /usr/lib/systemd/system-sleep + +-CFLAGS += -O2 -I. -Wall # -DHTTPSTATS ++CFLAGS += -I. -Wall # -DHTTPSTATS + OBJMOD0 = version.o + OBJMOD1 = various.o deviate.o procdbase.o + OBJMOD2 = acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o +@@ -32,13 +32,13 @@ + all: atop atopsar atopacctd + + atop: atop.o $(ALLMODS) Makefile +- $(CC) atop.o $(ALLMODS) -o atop -lncurses -lz -lm -lrt $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(shell ${PKG_CONFIG} --libs ncurses) -lz -lm -lrt + + atopsar: atop + ln -sf atop atopsar + + atopacctd: atopacctd.o netlink.o +- $(CC) atopacctd.o netlink.o -o atopacctd $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) atopacctd.o netlink.o -o atopacctd + + netlink.o: netlink.c + $(CC) -I. -Wall -c netlink.c diff --git a/sys-process/atop/files/atop-2.2-sysmacros.patch b/sys-process/atop/files/atop-2.2-sysmacros.patch new file mode 100644 index 000000000000..87fd069c8fdb --- /dev/null +++ b/sys-process/atop/files/atop-2.2-sysmacros.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/580372 + +include sys/sysmacros.h for major/minor prototypes + +--- a/photosyst.c ++++ b/photosyst.c +@@ -164,6 +164,7 @@ + #include <signal.h> + #include <string.h> + #include <dirent.h> ++#include <sys/sysmacros.h> + + #include <sys/socket.h> + #include <netinet/in.h> diff --git a/sys-process/atop/files/atop.rc b/sys-process/atop/files/atop.rc new file mode 100644 index 000000000000..f05db6a0e15b --- /dev/null +++ b/sys-process/atop/files/atop.rc @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +start() { + ebegin "Starting atop" + start-stop-daemon --start --quiet --exec /etc/atop/atop.daily + eend $? +} + +stop() { + ebegin "Stopping atop" + start-stop-daemon --stop --exec /usr/bin/atop --pidfile /var/run/atop.pid + eend $? +} diff --git a/sys-process/atop/files/atop.rc-r1 b/sys-process/atop/files/atop.rc-r1 new file mode 100644 index 000000000000..c5172283a212 --- /dev/null +++ b/sys-process/atop/files/atop.rc-r1 @@ -0,0 +1,8 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Resource-specific view of processes" +pidfile="/var/run/atop.pid" +command="/etc/atop/atop.daily" +command_background="true" diff --git a/sys-process/atop/files/atop.rc-r2 b/sys-process/atop/files/atop.rc-r2 new file mode 100644 index 000000000000..ce66821dbdd5 --- /dev/null +++ b/sys-process/atop/files/atop.rc-r2 @@ -0,0 +1,8 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Resource-specific view of processes" +pidfile="/var/run/atop.pid" +command="/usr/share/atop/atop.daily" +command_background="true" diff --git a/sys-process/atop/files/atop.service b/sys-process/atop/files/atop.service new file mode 100644 index 000000000000..09295b9acd12 --- /dev/null +++ b/sys-process/atop/files/atop.service @@ -0,0 +1,11 @@ +[Unit] +Description=Atop advanced performance monitor +Documentation=man:atop(1) + +[Service] +Type=simple +ExecStart=/etc/atop/atop.daily +KillSignal=SIGUSR2 + +[Install] +WantedBy=multi-user.target diff --git a/sys-process/atop/files/atopacct.rc b/sys-process/atop/files/atopacct.rc new file mode 100644 index 000000000000..c68ca3e6b3a8 --- /dev/null +++ b/sys-process/atop/files/atopacct.rc @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Resource-specific view of processes" +command="/usr/sbin/atopacctd" +lockfile="/var/lock/subsys/atopacctd" + +start_pre() { + # Check if process accounting already in use via psacct + for PACCTFILE in /var/account/pacct /var/log/pacct ; do + if [ -f "${PACCTFILE}" ] ; then + BEFORSIZE=$(stat -c %s "${PACCTFILE}") + AFTERSIZE=$(stat -c %s "${PACCTFILE}") + + # verify if accounting file grows, so is in use + if [ ${BEFORSIZE} -lt ${AFTERSIZE} ] ; then + ewarn "Process accounting already used by psacct!" + return 1 + fi + fi + done + + checkpath -d -q ${lockfile%/*} || return 1 +} + +start() { + ebegin "Starting atopacctd" + start-stop-daemon --start --exec ${command} + touch ${lockfile} + eend $? +} + +stop() { + ebegin "Stopping atopacctd" + start-stop-daemon --stop --exec ${command} + rm ${lockfile} + eend $? +} + diff --git a/sys-process/atop/files/atopacct.service b/sys-process/atop/files/atopacct.service new file mode 100644 index 000000000000..1f51ec41916a --- /dev/null +++ b/sys-process/atop/files/atopacct.service @@ -0,0 +1,14 @@ +[Unit] +Description=Atop process accounting daemon +Documentation=man:atopacctd(8) +Conflicts=psacct.service +After=syslog.target +Before=atop.service + +[Service] +Type=forking +PIDFile=/var/run/atopacctd.pid +ExecStart=/usr/sbin/atopacctd + +[Install] +WantedBy=multi-user.target diff --git a/sys-process/atop/metadata.xml b/sys-process/atop/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/atop/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest new file mode 100644 index 000000000000..05b786dca314 --- /dev/null +++ b/sys-process/audit/Manifest @@ -0,0 +1,15 @@ +AUX audit-2.1.3-ia64-compile-fix.patch 7173 SHA256 af8f2764b5675fb364901dd6ce9477655b1bde9de9a9436c1a7e40793a0ad560 SHA512 be1f0fd8933e962b11818bace04a14f89afd40c20d9e3ecc839c210fc946e851bb8ba0ce0eae9267023397f77c5a1a3c8b574b9285c0351f534a24f5c9a2a512 WHIRLPOOL f6a7a3b740f39485874a874bbfdea85e087fdcde817a91526e37cddbb85d6e4536add47179021fc7245bafb74b7ad4f3286de55108cb950aee2e1d7217ef19e3 +AUX audit-2.4.3-python.patch 2768 SHA256 aade1c5823f2a7b497a200232b7454791058cd7c8dd634daa4131b75e5bb203c SHA512 97c1f2eda07f3d986bab161d299f2cf110c1fdc76b889013748812ee7e33ece0fd6d3f34296d5d875db8c966d7fe77c57e2214c0cf6592beb48e462a504c1d70 WHIRLPOOL ed3680b92316dbd06e781618f77376fdccd111e5d50ee2ecfcfabbdcdcad86d3ccfa121936327d125ea79b0529acede3d937967c57294edd729e8ff6efc9c6b8 +AUX audit.rules 886 SHA256 41d6ecca9a1e09c8000189fd81b31826c5e167ae5c77f0048da1c37ee02d8d9f SHA512 070e51d8182f84385bacb0801b8d0f390f560a650b9b94b74fd5f30fdf9fb2d2ae38bd29e70e2d38a26a6188a5bc3a74d732a84d0a46de926ada692ddd19cbe0 WHIRLPOOL c4c1eaecf72706248765ca7703695290bc25091d713d7af8c46790521584ac23f20f96809c7bf5657ac698332c5471352293570f0e72448f1961f50b53d10282 +AUX audit.rules-2.1.3 1009 SHA256 94f4f6c1dad194ad7a4caa719023f783eba6743fa735e9f61d75ab0ccc1c35ad SHA512 bce3ee9aaa0ab48395e6e10ee9b3627d6b7a8083abefdc4009de26649c65a39e000078f799e8c3c9e3341dfa030c6dfbbcad2fb7756fbb3d01b27be078adecec WHIRLPOOL f6f8ac3ef64b3a79c129afae0b4f3dde40548ee6a21fa2a4b9e9813841adb8b040a6453995048534a2a3fb5a8db551f371c1a47d889bde566acf889d4918fc75 +AUX audit.rules.stop.post 452 SHA256 656caab7de03b7e23afcbcc1efe3fbde001ceb61616af9da1d030361fa383215 SHA512 a7bc52cbbea278a38e2837149524bb21b2c5367c96ed07fe576e08322595c5bee57ff07f8ebecd17391d9c3abe1ba187ac6e39400a153bf0ace4257303d036d3 WHIRLPOOL 7e20985ac6a8f76180e8da452164a7e6d94beb757081ba264731afbdab73244fd354d5337809f6b48d688679e82146d93a894cde20889fe6888d6cd28c6cd5ea +AUX audit.rules.stop.pre 427 SHA256 664b686eaf383deecdefdad2d96173cfe4208de0eb3508a0e2b0ce0067e43b50 SHA512 def5ef378ad554f38754839d1c00c598686645a59896e37a3c7ff07b00aaa05a2b92305e49a750358eaba63a7d48fb647472529b155301069771678eed272463 WHIRLPOOL 3a1dff3c652cf1bae9e8b8c73e590c049bf6117f40682aad24f6e46532299b8365ffa7ac602288f1132317cd3133490b45c2589502f69aaf7d18567d1634b05f +AUX auditd-conf.d-2.1.3 734 SHA256 73d1a0190d1f70c36591891e2453eeda28f7d799dc011d31cd89dff84a3064b4 SHA512 69d8777772ded7a8c0db2bcf84961b121bb355fa0d4ba0e14e311f8a8bfe665cbd2b7ac632d73477f9dfa9a6eec357a7ed458fe9b3e7b5ede75b166f3f092ab7 WHIRLPOOL 5b76ef5e1136668058bb440e7eccdbf3ed11195b6dd9a6ba24966d8cc383d89a4f0901c8777b513ad1eea43758cecebd8c46c26834e54adc2b758d03198b90ce +AUX auditd-init.d-2.4.3 2054 SHA256 4415dfa7d156cf3d3ffbbd612b655aeac25de6b88bc641743ff7fbc303ea2680 SHA512 1b48c248db5d34f148f9c79f8b2a6acbf61c729230341b861f5e331bbfb0c8356305a09eb2cc5c82c14c4fd9a13c7c13957e1ed493834b8b3b9ee38978e4c31f WHIRLPOOL 9acef30c31b35a95129f547264a56103369a7fa1bd7b1acb7fff6bcbb711a1548bbbc87b6997cb36c714047e6580e4071846c29eea894eabaea5641072c93654 +DIST audit-2.6.4.tar.gz 1078677 SHA256 b5a79cecd9593c368c9e42d5af72fcd14f046676657e906970b6c4a1aa5d06c7 SHA512 69b5d3987d2b8b189d1242fde639af3d7d366e901733133e47ee71223caf73aa7da40b7811298f0af861969b0ab482c5ef9830b711bdd15bd5f4d0ebc88a1224 WHIRLPOOL bda2f7bb754620b003c9c7df2e29d169e0421a9f0a1cf11396539fc3cae1d3907dc4265c3941e24a30eb206032a894989e74b803f2c4a7558057b879c41b2642 +DIST audit-2.7.1.tar.gz 1099083 SHA256 0441790794fd9375dbca598fa0ffb46c57ff37b3a24b94ffec0bbee3215cca09 SHA512 37964d81deee8608fde5f90d5d096727d3eb009e084be34749adcb0662e607e35c49c80bd83ce38b17161f11363b691721c8a8aa5dea832d320c53ab0ebb7483 WHIRLPOOL 87b7187dc56d78a5401d0f2a39c5461924bbac1d5fa49f68121a38a2422f3e6111e6c9f73db54c882cbaa17f584a23478863ef7c86053ddff63088d3903aafc9 +EBUILD audit-2.6.4.ebuild 6168 SHA256 65968cc9ba5bce49f2aa37fc4f020c81591a285d416a77cea59df5a82eaea256 SHA512 ca6269971071902dc3688f16287d1c54ee420bab9efd8cfb8e63bdb7eb03d4e80d1bbc75b9e4cb82be3a78743e8617fe656018e509ad77562fe8a14a8f4e5c0d WHIRLPOOL 0adc6a32a277482d3789b34f73ab24a3ec590ac16af5bb1bbbbd2298b3f3c4a61b6310c0466ce8d3d08a70e6ae4cb70b3ae9be8edc0353bc9ecbcc7e53e80a80 +EBUILD audit-2.7.1.ebuild 6179 SHA256 eaee5c3a8ff91b8d9dcd30107e00bbc76efe670da20bad1e93d56f200a8dd52f SHA512 3b6efbe46f347e3b7abe092557e4c3cbe7cc30fd6a1648cf1d0395dd1f9a707e7eb10c3202481874657d5b9c809506b61b8dfb8dcf494fe62152a2fa6a9007cf WHIRLPOOL c9f5994a5888ea44b0bfe54da950375fad0a1c490f1abbb80d59a4da0427d752aaa5b04ec43039e7ac37718170e5460e2da39857a303a179fc271618b183f149 +MISC ChangeLog 6875 SHA256 33277b9bbb08f209e1f99e512157978f0aad27063bf2314e1042cb46a990d3dd SHA512 4392be1e1ab610a71691dd65098cf144c1db7f21cae3015868ab84d30a66eb1a721bdd27a8671fe57c0ee325c1e010f48c17b4eaacd61555d2e667b55bdbfb9e WHIRLPOOL 325c34795a27ea43b5e0e4e770180517c29b33f371f0cd805ecce90db566244b5058a4eb5a6991fb8c8fb6eada9632262f211dcabf8dc4733bca0ad666b97b5e +MISC ChangeLog-2015 17139 SHA256 536d8c85e999f9a2bf0de947d823ef369976f4d1f1219d618bebb913dae98120 SHA512 36f72d6e38542467e7bfb13f423f60e157c5516f567ef8849c6f3acdd5a110654a313735a845a9054ab5a9841c9121ccab282bfaf3f315de540107f57fe8895c WHIRLPOOL 36375594c8f6988168053c80c96432588e0a6a06f2bdb9effda701f740564ba200391bc2abe327e64e018f5a56a34f46d7bcf8f93d49e54283ae57613825d27b +MISC metadata.xml 285 SHA256 01f42b627c9a464e2c4858450ee42f33f29056e0e33518b803f8e0c67a9eae7d SHA512 7045d0bbcd17c6149608f67b679afa6f699650beadfc9f8e72988e603c77d8b945ba10d1dad6319fed15d9d1410aeb94cabf872e407a1f8841bcc13600863d8a WHIRLPOOL 438b5601bf13e0f0af82246e26f0dcc1d5037c48b1af083dc43997d0d483dd409ef6b0eb61552ead8b1c7f7409b1338b9dcec9e437261002b816d8a8cebc2456 diff --git a/sys-process/audit/audit-2.6.4.ebuild b/sys-process/audit/audit-2.6.4.ebuild new file mode 100644 index 000000000000..e83cf86b2dd1 --- /dev/null +++ b/sys-process/audit/audit-2.6.4.ebuild @@ -0,0 +1,230 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit autotools multilib multilib-minimal toolchain-funcs python-r1 linux-info systemd + +DESCRIPTION="Userspace utilities for storing and processing auditing records" +HOMEPAGE="https://people.redhat.com/sgrubb/audit/" +SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" +IUSE="gssapi ldap python static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +# Testcases are pretty useless as they are built for RedHat users/groups and kernels. +RESTRICT="test" + +RDEPEND="gssapi? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + sys-libs/libcap-ng + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.34 + python? ( dev-lang/swig:0 )" +# Do not use os-headers as this is linux specific + +CONFIG_CHECK="~AUDIT" + +pkg_setup() { + linux-info_pkg_setup +} + +src_prepare() { + eapply_user + + # Do not build GUI tools + sed -i \ + -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \ + "${S}"/configure.ac || die + sed -i \ + -e 's,system-config-audit,,g' \ + "${S}"/Makefile.am || die + rm -rf "${S}"/system-config-audit + + if ! use ldap; then + sed -i \ + -e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \ + "${S}"/configure.ac || die + sed -i \ + -e '/^SUBDIRS/s,zos-remote,,g' \ + "${S}"/audisp/plugins/Makefile.am || die + fi + + # Don't build static version of Python module. + eapply "${FILESDIR}"/${PN}-2.4.3-python.patch + + # glibc/kernel upstreams suck with both defining ia64_fpreg + # This patch is a horribly workaround that is only valid as long as you + # don't need the OTHER definitions in fpu.h. + eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch + + # there is no --without-golang conf option + sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die + + # Regenerate autotooling + eautoreconf +} + +multilib_src_configure() { + local ECONF_SOURCE=${S} + econf \ + --sbindir="${EPREFIX}/sbin" \ + $(use_enable gssapi gssapi-krb5) \ + $(use_enable static-libs static) \ + --enable-systemd \ + --without-python \ + --without-python3 + + if multilib_is_native_abi; then + python_configure() { + mkdir -p "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + + if python_is_python3; then + econf --without-python --with-python3 + else + econf --with-python --without-python3 + fi + } + + use python && python_foreach_impl python_configure + fi +} + +src_configure() { + tc-export_build_env BUILD_{CC,CPP} + export CC_FOR_BUILD="${BUILD_CC}" + export CPP_FOR_BUILD="${BUILD_CPP}" + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi; then + default + + python_compile() { + local pysuffix pydef + if python_is_python3; then + pysuffix=3 + pydef='USE_PYTHON3=true' + else + pysuffix=2 + pydef='HAVE_PYTHON=true' + fi + + emake -C "${BUILD_DIR}"/bindings/swig \ + VPATH="${native_build}/lib" \ + LIBS="${native_build}/lib/libaudit.la" \ + _audit_la_LIBADD="${native_build}/lib/libaudit.la" \ + _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \ + ${pydef} + emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \ + VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \ + auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \ + ${pydef} + } + + local native_build="${BUILD_DIR}" + use python && python_foreach_impl python_compile + else + emake -C lib + emake -C auparse + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install + + python_install() { + local pysuffix pydef + if python_is_python3; then + pysuffix=3 + pydef='USE_PYTHON3=true' + else + pysuffix=2 + pydef='HAVE_PYTHON=true' + fi + + emake -C "${BUILD_DIR}"/bindings/swig \ + VPATH="${native_build}/lib" \ + LIBS="${native_build}/lib/libaudit.la" \ + _audit_la_LIBADD="${native_build}/lib/libaudit.la" \ + _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \ + ${pydef} \ + DESTDIR="${D}" install + emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \ + VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \ + auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \ + ${pydef} \ + DESTDIR="${D}" install + } + + local native_build=${BUILD_DIR} + use python && python_foreach_impl python_install + + # things like shadow use this so we need to be in / + gen_usr_ldscript -a audit auparse + else + emake -C lib DESTDIR="${D}" install + emake -C auparse DESTDIR="${D}" install + fi +} + +multilib_src_install_all() { + dodoc AUTHORS ChangeLog README* THANKS TODO + docinto contrib + dodoc contrib/{avc_snap,skeleton.c} + docinto contrib/plugin + dodoc contrib/plugin/* + docinto rules + dodoc rules/* + + newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd + newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd + + fperms 644 "$(systemd_get_systemunitdir)"/auditd.service # 556436 + + [ -f "${ED}"/sbin/audisp-remote ] && \ + dodir /usr/sbin && \ + mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die + + # Gentoo rules + insinto /etc/audit/ + newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules + doins "${FILESDIR}"/audit.rules.stop* + + # audit logs go here + keepdir /var/log/audit/ + + # Security + lockdown_perms "${ED}" + + prune_libtool_files --modules +} + +pkg_preinst() { + # Preserve from the audit-1 series + preserve_old_lib /$(get_libdir)/libaudit.so.0 +} + +pkg_postinst() { + lockdown_perms "${EROOT}" + # Preserve from the audit-1 series + preserve_old_lib_notify /$(get_libdir)/libaudit.so.0 +} + +lockdown_perms() { + # Upstream wants these to have restrictive perms. + # Should not || die as not all paths may exist. + local basedir="$1" + chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null + chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null + chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null +} diff --git a/sys-process/audit/audit-2.7.1.ebuild b/sys-process/audit/audit-2.7.1.ebuild new file mode 100644 index 000000000000..85a1f9a420fb --- /dev/null +++ b/sys-process/audit/audit-2.7.1.ebuild @@ -0,0 +1,230 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit autotools multilib multilib-minimal toolchain-funcs python-r1 linux-info systemd + +DESCRIPTION="Userspace utilities for storing and processing auditing records" +HOMEPAGE="https://people.redhat.com/sgrubb/audit/" +SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="gssapi ldap python static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +# Testcases are pretty useless as they are built for RedHat users/groups and kernels. +RESTRICT="test" + +RDEPEND="gssapi? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + sys-libs/libcap-ng + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6.34 + python? ( dev-lang/swig:0 )" +# Do not use os-headers as this is linux specific + +CONFIG_CHECK="~AUDIT" + +pkg_setup() { + linux-info_pkg_setup +} + +src_prepare() { + eapply_user + + # Do not build GUI tools + sed -i \ + -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \ + "${S}"/configure.ac || die + sed -i \ + -e 's,system-config-audit,,g' \ + "${S}"/Makefile.am || die + rm -rf "${S}"/system-config-audit + + if ! use ldap; then + sed -i \ + -e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \ + "${S}"/configure.ac || die + sed -i \ + -e '/^SUBDIRS/s,zos-remote,,g' \ + "${S}"/audisp/plugins/Makefile.am || die + fi + + # Don't build static version of Python module. + eapply "${FILESDIR}"/${PN}-2.4.3-python.patch + + # glibc/kernel upstreams suck with both defining ia64_fpreg + # This patch is a horribly workaround that is only valid as long as you + # don't need the OTHER definitions in fpu.h. + eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch + + # there is no --without-golang conf option + sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die + + # Regenerate autotooling + eautoreconf +} + +multilib_src_configure() { + local ECONF_SOURCE=${S} + econf \ + --sbindir="${EPREFIX}/sbin" \ + $(use_enable gssapi gssapi-krb5) \ + $(use_enable static-libs static) \ + --enable-systemd \ + --without-python \ + --without-python3 + + if multilib_is_native_abi; then + python_configure() { + mkdir -p "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + + if python_is_python3; then + econf --without-python --with-python3 + else + econf --with-python --without-python3 + fi + } + + use python && python_foreach_impl python_configure + fi +} + +src_configure() { + tc-export_build_env BUILD_{CC,CPP} + export CC_FOR_BUILD="${BUILD_CC}" + export CPP_FOR_BUILD="${BUILD_CPP}" + + multilib-minimal_src_configure +} + +multilib_src_compile() { + if multilib_is_native_abi; then + default + + python_compile() { + local pysuffix pydef + if python_is_python3; then + pysuffix=3 + pydef='USE_PYTHON3=true' + else + pysuffix=2 + pydef='HAVE_PYTHON=true' + fi + + emake -C "${BUILD_DIR}"/bindings/swig \ + VPATH="${native_build}/lib" \ + LIBS="${native_build}/lib/libaudit.la" \ + _audit_la_LIBADD="${native_build}/lib/libaudit.la" \ + _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \ + ${pydef} + emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \ + VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \ + auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \ + ${pydef} + } + + local native_build="${BUILD_DIR}" + use python && python_foreach_impl python_compile + else + emake -C lib + emake -C auparse + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install + + python_install() { + local pysuffix pydef + if python_is_python3; then + pysuffix=3 + pydef='USE_PYTHON3=true' + else + pysuffix=2 + pydef='HAVE_PYTHON=true' + fi + + emake -C "${BUILD_DIR}"/bindings/swig \ + VPATH="${native_build}/lib" \ + LIBS="${native_build}/lib/libaudit.la" \ + _audit_la_LIBADD="${native_build}/lib/libaudit.la" \ + _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \ + ${pydef} \ + DESTDIR="${D}" install + emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \ + VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \ + auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \ + ${pydef} \ + DESTDIR="${D}" install + } + + local native_build=${BUILD_DIR} + use python && python_foreach_impl python_install + + # things like shadow use this so we need to be in / + gen_usr_ldscript -a audit auparse + else + emake -C lib DESTDIR="${D}" install + emake -C auparse DESTDIR="${D}" install + fi +} + +multilib_src_install_all() { + dodoc AUTHORS ChangeLog README* THANKS TODO + docinto contrib + dodoc contrib/{avc_snap,skeleton.c} + docinto contrib/plugin + dodoc contrib/plugin/* + docinto rules + dodoc rules/* + + newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd + newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd + + fperms 644 "$(systemd_get_systemunitdir)"/auditd.service # 556436 + + [ -f "${ED}"/sbin/audisp-remote ] && \ + dodir /usr/sbin && \ + mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die + + # Gentoo rules + insinto /etc/audit/ + newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules + doins "${FILESDIR}"/audit.rules.stop* + + # audit logs go here + keepdir /var/log/audit/ + + # Security + lockdown_perms "${ED}" + + prune_libtool_files --modules +} + +pkg_preinst() { + # Preserve from the audit-1 series + preserve_old_lib /$(get_libdir)/libaudit.so.0 +} + +pkg_postinst() { + lockdown_perms "${EROOT}" + # Preserve from the audit-1 series + preserve_old_lib_notify /$(get_libdir)/libaudit.so.0 +} + +lockdown_perms() { + # Upstream wants these to have restrictive perms. + # Should not || die as not all paths may exist. + local basedir="$1" + chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null + chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null + chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null +} diff --git a/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch b/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch new file mode 100644 index 000000000000..3ec60fbc48ec --- /dev/null +++ b/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch @@ -0,0 +1,212 @@ +diff -Nuar -X exclude audit-2.1.3.orig/configure.ac audit-2.1.3/configure.ac +--- audit-2.1.3.orig/configure.ac 2011-08-15 17:30:58.000000000 +0000 ++++ audit-2.1.3/configure.ac 2012-12-18 20:03:22.000000000 +0000 +@@ -79,6 +79,9 @@ + esac + fi + ++AC_CHECK_HEADER([asm/ptrace.h], [AC_DEFINE([HAVE_ASM_PTRACE_H],[],[Define to 1 if you have asm/ptrace.h])], []) ++AC_CHECK_HEADER([linux/ptrace.h], [AC_DEFINE([HAVE_LINUX_PTRACE_H],[],[Define to 1 if you have linux/ptrace.h])], []) ++ + #gssapi + AC_ARG_ENABLE(gssapi_krb5, + [AS_HELP_STRING([--enable-gssapi-krb5],[Enable GSSAPI Kerberos 5 support @<:@default=no@:>@])], +diff -Nuar -X exclude audit-2.1.3.orig/src/auditctl.c audit-2.1.3/src/auditctl.c +--- audit-2.1.3.orig/src/auditctl.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditctl.c 2012-12-18 20:21:21.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <stdlib.h> + #include <string.h> /* strdup needs xopen define */ +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-config.c audit-2.1.3/src/auditd-config.c +--- audit-2.1.3.orig/src/auditd-config.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd-config.c 2012-12-18 20:21:23.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <unistd.h> + #include <sys/stat.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-dispatch.c audit-2.1.3/src/auditd-dispatch.c +--- audit-2.1.3.orig/src/auditd-dispatch.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd-dispatch.c 2012-12-18 20:21:27.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <unistd.h> + #include <sys/uio.h> + #include <fcntl.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-event.c audit-2.1.3/src/auditd-event.c +--- audit-2.1.3.orig/src/auditd-event.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd-event.c 2012-12-18 20:21:29.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-listen.c audit-2.1.3/src/auditd-listen.c +--- audit-2.1.3.orig/src/auditd-listen.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd-listen.c 2012-12-18 20:21:31.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <unistd.h> + #include <sys/stat.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-reconfig.c audit-2.1.3/src/auditd-reconfig.c +--- audit-2.1.3.orig/src/auditd-reconfig.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd-reconfig.c 2012-12-18 20:21:33.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <pthread.h> + #include <signal.h> + #include <stdlib.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-sendmail.c audit-2.1.3/src/auditd-sendmail.c +--- audit-2.1.3.orig/src/auditd-sendmail.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd-sendmail.c 2012-12-18 20:21:34.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <unistd.h> // for access() + #include <string.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/auditd.c audit-2.1.3/src/auditd.c +--- audit-2.1.3.orig/src/auditd.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/auditd.c 2012-12-18 20:21:38.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <sys/types.h> + #include <unistd.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/autrace.c audit-2.1.3/src/autrace.c +--- audit-2.1.3.orig/src/autrace.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/autrace.c 2012-12-18 20:21:43.000000000 +0000 +@@ -21,6 +21,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <string.h> + #include <sys/wait.h> +diff -Nuar -X exclude audit-2.1.3.orig/src/delete_all.c audit-2.1.3/src/delete_all.c +--- audit-2.1.3.orig/src/delete_all.c 2011-08-15 17:31:00.000000000 +0000 ++++ audit-2.1.3/src/delete_all.c 2012-12-18 20:21:48.000000000 +0000 +@@ -20,6 +20,7 @@ + * Steve Grubb <sgrubb@redhat.com> + */ + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <string.h> + #include <errno.h> +diff -Nuar -X exclude audit-2.1.3.orig/lib/fixup.h audit-2.1.3/lib/fixup.h +--- audit-2.1.3.orig/lib/fixup.h 1970-01-01 00:00:00.000000000 +0000 ++++ audit-2.1.3/lib/fixup.h 2012-12-18 20:21:02.000000000 +0000 +@@ -0,0 +1,17 @@ ++#ifndef _AUDIT_IA64_FIXUP_H_ ++#define _AUDIT_IA64_FIXUP_H_ ++ ++#ifdef __ia64__ /* what a pos */ ++# include <linux/types.h> ++# define _ASM_IA64_FPU_H ++#endif ++#include <signal.h> ++/* ++#ifdef HAVE_ASM_PTRACE_H ++# include <asm/ptrace.h> ++#endif ++#ifdef HAVE_LINUX_PTRACE_H ++# include <linux/ptrace.h> ++#endif ++*/ ++#endif +--- audit-2.1.3/src/ausearch.c 2012-12-22 03:09:54.000000000 +0000 ++++ audit-2.1.3/src/ausearch.c 2012-12-22 03:10:02.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <stdio_ext.h> + #include <string.h> +diff -Nuar audit-2.1.3.orig/audisp/audispd.c audit-2.1.3/audisp/audispd.c +--- audit-2.1.3.orig/audisp/audispd.c 2011-08-15 17:30:59.000000000 +0000 ++++ audit-2.1.3/audisp/audispd.c 2012-12-22 03:25:15.000000000 +0000 +@@ -21,6 +21,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <unistd.h> + #include <stdlib.h> +diff -Nuar audit-2.1.3.orig/audisp/plugins/prelude/audisp-prelude.c audit-2.1.3/audisp/plugins/prelude/audisp-prelude.c +--- audit-2.1.3.orig/audisp/plugins/prelude/audisp-prelude.c 2011-08-15 17:30:59.000000000 +0000 ++++ audit-2.1.3/audisp/plugins/prelude/audisp-prelude.c 2012-12-22 03:25:20.000000000 +0000 +@@ -21,6 +21,8 @@ + * + */ + ++#include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <stdlib.h> + #include <signal.h> +diff -Nuar audit-2.1.3.orig/audisp/plugins/remote/audisp-remote.c audit-2.1.3/audisp/plugins/remote/audisp-remote.c +--- audit-2.1.3.orig/audisp/plugins/remote/audisp-remote.c 2011-08-15 17:30:59.000000000 +0000 ++++ audit-2.1.3/audisp/plugins/remote/audisp-remote.c 2012-12-22 03:25:22.000000000 +0000 +@@ -22,6 +22,7 @@ + */ + + #include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <signal.h> + #include <syslog.h> +diff -Nuar audit-2.1.3.orig/contrib/plugin/audisp-example.c audit-2.1.3/contrib/plugin/audisp-example.c +--- audit-2.1.3.orig/contrib/plugin/audisp-example.c 2011-08-15 17:31:02.000000000 +0000 ++++ audit-2.1.3/contrib/plugin/audisp-example.c 2012-12-22 03:25:27.000000000 +0000 +@@ -37,6 +37,8 @@ + */ + + #define _GNU_SOURCE ++#include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <signal.h> + #include <string.h> +diff -Nuar audit-2.1.3.orig/contrib/skeleton.c audit-2.1.3/contrib/skeleton.c +--- audit-2.1.3.orig/contrib/skeleton.c 2011-08-15 17:31:02.000000000 +0000 ++++ audit-2.1.3/contrib/skeleton.c 2012-12-22 03:25:40.000000000 +0000 +@@ -7,6 +7,8 @@ + * gcc skeleton.c -o skeleton -laudit + */ + ++#include "config.h" ++#include "fixup.h" + #include <stdio.h> + #include <sys/types.h> + #include <sys/uio.h> diff --git a/sys-process/audit/files/audit-2.4.3-python.patch b/sys-process/audit/files/audit-2.4.3-python.patch new file mode 100644 index 000000000000..7b9ea53e09d2 --- /dev/null +++ b/sys-process/audit/files/audit-2.4.3-python.patch @@ -0,0 +1,46 @@ +diff -ur audit-2.4.3.orig/bindings/python/python2/Makefile.am audit-2.4.3/bindings/python/python2/Makefile.am +--- audit-2.4.3.orig/bindings/python/python2/Makefile.am 2015-07-22 23:35:24.315424091 +0800 ++++ audit-2.4.3/bindings/python/python2/Makefile.am 2015-07-22 23:37:16.861510504 +0800 +@@ -29,5 +29,6 @@ + + auparse_la_SOURCES = $(top_srcdir)/bindings/python/auparse_python.c + auparse_la_CPPFLAGS = -I$(top_srcdir)/auparse $(AM_CPPFLAGS) +-auparse_la_LDFLAGS = -module -avoid-version -Wl,-z,relro ++auparse_la_CFLAGS = -shared ++auparse_la_LDFLAGS = -module -avoid-version -shared -Wl,-z,relro + auparse_la_LIBADD = ${top_builddir}/auparse/libauparse.la ${top_builddir}/lib/libaudit.la +diff -ur audit-2.4.3.orig/bindings/python/python3/Makefile.am audit-2.4.3/bindings/python/python3/Makefile.am +--- audit-2.4.3.orig/bindings/python/python3/Makefile.am 2015-07-22 23:35:24.315424091 +0800 ++++ audit-2.4.3/bindings/python/python3/Makefile.am 2015-07-22 23:37:30.395400641 +0800 +@@ -28,5 +28,6 @@ + + auparse_la_SOURCES = $(top_srcdir)/bindings/python/auparse_python.c + auparse_la_CPPFLAGS = -I$(top_srcdir)/auparse $(AM_CPPFLAGS) +-auparse_la_LDFLAGS = -module -avoid-version -Wl,-z,relro ++auparse_la_CFLAGS = -shared ++auparse_la_LDFLAGS = -module -avoid-version -shared -Wl,-z,relro + auparse_la_LIBADD = ${top_builddir}/auparse/libauparse.la ${top_builddir}/lib/libaudit.la +diff -ur audit-2.4.3.orig/bindings/swig/python/Makefile.am audit-2.4.3/bindings/swig/python/Makefile.am +--- audit-2.4.3.orig/bindings/swig/python/Makefile.am 2015-07-22 23:35:24.316424083 +0800 ++++ audit-2.4.3/bindings/swig/python/Makefile.am 2015-07-22 23:35:53.244189263 +0800 +@@ -28,7 +28,7 @@ + pyexec_LTLIBRARIES = _audit.la + pyexec_SOLIBRARIES = _audit.so + _audit_la_CFLAGS = -shared +-_audit_la_LDFLAGS = -module -avoid-version -Wl,-z,relro ++_audit_la_LDFLAGS = -module -avoid-version -shared -Wl,-z,relro + _audit_la_HEADERS: $(top_builddir)/config.h + _audit_la_DEPENDENCIES =${top_srcdir}/lib/libaudit.h ${top_builddir}/lib/libaudit.la + _audit_la_LIBADD = $(top_builddir)/lib/libaudit.la +diff -ur audit-2.4.3.orig/bindings/swig/python3/Makefile.am audit-2.4.3/bindings/swig/python3/Makefile.am +--- audit-2.4.3.orig/bindings/swig/python3/Makefile.am 2015-07-22 23:35:24.316424083 +0800 ++++ audit-2.4.3/bindings/swig/python3/Makefile.am 2015-07-22 23:36:27.833908482 +0800 +@@ -29,7 +29,7 @@ + py3exec_LTLIBRARIES = _audit.la + py3exec_SOLIBRARIES = _audit.so + _audit_la_CFLAGS = -shared +-_audit_la_LDFLAGS = -module -avoid-version -Wl,-z,relro ++_audit_la_LDFLAGS = -module -avoid-version -shared -Wl,-z,relro + _audit_la_HEADERS: $(top_builddir)/config.h + _audit_la_DEPENDENCIES =${top_srcdir}/lib/libaudit.h ${top_builddir}/lib/libaudit.la + _audit_la_LIBADD = ${top_builddir}/lib/libaudit.la diff --git a/sys-process/audit/files/audit.rules b/sys-process/audit/files/audit.rules new file mode 100644 index 000000000000..ef0e6ee26f38 --- /dev/null +++ b/sys-process/audit/files/audit.rules @@ -0,0 +1,24 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# This file contains the auditctl rules that are loaded +# whenever the audit daemon is started via the initscripts. +# The rules are simply the parameters that would be passed +# to auditctl. + +# First rule - delete all +# This is to clear out old rules, so we don't append to them. +-D + +# Feel free to add below this line. See auditctl man page + +# The following rule would cause all of the syscalls listed to be ignored in logging. +# -a entry,never -S read -S write -S open -S fstat -S fstat64 -S mmap -S brk -S munmap -S _llseek -S nanosleep -S fcntl64 -S close -S dup2 -S rt_sigaction -S stat64 -S stat + +# The following rule would cause the capture of all systems not caught above. +# -a entry,always -S all + +# Increase the buffers to survive stress events +-b 256 + +# vim:ft=conf: diff --git a/sys-process/audit/files/audit.rules-2.1.3 b/sys-process/audit/files/audit.rules-2.1.3 new file mode 100644 index 000000000000..25dbedfd1df5 --- /dev/null +++ b/sys-process/audit/files/audit.rules-2.1.3 @@ -0,0 +1,25 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# This file contains the auditctl rules that are loaded +# whenever the audit daemon is started via the initscripts. +# The rules are simply the parameters that would be passed +# to auditctl. + +# First rule - delete all +# This is to clear out old rules, so we don't append to them. +-D + +# Feel free to add below this line. See auditctl man page + +# The following rule would cause all of the syscalls listed to be ignored in logging. +-a exit,never -F arch=b32 -S read -S write -S open -S fstat -S mmap -S brk -S munmap -S nanosleep -S fcntl -S close -S dup2 -S rt_sigaction -S stat +-a exit,never -F arch=b64 -S read -S write -S open -S fstat -S mmap -S brk -S munmap -S nanosleep -S fcntl -S close -S dup2 -S rt_sigaction -S stat + +# The following rule would cause the capture of all systems not caught above. +# -a exit,always -S all + +# Increase the buffers to survive stress events +-b 8192 + +# vim:ft=conf: diff --git a/sys-process/audit/files/audit.rules.stop.post b/sys-process/audit/files/audit.rules.stop.post new file mode 100644 index 000000000000..29ae197f18bd --- /dev/null +++ b/sys-process/audit/files/audit.rules.stop.post @@ -0,0 +1,12 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# This file contains the auditctl rules that are loaded immediately after the +# audit deamon is stopped via the initscripts. +# The rules are simply the parameters that would be passed +# to auditctl. + +# Not used for the default Gentoo configuration as of v1.2.3 +# Paranoid security types might wish to reconfigure kauditd here. + +# vim:ft=conf: diff --git a/sys-process/audit/files/audit.rules.stop.pre b/sys-process/audit/files/audit.rules.stop.pre new file mode 100644 index 000000000000..1f34173369ec --- /dev/null +++ b/sys-process/audit/files/audit.rules.stop.pre @@ -0,0 +1,15 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# This file contains the auditctl rules that are loaded immediately before the +# audit deamon is stopped via the initscripts. +# The rules are simply the parameters that would be passed +# to auditctl. + +# auditd is stopping, don't capture events anymore +-D + +# Disable kernel generating audit events +-e 0 + +# vim:ft=conf: diff --git a/sys-process/audit/files/auditd-conf.d-2.1.3 b/sys-process/audit/files/auditd-conf.d-2.1.3 new file mode 100644 index 000000000000..c66be166ce4c --- /dev/null +++ b/sys-process/audit/files/auditd-conf.d-2.1.3 @@ -0,0 +1,22 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Configuration options for auditd +# -f for foreground mode +# There are some other options as well, but you'll have to look in the source +# code to find them as they aren't ready for use yet. +EXTRAOPTIONS='' + +# Audit rules file to run after starting auditd +RULEFILE_STARTUP=/etc/audit/audit.rules + +# Audit rules file to run before and after stopping auditd +RULEFILE_STOP_PRE=/etc/audit/audit.rules.stop.pre +RULEFILE_STOP_POST=/etc/audit/audit.rules.stop.post + +# If you want to enforce a certain locale for auditd, +# uncomment one of the next lines: +#AUDITD_LANG=none +AUDITD_LANG=C +#AUDITD_LANG=en_US +#AUDITD_LANG=en_US.UTF-8 diff --git a/sys-process/audit/files/auditd-init.d-2.4.3 b/sys-process/audit/files/auditd-init.d-2.4.3 new file mode 100644 index 000000000000..c952554df2f2 --- /dev/null +++ b/sys-process/audit/files/auditd-init.d-2.4.3 @@ -0,0 +1,90 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands='reload reload_auditd reload_rules' +description='Linux Auditing System' +description_reload='Reload daemon configuration and rules' +description_reload_rules='Reload daemon rules' +description_reload_auditd='Reload daemon configuration' + +name='auditd' +pidfile='/var/run/auditd.pid' +command='/sbin/auditd' + +start_auditd() { + # Env handling taken from the upstream init script + if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then + unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE + else + LANG="$AUDITD_LANG" + LC_TIME="$AUDITD_LANG" + LC_ALL="$AUDITD_LANG" + LC_MESSAGES="$AUDITD_LANG" + LC_NUMERIC="$AUDITD_LANG" + LC_MONETARY="$AUDITD_LANG" + LC_COLLATE="$AUDITD_LANG" + export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE + fi + unset HOME MAIL USER USERNAME + + ebegin "Starting ${name}" + start-stop-daemon \ + --start --quiet --pidfile ${pidfile} \ + --exec ${command} -- ${EXTRAOPTIONS} + local ret=$? + eend $ret + return $ret +} + +stop_auditd() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet --pidfile ${pidfile} + local ret=$? + eend $ret + return $ret +} + +loadfile() { + local rules="$1" + if [ -n "${rules}" -a -f "${rules}" ]; then + einfo "Loading audit rules from ${rules}" + /sbin/auditctl -R "${rules}" >/dev/null + return $? + else + return 0 + fi +} + +start() { + start_auditd + local ret=$? + if [ $ret -eq 0 -a "${RC_CMD}" != "restart" ]; then + loadfile "${RULEFILE_STARTUP}" + fi + return $ret +} + +reload_rules() { + loadfile "${RULEFILE_STARTUP}" +} + +reload_auditd() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP \ + --exec "${command}" --pidfile "${pidfile}" + eend $? +} + +reload() { + reload_auditd + reload_rules +} + +stop() { + [ "${RC_CMD}" != "restart" ] && loadfile "${RULEFILE_STOP_PRE}" + stop_auditd + local ret=$? + [ "${RC_CMD}" != "restart" ] && loadfile "${RULEFILE_STOP_POST}" + return $ret +} diff --git a/sys-process/audit/metadata.xml b/sys-process/audit/metadata.xml new file mode 100644 index 000000000000..856de3a78717 --- /dev/null +++ b/sys-process/audit/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>robbat2@gentoo.org</email> + </maintainer> +<use> + <flag name="gssapi">Enable GSSAPI support</flag> +</use> +</pkgmetadata> diff --git a/sys-process/bcron/Manifest b/sys-process/bcron/Manifest new file mode 100644 index 000000000000..9dbf62704974 --- /dev/null +++ b/sys-process/bcron/Manifest @@ -0,0 +1,7 @@ +AUX bcron-0.09-fix-socket-permissions.patch 307 SHA256 f73b8cd1e620ea6a571de31f2bda8f73f41eae5c9fadbfd881ca32a634ca75d4 SHA512 71437e686615b6962a25121dc96f785af020c1b8db2e3a73416455e494a863dafc22ac744779885b64d296342b0d08f3fb3f03a398ebc66cde9cec721dd3d9f6 WHIRLPOOL c2709eead171de0b62122d7961b73f202ab43a11934c1de5951b6e284135b40da383d0c118131f7f002bd2ad8c3172804e9094649249c0a81da8b1d2fb52351b +AUX crontab 485 SHA256 cf12694e9402b28542d87e1e1fc08a895a46c258b4108ad1ba26cbcdc3af4ae1 SHA512 0a67b137f67b4910cddc8e40da01d78df46a6404a683839eb04a8a4883d03e2cfc3f61b4ac40f5cdbd963ba0ea9a070e13eff1b85623b1a6b50b5f379bde3957 WHIRLPOOL d4cccd2f75095700be3d9d296ae54383fcb9798b1d79e74b9673f1b5aa23c72645980962ca316bcbbf7caa28a7330ea3b1d889897c717956d4aa069e60d9e4fb +DIST bcron-0.10.tar.gz 68314 SHA256 322394a1fbf1b44c65a623a01c684044d56f026619e240ad74fe4f466ccd1dad SHA512 cfc61651a77bedbaa3e6d9b5e5e8fa070883dfaf1cf314fc47b6114575ad4818f22fb5dd52959a0af077c3f30e2e902fed79feb51dc83adc3b36d20cc587f4a1 WHIRLPOOL 362db8d71ab78ad81ea6be9d473b43e60c1090e5532ad9db668ac18e8a19b845aca124d98966818cbefb08275825fc5a9eca7f3dc55eb791a7a57720f0f6e57d +EBUILD bcron-0.10.ebuild 2962 SHA256 133aabc2071e03397fc4abfbec0c34304eeae941cb23365e4073a801fa8ef0c7 SHA512 ac962512008c044a3aa510f8dcc09ac7c56716c56afaa49c747ac81da91bc20218f98a767b527bf0c4e095e322546aa6c003d21784e97c3e18ae788f9e79642f WHIRLPOOL 516265ec4d37b33e0af2647519d90d77947e5805cfa51e90f82d029af8001718690069bcd1e73cbd3bb6030dca7d26f7626b8bcc5bceb24cdebeeab777d21278 +MISC ChangeLog 3716 SHA256 a004537ed7d6623baef24b6695979b6c7ae2de6226627eb7db7fa5442e5af93d SHA512 06224f7dcbb64b8c41e05348b813fac2ee9ec820baaacee83a70421cf20e84eb9179a14b2ecd0741e53a46fd191709dc5886fc5ac8eaef593e5d07fce3e9be99 WHIRLPOOL b560758443102f42ae19079a3e11233c8e6b7790ab09190d12484823feb34b2b2c42cdb00ae08cf60ee1330bfe1441b89d7a39efc0f9f0675330ea88d192e233 +MISC ChangeLog-2015 2631 SHA256 f8d4dcd72c127ac0e3e407751d5f92522eb023221439297ac14b575b5d5aff8f SHA512 a8cc8318617325ac2624681d638cf4ba3c1e8d4cc352151a96e513168583f110794bf3204d5d745568e75b04aa71345fde8efda9b6224f00e9dd9f42dc7533a9 WHIRLPOOL 5bbe67806baff1641730ba8817d3721c01eb80c3b5adf4b3bc2cd8b83b71b6245486446ae079ff2aaeefa030c62be14845f8cb1fbcd038fa4cfcc752aa07cc97 +MISC metadata.xml 655 SHA256 bf77288880213a745636362a578220ba840d0b1d3c8586f51575c936671d9e7c SHA512 f52e0972ece1cff730d00c2806fe526dbe9dded0ceb8af15aa2aa080b7f10a77f2dae075f0399de3acc20dfcb430d993046ae25506822b54681af8734c47742b WHIRLPOOL 6789e7380163af675ee1481160615245aea2d965b061e0398e47056fc154a51aa6cbb695ccc86fcff8fc8d803c9efea9cc9e092d897f4649cf20b6c7c3c6e708 diff --git a/sys-process/bcron/bcron-0.10.ebuild b/sys-process/bcron/bcron-0.10.ebuild new file mode 100644 index 000000000000..80624f8a2864 --- /dev/null +++ b/sys-process/bcron/bcron-0.10.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit cron eutils multilib python-any-r1 toolchain-funcs + +DESCRIPTION="A new cron system designed with secure operations in mind by Bruce Guenter" +HOMEPAGE="http://untroubled.org/bcron/" +SRC_URI="http://untroubled.org/bcron/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=" + >=sys-process/cronbase-0.3.2 + virtual/mta + sys-apps/ucspi-unix + virtual/daemontools +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + >=dev-libs/bglibs-1.106 +" + +CRON_SYSTEM_CRONTAB="yes" + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.09-fix-socket-permissions.patch" + epatch_user +} + +src_configure() { + echo "/usr/include/bglibs" > conf-bgincs || die + echo "/usr/$(get_libdir)/bglibs" > conf-bglibs || die + echo "${D}/usr/bin" > conf-bin || die + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld || die + echo "${D}/usr/share/man" > conf-man || die +} + +src_install() { + # DESTDIR is not supported in Makefile + emake install + + #fix permissions of crontab + fperms o-rwx /usr/bin/bcrontab + fowners root:cron /usr/bin/bcrontab + + doman bcrontab.1 crontab.5 bcron-update.8 bcron-start.8 + doman bcron-spool.8 bcron-sched.8 bcron-exec.8 + + dodoc ANNOUNCEMENT NEWS README TODO + + keepdir /etc/cron.d + + keepdir /var/spool/cron/crontabs + keepdir /var/spool/cron/tmp + + for i in crontabs tmp; + do + fowners cron:cron /var/spool/cron/$i + fperms go-rwx /var/spool/cron/$i + done + + dodir /etc/bcron + + insinto /etc + doins "${FILESDIR}"/crontab + + insinto /var/lib/supervise/bcron + doins bcron-sched.run + + insinto /var/lib/supervise/bcron/log + doins bcron-sched-log.run + + insinto /var/lib/supervise/bcron-spool + doins bcron-spool.run + + insinto /var/lib/supervise/bcron-update + doins bcron-update.run +} + +pkg_config() { + cd "${ROOT}"var/lib/supervise/bcron + [ -e run ] && cp run bcron-sched.run.`date +%Y%m%d%H%M%S` + cp bcron-sched.run run + chmod u+x run + + cd "${ROOT}"/var/lib/supervise/bcron/log + [ -e run ] && cp run bcron-sched-log.run.`date +%Y%m%d%H%M%S` + cp bcron-sched-log.run run + chmod u+x run + + cd "${ROOT}"/var/lib/supervise/bcron-spool + [ -e run ] && cp run bcron-spool.run.`date +%Y%m%d%H%M%S` + cp bcron-spool.run run + chmod u+x run + + cd "${ROOT}"/var/lib/supervise/bcron-update + [ -e run ] && cp run bcron-update.run.`date +%Y%m%d%H%M%S` + cp bcron-update.run run + chmod u+x run + + [ ! -e "${ROOT}"/var/spool/cron/trigger ] && mkfifo "${ROOT}"var/spool/cron/trigger + chown cron:cron /var/spool/cron/trigger + chmod go-rwx /var/spool/cron/trigger +} + +pkg_postinst() { + echo + elog "Run " + elog "emerge --config =${PF}" + elog "to create or update your run files (backups are created) in" + elog " /var/lib/supervise/bcron (bcron daemon) and" + elog " /var/lib/supervise/bcron-spool (crontab receiver) and" + elog " /var/lib/supervise/bcron-update (system crontab updater)" + + cron_pkg_postinst +} diff --git a/sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch b/sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch new file mode 100644 index 000000000000..a8b13038e608 --- /dev/null +++ b/sys-process/bcron/files/bcron-0.09-fix-socket-permissions.patch @@ -0,0 +1,10 @@ +--- a/bcron-spool.run 2005-06-09 04:14:42.000000000 +0400 ++++ b/bcron-spool/run 2010-07-12 01:29:24.000000000 +0400 +@@ -5,6 +5,6 @@ + envuidgid cron \ + sh -c ' + exec \ +-unixserver -U ${BCRON_SOCKET:-/var/run/bcron-spool} \ ++unixserver -U ${BCRON_SOCKET:-/var/run/bcron-spool} -r 16 -p 0660 \ + bcron-spool + ' diff --git a/sys-process/bcron/files/crontab b/sys-process/bcron/files/crontab new file mode 100644 index 000000000000..393d8c764912 --- /dev/null +++ b/sys-process/bcron/files/crontab @@ -0,0 +1,14 @@ +# for bcron + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/bcron/metadata.xml b/sys-process/bcron/metadata.xml new file mode 100644 index 000000000000..dfaf600f0de7 --- /dev/null +++ b/sys-process/bcron/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> + <longdescription> + This is bcron, a new cron system designed with secure operations in + mind. To do this, the system is divided into several seperate programs, + each responsible for a seperate task, with strictly controlled + communications between them. The user interface is a drop-in + replacement for similar systems (such as vixie-cron), but the internals + differ greatly. + </longdescription> +</pkgmetadata> diff --git a/sys-process/criu/Manifest b/sys-process/criu/Manifest new file mode 100644 index 000000000000..b93bb2b3ee93 --- /dev/null +++ b/sys-process/criu/Manifest @@ -0,0 +1,30 @@ +AUX 2.0/criu-2.0-automagic-libbsd.patch 473 SHA256 890435557482dfbf7ac546bebe7da39056292b474afa544982ee7d77d7eacb29 SHA512 869cb0fe66588e0a78de7020c5f62a70c267aa7e2744be4915b8bffff01763630dc65f75988471428629d99bbce93831391db60efcbdbaf495c459978e8e05e2 WHIRLPOOL 4811e834b974180a6bcf68c868b31a62acc13aa3b29b2039ddfab4542a1f0c3a41dcf491c6ca1448646338aa45f014b95d4e50ba91ddb8d0bf7493980cec567c +AUX 2.0/criu-2.0-sysroot.patch 362 SHA256 a60b4e33d0e89df5e0ec07722075ec1445396fb063635d70fbba8780c8ef7be0 SHA512 1ddce6d4072453305dc380c87f9905e441b9554cc8977c2ddc0a4ef4794732bea5c1448519ab8672d36dab5cbe1ec95dc7f8f9548b63d84aa6a7bbddeca77706 WHIRLPOOL 89d1afe37a18c585f693602470f8bb271d236f3fea5f36ccb981a594c2e6cc497518ff3b9411bb61125f01f6eb142a1e7f1f5b634db59f9b9b8021b74ec99f8d +AUX 2.2/criu-2.2-flags.patch 259 SHA256 47f28dcbf71137d5685605a6d0c633baf080a3764f8c895dd7d9bf0856b59b29 SHA512 d2b122abb9d8878b5d50e11aa6a5323bd16a30f60eb7b746ecb7e4dcaab2a54d7974931778b5d82766d92963dc5075784df87bb736ad5019c66052bd25d9d57d WHIRLPOOL e186d41e345b3edd7511fb858dc15ee5ac623d44012a4f8ba16c7c9f982fb38abb7cd7215991ecab5bdcdb7747b8769e0622d6fde396e6eb79e3e04d5a25dced +AUX 2.2/criu-2.2-makefile.patch 2453 SHA256 14571b5da3c45a494a31b72ccf92c5f1c3c37deabf18dbf897249001b1de4bc4 SHA512 e56ab0d9ba0fa12fd12e3c419b9b1f37021dd923eab3f1a7ac4d2ab06d7f01d06b1341a06c29ed41feb0dd5baf89195bde34d9b6b1b7b9839eed0ff654f44319 WHIRLPOOL 5236ca78262826da77be7bebe9d908ef3defc892f6ce10797d1186c71042c409b05a62d24c35e5472fa62cfcab90422e54a0a77682947956f23cc89ea3056c5d +AUX 2.2/criu-2.2-no-git.patch 612 SHA256 29959e87592e6d7e5f0f4173a121f9990a7177846c458804d06f4a8c96fa5ebd SHA512 e10b01d50905788a2e25b9481de548c2f96173b62f7f7bab70eaa197217ac5a8f657f1fc356774dd7b5b0817288e5b0d336ef57aaeb33b6c0a8b5ee427d53c77 WHIRLPOOL 6a3f70165aab831c80cea01b119ea1ab7dacefe911e3ae2eb0a18d6e1b69ff54d0d6c417cb40645efcfd4dc28fab2aa66686856197ca2ba1cf397f46a0fc38a1 +AUX 2.3/criu-2.3-aarch64.patch 533 SHA256 7b4988223d57b1d6bd00dc4097cdbd34dc8a5d6513d0ac05c00900ebe687eef6 SHA512 357b54639e0368077fc33a80fc4c8b3e40831b36ff06c7c45acc6c8de128b146536f41eb5e870f767a5e05ef8977e3b39f6be853471d2a0b2fa6e99f89f85dd1 WHIRLPOOL 186e5ecd64f91075b7a4d13a33f71dbe4368df62c9e13edd176839b432597249c8f1c009db2c9fcc6c1bbbed13d1c5bd2c4b7dd09b8e4550bb40c1bd5f71abe2 +AUX 2.3/criu-2.3-no-git.patch 651 SHA256 d9f0f35e14c6f48921a5da5962003dc4cc401ef5b8c5a481f13cd55e18d85f00 SHA512 9010b79a01f7bab35ca23749d6e61706404cca89d5cdacd31fc32aba82b088becd9997f9a82db460e16bd84d9f38b1b35e90d3c49ad04b0f141d037e9ebafdd8 WHIRLPOOL 45a6ef8f78a7d1dfd69d2fe5c75d9cb2637cab08360ef9e522d11b3938cfbfa6665e2ca4f2e8d33323e4a13933d78c36c2c13dcbb986c78a0d09e4aa20bdf559 +AUX 2.4/criu-2.4-makefile.patch 2497 SHA256 ce2ba8c8f1294ab7228bc41abbe73c33667a6961e5431a946eb9a272e660c1de SHA512 3bb9963907b92d791e54ad57fde2474b77ac4bcd26e7eff67ff098feacd6c0255c560a3d364031e0a4051b9a8c943b9401afb271cfee1d91e58e116a02f3d979 WHIRLPOOL 33a68d38e01f88ccf9ad2d19c8008385964b53c39355a1d6c24ab608a9f16bf7a185c3fca7e8be3b05cf26dfe7b4567194ccc9a7a8dfac7d32ae0c094be8ff24 +AUX 2.5/criu-2.5-automagic-libbsd.patch 516 SHA256 94892df75f51db5636bd501b22ac0c4ed9a0d1cd057abce9ae40ff4116f47f95 SHA512 01f1a6ac36c8c40b2f0d4cecafb2783d7bf7be51af042710615aa79318ef7914cef063b437428c4c2c8b2dd02434abbec7affd3983b4da74aabe429b1ce947b6 WHIRLPOOL bda046129f94aeebc7d74f1f81ec228cfa5dac55a2fd9cb70b5b2f0073103e2a601046dbae7694ffeb2fd87ae4c1daf2c754498b38329ceb8d24b0ad0f29f72c +AUX 2.9/criu-2.9-makefile.patch 2504 SHA256 b3233d8a3544a3adaaf740001344f01f0e3a008eb770fa8ba283bb46b12c3f0d SHA512 8d0919c1fb7f2672e44f8366eb3df70dae9d687224170b43688365af9be4a974d169c78f84dc2525d32b24188749c992b8b716df840af0ebdace2eaa61eb2366 WHIRLPOOL 660271ecee9220926431232e3544aeb5607dcb579982bdb4df35af8274a95c500ad035781deea226b22be366c892cc06dc4360e81ceb51a0c0f27da19b4c30a2 +AUX criu-2.12.1-glibc-2.26.patch 1838 SHA256 3bbaa9f5c68399eef2259ac474d0543da1ea55c50565e696df4f967b87883b34 SHA512 bd16e6aa787d50e9e9d73c102d2bedeb5550cf6cbbe8bb75a0202660b80407c96b8f59b844902f405c59dcc3ff7baa0531218f654fe6790e64889f4221e3d8b4 WHIRLPOOL 7cb3299ab13acea688695b9af2bde9f72096d9705211d53df30c3f3307bf8e942c326fbff5e95d782dde891b0946e3ac73736dc2ff32da3a499043e59ba48045 +AUX criu-2.8-automagic-libbsd.patch 511 SHA256 169d8eca6fccff4f08f4371dffde4bac85681adbfa00560187c3df796a668f25 SHA512 d43280f988965dc6c7932767a896fa252234aefee99b85651d2d3ea0ffac7dd3fce60c067d9eb7c847ad941cb20eca68a118f77246d56831d083ba01aa8f037a WHIRLPOOL add76130b3c9a26154ec9cac8e2e90cabd848882375320426efc2247ed6620c23bc777b506111bdd8e71d8775288c513efba83bc1acfb8b3f82260c691af0731 +AUX criu-2.8-sysmacros.patch 2546 SHA256 ab0a63c65d6dd0740d9683fc45f9ca7b73c3816d5d5e85208e9343da9fcee812 SHA512 7cfa5c74ff9ac0347477738084ecd622730007fe49132a9f05f019463d0f51b0208ef9b40daf5eb0741d177e0839b65c9f3eee4bab652feafa190b20ec8141b2 WHIRLPOOL 6c426e359c2cd87a4980d5480651fdc968bc7ba937d8a7c26b647deac2a4a1a470d7070db5dd536bed428abb73d6cef18941f0eebd2a27eaf584341a41e15726 +DIST criu-2.10.tar.bz2 640205 SHA256 05359b9def8abfc5967911325791a93468ce889f0f489949f925b371c143260d SHA512 6e59ff8a97297583b9f7d31492f0ac59e217fe6372253584db7f9409a4d890104feb9caac663b17d036c39eb79621be6000a7d5e814b65ce5d151e0a053d324b WHIRLPOOL 6d9dbd92941122256041dfe9f8d3c42e125808845904135631758a8474f10488c29f7881ecf56e05c6b8ba2baf7c4749eb3e17e1f9b510f37ded58741fcf2753 +DIST criu-2.11.1.tar.bz2 644358 SHA256 c5f9236d706af8d2afb1e625c7da12b4ce64d923a772739d3cddb37d29517bea SHA512 2f4a8d19bda1a73ac2f769c327af5aba5903d28547d46361e5124c9a81c76d0cd73c03180aefabdcb9511f0523f982ec99e2657b6ff46b92ac655ede9fdffd97 WHIRLPOOL 510d2bb8800bd7bbefd31e131143b2792009d705d111f439aa20dcab2c4aa2f0b125baaf12277749ec880e7ad9d693290966aeddae409cdd61d1113b9e9277db +DIST criu-2.11.tar.bz2 645048 SHA256 5f270222ba5e98b33aab7cef61363a11167fec96cf2f87e8a4a325d071e1b9ce SHA512 fba02203c95841909e3d7178b09dd6075fff1e9913ad12ac2aca43aef6e6565fc4f822a5a0dcb3cb146d15c57f0a9c17d6e645375aa3922f93108dfb2477f867 WHIRLPOOL f367093dfe9db1fe22ac028924143941c7ff48280f1b13b0ac0e8657f484a7634b3637ea1de2342ae5e0310e73aa8cad72c81b7100fb4df53e10c37ad3918dc0 +DIST criu-2.12.1.tar.bz2 646855 SHA256 33e4f575a533b66e0571fff0c2b6ced51612789fa3b944b841ec6fc79ed4a0a2 SHA512 7a168bc20665ed3ca9931e6f2fa6d58b87faee38eee30dcdda8dad041ffd90ea7e1bad17d4dcf5c5d8de563eacc64ecbd579b7f4b959a654182a688e94024ba2 WHIRLPOOL 9889ea1e37da4a4425aede6c0408ea8dd0f315d5575d76709f055dc5b054aba4ee96107fa2417ff4a9d4028f5e009b085ef6884ead4f10cc2263ddf06cd13308 +DIST criu-2.12.tar.bz2 646770 SHA256 b707eee3410a833b2d5d7534557c7a21f800f10d8660966d1efdd6396f1a1e4b SHA512 e021772c5d42dd93fe0d6c10a7aa731b600871ba78772169323c661c59d00f4d78ceda3ddfbda76123947f6ff6d2c19e443bb73e018a649e7f3872b73d28763a WHIRLPOOL 19017b586cf5a490393c8b3b3d9ca98f6aa5442812cf4eb8bca45efa7f04c2360d7cbd46c40f1abf84ee6ba82ff2ecc6256f54d553259783a2ba4c36aa7dbaad +DIST criu-2.5.tar.bz2 605226 SHA256 d2a9ffec0b659c3d3a71e1d473e95e36b208b2563f136ce8f471ff9600fcc51a SHA512 ccf942005ff3b2a567726ddb8aa44048c130f1adf6e2cbdf48e919043c84a4e1c03ad0ec34b44263e5764bea62807a2cc0fa1135b929ad3166fb9486c2880570 WHIRLPOOL 9896fe45d4516a73e6b7c403a044d25902ed4a9000b0a0a053ff9d52c053adfb58c8ce0225b9841bc7e2f38de6a8e4fc6d3073d878ea5b09b81cc89cba91de62 +DIST criu-3.4.tar.bz2 701680 SHA256 876bf32b9351c0034ff8f7064a6e63487f6639aedec115356cc76c436fa437c2 SHA512 71fc700d19b46381873b2d0fa90e7fa253b00beb5e4e6065bbf510766acbcc14b35d58fa8073801112f897d2320b7decca1115fb6853d5fe64f3c52aa40a9f32 WHIRLPOOL 39be8e58635f21868f152a50f163875812d1325212b0c0c5a360152869e03358eb449b86700ee6f242cb890fcf5217c2aceaf3b2781e3b2d7c70ecc1a6c933df +EBUILD criu-2.10.ebuild 2374 SHA256 a1c7d50dce9fa3e1706f17698d669f79a369b4b06a02e751350cbd41c0e99d13 SHA512 34b46a4bdd1be9c3992fdfb4c20f33c63ff54536f6adfc1d781dd8cdbf22c037817dc6d3ff94e901c34542b2fbef0a7ec26f2265eb7bee34df4dbafa5f21558e WHIRLPOOL 259fa1742c1e74991061fff6f6a66c033bf92c435ac3c013ada2ff4b5a31fdfc1c0da11d0b774ce3a2d54dd7fea4c3ef0a6cf4fb9b87be0a88be34f5900a4651 +EBUILD criu-2.11.1.ebuild 2374 SHA256 a1c7d50dce9fa3e1706f17698d669f79a369b4b06a02e751350cbd41c0e99d13 SHA512 34b46a4bdd1be9c3992fdfb4c20f33c63ff54536f6adfc1d781dd8cdbf22c037817dc6d3ff94e901c34542b2fbef0a7ec26f2265eb7bee34df4dbafa5f21558e WHIRLPOOL 259fa1742c1e74991061fff6f6a66c033bf92c435ac3c013ada2ff4b5a31fdfc1c0da11d0b774ce3a2d54dd7fea4c3ef0a6cf4fb9b87be0a88be34f5900a4651 +EBUILD criu-2.11.ebuild 2374 SHA256 a1c7d50dce9fa3e1706f17698d669f79a369b4b06a02e751350cbd41c0e99d13 SHA512 34b46a4bdd1be9c3992fdfb4c20f33c63ff54536f6adfc1d781dd8cdbf22c037817dc6d3ff94e901c34542b2fbef0a7ec26f2265eb7bee34df4dbafa5f21558e WHIRLPOOL 259fa1742c1e74991061fff6f6a66c033bf92c435ac3c013ada2ff4b5a31fdfc1c0da11d0b774ce3a2d54dd7fea4c3ef0a6cf4fb9b87be0a88be34f5900a4651 +EBUILD criu-2.12.1.ebuild 2419 SHA256 51860fedfcfd98c8d861bfcb247f869576e8ae0314e1da4528c5a8e4f1690df7 SHA512 b9b6778fa3737115ce44409f92a11aab988556914dc173bc64b289a210b15cca94cb6310c005325b167298723e25869a7af13445857774bd5d9256f6dfcd292c WHIRLPOOL aeeb4e160c08de34c671ca87d5720234ef6285edaa8d0941589f4cba8c7ab61f157f78c92699b754f7d9758545e6a9bdcde8a0d026082f306c887f2b31af0cac +EBUILD criu-2.12.ebuild 2374 SHA256 a1c7d50dce9fa3e1706f17698d669f79a369b4b06a02e751350cbd41c0e99d13 SHA512 34b46a4bdd1be9c3992fdfb4c20f33c63ff54536f6adfc1d781dd8cdbf22c037817dc6d3ff94e901c34542b2fbef0a7ec26f2265eb7bee34df4dbafa5f21558e WHIRLPOOL 259fa1742c1e74991061fff6f6a66c033bf92c435ac3c013ada2ff4b5a31fdfc1c0da11d0b774ce3a2d54dd7fea4c3ef0a6cf4fb9b87be0a88be34f5900a4651 +EBUILD criu-2.5.ebuild 2400 SHA256 e77c84611c0b1bbcc04e0f57120651abe235b674910a88cda6e88fac93602c40 SHA512 234732d2a5267fcb757cbc9a116041cad81366bba9b9ce7155733b195146989aaab634f4ab073dfbc19621a5b5b6070b560440d53e1b77747ea58b675e538191 WHIRLPOOL 14d16f06089bb4b742448db2bacfe4cf37899b0aebfb0f82c3bf2b054a26962fbe02b4f74b2dd5cc06242a6bb5eb9621a003663062fd57cb7d187fdd5bc4c106 +EBUILD criu-3.4.ebuild 2331 SHA256 1196fd4982f75c563da4dcf40c0985c16af6a1489521478ec83e8f35240b3244 SHA512 3e0837e12873e795df846355df350ae9a5eb2c17f66218fde84205fdbcbc11dde35dd99c92f0be9b4cb435e6d3587c5580bcd08de9e1ac616f48de3970ce9199 WHIRLPOOL f604c3d3f899a40a70a7c09045c73c88a95e114c87e7e6d3228adc33271bb3ceb8925ffc4a9e4b818de06b8bdded5262f6b652018bc644d8e539100c1052c895 +MISC ChangeLog 9086 SHA256 8736e9cc8c112694c2ee05b36332f57dd31fc9ee35be43e27bd3c956cbc137b7 SHA512 a0815d55bc4108ffabbc50da6aa18c875c644e8af6d3714d385ffa4d6d5865486e15f1c5319b1cba096aff20810cd8e0d5a92f14a60fdb0c72d591160944e0ad WHIRLPOOL 97f9b33612ee80d20308d8a5c747c10462cc96bc6b5317165db8eec4d06ee9b964a28bf2b428fee911943258d4bf2f2d7434ff80597530057539326049c91b97 +MISC ChangeLog-2015 3979 SHA256 46fcfb63c6b34305db0019fd8a5d6384a7eccd0de30a4a08c1f6fb0b4eca5804 SHA512 3c8dd02e58352d24656c8708347c121d569a15d2ee1be66801d9721889d8d8eda908231737d46444d0551618e1d064da47cbd0692e3924968cc9047e30c86c20 WHIRLPOOL d3d3f238410acb70795226b25fba074083520dc28bce75a48623e36fcde0e12790a424fdf338db4e7df3b9eca7887e3d20a44b65627b08cfd02fffd034815ad2 +MISC metadata.xml 480 SHA256 b333644cdfce317609b8c1114d1242bde7ca594a9a50f1214623bdc93a7440b9 SHA512 0a108eed5d8cdb1818b9c497377b3a83b282354c9402f1ee6473df4eca6ab75f508b3faba55a88007ca225238ac0c00fa1c0d845fdd4c98556f1c03b6f33a764 WHIRLPOOL 8438fb58763e507a52a301e8a96dc20e121a9d6fd9d02f74721d6978871ada2cd1d3742276854785404f93b1e3568e59b4c90f20a112f0f8a0abc949c5ca2915 diff --git a/sys-process/criu/criu-2.10.ebuild b/sys-process/criu/criu-2.10.ebuild new file mode 100644 index 000000000000..8478ddd0274d --- /dev/null +++ b/sys-process/criu/criu-2.10.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + net-libs/libnet:1.1 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch + "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/criu-2.11.1.ebuild b/sys-process/criu/criu-2.11.1.ebuild new file mode 100644 index 000000000000..8478ddd0274d --- /dev/null +++ b/sys-process/criu/criu-2.11.1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + net-libs/libnet:1.1 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch + "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/criu-2.11.ebuild b/sys-process/criu/criu-2.11.ebuild new file mode 100644 index 000000000000..8478ddd0274d --- /dev/null +++ b/sys-process/criu/criu-2.11.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + net-libs/libnet:1.1 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch + "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/criu-2.12.1.ebuild b/sys-process/criu/criu-2.12.1.ebuild new file mode 100644 index 000000000000..dcaf87f2ca35 --- /dev/null +++ b/sys-process/criu/criu-2.12.1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + net-libs/libnet:1.1 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch + "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch + "${FILESDIR}"/${PN}-2.12.1-glibc-2.26.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/criu-2.12.ebuild b/sys-process/criu/criu-2.12.ebuild new file mode 100644 index 000000000000..8478ddd0274d --- /dev/null +++ b/sys-process/criu/criu-2.12.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + net-libs/libnet:1.1 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch + "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/criu-2.5.ebuild b/sys-process/criu/criu-2.5.ebuild new file mode 100644 index 000000000000..c234bdc1508a --- /dev/null +++ b/sys-process/criu/criu-2.5.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.4/${PN}-2.4-makefile.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/2.5/${PN}-2.5-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch + "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/criu-3.4.ebuild b/sys-process/criu/criu-3.4.ebuild new file mode 100644 index 000000000000..2aec9b89b4a4 --- /dev/null +++ b/sys-process/criu/criu-3.4.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 + +DESCRIPTION="utility to checkpoint/restore a process tree" +HOMEPAGE="http://criu.org/" +SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="python setproctitle" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/protobuf-c + dev-libs/libnl:3 + net-libs/libnet:1.1 + sys-libs/libcap + python? ( ${PYTHON_DEPS} ) + setproctitle? ( dev-libs/libbsd )" +DEPEND="${RDEPEND} + app-text/asciidoc + app-text/xmlto" +RDEPEND="${RDEPEND} + python? ( + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + dev-python/ipaddr[${PYTHON_USEDEP}] + )" + +CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER + ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/2.2/${PN}-2.2-flags.patch + "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch + "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch + "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch +) + +criu_arch() { + # criu infers the arch from $(uname -m). We never want this to happen. + case ${ARCH} in + amd64) echo "x86";; + arm64) echo "aarch64";; + *) echo "${ARCH}";; + esac +} + +src_compile() { + RAW_LDFLAGS="$(raw-ldflags)" emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + OBJCOPY="$(tc-getOBJCOPY)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + ARCH="$(criu_arch)" \ + V=1 WERROR=0 DEBUG=0 \ + SETPROCTITLE=$(usex setproctitle) \ + PYCRIU=$(usex python) \ + all docs +} + +src_test() { + # root privileges are required to dump all necessary info + if [[ ${EUID} -eq 0 ]] ; then + emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test + fi +} + +install_crit() { + "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" +} + +src_install() { + emake \ + ARCH="$(criu_arch)" \ + PREFIX="${EPREFIX}"/usr \ + LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ + DESTDIR="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + + dodoc CREDITS README.md + + if use python ; then + cd lib + python_foreach_impl install_crit + fi +} diff --git a/sys-process/criu/files/2.0/criu-2.0-automagic-libbsd.patch b/sys-process/criu/files/2.0/criu-2.0-automagic-libbsd.patch new file mode 100644 index 000000000000..3f39ef63f82f --- /dev/null +++ b/sys-process/criu/files/2.0/criu-2.0-automagic-libbsd.patch @@ -0,0 +1,17 @@ +diff --git a/criu/Makefile.config b/criu/Makefile.config +index aaaca1f..e977bcd 100644 +--- a/criu/Makefile.config ++++ b/criu/Makefile.config +@@ -4,10 +4,12 @@ include ../scripts/feature-tests.mak + + CONFIG_HEADER := include/config.h + ++ifeq ($(SETPROCTITLE),yes) + ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),y) + LIBS += -lbsd + DEFINES += -DCONFIG_HAS_LIBBSD + endif ++endif + + ifeq ($(call pkg-config-check,libselinux),y) + LIBS += -lselinux diff --git a/sys-process/criu/files/2.0/criu-2.0-sysroot.patch b/sys-process/criu/files/2.0/criu-2.0-sysroot.patch new file mode 100644 index 000000000000..4dcb0fb2c95a --- /dev/null +++ b/sys-process/criu/files/2.0/criu-2.0-sysroot.patch @@ -0,0 +1,9 @@ +Using host headers when cross compiling is not a great idea. + +Index: criu-2.0/criu/Makefile +=================================================================== +--- criu-2.0.orig/criu/Makefile ++++ criu-2.0/criu/Makefile +@@ -51,1 +51,1 @@ ccflags-y += -iquote $(SRC_DIR)/criu/pi +-ccflags-y += -I/usr/include/libnl3 ++ccflags-y += -I${SYSROOT}/usr/include/libnl3 diff --git a/sys-process/criu/files/2.2/criu-2.2-flags.patch b/sys-process/criu/files/2.2/criu-2.2-flags.patch new file mode 100644 index 000000000000..97a806ba3414 --- /dev/null +++ b/sys-process/criu/files/2.2/criu-2.2-flags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 037d38f..7c85403 100644 +--- a/Makefile ++++ b/Makefile +@@ -97,8 +97,6 @@ endif + ifeq ($(DEBUG),1) + DEFINES += -DCR_DEBUG + CFLAGS += -O0 -ggdb3 +-else +- CFLAGS += -O2 -g + endif + + ifeq ($(GMON),1) diff --git a/sys-process/criu/files/2.2/criu-2.2-makefile.patch b/sys-process/criu/files/2.2/criu-2.2-makefile.patch new file mode 100644 index 000000000000..e4e856d8ba72 --- /dev/null +++ b/sys-process/criu/files/2.2/criu-2.2-makefile.patch @@ -0,0 +1,77 @@ +diff --git a/Makefile.install b/Makefile.install +index b3f5551..2349107 100644 +--- a/Makefile.install ++++ b/Makefile.install +@@ -6,23 +6,10 @@ BINDIR ?= $(PREFIX)/bin + SBINDIR ?= $(PREFIX)/sbin + MANDIR ?= $(PREFIX)/share/man + SYSTEMDUNITDIR ?= $(PREFIX)/lib/systemd/system/ +-LOGROTATEDIR ?= $(PREFIX)/etc/logrotate.d/ ++LOGROTATEDIR ?= $(SYSCONFDIR)/etc/logrotate.d/ + LIBDIR ?= $(PREFIX)/lib + INCLUDEDIR ?= $(PREFIX)/include/criu + +-# +-# For recent Debian/Ubuntu with multiarch support. +-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null) +-ifneq "$(DEB_HOST_MULTIARCH)" "" +- LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) +-else +- # +- # For most other systems +- ifeq "$(shell uname -m)" "x86_64" +- LIBDIR ?= $(PREFIX)/lib64 +- endif +-endif +- + export BINDIR SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR + export INCLUDEDIR LIBDIR DESTDIR PREFIX + +diff --git a/lib/Makefile b/lib/Makefile +index f1c0821..3bef265 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -25,8 +25,12 @@ lib-c: c/$(CRIU_SO) + # + # Python bindings. + lib-py: ++ifeq ($(PYCRIU),yes) + $(call msg-gen, $@) + $(Q) $(MAKE) -C py all ++else ++ $(Q) echo "no py criu" ++endif + .PHONY: lib-py + + all: lib-c lib-py +@@ -43,7 +47,7 @@ clean: + $(Q) $(RM) -r build usr + .PHONY: clean + +-install: lib-c lib-py ../crit/crit c/criu.pc.in ++install: lib-c ../crit/crit c/criu.pc.in + $(E) " INSTALL " $(CRIU_SO) + $(Q) mkdir -p $(DESTDIR)$(LIBDIR) + $(Q) install -m 755 c/$(CRIU_SO) $(DESTDIR)$(LIBDIR)/$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR).$(CRIU_SO_VERSION_MINOR) +@@ -55,8 +59,6 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in + $(Q) mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig + $(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)),' c/criu.pc.in > c/criu.pc + $(Q) install -m 644 c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig +- $(E) " INSTALL " crit +- $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --record $(CRIT_SETUP_FILES) + .PHONY: install + + uninstall: +diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk +index bd40944..3cfbffa 100644 +--- a/scripts/nmk/scripts/build.mk ++++ b/scripts/nmk/scripts/build.mk +@@ -87,7 +87,7 @@ builtin-name := $(strip $(builtin-name)) + + # + # Link flags. +-ld_flags := $(strip $(LDFLAGS) $(ldflags-y)) ++ld_flags := $(strip $(RAW_LDFLAGS) $(ldflags-y)) + + # + # $(obj) related rules. diff --git a/sys-process/criu/files/2.2/criu-2.2-no-git.patch b/sys-process/criu/files/2.2/criu-2.2-no-git.patch new file mode 100644 index 000000000000..0622225c2905 --- /dev/null +++ b/sys-process/criu/files/2.2/criu-2.2-no-git.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile b/Makefile +index 7c85403..20992ed 100644 +--- a/Makefile ++++ b/Makefile +@@ -179,9 +179,9 @@ test: zdtm + # Generating tar requires tag matched CRIU_VERSION. + # If not found then simply use GIT's describe with + # "v" prefix stripped. +-head-name := $(shell git tag -l v$(CRIU_VERSION)) ++head-name := $(shell if [ -d ".git" ]; then git tag -l v$(CRIU_VERSION); fi) + ifeq ($(head-name),) +- head-name := $(shell git describe) ++ head-name := $(shell if [ -d ".git" ]; then git describe; fi) + endif + tar-name := $(shell echo $(head-name) | sed -e 's/^v//g') + criu-$(tar-name).tar.bz2: diff --git a/sys-process/criu/files/2.3/criu-2.3-aarch64.patch b/sys-process/criu/files/2.3/criu-2.3-aarch64.patch new file mode 100644 index 000000000000..e857b6a1aa2b --- /dev/null +++ b/sys-process/criu/files/2.3/criu-2.3-aarch64.patch @@ -0,0 +1,22 @@ +diff --git a/Makefile b/Makefile +index 0e2636b..ef8f78b 100644 +--- a/Makefile ++++ b/Makefile +@@ -25,7 +25,7 @@ export SRC_DIR + + # + # Architecture specific options. +-ifneq ($(filter-out x86 arm arm64 ppc64,$(ARCH)),) ++ifneq ($(filter-out x86 arm aarch64 ppc64,$(ARCH)),) + $(error "The architecture $(ARCH) isn't supported") + endif + +@@ -39,7 +39,7 @@ ifeq ($(ARCH),arm) + SRCARCH := arm + endif + +-ifeq ($(ARCH),arm64) ++ifeq ($(ARCH),aarch64) + ARCH := aarch64 + SRCARCH := aarch64 + VDSO := y diff --git a/sys-process/criu/files/2.3/criu-2.3-no-git.patch b/sys-process/criu/files/2.3/criu-2.3-no-git.patch new file mode 100644 index 000000000000..86360cdf1a55 --- /dev/null +++ b/sys-process/criu/files/2.3/criu-2.3-no-git.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile b/Makefile +index 97f63eb..0e2636b 100644 +--- a/Makefile ++++ b/Makefile +@@ -245,9 +245,9 @@ test: zdtm + # Generating tar requires tag matched CRIU_VERSION. + # If not found then simply use GIT's describe with + # "v" prefix stripped. +-head-name := $(shell git tag -l v$(CRIU_VERSION)) ++head-name := $(shell if [ -d ".git" ]; then git tag -l v$(CRIU_VERSION); fi) + ifeq ($(head-name),) +- head-name := $(shell git describe 2>/dev/null) ++ head-name := $(shell if [ -d ".git" ]; then git describe 2>/dev/null; fi) + endif + # If no git tag could describe current commit, + # use pre-defined CRIU_VERSION with GITID (if any). diff --git a/sys-process/criu/files/2.4/criu-2.4-makefile.patch b/sys-process/criu/files/2.4/criu-2.4-makefile.patch new file mode 100644 index 000000000000..8a0fb6d940fc --- /dev/null +++ b/sys-process/criu/files/2.4/criu-2.4-makefile.patch @@ -0,0 +1,78 @@ +diff --git a/Makefile.install b/Makefile.install +index e3dd551..495ad39 100644 +--- a/Makefile.install ++++ b/Makefile.install +@@ -6,24 +6,11 @@ BINDIR ?= $(PREFIX)/bin + SBINDIR ?= $(PREFIX)/sbin + MANDIR ?= $(PREFIX)/share/man + SYSTEMDUNITDIR ?= $(PREFIX)/lib/systemd/system/ +-LOGROTATEDIR ?= $(PREFIX)/etc/logrotate.d/ ++LOGROTATEDIR ?= $(SYSCONFDIR)/etc/logrotate.d/ + LIBDIR ?= $(PREFIX)/lib + INCLUDEDIR ?= $(PREFIX)/include/criu + LIBEXECDIR ?= $(PREFIX)/libexec + +-# +-# For recent Debian/Ubuntu with multiarch support. +-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null) +-ifneq "$(DEB_HOST_MULTIARCH)" "" +- LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) +-else +- # +- # For most other systems +- ifeq "$(shell uname -m)" "x86_64" +- LIBDIR ?= $(PREFIX)/lib64 +- endif +-endif +- + export BINDIR SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR + export INCLUDEDIR LIBDIR DESTDIR PREFIX LIBEXECDIR + +diff --git a/lib/Makefile b/lib/Makefile +index f1c0821..3bef265 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -25,8 +25,12 @@ lib-c: c/$(CRIU_SO) + # + # Python bindings. + lib-py: ++ifeq ($(PYCRIU),yes) + $(call msg-gen, $@) + $(Q) $(MAKE) -C py all ++else ++ $(Q) echo "no py criu" ++endif + .PHONY: lib-py + + all: lib-c lib-py +@@ -43,7 +47,7 @@ clean: + $(Q) $(RM) -r build usr + .PHONY: clean + +-install: lib-c lib-py ../crit/crit c/criu.pc.in ++install: lib-c ../crit/crit c/criu.pc.in + $(E) " INSTALL " $(CRIU_SO) + $(Q) mkdir -p $(DESTDIR)$(LIBDIR) + $(Q) install -m 755 c/$(CRIU_SO) $(DESTDIR)$(LIBDIR)/$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR).$(CRIU_SO_VERSION_MINOR) +@@ -55,8 +59,6 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in + $(Q) mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig + $(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)),' c/criu.pc.in > c/criu.pc + $(Q) install -m 644 c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig +- $(E) " INSTALL " crit +- $(Q) python ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --record $(CRIT_SETUP_FILES) + .PHONY: install + + uninstall: +diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk +index bd40944..3cfbffa 100644 +--- a/scripts/nmk/scripts/build.mk ++++ b/scripts/nmk/scripts/build.mk +@@ -87,7 +87,7 @@ builtin-name := $(strip $(builtin-name)) + + # + # Link flags. +-ld_flags := $(strip $(LDFLAGS) $(ldflags-y)) ++ld_flags := $(strip $(RAW_LDFLAGS) $(ldflags-y)) + + # + # $(obj) related rules. diff --git a/sys-process/criu/files/2.5/criu-2.5-automagic-libbsd.patch b/sys-process/criu/files/2.5/criu-2.5-automagic-libbsd.patch new file mode 100644 index 000000000000..de6509a745c2 --- /dev/null +++ b/sys-process/criu/files/2.5/criu-2.5-automagic-libbsd.patch @@ -0,0 +1,17 @@ +diff --git a/criu/Makefile.config b/criu/Makefile.config +index f531b3b..23a3b23 100644 +--- a/criu/Makefile.config ++++ b/criu/Makefile.config +@@ -2,10 +2,12 @@ include $(__nmk_dir)/utils.mk + include $(__nmk_dir)msg.mk + include $(SRC_DIR)/scripts/feature-tests.mak + ++ifeq ($(SETPROCTITLE),yes) + ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true) + LIBS += -lbsd + FEATURE_DEFINES += -DCONFIG_HAS_LIBBSD + endif ++endif + + ifeq ($(call pkg-config-check,libselinux),y) + LIBS += -lselinux diff --git a/sys-process/criu/files/2.9/criu-2.9-makefile.patch b/sys-process/criu/files/2.9/criu-2.9-makefile.patch new file mode 100644 index 000000000000..7ec91eebaa33 --- /dev/null +++ b/sys-process/criu/files/2.9/criu-2.9-makefile.patch @@ -0,0 +1,78 @@ +diff --git a/Makefile.install b/Makefile.install +index dbc22e1..23fd1ae 100644 +--- a/Makefile.install ++++ b/Makefile.install +@@ -6,24 +6,11 @@ BINDIR ?= $(PREFIX)/bin + SBINDIR ?= $(PREFIX)/sbin + MANDIR ?= $(PREFIX)/share/man + SYSTEMDUNITDIR ?= $(PREFIX)/lib/systemd/system/ +-LOGROTATEDIR ?= $(PREFIX)/etc/logrotate.d/ ++LOGROTATEDIR ?= $(SYSCONFDIR)/etc/logrotate.d/ + LIBDIR ?= $(PREFIX)/lib + INCLUDEDIR ?= $(PREFIX)/include/criu + LIBEXECDIR ?= $(PREFIX)/libexec + +-# +-# For recent Debian/Ubuntu with multiarch support. +-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null) +-ifneq "$(DEB_HOST_MULTIARCH)" "" +- LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH) +-else +- # +- # For most other systems +- ifeq "$(shell uname -m)" "x86_64" +- LIBDIR ?= $(PREFIX)/lib64 +- endif +-endif +- + export BINDIR SBINDIR MANDIR SYSTEMDUNITDIR LOGROTATEDIR + export INCLUDEDIR LIBDIR DESTDIR PREFIX LIBEXECDIR + +diff --git a/lib/Makefile b/lib/Makefile +index 616f089..aab3189 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -25,8 +25,12 @@ lib-c: c/$(CRIU_SO) + # + # Python bindings. + lib-py: ++ifeq ($(PYCRIU),yes) + $(call msg-gen, $@) + $(Q) $(MAKE) -C py all ++else ++ $(Q) echo "no py criu" ++endif + .PHONY: lib-py + + all: lib-c lib-py +@@ -43,7 +47,7 @@ clean: + $(Q) $(RM) -r build usr + .PHONY: clean + +-install: lib-c lib-py ../crit/crit c/criu.pc.in ++install: lib-c ../crit/crit c/criu.pc.in + $(E) " INSTALL " $(CRIU_SO) + $(Q) mkdir -p $(DESTDIR)$(LIBDIR) + $(Q) install -m 755 c/$(CRIU_SO) $(DESTDIR)$(LIBDIR)/$(CRIU_SO).$(CRIU_SO_VERSION_MAJOR).$(CRIU_SO_VERSION_MINOR) +@@ -55,8 +59,6 @@ install: lib-c lib-py ../crit/crit c/criu.pc.in + $(Q) mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig + $(Q) sed -e 's,@version@,$(CRIU_VERSION),' -e 's,@libdir@,$(LIBDIR),' -e 's,@includedir@,$(dir $(INCLUDEDIR)),' c/criu.pc.in > c/criu.pc + $(Q) install -m 644 c/criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig +- $(E) " INSTALL " crit +- $(Q) $(PYTHON_BIN) ../scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX) --record $(CRIT_SETUP_FILES) + .PHONY: install + + uninstall: +diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk +index 1860d58..e169b0c 100644 +--- a/scripts/nmk/scripts/build.mk ++++ b/scripts/nmk/scripts/build.mk +@@ -87,7 +87,7 @@ builtin-name := $(strip $(builtin-name)) + + # + # Link flags. +-ld_flags := $(strip $(LDFLAGS) $(ldflags-y)) ++ld_flags := $(strip $(RAW_LDFLAGS) $(ldflags-y)) + + # + # $(obj) related rules. diff --git a/sys-process/criu/files/criu-2.12.1-glibc-2.26.patch b/sys-process/criu/files/criu-2.12.1-glibc-2.26.patch new file mode 100644 index 000000000000..d378cc88cff9 --- /dev/null +++ b/sys-process/criu/files/criu-2.12.1-glibc-2.26.patch @@ -0,0 +1,49 @@ +From d77d8cc402e597bb38edfb4e81db89fd7d96d0b6 Mon Sep 17 00:00:00 2001 +From: Adrian Reber <areber@redhat.com> +Date: Thu, 29 Jun 2017 14:19:32 +0000 +Subject: [PATCH] fix building with newer glibc + +Newer glibc releases have removed SIGUNUSED from bits/signum.h which +breaks building criu on those systems: + +https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8082d91e1c449e0cb137468b731004a5e605c8c6 + +SIGSYS returns the same value as SIGUNUSED and testing has shown +that criu still successfully completes zdtm with this patch. + +Signed-off-by: Adrian Reber <areber@redhat.com> +Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> +Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> +--- + criu/cr-restore.c | 1 - + test/zdtm/static/pthread01.c | 2 +- + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/criu/cr-restore.c b/criu/cr-restore.c +index e8fb4adf..6ba50f18 100644 +--- a/criu/cr-restore.c ++++ b/criu/cr-restore.c +@@ -880,7 +880,6 @@ static void zombie_prepare_signals(void) + (1 << SIGPOLL) |\ + (1 << SIGIO) |\ + (1 << SIGSYS) |\ +- (1 << SIGUNUSED)|\ + (1 << SIGSTKFLT)|\ + (1 << SIGPWR) \ + ) +diff --git a/test/zdtm/static/pthread01.c b/test/zdtm/static/pthread01.c +index 52f849c0..2520fcfe 100644 +--- a/test/zdtm/static/pthread01.c ++++ b/test/zdtm/static/pthread01.c +@@ -43,7 +43,7 @@ static char *decode_signal(const sigset_t *s, char *buf) + COLLECT(SIGTERM); COLLECT(SIGSTKFLT); COLLECT(SIGCHLD); COLLECT(SIGCONT); COLLECT(SIGSTOP); + COLLECT(SIGTSTP); COLLECT(SIGTTIN); COLLECT(SIGTTOU); COLLECT(SIGURG); COLLECT(SIGXCPU); + COLLECT(SIGXFSZ); COLLECT(SIGVTALRM); COLLECT(SIGPROF); COLLECT(SIGWINCH); COLLECT(SIGIO); +- COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS); COLLECT(SIGUNUSED); ++ COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS); + #undef COLLECT + + return buf; +-- +2.14.1 + diff --git a/sys-process/criu/files/criu-2.8-automagic-libbsd.patch b/sys-process/criu/files/criu-2.8-automagic-libbsd.patch new file mode 100644 index 000000000000..54781ea5f841 --- /dev/null +++ b/sys-process/criu/files/criu-2.8-automagic-libbsd.patch @@ -0,0 +1,17 @@ +diff --git a/Makefile.config b/Makefile.config +index e0d49d2..d1b2b9d 100644 +--- a/Makefile.config ++++ b/Makefile.config +@@ -2,10 +2,12 @@ include $(__nmk_dir)utils.mk + include $(__nmk_dir)msg.mk + include $(SRC_DIR)/scripts/feature-tests.mak + ++ifeq ($(SETPROCTITLE),yes) + ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true) + LIBS_FEATURES += -lbsd + FEATURE_DEFINES += -DCONFIG_HAS_LIBBSD + endif ++endif + + ifeq ($(call pkg-config-check,libselinux),y) + LIBS_FEATURES += -lselinux diff --git a/sys-process/criu/files/criu-2.8-sysmacros.patch b/sys-process/criu/files/criu-2.8-sysmacros.patch new file mode 100644 index 000000000000..68bba802f4e0 --- /dev/null +++ b/sys-process/criu/files/criu-2.8-sysmacros.patch @@ -0,0 +1,98 @@ +https://bugs.gentoo.org/580454 +https://github.com/xemul/criu/pull/257 + +From 6913c0004eaa4fd11bf3efc8c37fb05108cf18ee Mon Sep 17 00:00:00 2001 +From: Yixun Lan <dlan@gentoo.org> +Date: Wed, 7 Dec 2016 00:24:42 -0500 +Subject: [PATCH] include sys/sysmacros.h for minor/major/makedev funcs + +Since glibc is moving away from implicitly including sys/sysmacros.h +all the time via sys/types.h, include the header directly in more +places. This seems to cover most makedev/major/minor usage. + +Signed-off-by: Yixun Lan <dlan@gentoo.org> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + criu/file-lock.c | 1 + + criu/include/util.h | 1 + + criu/kerndat.c | 1 + + criu/proc_parse.c | 1 + + test/zdtm/lib/fs.h | 1 + + test/zdtm/static/console.c | 1 + + 6 files changed, 6 insertions(+) + +diff --git a/criu/file-lock.c b/criu/file-lock.c +index 1ab1e5886965..11d8a194937a 100644 +--- a/criu/file-lock.c ++++ b/criu/file-lock.c +@@ -5,6 +5,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + + #include "cr_options.h" + #include "imgset.h" +diff --git a/criu/include/util.h b/criu/include/util.h +index 8eaee33391c5..1aa40e863acb 100644 +--- a/criu/include/util.h ++++ b/criu/include/util.h +@@ -10,6 +10,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/statfs.h> ++#include <sys/sysmacros.h> + #include <dirent.h> + + #include "int.h" +diff --git a/criu/kerndat.c b/criu/kerndat.c +index f9675bd7ec1d..aeef1b7f6640 100644 +--- a/criu/kerndat.c ++++ b/criu/kerndat.c +@@ -7,6 +7,7 @@ + #include <sys/mman.h> + #include <errno.h> + #include <sys/syscall.h> ++#include <sys/sysmacros.h> + + #include "int.h" + #include "log.h" +diff --git a/criu/proc_parse.c b/criu/proc_parse.c +index 3f84cdaad99a..a86d31769ded 100644 +--- a/criu/proc_parse.c ++++ b/criu/proc_parse.c +@@ -9,6 +9,7 @@ + #include <string.h> + #include <ctype.h> + #include <linux/fs.h> ++#include <sys/sysmacros.h> + + #include "types.h" + #include "common/list.h" +diff --git a/test/zdtm/lib/fs.h b/test/zdtm/lib/fs.h +index 972c49b4a068..972b15abad0c 100644 +--- a/test/zdtm/lib/fs.h ++++ b/test/zdtm/lib/fs.h +@@ -6,6 +6,7 @@ + #endif + + #include <sys/types.h> ++#include <sys/sysmacros.h> + + #include <limits.h> + +diff --git a/test/zdtm/static/console.c b/test/zdtm/static/console.c +index a86b14639729..41246aea0298 100644 +--- a/test/zdtm/static/console.c ++++ b/test/zdtm/static/console.c +@@ -8,6 +8,7 @@ + + #include <sys/stat.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + + #include "zdtmtst.h" + +-- +2.11.0.rc2 + diff --git a/sys-process/criu/metadata.xml b/sys-process/criu/metadata.xml new file mode 100644 index 000000000000..1a679807e0a8 --- /dev/null +++ b/sys-process/criu/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>dlan@gentoo.org</email> + <name>Yixun Lan</name> + </maintainer> + <maintainer type="project"> + <email>virtualization@gentoo.org</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <use> + <flag name="setproctitle">Make process titles of service workers to be more verbose</flag> + </use> +</pkgmetadata> diff --git a/sys-process/cronbase/Manifest b/sys-process/cronbase/Manifest new file mode 100644 index 000000000000..087c709d265d --- /dev/null +++ b/sys-process/cronbase/Manifest @@ -0,0 +1,5 @@ +AUX run-crons-0.3.7 4942 SHA256 754031268ed164151214cdc97d02037e6820d0233b9e16fc9f433ad481737b76 SHA512 eb4f298fb67d7ff3e82d19e6a27f3f1df4b1abab86bd78f3ea85aecaead42a6c194773c21d63d081b62b0eb45cf2bdeb78b43b58906500e6bb52613f7e6bf164 WHIRLPOOL 397f9a4fbf5c711876683c8defc0f926cce9c924b481dfd542b43e6bb6ed2249adfec1446261a254aef215db39fe09c430e27b26fbad200b525a071875b2476f +EBUILD cronbase-0.3.7-r6.ebuild 674 SHA256 687e7fffb3e8aeeb17cc2df41cca588e4b677bf5d7b7f272b97c3cceca8da408 SHA512 521c30e7e1f15e03dd219c71db14f4059e7da09b480ab89aa7d7bda63eade23d7e233ae0d20bb1867155d20a9fd192a5396d9468305bd9216e8e821e53b404ef WHIRLPOOL 0a5b55587c41820b3b164423dacf5b6adfbd734972d610055000b2d15ccc4412195e9bccb3ba0b48186a80d834e9bfc9b8f378b4c1475ec8b6a8c06b320756da +MISC ChangeLog 7428 SHA256 0058771019043b1abd1c5be4392beb79e2ab7284bf9a40f40e39a319e61bf12d SHA512 660db6cb578cfdeaa7bb7d31dd48fab556d5100ee86d69d55bbde6c551c3ec88899dddf8790d27141066c2873ae5b5ba2b1d7a6e88b924cc818c1d3bd8856400 WHIRLPOOL 805b2bf4fad8966b17d6931224098965583eabd8926c7f0ab6d978a866de6739294d30ffdcefa23a711e10f961794f3eeee8291ccab151f30a51c7cc530bf4aa +MISC ChangeLog-2015 10155 SHA256 6ca4671a8fdcea64b815e49041f04b8c26f094bd068ef458d023e75641a112f2 SHA512 d6f3a9c42782f219f20ba07206a468e3f741ec1438bf5cf5cd769248df14c515ecd6d4f3291dfce78bf935aa56e48d096081285ce495dd684417d6f3bd87d0ac WHIRLPOOL 9a0008fe146ca2285a116aa9c9fde8fb681772f14c3c4c8ad735e21ace90442faae31dc39b700e7e372953ebb87c5f0923ac12c34225f76900663940ec704ed0 +MISC metadata.xml 256 SHA256 cbca1ae57df68811dc0f0eeceb7449e69bc046966ad0feff3279e148f7db2f18 SHA512 155f3cbb14ae54e9dfb98e954f6bdf7f23bf5654ae2d00549f7722085a7243d934dfd99d6f1325b00dcaeb50c5344e818e602dc4e2fe47dc7aeb1fdb77668521 WHIRLPOOL 37d54b13f923df58d35217014422b6b484597ce1f80f39a4c6d8a4906d3c5dff6d8c4e14972abb5bdc3a041006c5b691d1d284dbcab35bdffd0e6a013c110215 diff --git a/sys-process/cronbase/cronbase-0.3.7-r6.ebuild b/sys-process/cronbase/cronbase-0.3.7-r6.ebuild new file mode 100644 index 000000000000..f571702f9ed7 --- /dev/null +++ b/sys-process/cronbase/cronbase-0.3.7-r6.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit user + +DESCRIPTION="base for all cron ebuilds" +HOMEPAGE="https://www.gentoo.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="" + +S=${WORKDIR} + +pkg_setup() { + enewgroup cron 16 + enewuser cron 16 -1 /var/spool/cron cron +} + +src_install() { + newsbin "${FILESDIR}"/run-crons-${PV} run-crons + + diropts -m0750 + keepdir /etc/cron.{hourly,daily,weekly,monthly} + + keepdir /var/spool/cron/lastrun + diropts -m0750 -o root -g cron + keepdir /var/spool/cron +} diff --git a/sys-process/cronbase/files/run-crons-0.3.7 b/sys-process/cronbase/files/run-crons-0.3.7 new file mode 100755 index 000000000000..42c88100df1c --- /dev/null +++ b/sys-process/cronbase/files/run-crons-0.3.7 @@ -0,0 +1,180 @@ +#!/bin/sh +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# +# this script looks into /etc/cron.[hourly|daily|weekly|monthly] +# for scripts to be executed. The info about last run is stored in +# /var/spool/cron/lastrun + +LOCKDIR="/var/lock" +CRONSPOOLDIR="/var/spool/cron" +LASTRUNDIR="${CRONSPOOLDIR}/lastrun" +# This is the legacy lockfile that we need to clean up. +GLOBAL_LOCKFILE="${LASTRUNDIR}/lock" + +# Usage: log <level> <args to logger> +# Log a message via syslog. +log() { + local level="$1" + shift + logger -i -p "cron.${level}" -t run-crons "$@" +} + +# Usage: grab_lock <class> +# Grab the lock for <class> to make sure we are the only instance. +grab_lock() { + local i cronpid cmdline1 cmdline2 + local lockfile + + # Free whatever previous lock (if any) we held. + free_lock + + # For the legacy global lock, don't try to create a full path. + case $1 in + /*) lockfile=$1 ;; + *) lockfile="${LOCKDIR}/cron.$1" ;; + esac + + # Try twice to lock, otherwise give up. + i=0 + while [ $(( i += 1 )) -le 2 ] ; do + # Normally we should be able to grab the lock and get out of here fast. + if ln -sn $$ "${lockfile}" 2>/dev/null ; then + break + fi + + # Locking failed, so check for a running process. + # Handle both old- and new-style locking. + # Delete the cat logic when GLOBAL_LOCKFILE is purged. + # Note: Does not handle PID namespaces ... + if ! cronpid=$(readlink "${lockfile}" 2>/dev/null) ; then + if ! cronpid=$(cat "${lockfile}" 2>/dev/null) ; then + # The lockfile disappeared? Try the whole thing again ... + continue + fi + fi + + # This is better than kill -0 because we can verify that it's really + # another run-crons process. + # We have to send stderr to /dev/null for two reasons: + # - If the process disappears, the cmdline file might not exist. + # - The cmdline file contains NUL bytes, but bash-4.4+ warns when + # you try to assign NUL bytes to variables. + # It'd be nice to not do it for a lot of code, but there's not easy + # alternative in shell code. We could `cat | tr`, but that'd waste + # a bit more than just a simple cat. + if ( + cmdline1=$(cat "/proc/${cronpid}/cmdline") || : + cmdline2=$(cat "/proc/$$/cmdline") + [ "${cmdline1}" = "${cmdline2}" ] + ) 2>/dev/null ; then + # Whoa, another run-crons is really running. + return 1 + fi + + # The lockfile is pointing to a dead process so break it. + # TODO: This is still racy if we're running more than one run-crons. + rm -f "${lockfile}" + done + + # Check to make sure locking was successful. + if [ ! -L "${lockfile}" ] ; then + echo "Can't create or read existing ${lockfile}, giving up" + exit 1 + fi + + # Set the lock file for free_lock to clean up. + _LOCKFILE="${lockfile}" + + return 0 +} +# Prevent random env vars from messing with us. +_LOCKFILE= +# Set a trap to release the lockfile when we're finished. +trap 'free_lock' EXIT HUP INT QUIT TERM + +# Usage: free_lock +# Release the lock that we last grabbed. This does not nest! +free_lock() { + if [ -n "${_LOCKFILE}" ] ; then + rm -f "${_LOCKFILE}" + # Only break the lock once. + _LOCKFILE= + fi +} + + +EXIT_STATUS=0 + +# Grab the legacy global lock to smoothly handle upgrades. +# We should drop this after like Dec 2016. +if [ -L "${GLOBAL_LOCKFILE}" -o -f "${GLOBAL_LOCKFILE}" ] ; then + if ! grab_lock "${GLOBAL_LOCKFILE}" ; then + # An old process is still running -- abort. + exit 0 + fi + # Now release the lock since we no longer care about it. + free_lock +fi + +for BASE in hourly daily weekly monthly ; do + CRONDIR=/etc/cron.${BASE} + + test -d $CRONDIR || continue + + # Grab the lock for this specific dir. + if ! grab_lock "${BASE}" ; then + # Someone else is processing this dir, so skip it. + continue + fi + + # Blow away stale states for this particular dir. + lastrunfile="${LASTRUNDIR}/cron.${BASE}" + if [ -e "${lastrunfile}" ] ; then + case $BASE in + hourly) + #>= 1 hour, 5 min -=> +65 min + TIME="-cmin +65" ;; + daily) + #>= 1 day, 5 min -=> +1445 min + TIME="-cmin +1445" ;; + weekly) + #>= 1 week, 5 min -=> +10085 min + TIME="-cmin +10085" ;; + monthly) + #>= 31 days, 5 min -=> +44645 min + TIME="-cmin +44645" ;; + esac + + find "${LASTRUNDIR}/" -name cron.$BASE $TIME -exec rm {} \; 2>/dev/null || : + fi + + # if there is no state file, make one, then run the scripts. + if [ ! -e "${lastrunfile}" ] ; then + touch "${lastrunfile}" + + set +e + for SCRIPT in $CRONDIR/* ; do + if [ -x "${SCRIPT}" ] && [ ! -d "${SCRIPT}" ] ; then + # Filter out files people do not expect to be executed. + case ${SCRIPT} in + .*|*~) continue ;; + esac + + log info "($(whoami)) CMD (${SCRIPT})" + $SCRIPT + ret=$? + if [ ${ret} -ne 0 ] ; then + log err "CMD (${SCRIPT}) failed with exit status ${ret}" + EXIT_STATUS=1 + fi + fi + done + fi +done + +# Clean out bogus state files with future times. +touch "${LASTRUNDIR}" +find "${LASTRUNDIR}/" -newer "${LASTRUNDIR}" -exec /bin/rm -f {} \; 2>/dev/null || : + +exit ${EXIT_STATUS} diff --git a/sys-process/cronbase/metadata.xml b/sys-process/cronbase/metadata.xml new file mode 100644 index 000000000000..a22ac52b016b --- /dev/null +++ b/sys-process/cronbase/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/cronie/Manifest b/sys-process/cronie/Manifest new file mode 100644 index 000000000000..d08be5833988 --- /dev/null +++ b/sys-process/cronie/Manifest @@ -0,0 +1,12 @@ +AUX cronie-1.2-cron.deny 148 SHA256 2da98580288864e2470b01bb781bb88111b719dfe6bcb10c8fd5e019e3f3a953 SHA512 e2e3a72a527d7d905b8e36f3a988eb71baebab5eb83d4a744d7c4ff4e9d6030d17bd9d8dbea30397027f4f0bbcd8df82ca0c2dd89777aade530af832fa26b5c6 WHIRLPOOL d562e8c6058ee7f69bdbb4828653112643ba2c60712e360aff58d6f5edb6aa36ea9a53780cc7f957fdc261795aec814334dbc817997c3a751d752360a18aa3c1 +AUX cronie-1.3-crontab 485 SHA256 0ad6f06187f477d14ead949be2e9e9609205d64dfb9ec7c18fd67c8132f921d6 SHA512 4c1723a9363ec62d466525c701c1c355a3e3e741d8fa1b34fe43b2cdffc46cfe9044d6291ef20c1b3c95f4ae219eae6d4d3f0d9c294127c6fdb6f38319a55e6c WHIRLPOOL 17a3455002efe5a2da2c84965442e2e14fdce8211662e370ca1d6a98685ed272ab6f054bd3e981420f2f0943662042190aec00e06dc5098ca2318cf0533a9e06 +AUX cronie-1.3-initd 274 SHA256 8646ff964892eeb5f6c5da444a5ef5d898fb1f3a395c5b9fc85d32d8d56fc785 SHA512 f80a745dd00c62518dff3faff45bc79df97254e275bd5d26a1edc7452c23cebffa1d3eb3cb1767b23f40eae462f9432cca87b5b075a143169e056b38f21e85ae WHIRLPOOL 555dee510de9192b3a6f8c952e40b49405c41d69178303e80eb03a2942cea4325009603e3634c2261b4d96634cca25f42b8de73d85c5b016ec277a3968f44eae +AUX cronie-1.4.3-pamd 231 SHA256 c281c9b8fb4984e20142a7e099d7032192d5c2ca2eb02ece5eb4f73ca64593dd SHA512 32268d8b097e60eb039c023647ecd651b6940a8fe1587111ce0d49314bbb2de451214f98b7b703fd284e231c10bc4e616d4d0c63c107d9cdbc2bb470a17f2c3a WHIRLPOOL 171dbaa3a49aec2731d1cd78a1a4168369a1a0596b98049fd9c026ab9af54e97fdcf81416fa4fe8201c232dcdf891c4d3e81da20ddfa103eae458094c2095424 +AUX cronie-systemd.patch 865 SHA256 3ea3e906420fae0c90bd309b906b94d6a82c46090fffeb2e1ce1738ffad8ca40 SHA512 dcbeb3fba468f3b63965714075bb6619c768e0d14caddf8c4b62a5d6bee6a2f55be2f1d589b9ef5adefe57d9a20eb2c17216550519fd83bcea2151ccf151d4e0 WHIRLPOOL 2add3a3816a5457ad1494d2e9bc7926a37b1880ba29989659a5758fd00c95d5a3d9f0c62184913391f0afbf693fbb35b708a82a0e8ae567627dd488dfb8ff6ab +DIST cronie-1.5.0.tar.gz 242072 SHA256 9cf0e3f4f5042a9c09413d62c8e0c055e12401f70b112465f0f81f2c84ebfb3f SHA512 cad4d78cbb58ea32d1093890b316b6599d115b29f367eecc2e4a0a3560ab85ac85aa159886c883e46defb6212432d37f425396cfca686e4dd8526102ca4dd8fe WHIRLPOOL 69cb81b1d5673137132d921f8ed917e83965c5511004f58d386bb36e40787d30c640a3527d933346f3071b781c217b3001ee089045841ff054b965638e217744 +DIST cronie-1.5.1.tar.gz 114848 SHA256 14701a1b952d3cf730ac73db626a6becd049c2d44dde43cd53e00643c573e0b6 SHA512 7e5b2e5cc782d04b84ffced21b4601ed5a041c125ec9daa3ae3c704c04b376b07f8f6e6e1351659690ce695ca4c9373456420099eefde985e15fbe5d3ebdcf5a WHIRLPOOL 9eb12a529fb5072d4b3e69a1c3d2af8c01515ff044b7f453959f992f1b60bd7ed2b7343d50e8d9ff7eca241d3a6ffcd33b8e1359747ca3c652025af18c2b409a +EBUILD cronie-1.5.0-r1.ebuild 2149 SHA256 d596c9833f977c1b6d1036cdf5ecde52692d5f6c0e3064c81e49ef48fd524483 SHA512 345dbd19db3c032f1a3a32253b091359775ce86f0ed69b7abffdcc9603fb56d49d355c6d4e0907f20a5d560eae10f815700c9e62dd472837b39d0645f90d6638 WHIRLPOOL b1043d45b34249b297af67248e1c4643ca30fae876c94ef8dc13116195a36f212480269c5fef9ac280eee4e19e7af593ac269c7a239b2767a3bd2d524a8ecc36 +EBUILD cronie-1.5.1.ebuild 2207 SHA256 a232c2504776d1e0e9c53e022189c713e6e1d2f269a43a76c1938bd135f32b9c SHA512 4f6588e27aa00bc7ace3c8a930c84873f23d28dbda048a1b4476108ea01fc0a5e6f733c05e5366ecd7c3c9a8e0608dcddf2e4942f08c0425b07312cce230db92 WHIRLPOOL 3d2ffc62d1ff893a03f6656e2095925c9856bf89914d184d603c581b1a26558cc46de08db46be2c826c59ca61f0acf1e8735562dcbcd91228cf64efb1eef720e +MISC ChangeLog 4692 SHA256 c20f8c61c446476e366af3ef70dc32548ff183e0ac70842dd250468a0399c212 SHA512 cb9aadc515c89c8836d5ae33dd64c8b19e0f53267d1f88d3925e71103805636436d2a2aaa004dcac5a8f04bdb5199871cebc08e3c25075c188b2457d2000bc88 WHIRLPOOL 20b75b08d4d1a791b3ee8ca4b27c263730a7d122ff37f45ee39d91776484f21742b02fa7e07d5511b40c9630d4a6c522ed72c99e7fe07e209c8cc3ff657dda9f +MISC ChangeLog-2015 11346 SHA256 a80a874c593a1a9c93778016681ea3ac6a416257417e324f7223e62a64c63e7c SHA512 ec4d5a1c726c3d53bfee4fa525fdc105a208361a98bebfd18d1a260c1153fd3229afb4cf5c1ca683aa6ff74331f9b679d5aa91b8d4725d8077994e79624880da WHIRLPOOL 9210ffe923dc7883fa959d2ce71f76fde72b8c5584dae67bd94e2c77d8e79ebb163232ca96ef115b1e36cc17421c51cc7de23b627d209f57f3fcc0f69d31010c +MISC metadata.xml 1014 SHA256 393b888486512fd7b7273e12422685390a93ff16bc1613d1d66e223d6358bf68 SHA512 7f8295708e5049940e4e2147494e8ee2649635b492fe9096f1d61785f6fd8126d380be1517b253e668d6355d0d2d03e97af4fcca47ed42a6b70a5d669e7ab2c5 WHIRLPOOL 2193b75097fff3a560d2ad57509450ffd7162fddf89682790df72a5db9c5fab86403b956b6098ee8d22225740694f83a39d7701691dbf23adbeae43904cd5b86 diff --git a/sys-process/cronie/cronie-1.5.0-r1.ebuild b/sys-process/cronie/cronie-1.5.0-r1.ebuild new file mode 100644 index 000000000000..5d8fdef51b62 --- /dev/null +++ b/sys-process/cronie/cronie-1.5.0-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit cron eutils pam systemd user + +DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron" +SRC_URI="https://fedorahosted.org/releases/c/r/cronie/${P}.tar.gz" +HOMEPAGE="https://fedorahosted.org/cronie/wiki" + +LICENSE="ISC BSD BSD-2 GPL-2" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" +IUSE="anacron +inotify pam selinux" + +DEPEND="pam? ( virtual/pam ) + anacron? ( !sys-process/anacron )" +RDEPEND="${DEPEND}" + +#cronie supports /etc/crontab +CRON_SYSTEM_CRONTAB="yes" + +pkg_setup() { + enewgroup crontab +} + +src_prepare() { + epatch "${FILESDIR}/cronie-systemd.patch" +} + +src_configure() { + SPOOL_DIR="/var/spool/cron/crontabs" \ + ANACRON_SPOOL_DIR="/var/spool/anacron" \ + econf \ + $(use_with inotify) \ + $(use_with pam) \ + $(use_with selinux) \ + $(use_enable anacron) \ + --enable-syscrontab \ + --with-daemon_username=cron \ + --with-daemon_groupname=cron +} + +src_install() { + emake install DESTDIR="${D}" + + docrondir -m 1730 -o root -g crontab + fowners root:crontab /usr/bin/crontab + fperms 2751 /usr/bin/crontab + + insinto /etc/conf.d + newins "${S}"/crond.sysconfig ${PN} + + insinto /etc + newins "${FILESDIR}/${PN}-1.3-crontab" crontab + newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny + + keepdir /etc/cron.d + newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN} + newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond + + systemd_newunit contrib/cronie.systemd cronie.service + + if use anacron ; then + local anacrondir="/var/spool/anacron" + keepdir ${anacrondir} + fowners root:cron ${anacrondir} + fperms 0750 ${anacrondir} + + insinto /etc + + doins contrib/anacrontab + + insinto /etc/cron.hourly + doins contrib/0anacron + fperms 0750 /etc/cron.hourly/0anacron + fi + + dodoc AUTHORS README NEWS contrib/* +} + +pkg_postinst() { + cron_pkg_postinst + + if [[ -n "${REPLACING_VERSIONS}" ]] ; then + ewarn "You should restart ${PN} daemon or else you might experience segfaults" + ewarn "or ${PN} not working reliably anymore." + einfo "(see https://bugs.gentoo.org/557406 for details.)" + fi +} diff --git a/sys-process/cronie/cronie-1.5.1.ebuild b/sys-process/cronie/cronie-1.5.1.ebuild new file mode 100644 index 000000000000..845934d32395 --- /dev/null +++ b/sys-process/cronie/cronie-1.5.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools cron eutils pam systemd user + +DESCRIPTION="Cronie is a standard UNIX daemon cron based on the original vixie-cron" +HOMEPAGE="https://github.com/cronie-crond/cronie" +SRC_URI="https://github.com/cronie-crond/cronie/archive/${P}.tar.gz" + +LICENSE="ISC BSD BSD-2 GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="anacron +inotify pam selinux" + +DEPEND="pam? ( virtual/pam ) + anacron? ( !sys-process/anacron )" +RDEPEND="${DEPEND}" + +#cronie supports /etc/crontab +CRON_SYSTEM_CRONTAB="yes" + +S="${WORKDIR}/${PN}-${P}" + +PATCHES=( + "${FILESDIR}/cronie-systemd.patch" +) + +pkg_setup() { + enewgroup crontab +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + SPOOL_DIR="/var/spool/cron/crontabs" \ + ANACRON_SPOOL_DIR="/var/spool/anacron" \ + econf \ + $(use_with inotify) \ + $(use_with pam) \ + $(use_with selinux) \ + $(use_enable anacron) \ + --enable-syscrontab \ + --with-daemon_username=cron \ + --with-daemon_groupname=cron +} + +src_install() { + emake install DESTDIR="${D}" + + docrondir -m 1730 -o root -g crontab + fowners root:crontab /usr/bin/crontab + fperms 2751 /usr/bin/crontab + + newconfd "${S}"/crond.sysconfig ${PN} + + insinto /etc + newins "${FILESDIR}/${PN}-1.3-crontab" crontab + newins "${FILESDIR}/${PN}-1.2-cron.deny" cron.deny + + keepdir /etc/cron.d + newinitd "${FILESDIR}/${PN}-1.3-initd" ${PN} + newpamd "${FILESDIR}/${PN}-1.4.3-pamd" crond + + systemd_newunit contrib/cronie.systemd cronie.service + + if use anacron ; then + local anacrondir="/var/spool/anacron" + keepdir ${anacrondir} + fowners root:cron ${anacrondir} + fperms 0750 ${anacrondir} + + insinto /etc + doins contrib/anacrontab + + insinto /etc/cron.hourly + doins contrib/0anacron + fperms 0750 /etc/cron.hourly/0anacron + fi + + dodoc AUTHORS README NEWS contrib/* +} + +pkg_postinst() { + cron_pkg_postinst + + if [[ -n "${REPLACING_VERSIONS}" ]] ; then + ewarn "You should restart ${PN} daemon or else you might experience segfaults" + ewarn "or ${PN} not working reliably anymore." + einfo "(see https://bugs.gentoo.org/557406 for details.)" + fi +} diff --git a/sys-process/cronie/files/cronie-1.2-cron.deny b/sys-process/cronie/files/cronie-1.2-cron.deny new file mode 100644 index 000000000000..f703d5846e41 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.2-cron.deny @@ -0,0 +1,4 @@ +# If for any reason you have users in the 'cron' group who should not +# be allowed to run crontab, add them to this file (one username per +# line) + diff --git a/sys-process/cronie/files/cronie-1.3-crontab b/sys-process/cronie/files/cronie-1.3-crontab new file mode 100644 index 000000000000..99c2b54f3fde --- /dev/null +++ b/sys-process/cronie/files/cronie-1.3-crontab @@ -0,0 +1,14 @@ +# for cronie + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/cronie/files/cronie-1.3-initd b/sys-process/cronie/files/cronie-1.3-initd new file mode 100644 index 000000000000..793e6213bfae --- /dev/null +++ b/sys-process/cronie/files/cronie-1.3-initd @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/crond" +command_args="${CRONDARGS}" +pidfile="/var/run/crond.pid" + +depend() { + use clock logger + need localmount + provide cron +} diff --git a/sys-process/cronie/files/cronie-1.4.3-pamd b/sys-process/cronie/files/cronie-1.4.3-pamd new file mode 100644 index 000000000000..e82be8d87f7b --- /dev/null +++ b/sys-process/cronie/files/cronie-1.4.3-pamd @@ -0,0 +1,9 @@ +# +# The PAM configuration file for the cron daemon +# +# +auth include system-auth +account required pam_access.so +account include system-auth +session required pam_loginuid.so +session include system-auth diff --git a/sys-process/cronie/files/cronie-systemd.patch b/sys-process/cronie/files/cronie-systemd.patch new file mode 100644 index 000000000000..81c191737842 --- /dev/null +++ b/sys-process/cronie/files/cronie-systemd.patch @@ -0,0 +1,30 @@ +From 11d255eb05ae9814c16cd443a7710d99492e16c1 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Mon, 13 Jul 2015 10:59:57 -0400 +Subject: [PATCH] Adjust systemd service unit for Gentoo + +--- + contrib/cronie.systemd | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/contrib/cronie.systemd b/contrib/cronie.systemd +index ad46899..7a6c1a9 100644 +--- a/contrib/cronie.systemd ++++ b/contrib/cronie.systemd +@@ -3,10 +3,11 @@ Description=Command Scheduler + After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service + + [Service] +-EnvironmentFile=/etc/sysconfig/crond +-ExecStart=/usr/sbin/crond -n $CRONDARGS ++ExecStart=/usr/sbin/crond + ExecReload=/bin/kill -HUP $MAINPID + KillMode=process ++Type=forking ++PIDFile=/var/run/crond.pid + + [Install] + WantedBy=multi-user.target +-- +2.4.5 + diff --git a/sys-process/cronie/metadata.xml b/sys-process/cronie/metadata.xml new file mode 100644 index 000000000000..b25dd022b73c --- /dev/null +++ b/sys-process/cronie/metadata.xml @@ -0,0 +1,26 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> + <longdescription lang="en"> + Cronie contains the standard UNIX daemon crond that runs specified programs at + scheduled times and related tools. It is based on the original cron and + has security and configuration enhancements like the ability to use pam and + SELinux. + And why cronie? See http://www.urbandictionary.com/define.php?term=cronie + </longdescription> + <use> + <flag name="anacron">Install the periodic anacron command scheduler.</flag> + <flag name="inotify">Enable inotify filesystem monitoring support.</flag> + </use> + <upstream> + <remote-id type="github">cronie-crond/cronie</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/cronutils/Manifest b/sys-process/cronutils/Manifest new file mode 100644 index 000000000000..32485816f9e1 --- /dev/null +++ b/sys-process/cronutils/Manifest @@ -0,0 +1,5 @@ +DIST cronutils-1.9.tar.gz 15997 SHA256 0109f165b193d3482ebf470e5d19fcef13bb692b173f65c966b0b8b8ebc79238 SHA512 ac9ff2c39090f851a3a581aea7f88bdf9b0eaac54c10f401fb2a54a8970f2103a76ac584e852813b09e75214c7c39d6489c5cd28a151e2c063f3dcb9d6db62b6 WHIRLPOOL f5bdecd44d138996f64f0fa71b2fdcff75ce5769bb12922aaa60b67d3fac643e48d57c8c50e7c445c0649aadf2eff38c11434ba774ad493941e993003e903aff +EBUILD cronutils-1.9.ebuild 567 SHA256 32b0220351fc188656dbf8e1f7decd50942414c1905d5afb56a6b18298d9fc79 SHA512 7de9c0a82ee5f513b922f9d39bfa9e558d6e1d2e079383e2c778a40686c884fde4afc63c66277b42edc30caa9582ac99c17af9d34e0e614ad354975e1cb76437 WHIRLPOOL b45fcfb9343db6a0cdcb3a98c6aaf8f96761e93d180658ac78a48cae90a8f20b9da3f8de8f6188fbc7a2892e232f10f6f45c376f6fab810a94c217bf496686d2 +MISC ChangeLog 2937 SHA256 076355bf8b02eadc9844444ee9eb3ba9ddf3e4059f69eaf149e7c4e05c7cec39 SHA512 adacc92c42f80dd6bcd3b907e0395c6b75f5343e61d633da2e508e6f888fb6d241086fd3ee3834ef22b9c8b7ea00046f0e1a2a45a950a40f895cd2d0ea3ebc9b WHIRLPOOL 18e7907ae452a36dcdbc06e5551e25f9a98e30a76c5dad8c195a46e626a9a2423f2168d2b233151bec4749f6b932f5998463f8e347efdfcf2597176c1018f7de +MISC ChangeLog-2015 1722 SHA256 f42f8e88e04437523728c91250bd198c816c50b70e8713e1059647a10f343d77 SHA512 184ca142c4e7ee7829f09a4c4a36baef130c0a997cffff6f7e32804bb3bb8d94ef06809f1bad733d398495321b363ffbb0adb94f67deb6b654f04e380fe03cfd WHIRLPOOL cd235877c8719cd5f8605ab91f783a85fdab3b997780c4c5c0b467a6bfcd9cae60367649428265cfc347cc85746c77511ded2fb2acb59f0647bec0fd2b124db6 +MISC metadata.xml 588 SHA256 f0912b0b68c2b3971908296bdcd7baa6a526008b626b2e1cf3afc5570ff86971 SHA512 36d67a72768d10d6d399769c93fed722626d742d3edcfc6410999ee45447cb8f38bfe83793844df88214a4eddf308bdc164def60a08924fbb7c059b8242aa381 WHIRLPOOL b90022f9ac94f3904bad23db107e17c6a7590ec7a96eb66c17f28420811b55ec493960f1ef1a2409c03a0584a50638a4c11b9b6a0896db90731ccacbc44f7df1 diff --git a/sys-process/cronutils/cronutils-1.9.ebuild b/sys-process/cronutils/cronutils-1.9.ebuild new file mode 100644 index 000000000000..0c02314fd231 --- /dev/null +++ b/sys-process/cronutils/cronutils-1.9.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Utilities to assist running batch processing jobs" +HOMEPAGE="https://github.com/google/cronutils" +SRC_URI="https://github.com/google/${PN}/archive/version/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" + +S=${WORKDIR}/${PN}-version-${PV} + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="-D_XOPEN_SOURCE=500 ${CFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" prefix=/usr install +} diff --git a/sys-process/cronutils/metadata.xml b/sys-process/cronutils/metadata.xml new file mode 100644 index 000000000000..737ad5c7cf83 --- /dev/null +++ b/sys-process/cronutils/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <longdescription lang="en"> + Utilities to assist running batch processing jobs. + + * runalarm: Limit the run time of a process. + * runlock: Prevent concurrent runs of a process. + * runstat: Export statistics about a process's execution. + </longdescription> + <upstream> + <remote-id type="github">google/cronutils</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/ctop/Manifest b/sys-process/ctop/Manifest new file mode 100644 index 000000000000..5f286a24a493 --- /dev/null +++ b/sys-process/ctop/Manifest @@ -0,0 +1,16 @@ +DIST ctop-0.5.1.tar.gz 1255051 SHA256 45cdcd0bb145b1b1312c464690669635abfd09c0b591b41c3771492d0db6d43f SHA512 aff554642e9542c639f11b07719bc5b03ff7e190cf4b8d87c8280add549e713a966b342cdc1372d48e5dc834108c60f378dbe3f5986460138350768c93ff18b4 WHIRLPOOL 25793d8e396d5f399930b977583072a57c14b89cac22d6d0858a2c13e81c101740e09dd495469b4b5b5acdeaa77ebbfe612beb92461f532a7b7efdc4eec0a69f +DIST github.com-bcicen-termui-ea10e6ccee219e572ffad0ac1909f1a17f6db7d6.tar.gz 1727273 SHA256 836a6fb43d16b4c0b575c33ea600db8ff91d019593ec6aa29e55f002ea5a4cda SHA512 551b5ea368322a6c684866d1d65d3f0727b26932ea1bcd5a42430fb4b5885d5ff22679ee91697a355ecae416aee56455cf87ddc2d22614be8189c16be713f461 WHIRLPOOL 70bece046d0dd25116770479957eba094c1856fc30c3defcae28e9adbb9929c283f26f5dba5ee57fda7a0c07dcf89461771f129ef228bbac51e5f89d6ebc78f1 +DIST github.com-docker-docker-c5f178da05b27bda40c863b7d65ef8ef11eb1fbe.tar.gz 7039638 SHA256 9cacfab1fe6d53e091e35134fdbd45ef53d85b505f4692aa72f40a5bab35e389 SHA512 efc69f14bbefb9656662b2a3d9b44e4c166abb392f58514bc398fc31f89bad141bec5807d61ce62ce4bb9d62acc59d20ccf9c7e457593d42e7ef78311e521c63 WHIRLPOOL c614f19d5da6cdd0858f0b8dfb176467e0624ba8152ff05db1dce97006ba00fe26a8517abf7cdf3baffe1198ceab125b708b88483193e497bae26ff8e291b2ad +DIST github.com-docker-go-units-0dadbb0345b35ec7ef35e228dabb8de89a65bf52.tar.gz 11083 SHA256 2d982583cb6526975a1ea4c695d0e56f35d7db01d23e294a32c653bb3d08d605 SHA512 dd4e7c28fd22199177516420582f0882c99e5bbb96954c8633a84596788b4bbdd304361fc3b1803eabebe9e237e789b8da9200b27c930f1f80b0f5e14c404161 WHIRLPOOL c8e09150a9a9bd5593a2e36e49102fedab8cd79f81213dac858d3833cbba9ff658bc7c1b746beaa2f77ce3e2e41a33091035ca3127d1f433c11cea48796205c4 +DIST github.com-fsouza-go-dockerclient-87c7e50e0bcf800ed863c3c3b0fbcc67e3029140.tar.gz 121123 SHA256 a92d0fb542893323b66ac6aec0ce879d80d4d914105d064d6dca019884c44ae2 SHA512 802fbfa0124dfd9e317b0bbdbc84f50839ee839edc200fe5136417ff935743cd8922fd941abf10a5cff59930e9753fd919c7fd83abdcfe99f4148b435fe8f88d WHIRLPOOL 314e06d57d63787fbf8df894f5687c54c20915ed9c90c0abdb533e6787019014fde264c059d4f132ab752de4ff41457556bc43ae29ffa4bfe339a394b5d704ca +DIST github.com-golang-net-6c23252515492caf9b228a9d5cabcdbde29f7f82.tar.gz 860014 SHA256 2ea570023623209ad93e606f1656c6b7354778ade3f9f9cf21e4fcebecc7e932 SHA512 5162cb77f8b26e589ab898ba6641efab4dc5f6fdd008ff09c568394e0b01caf0eb675c9b5d7d9c45b4efc72cf7051448dbd2b3fd1edc541acd9a58ca22eaa366 WHIRLPOOL 5e1cbfa80665a3e12037a41c508fcaf13b30460faac6a1c66a6a7229c1cb6724655b1d0fb962ceb7a65f447445c8408f1b585b42572d260e23a010ca8ac89f85 +DIST github.com-hashicorp-go-cleanhttp-3573b8b52aa7b37b9358d966a898feb387f62437.tar.gz 7175 SHA256 c179ec8d9db5d0e95da77dc260f2104388d85002836a76f960e0b239c5640685 SHA512 c288fb64f80a8569676ba2efedfde548bfde748d1027c5ac85896b10e72f55aa6dcc0e827c696e6f2f21fdd1d48bdab27c0528ad99be6f5b5c8c04d20f6c2501 WHIRLPOOL d8ec8c3e6dc9b0e7bc216c160c91726968d9ebee192074107ad08cfbd2734144402b7394c6a69d207c3f66b6a8df9a6f49a6433f6ab7baa2d23bcc47bf449b89 +DIST github.com-jgautheron-codename-generator-16d037c7cc3c9b552fe4af9828b7338d752dbaf9.tar.gz 31005 SHA256 7dda613b118bc1425f1b6183db75425a378fca6098b2f9b0a74fdd1ec52a73f4 SHA512 0111a3d8cb212baaf995b1f55139839f6b4469b70348ea47abc478afd27f1bdef875a39381f6d60968391a44e4b2125db57bfbad1fd0c75197eceb51a33652c8 WHIRLPOOL 7e6c0d1be66ca31d01d1f9642ad498692f67795ea55275c5ba3136e4a3ba714c650d5fcd366311ebff7678120a0c467c314466a32f544a32eba53f67834f17e3 +DIST github.com-maruel-panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80.tar.gz 58743 SHA256 14878641f21e31dcaa64428e82d39b9a32317d31bfd61caf294118eb73ace08b SHA512 4dd7985cc2d73bcd1efc82af096df8155ff940398dacdf6afb55ab362db2fa6523f8e74442ce60d4d2587d52111e5fda1cec886eb2e64c3c22db543e258bf973 WHIRLPOOL 6b83ab0b630081227566436266f9c0372cd929f7f5744ef568756eeb4a2ee6c99b25ed7b6fd8bd2f1e8f7f4ec81d72361ecbe48ea9095757324c8df57fdb86cd +DIST github.com-mattn-go-runewidth-14207d285c6c197daabb5c9793d63e7af9ab2d50.tar.gz 22394 SHA256 c26c55729e0a6a25fda480516c5abf32b8f33c96bc814776a9cd2206e44e410d SHA512 faefba59ea5148b68a62910e55a7fe7621430fb085bc213ac15bb6d4f29dfcfbae42071f7c7afc50540836142a1412624602ee333970b4a5c94bf620b473a88a WHIRLPOOL 54d4cf12c70f501bd5ea5835ebb6508280ca061f147c2f6f17e09f50a3b28d6cf3e27a2ebe22f5068f052dd5c98beeda7916dde240f215e3c2a57f5facd27c89 +DIST github.com-mitchellh-go-wordwrap-ad45545899c7b13c020ea92b2072220eefad42b8.tar.gz 2740 SHA256 10f8939e7634c389e3e77f7c24a361b4bf4b4ad3baa20605293c658431991fe6 SHA512 39cd6786782e3a29ad448db3ec815a6da029bc22fbe543fb04e0e869d8b4a698f20434bb24c09bd18b5d2cdb992fc28e21b7ae16b3e585412cede7b4eed2b26c WHIRLPOOL 2494531c9e01cfc7e48fa708671be747826d2935d59110e8738a139d749d1a8537772fe3502f7c8c99108bb2f58c5d426320f24f3755eb5ab0c8f6cccd0584e4 +DIST github.com-nsf-termbox-go-7994c181db7761ca3c67a217068cf31826113f5f.tar.gz 30356 SHA256 b22f25266bfa574d45aa0aff172adeb93d9af95b2a3e2c57206a30d3e9190f29 SHA512 b3cdb7332f33a784f9f060d43c6b3f87771a9f297df90aba232eb6453c252015a167c5dc0577f1564c6722a69666dfd1c593910c649889b0426dfcebd73566e3 WHIRLPOOL 5f2a4e4bb0217512a148a107fdc8d863b4143b2a1c7bb47ac17f3449514e7897b6971db0b10cc6d60594de9577eaade082ec739fb0cf682c4bf6474533ddad0e +DIST github.com-nu7hatch-gouuid-179d4d0c4d8d407a32af483c2354df1d2c91e6c3.tar.gz 3735 SHA256 6c515266ffa0cc4b8b625f3afbb0ab1e7aecd79a28fc4a6b1cc1ebe0a4b1f610 SHA512 418e6d4bf49f715148f584fe936d6f76209cef2cd70696babf3e52778a13ee7524ab43ce071b951d006b7dc77182611282fae9e4e37045b73fc9ffd7f0cfd778 WHIRLPOOL 0729bc74032ed3dad89f0e91f1a814f37dda94c5312952dbcfa35688c3e54b91a063c7a5b5a28319141342f38af4a7b7cbebd09dc7183b700361c1600db1d63b +DIST github.com-op-go-logging-970db520ece77730c7e4724c61121037378659d9.tar.gz 37182 SHA256 ee3cc6cd71a8822f7c18b5486b4b81cb2c1a7c3b08027d17a722024873a9dfc1 SHA512 2f3ca6a8fcd596db1165453c6f235697504eeb1e6ec75311cb392a040ee394939ab92aa6e6726c47b1c0c07fc98ceef265df6db90c6a536a5d3719aae5bcf590 WHIRLPOOL 907d7c02da6d0815503f991ca0973284a5cd37cb07f9e253203192682209a6061101d2b610d8467b9efaa65a8ccf4be70758c46dc2d466bf5c50b1272c4e4058 +EBUILD ctop-0.5.1.ebuild 1904 SHA256 7b91729bdb5717c8b3181e0d7f36d2af11cbafb9d1914a343cefded931e3e35a SHA512 55b4cadc0e1b9bb70d40ead51fdd318ff13ec1fe3684b805c61223accc2f4a9c6d0acd47e57c9921372cfe57acfabd858992bd2edd9f841448fb2512127f5463 WHIRLPOOL 49254049796fa72035ffab49f901d8b0a04efbc576fca98d0a093a4b340e7c991dc45f6d0b2b3f45039f5c6132d8228eaaa547ce8920821c28a77cb6f0666354 +MISC metadata.xml 331 SHA256 c9f0b3da345e654638919d12c1429461466541c05ecb7625a94f14d66de9a605 SHA512 c1a175dccb82abd3ceab538883b3ef101ef2fe3b5bb579e68d8e20eec7e783adffba1bca314c0c4170009264ceafc5fb455e17fb14d78dd99f24e41461bb3832 WHIRLPOOL 7cd2dca55cf5f99bbc4e467f860a88f153488cab406359b69ba06810bd74fd5f24b4e63c8b4db20c15fd069ed0409c240b5f3f19926bb378a9cc886f4649f2f2 diff --git a/sys-process/ctop/ctop-0.5.1.ebuild b/sys-process/ctop/ctop-0.5.1.ebuild new file mode 100644 index 000000000000..f2b7ec0b93cb --- /dev/null +++ b/sys-process/ctop/ctop-0.5.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_PN="github.com/bcicen/${PN}/..." +EGIT_COMMIT="5db90f31dcfed7dbd1473d771ba72c08e5b28ec7" +EGO_VENDOR=( "github.com/fsouza/go-dockerclient 87c7e50e0bcf800ed863c3c3b0fbcc67e3029140" + "github.com/docker/docker c5f178da05b27bda40c863b7d65ef8ef11eb1fbe" + "github.com/docker/go-units 0dadbb0345b35ec7ef35e228dabb8de89a65bf52" + "github.com/gizak/termui ea10e6ccee219e572ffad0ac1909f1a17f6db7d6 github.com/bcicen/termui" + "github.com/hashicorp/go-cleanhttp 3573b8b52aa7b37b9358d966a898feb387f62437" + "github.com/jgautheron/codename-generator 16d037c7cc3c9b552fe4af9828b7338d752dbaf9" + "github.com/maruel/panicparse 25bcac0d793cf4109483505a0d66e066a3a90a80" + "github.com/mattn/go-runewidth 14207d285c6c197daabb5c9793d63e7af9ab2d50" + "github.com/mitchellh/go-wordwrap ad45545899c7b13c020ea92b2072220eefad42b8" + "github.com/nsf/termbox-go 7994c181db7761ca3c67a217068cf31826113f5f" + "github.com/op/go-logging 970db520ece77730c7e4724c61121037378659d9" + "github.com/nu7hatch/gouuid 179d4d0c4d8d407a32af483c2354df1d2c91e6c3" + "golang.org/x/net 6c23252515492caf9b228a9d5cabcdbde29f7f82 github.com/golang/net" ) + +inherit golang-build golang-vcs-snapshot + +ARCHIVE_URI="https://${EGO_PN%/*}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Top-like interface for container-metrics" +HOMEPAGE="https://ctop.sh https://github.com/bcicen/ctop" +SRC_URI="${ARCHIVE_URI} + ${EGO_VENDOR_URI}" +LICENSE="MIT" +SLOT="0" +IUSE="hardened" + +RESTRICT="test" + +src_compile() { + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" + pushd src/${EGO_PN%/*} || die + GOPATH="${WORKDIR}/${P}"\ + go build -tags release -ldflags "-X main.version=${PV} -X main.build=${EGIT_COMMIT:0:7}" -o ${PN} || die + popd || die +} + +src_install() { + pushd src/${EGO_PN%/*} || die + dobin ${PN} + dodoc README.md + popd || die +} diff --git a/sys-process/ctop/metadata.xml b/sys-process/ctop/metadata.xml new file mode 100644 index 000000000000..3f3a995b35ac --- /dev/null +++ b/sys-process/ctop/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Manuel Rüger</name> + <email>mrueg@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">bcicen/ctop</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/daemontools-encore/Manifest b/sys-process/daemontools-encore/Manifest new file mode 100644 index 000000000000..cb3c89ae605e --- /dev/null +++ b/sys-process/daemontools-encore/Manifest @@ -0,0 +1,6 @@ +AUX svscan.init-2 592 SHA256 6e7cf4a170c1a30b22ddd9f1ffd19ece0111a960aed10d5e4223fce9413b9e02 SHA512 cfe2d3ef118262f86d5c91a76ffac2f51564e748c4e9392b42ee9f9e13d90729a795c4dfeba5bc3c5793b988fac62a9ca1fb33e685200bf4fcd354d5872d9d1d WHIRLPOOL 99895e3035a0dcbc43f341628ef82aa54e0868bcefe826f968d4673bbd84851262bfedafe3118f61b49990a00771ad4997afafcf0e4cbd28bcd62bc7f6b592fc +DIST daemontools-encore-1.10.tar.gz 87096 SHA256 9f48f3c6cdd3f2b0202532e87f9ff46ea86777ca31ebda3a96bed618104bbd31 SHA512 569030fb9941186f167644740d0424987105b7a818d5a3cdb4e90ced5530a16938b7205141ca2f198f83362269f9cc28eb5acafe9cd7f985c8e56d307f706767 WHIRLPOOL d4ad3bebb8467dbfb5b9d8a40020c50822ca14cfb9ebc1ff44b3563a93e3083061f7b16a137a6c7df6898df6349ee380b6453c299ee098286924ba92b6b279ac +EBUILD daemontools-encore-1.10.ebuild 1129 SHA256 2b6068aad98c6e9eaf2fcf45ad9806d3e77d90fed17ba0e2017e6df6110ad310 SHA512 762fdfbe63843eae27445836de30ec3da1688af1715f4693e707d9aa755b534d234808bf720f3cdfcabb5820d56c10297f8d913d27a9e73a80893bd55fc5cfb9 WHIRLPOOL 706f942feab8f22931ac28b407eb15ce1762b85c2105d245f31fbe3cd903f6d8ef50289d27940877b1c6c472ab21e4d5d498ddbc43d027d43bce8506031d3330 +MISC ChangeLog 3112 SHA256 220e2776ce12500db1d7d93245b34305236fe519ea179698c70247198e1d8e95 SHA512 f8fb9066b950ad248a7ae7364c386bfcb16e83253ee44f994a6bc5f78047524585d322aebf7f273fead1954f6c30b8954ba8cf05f67587b8fb210297739ee914 WHIRLPOOL 8b9d8b42f2c0a2067f60d49d7b4c2c1aec8702d88d23a53830dbe85c2d06b193d452388a588f1b418104a82d17aad7da7039c7b54a6c9cf14c9804fd730c0f53 +MISC ChangeLog-2015 1576 SHA256 32fe32a244c691053a16e2e2e860ccf863758f194b93acb8aab6092cefc235e5 SHA512 0e1153b610797b7f82e2adaea732a563bb5cfc0d4aaf2ecc08057d6d43b9bada09cdb013dfaf7f878ed8c37e3b7ebc169d6108aab154b5a5a7296b020174dcc4 WHIRLPOOL fce705d93eb9cd9e0e1ec70a6254edba3f90fee0be70c291f66fbb63649e332816661bc5d2b599e3a96b3370135096c370a3198099aba35f8acfcf253f64ad70 +MISC metadata.xml 666 SHA256 c8cc00981e1ada9fa5b14c26472f4e6c1e76eb118521834a6c66d13bdbfce5bc SHA512 9c45feddf5f6a53f43aad784abf5f60f129d826a3c24ad3d2921973f8c26fa7ba7470a614da8b0a2d3fec0bb65265d6e917b0cefe972b16f221288977c694188 WHIRLPOOL f6becce02179283b6a97203418efba4ad7d7342d8236c663edbe9b3476315f0585c3b7b4e98ea8295e41fddfb0e887a62a2c466d45da353914cc79ee52b03fb6 diff --git a/sys-process/daemontools-encore/daemontools-encore-1.10.ebuild b/sys-process/daemontools-encore/daemontools-encore-1.10.ebuild new file mode 100644 index 000000000000..5a8a4fbabf11 --- /dev/null +++ b/sys-process/daemontools-encore/daemontools-encore-1.10.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit flag-o-matic qmail + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="http://untroubled.org/daemontools-encore/" +SRC_URI="http://untroubled.org/daemontools-encore/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="selinux static" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + !sys-process/daemontools + !app-doc/daemontools-man" + +src_compile() { + use static && append-ldflags -static + qmail_set_cc + emake +} + +src_install() { + keepdir /service + + echo ${D}/usr/bin >conf-bin + echo ${D}/usr/share/man >conf-man + dodir /usr/bin + dodir /usr/share/man + emake install + + dodoc ChangeLog CHANGES CHANGES.djb README TODO + + newinitd "${FILESDIR}"/svscan.init-2 svscan +} + +pkg_postinst() { + einfo + einfo "You can run daemontools using the svscan init.d script," + einfo "or you could run it through inittab." + einfo "To use inittab, emerge supervise-scripts and run:" + einfo "svscan-add-to-inittab" + einfo "Then you can hup init with the command telinit q" + einfo +} diff --git a/sys-process/daemontools-encore/files/svscan.init-2 b/sys-process/daemontools-encore/files/svscan.init-2 new file mode 100644 index 000000000000..ec9e0ead33f5 --- /dev/null +++ b/sys-process/daemontools-encore/files/svscan.init-2 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile="/var/run/svscan.pid" +command="/usr/bin/svscan" +command_args="/service" +command_background="true" + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec ${command} \ + --pidfile ${pidfile} + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} diff --git a/sys-process/daemontools-encore/metadata.xml b/sys-process/daemontools-encore/metadata.xml new file mode 100644 index 000000000000..4f4a215ac9d7 --- /dev/null +++ b/sys-process/daemontools-encore/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +<longdescription lang="en"> +daemontools-encore is a collection of tools for managing UNIX services. +It is derived from the public-domain release of daemontools by +D. J. Bernstein. + +daemontools-encore adds numerous enhancements above what daemontools +could do while maintaining backwards compatibility with daemontools. +See the CHANGES file for more details on what features have been added. +</longdescription> +</pkgmetadata> diff --git a/sys-process/daemontools/Manifest b/sys-process/daemontools/Manifest new file mode 100644 index 000000000000..e95c517a9123 --- /dev/null +++ b/sys-process/daemontools/Manifest @@ -0,0 +1,10 @@ +AUX 0.76-errno.patch 246 SHA256 1afaa3b5a26e7382cfe1c9880ddf3910fde4ded6fa815440ef087506543a3947 SHA512 76664b71e16ba4dbb081604a1a8c9ddc58a603777dccc0a53b0af9442ff8f0cdfce9ef8b05926dac62b81b2c805262df6a7e4df65920c00583132dbf136ba85e WHIRLPOOL 1553236893a61aa08d84d84e0dbb8ebb373a3b7fe9de93b516bc21ba93d0b697b99402b7eeb9e5e3fb4e90dc2596f0388eb8407dc972ecf292de6b65d2a00320 +AUX 0.76-warnings.patch 1305 SHA256 42bfcc27660ef6459d39fbaaa9f1852313baadf7b96201872e4deb12804f4833 SHA512 13288c5d1fc5f775cff9286b5cb4c711c5e6e52ef9c714b377cec0328c887b065385c464ca27b2dbe921e66956c20b5f3205cc36d7d2e81c383b5765cbd554aa WHIRLPOOL 826de0b299a751c927f863270822932ef82369bdb91c22edc43037af286d7e295297577d357bcd74ca010688dba7a62377f34c900a075b797904adea283e7717 +AUX svscan.init 681 SHA256 ea663ab5edc62dbbad8b9abc9aba23b121c9e72581e2aca98d6596a315f0c374 SHA512 30fc8685158dfc88542cfce193e5084f7175d57a8297ee12f96578ca85a9112f1af9f1a856cfb530a3dea0552cf481b5afa7cfc88a8bbc9cee34303e0893ba5b WHIRLPOOL eb36b14d023a3579bda0c05250eafab30d07cfafb8f74a4ed7d97ffc376c2086bbb1a5b6384bda91c2f487d07a877948231758f0d12b0af60980d20df99079d9 +AUX svscan.init-0.76-r7 688 SHA256 465f9d43b65719ad5d4e3d85779a99e5ce2f93b781b542a573fd2d0f10e2f1e4 SHA512 171ca666fc788c564e1d081e90591e98367c9a9db37d9a05d31aa80c01c9f089360f91fb2b71337f7a046e857548c287df5aef054c43d5c93cc083163d602cc4 WHIRLPOOL eac9aebcbb4e90714d24097a116d31125cb145b6ceffa2c66968d98406cdae8da1edcd70f841ec61ba547c6b9506ccb62f9627be64d93a175a774744ca4717d1 +DIST daemontools-0.76-man-20020131.tar.gz 8005 SHA256 1b4d77afe0878a0df587672531a3f7bbe0feb7ad0e9acf50395426e3c434600a SHA512 1767fafb2d92902f903637f08363031971bda007d1b7b53059551c740976d1c643229ccc44171796c1dcb43cbd875a17178edc634e140671817e0ef0ba3ad80b WHIRLPOOL 06de55d879f0ddfe6137dc156b728333e91b4929a7f18268021b078af87a97f8a37f3e768d8511e81ac8d2b49bd83f09f14eb468e853cee022f1cdae5a0f8c54 +DIST daemontools-0.76.tar.gz 36975 SHA256 a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f SHA512 e4a7938352b745a03ccc41acdddba1e6782f0ca245e5cae060de62ab6c5a23c841a994c30140298d274405a7f26d53ba7e84e5810a3d185b2c01e4c0feffe6c7 WHIRLPOOL 4079e32dbaa60a7645a80fab2ea7bdfab67551876b36398c7ec13fef823038d8bf0ad080514e46e1ae93bda74e7c5f6474d8533517e3dc04c6b45c50bcf72849 +EBUILD daemontools-0.76-r7.ebuild 1388 SHA256 6ce1d8856d4d23a48038c2a116d4f0db00effc52417445492edc17caf508c66b SHA512 c400e05a189108972b73b2d98f93fc1cb4e0cb63f4bc244175b26c930d60f06b35555d3c2f3e3eeff4e5b7fb800ba4858bbbcc1291ca7607035194a322172d1e WHIRLPOOL a546f6cf2db9bd049e87bb789b437710ce7df8a7992142e7eb6cc552c88ccd04a45bc69a7b2a0a535f2681b19241c5eef926ad58345b81d0299c6bc4abd4d0f9 +MISC ChangeLog 3207 SHA256 98deaba7a0f046744f49f3aea2d7b6fb1ff18d3cc650b4e7fcfd200b2316227d SHA512 508acb3ae0c272b617e9671cc8c3fd36a48544021ec465557ac3a5943d13d21c36e89f83652afd1f7063dfd7908b8e4a92344c73d3b7de4bebe2ec97606cb9c6 WHIRLPOOL 166aa2148864cd15a3aa29b5e1aa23def0e5de80ee51ca9a9113e3aa7a99232e10268a8ad62778bd22d74889e4b0ec459714882877826befc8158c343e249b86 +MISC ChangeLog-2015 6364 SHA256 d57233508671278366a300253cdf63bff8c509f7ea2c80732f205e8977bfa1a9 SHA512 937a9032cd56ab2a966e271298dfae52031066fede3716748854d9ab1d3025c71c10d7c271d5705a277cf8263c8fe8a3c9d5a42f02565ba2788b9eee42e38dab WHIRLPOOL cb4ecf567824b5e67f9a37ee7edb42c996950956252f2c91a2c2a42e1b5ad317ea71f6a3133f8d0d6b1b6a8d9af663d3c2e0873c30d650c36f1408124f92b73a +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/daemontools/daemontools-0.76-r7.ebuild b/sys-process/daemontools/daemontools-0.76-r7.ebuild new file mode 100644 index 000000000000..2550eb7f24ea --- /dev/null +++ b/sys-process/daemontools/daemontools-0.76-r7.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils flag-o-matic qmail + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="http://cr.yp.to/daemontools.html" +SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz + http://smarden.org/pape/djb/manpages/${P}-man-20020131.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="selinux static" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + !app-doc/daemontools-man" + +S="${WORKDIR}"/admin/${P}/src + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PV}-errno.patch + epatch "${FILESDIR}"/${PV}-warnings.patch + ht_fix_file Makefile print-{cc,ld}.sh + + use static && append-ldflags -static + qmail_set_cc +} + +src_compile() { + touch home + emake || die +} + +src_install() { + keepdir /service + + dobin $(<../package/commands) || die + dodoc CHANGES ../package/README TODO + doman "${WORKDIR}"/${PN}-man/*.8 + + newinitd "${FILESDIR}"/svscan.init-0.76-r7 svscan +} + +pkg_postinst() { + einfo + einfo "You can run daemontools using the svscan init.d script," + einfo "or you could run it through inittab." + einfo "To use inittab, emerge supervise-scripts and run:" + einfo "svscan-add-to-inittab" + einfo "Then you can hup init with the command telinit q" + einfo +} diff --git a/sys-process/daemontools/files/0.76-errno.patch b/sys-process/daemontools/files/0.76-errno.patch new file mode 100644 index 000000000000..3af157c462c9 --- /dev/null +++ b/sys-process/daemontools/files/0.76-errno.patch @@ -0,0 +1,11 @@ +--- src/error.h 2001-07-12 11:49:49.000000000 -0500 ++++ src/error.h 2003-02-26 02:14:06.000000000 -0600 +@@ -3,7 +3,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include <errno.h> + + extern int error_intr; + extern int error_nomem; diff --git a/sys-process/daemontools/files/0.76-warnings.patch b/sys-process/daemontools/files/0.76-warnings.patch new file mode 100644 index 000000000000..f558bb18b1bf --- /dev/null +++ b/sys-process/daemontools/files/0.76-warnings.patch @@ -0,0 +1,74 @@ +Fixup misc warnings + +Patch by RiverRat + +http://bugs.gentoo.org/124487 + +--- src/chkshsgr.c ++++ src/chkshsgr.c +@@ -1,10 +1,13 @@ + /* Public domain. */ + ++#include <sys/types.h> ++#include <stdlib.h> ++#include <grp.h> + #include <unistd.h> + + int main() + { +- short x[4]; ++ gid_t x[4]; + + x[0] = x[1] = 0; + if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); +--- src/matchtest.c ++++ src/matchtest.c +@@ -1,3 +1,4 @@ ++#include <unistd.h> + #include "match.h" + #include "buffer.h" + #include "str.h" +--- src/multilog.c ++++ src/multilog.c +@@ -1,3 +1,4 @@ ++#include <stdio.h> + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> +--- src/prot.c ++++ src/prot.c +@@ -1,5 +1,8 @@ + /* Public domain. */ + ++#include <sys/types.h> ++#include <unistd.h> ++#include <grp.h> + #include "hasshsgr.h" + #include "prot.h" + +--- src/seek_set.c ++++ src/seek_set.c +@@ -1,6 +1,7 @@ + /* Public domain. */ + + #include <sys/types.h> ++#include <unistd.h> + #include "seek.h" + + #define SET 0 /* sigh */ +--- src/supervise.c ++++ src/supervise.c +@@ -1,3 +1,4 @@ ++#include <stdio.h> + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> +--- src/pathexec_run.c ++++ src/pathexec_run.c +@@ -1,5 +1,6 @@ + /* Public domain. */ + ++#include <unistd.h> + #include "error.h" + #include "stralloc.h" + #include "str.h" diff --git a/sys-process/daemontools/files/svscan.init b/sys-process/daemontools/files/svscan.init new file mode 100644 index 000000000000..b8217db42d48 --- /dev/null +++ b/sys-process/daemontools/files/svscan.init @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +start() { + ebegin "Starting service scan" + start-stop-daemon --start --exec /usr/bin/svscan \ + --background --make-pidfile \ + --pidfile /var/run/svscan.pid -- /service + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec /usr/bin/svscan \ + --pidfile /var/run/svscan.pid + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} diff --git a/sys-process/daemontools/files/svscan.init-0.76-r7 b/sys-process/daemontools/files/svscan.init-0.76-r7 new file mode 100644 index 000000000000..f05f5d4edfb7 --- /dev/null +++ b/sys-process/daemontools/files/svscan.init-0.76-r7 @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +start() { + ebegin "Starting service scan" + setsid start-stop-daemon --start --exec /usr/bin/svscan \ + --background --make-pidfile \ + --pidfile /var/run/svscan.pid -- /service + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec /usr/bin/svscan \ + --pidfile /var/run/svscan.pid + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} diff --git a/sys-process/daemontools/metadata.xml b/sys-process/daemontools/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/daemontools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/dcron/Manifest b/sys-process/dcron/Manifest new file mode 100644 index 000000000000..239af4e3a8c1 --- /dev/null +++ b/sys-process/dcron/Manifest @@ -0,0 +1,11 @@ +AUX crontab 622 SHA256 515a07ed60590bff7df96dd045898ee64fa94d1e07d7e75834a31810dbd6b2c2 SHA512 a13e18456444f3083a633d874a26b45916c5f545378a9a6a2faa2a81b6c78d3e3aa16fa18d24223f5e6600fe343108e3a6e24cd4b9fccbde4de36c03e03ed6f1 WHIRLPOOL f7356bda62af565828c1b3d1176e87df9d3b477d5357c780290576532fa1488fd6a2db60d7b908ce5717a197b642b74a32d86560c70db75fbc33e79cf189f08b +AUX dcron-4.5-ldflags.patch 1110 SHA256 69b907a89d22bcff5ded7ebd749c4e8df87106e290c75110630031e75631ee3a SHA512 8a07ccfae80468a555e8f5ea60f88dd444a3aacb6baa6f747a6a02bcdce78baaa8aaf799ae9d2684a518bfff537dc0cdcf0b53bb6fc0017fa52228f1f0a16e49 WHIRLPOOL acb08cc8e7489c3d6e97eaa3d37bbcc8862099d6e00bbd8b6ea6ad10e11ae0a9fd71b337093b5130efb5a7378ac1e52a8d324fddb3789fc157ce4c20c3b3b2a5 +AUX dcron-4.5-pidfile.patch 1097 SHA256 4272467e432eab948f6770ea639f38817123eac2c87fc76f3fcb2b2d4cecbbb6 SHA512 08bd8d7445b597a5c7d66d3e768c943388db44e0ae43a0cec2be3b0c83c510f00f808b02d52b86cb663e79ea66584b16f92eaa02d40489e5f4124206ae17378d WHIRLPOOL aa9a9266f7dfd57e5fb67faf874bbcfe8e5544530a2517cb900a968a9220dd950dce6cc1821f05f119694544a4b353d422b453185595d60604b428b7b76d4885 +AUX dcron.confd 131 SHA256 1e273164865bb8f05d97ef1479c285b86f4104951ac294af883eb65ce100ccd0 SHA512 05b4a7aeb9d994aa3a37a0f2efa0f560a4eb6dd1fc77d67c85be3397f077bc92a0d647140164a96d48e49b486eef021aef5c3410704d457eda5eb894b46d26fb WHIRLPOOL 84f69961c281ecf6b73ad0bdfa92cf30b326dea0281ed8414bd3754857458d29255879c639378fa3ae07674b8cdf920ff49b1505b8329cd69ceff50e32940ba7 +AUX dcron.init 449 SHA256 84273a060b39b13efeabec157685f62ebc9b9f1fc58c96421173773bf3c729be SHA512 d76461855567a07cef4bc448da92dfb95f72e0eed1628e73cd1b5f2f5ba51a4cab4a4b58966b7919e1474c99614a960ecf1da9c7f8c8db925c46fd26a270c976 WHIRLPOOL 08a7b7a8c37d6a0e2bab6ff3cb83c3bdd4543ea6215cd59cba2a1e003141e1870c92758c894ca4c5067009a2b739ef1afabea3586d3c6abcaff006655aa7b5d7 +AUX dcron.service 151 SHA256 b57ed3b07d8cc5fe942ba70c814045ae207ac1f184e70bfe4874fef449f3757e SHA512 7249396786f5fc3b52981d0344c52bd56151d8ead161111a90a5b30c2985a39486aea3e263a6ddbefcb53d88a67277038bd88cc6480ce3d788093bac16835d1c WHIRLPOOL 1e7cb3c0bcc89545d51247e3f9c93d48bbf5233b007149ec7ebaa6bd39cf865386c5d418436d8e114aaaefed89e2f34314f31261a8a7d28c14f093c010abe09e +DIST dcron-4.5.tar.gz 44978 SHA256 9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824 SHA512 08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a WHIRLPOOL 9513588005841e3ff37b0365c431a92d7cda9496600b15d33aeb36ae6f0ae6d7f7180621c6d0a6808140599b70d5022c9645a6ca77ac9ffa47e5d1a636a6f479 +EBUILD dcron-4.5-r1.ebuild 1150 SHA256 cb7383026d34c8d9168ff866b64ed850d089421389bbfece878d90ce59ec3169 SHA512 b1c9e815fc98048e4a362d39b9165abcf5dbf4c38fc8c5fea91493c024e61af9535cd985176d0d9c1c5a9273ea22d4048d3d2d760023ca04d5f1e7f39713fbfe WHIRLPOOL df0fc01cd995e3591e581ee47a3864b24460c1330c7c112fe02627baf263877025ce9d51a20df9714c84078f2ee8f05ae00d485e6f402c4e42519aa34125fcb7 +MISC ChangeLog 4026 SHA256 d24e39ca8da109bae6f13a3361f99472ad0bb28a3ca5510f7587b28ac7e141de SHA512 a0ce5adc2ad52aca772ddc40f17c847a30197c73bbbad1855a0a32181d6a0b2b7fa111831d18bca492834591cd89070601152a97082c76fe16b40a27fa900204 WHIRLPOOL c330d3d516b8e0d9487215169631d4d16ca98cbc604b349879e2b2cbe46835202f436e78b9ed9560e0c6f7f6f25c1a5299275ece291ac1908e6dda6bdef6b03d +MISC ChangeLog-2015 10383 SHA256 186001611a1612b1c7a83c43975e777081303e3efef0d9466fa5c96dab0cb4d3 SHA512 a85c961bfa61b49d4ef6e2a1241787da4be28fa29913373172de81a75bd7dca969357402bfd3d35b5ab83018d5744f6106199c6ed4354099fb75519aa3212bf8 WHIRLPOOL 07da59b084b28dfb393e55b77d6b66df6178ddd3fe404670beb20ad074931b0f7c1204116dbfa45b43779ea71441bde14dc492a04bb08fff50e5c14baa85a7b8 +MISC metadata.xml 371 SHA256 02cc4355c49cfc6689bf22f8632acb864e6ffecabc15edd03b1fdaf89e7d15f8 SHA512 fec3d4a794eb039b86ddfcc71e39f756220ae95f45fed3004f2ff87c169f351efda4680392f2dc44f7755aa482cea16194b6df9bba2060e42db3cd12942d2cc0 WHIRLPOOL 0fc39dc588a1ecb96c08412d8ef7993d36f678744697afae948d59971aab0218e28e011f601e36670f709af618a8a2dbf5cf1b9f1eb9247320347fbd3b341e7c diff --git a/sys-process/dcron/dcron-4.5-r1.ebuild b/sys-process/dcron/dcron-4.5-r1.ebuild new file mode 100644 index 000000000000..aeeb15bf7023 --- /dev/null +++ b/sys-process/dcron/dcron-4.5-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit cron toolchain-funcs eutils systemd + +DESCRIPTION="A cute little cron from Matt Dillon" +HOMEPAGE="http://www.jimpryor.net/linux/dcron.html http://apollo.backplane.com/FreeSrc/" +SRC_URI="http://www.jimpryor.net/linux/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.5-pidfile.patch + epatch "${FILESDIR}"/${PN}-4.5-ldflags.patch + tc-export CC + cat <<-EOF > config + PREFIX = /usr + CRONTAB_GROUP = cron + EOF +} + +src_install() { + emake install DESTDIR="${D}" + dodoc CHANGELOG README "${FILESDIR}"/crontab + + docrondir + docron crond -m0700 -o root -g wheel + docrontab + + insinto /etc + doins "${FILESDIR}"/crontab + insinto /etc/cron.d + doins extra/prune-cronstamps + dodoc extra/run-cron extra/root.crontab + + newinitd "${FILESDIR}"/dcron.init dcron + newconfd "${FILESDIR}"/dcron.confd dcron + systemd_dounit "${FILESDIR}"/dcron.service + + insinto /etc/logrotate.d + newins extra/crond.logrotate dcron +} diff --git a/sys-process/dcron/files/crontab b/sys-process/dcron/files/crontab new file mode 100644 index 000000000000..8772cc49d36a --- /dev/null +++ b/sys-process/dcron/files/crontab @@ -0,0 +1,15 @@ +# for dcron + +# dcron: +# This is NOT the system crontab! dcron does not support a system crontab. +# to get /etc/cron.{hourly|daily|weekly|montly} working with dcron run +# crontab /etc/crontab +# as root. +# NOTE: This will REPLACE root's current crontab!! + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +59 * * * * rm -f /var/spool/cron/lastrun/cron.hourly +9 3 * * * rm -f /var/spool/cron/lastrun/cron.daily +19 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly +29 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/dcron/files/dcron-4.5-ldflags.patch b/sys-process/dcron/files/dcron-4.5-ldflags.patch new file mode 100644 index 000000000000..7fa2d8d9d015 --- /dev/null +++ b/sys-process/dcron/files/dcron-4.5-ldflags.patch @@ -0,0 +1,38 @@ +From 8a292168e584c50808b80df3577a7d89fa32db26 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 16 May 2011 16:24:20 -0400 +Subject: [PATCH] drop LDFLAGS set, and restore CFLAGS linking + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + Makefile | 5 ++--- + 1 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 1938e05..8309ad6 100644 +--- a/Makefile ++++ b/Makefile +@@ -32,7 +32,6 @@ TABSRCS = crontab.c chuser.c + TABOBJS = crontab.o chuser.o + PROTOS = protos.h + LIBS = +-LDFLAGS = + DEFS = -DVERSION='"$(VERSION)"' \ + -DSCRONTABS='"$(SCRONTABS)"' -DCRONTABS='"$(CRONTABS)"' \ + -DCRONSTAMPS='"$(CRONSTAMPS)"' -DLOG_IDENT='"$(LOG_IDENT)"' \ +@@ -54,10 +53,10 @@ protos.h: $(SRCS) $(TABSRCS) + fgrep -h Prototype $(SRCS) $(TABSRCS) > protos.h + + crond: $(OBJS) +- $(CC) $(LDFLAGS) $^ $(LIBS) -o crond ++ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o crond + + crontab: $(TABOBJS) +- $(CC) $(LDFLAGS) $^ -o crontab ++ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o crontab + + %.o: %.c defs.h $(PROTOS) + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(DEFS) $< -o $@ +-- +1.7.5.rc3 + diff --git a/sys-process/dcron/files/dcron-4.5-pidfile.patch b/sys-process/dcron/files/dcron-4.5-pidfile.patch new file mode 100644 index 000000000000..6004c4c4b4d2 --- /dev/null +++ b/sys-process/dcron/files/dcron-4.5-pidfile.patch @@ -0,0 +1,43 @@ +From 14b0f33ebf33d3d08427fd4d9fd4bda3cc107bd0 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Tue, 26 Oct 2010 01:42:32 -0400 +Subject: [PATCH] crond: write a pid file + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + Makefile | 2 +- + main.c | 5 +++++ + 2 files changed, 6 insertions(+), 1 deletions(-) + +diff --git a/Makefile b/Makefile +index dc5b78f..e278312 100644 +--- a/Makefile ++++ b/Makefile +@@ -38,7 +38,7 @@ DEFS = -DVERSION='"$(VERSION)"' \ + -DTIMESTAMP_FMT='"$(TIMESTAMP_FMT)"' + + # save variables needed for `make install` in config +-all: $(PROTOS) crond crontab ; ++all: crond crontab ; + rm -f config + echo "PREFIX = $(PREFIX)" >> config + echo "SBINDIR = $(SBINDIR)" >> config +diff --git a/main.c b/main.c +index e4a742e..6313213 100644 +--- a/main.c ++++ b/main.c +@@ -227,6 +227,11 @@ main(int ac, char **av) + exit(1); + } else if (pid > 0) { + /* parent */ ++ FILE *fp; ++ if ((fp = fopen("/var/run/crond.pid", "w")) != NULL) { ++ fprintf(fp, "%d\n", pid); ++ fclose(fp); ++ } + exit(0); + } + /* child continues */ +-- +1.7.3.1 + diff --git a/sys-process/dcron/files/dcron.confd b/sys-process/dcron/files/dcron.confd new file mode 100644 index 000000000000..61cdf12b43a7 --- /dev/null +++ b/sys-process/dcron/files/dcron.confd @@ -0,0 +1,5 @@ +# /etc/conf.d/dcron + +# Options to pass to dcron at startup. +# Default logging is via syslog; use -L to send to file. +DCRON_OPTS="" diff --git a/sys-process/dcron/files/dcron.init b/sys-process/dcron/files/dcron.init new file mode 100755 index 000000000000..eccff493b369 --- /dev/null +++ b/sys-process/dcron/files/dcron.init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use logger clock hostname + provide cron +} + +start() { + ebegin "Starting ${SVCNAME}" + /usr/sbin/crond ${DCRON_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/crond.pid --exec /usr/sbin/crond + local ret=$? + rm -f /var/run/crond.pid + eend ${ret} +} diff --git a/sys-process/dcron/files/dcron.service b/sys-process/dcron/files/dcron.service new file mode 100644 index 000000000000..0332390f2c81 --- /dev/null +++ b/sys-process/dcron/files/dcron.service @@ -0,0 +1,11 @@ +[Unit] +Description=Cron Daemon +After=syslog.target + +[Service] +ExecStart=/usr/sbin/crond -S -l info +Type=forking + +[Install] +WantedBy=multi-user.target + diff --git a/sys-process/dcron/metadata.xml b/sys-process/dcron/metadata.xml new file mode 100644 index 000000000000..30cd90ed98ad --- /dev/null +++ b/sys-process/dcron/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>vapier@gentoo.org</email> +</maintainer> +<maintainer type="project"> + <email>cron-bugs@gentoo.org</email> +</maintainer> +<upstream> + <remote-id type="github">dubiousjim/dcron</remote-id> +</upstream> +</pkgmetadata> diff --git a/sys-process/dumb-init/Manifest b/sys-process/dumb-init/Manifest new file mode 100644 index 000000000000..8556f6393573 --- /dev/null +++ b/sys-process/dumb-init/Manifest @@ -0,0 +1,4 @@ +DIST dumb-init-1.2.0.tar.gz 23370 SHA256 74486997321bd939cad2ee6af030f481d39751bc9aa0ece84ed55f864e309a3f SHA512 07f75771014c897b2e2f4de84b88ef5b829e19df81f6cbde0372a2f30ea78237af8e5cd6ab47b0a104606ea3b85c9883b86f777bc49bc428d52a32a4ff2ddad8 WHIRLPOOL 77385e68de43f043b1137285cbc97d48fa59e48b9053aa0530962692832e6806ad5fcb70e161e6887adfe4dadf211b726724c3b1bc1c09a8af2af05a4c183f00 +EBUILD dumb-init-1.2.0.ebuild 579 SHA256 2448cc10b3b7f69f8f2c1f87d7b829292fb6c2c0a744b0750e989a03f2be2c7d SHA512 f3a6d305e079e449b87b0be8ffc86baf49f5c20a01f1e13296b5fcad663190d0e15f97a54d2a4a1751187dd0ba672f3660d0bd061da284689191864b21d09745 WHIRLPOOL 76d7cb07107cc149fdfc8795caa71dfcd7c405d868a812204537cecc80769962e73278a304cbe6486511b503fded696f0376d2fca1c3fd3d5ad5086b21cb452f +MISC ChangeLog 311 SHA256 328f86a6d444868fbfd2c71e3f5e5215e14e84fa8548d5696a3c63ce0c1a740b SHA512 0c13ff9e7a37af434aa8da355b815da6e15c18d33763b8f3b06fcae60601e30d2db6d06074e9cafd8233d497880cd8fc85d75a3869ce7f147a076dc0509e16ec WHIRLPOOL 1ad05b52d5d079355e13b7292283643087629c23da43cc700bf606e4400c981f1b4f755d3ea90c9d9ee8d66ee6d1f4e1709c56b4b5b4f3c1bc39dddb112e25b0 +MISC metadata.xml 370 SHA256 37302e3f92960f81f265ae2d2c37c70c0dbcf1f680eacb72ad17bee116205929 SHA512 9da1c5732139dcd56c6dded1ee2e95349d0a3f264e33029900b35e92e764640ca0eb973ce00555b57b4d06cafca6cfc63c5c9189942a7fba7d9bb8219201d217 WHIRLPOOL d3dd4d42879649afc4744e7b2e483a7b27d5136e675d5b121888e21025aeb5c6c135673434a48d903abe0154482768f128b5bc5592d7a16b9ebb7405bbbfd496 diff --git a/sys-process/dumb-init/dumb-init-1.2.0.ebuild b/sys-process/dumb-init/dumb-init-1.2.0.ebuild new file mode 100644 index 000000000000..ef14aeec42c7 --- /dev/null +++ b/sys-process/dumb-init/dumb-init-1.2.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic + +DESCRIPTION="A minimal init system for Linux containers" +HOMEPAGE="https://github.com/Yelp/${PN}" +SRC_URI="https://github.com/Yelp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static" +RESTRICT="test" + +src_prepare() { + eapply_user + use static && append-cflags -static + sed -e "s|^CFLAGS=.*|CFLAGS=-std=gnu99 ${CFLAGS}|" -i Makefile || die +} + +src_install() { + dobin ${PN} + dodoc README.md +} diff --git a/sys-process/dumb-init/metadata.xml b/sys-process/dumb-init/metadata.xml new file mode 100644 index 000000000000..e026c3bf74aa --- /dev/null +++ b/sys-process/dumb-init/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">Yelp/dumb-init</remote-id> + <remote-id type="pypi">dumb-init</remote-id> + </upstream> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/fcron/Manifest b/sys-process/fcron/Manifest new file mode 100644 index 000000000000..2b7487cd167f --- /dev/null +++ b/sys-process/fcron/Manifest @@ -0,0 +1,15 @@ +AUX crontab.2 1098 SHA256 c6d72d62aa951895ed80bbe8a857e42c366dd53ea1ca3caa08e9860c10858a8b SHA512 5e1a23ad70fb79275c8a29137284ccb13f1fbb4387ba61875065e003aafe03aeb1709819bf2803a70494f15c42a69883c9c5272219f625e7c5ff53c4459e5d42 WHIRLPOOL 535cb048a51c9241cbe987465fd4680aa91a623f508669e1cf413621e53a7a4a4f954f68920392a4656008f13938c0ea443a9e29af55f9162c9382fb6e0f89ff +AUX fcron-3.1.1-noreadline.patch 716 SHA256 1c116e76b39895c4f86772011b7e386a529acf5b6e2385aed3e1b0a7421eecbf SHA512 152aaa299abd8ec546dc73ca7527d3162c14cec47cc670d82c7312f0fe64545a2c0c9ed82ae79ee4fe028ca009d37f6f4843e4c2ec6e6ee7cf7e8b97dc61ec71 WHIRLPOOL 4cb21ff9330cbdba72acf129c0c0075a2c063f57093965bad742801daca60d0a3ec522e895ac06ca68c3034667005623543e74775846d23f636e7810fa52a9b5 +AUX fcron-3.2.1-configure-fix-audit-parameter-check.patch 815 SHA256 e260aac334cc748d280e913400a7351d3714e9d7522cdd704732b7ea7c572147 SHA512 c2942a729d584dc72936695b19844951675a98c2783836e7ff3a8e4ea63fe470dc0dadedb83c9737b78978f2c8d4a4af62191ffb27e4ba6817ea4c70c9c2a8b8 WHIRLPOOL 9bd9fce658b1d15cba1f86fdcb8de27c35618a3c0309e90a71935b5f859ad2337285f127398a56e68531843b51bd86dca99a66f2f669f50ee09149ed8d49008e +AUX fcron.confd 134 SHA256 cf64be3aed14f6649df3b8d2100e097baca4117d81e0a3b93c42f9a65082921c SHA512 58a66cd495fcb6a9b49f1d244357dfd61188a0c09d2c02a93c9250b8d77d9b89aff41d947e25fd4c1248f39b6a97f045e760b52cdf2f065145a8bfe74b7bf25e WHIRLPOOL f447fd79704e7846ec257587711e1a07a69f26a938332224994e6023ae50e6cff10914d47158247c07ca8598f0f2add0b2164c0008afef05d1bd9f3d4c031a93 +AUX fcron.init-r5 2633 SHA256 93c17785049634810c27a07eec7ed50ed2d533572c37d705f69d4b93ce479403 SHA512 bf53158d6326a742fc3af0cdf196f76a2930f61e58c8a7f4488d3a17aa18bdbd12a3258034f649ae9998627caec7c55bf4c392265525a8fa7c6614cc38f2d0e0 WHIRLPOOL 6267ca831a4671e874d1621fcca33295ad18534db3d2d4260bb8303195acab74d7e788328966655123cf3a0bd0e29c9ea5231156d7d350dc7c626694acf71094 +AUX fcron.init.4 2589 SHA256 e193623b14a421fba86f0f5f10d6ac95de02d27239b117050a1eeccabe08aa06 SHA512 6f5197e979333eabe6fbe7c3c44488db6e82067037d2de37b28c791467ecd27c3df7b4fda0b04f1d04929e7a643d76c42f5d0af64256b9dff7848ef892775e0d WHIRLPOOL 6df1db86f7c676bef48884d4d9794bd699bd5808edcaf404058952cbedd153e467fdf7d1d5cd8b8a56cef75cf093a458f8a0afd400be2369ff85985d5605aa3b +AUX fcrontab.2 226 SHA256 7c57c8033cb78c0522ec79c88b7e88b953df9250eb9eeb714f6e9f7061733a4e SHA512 f0c74c2cd601750f7de8d9926278bd79026b236f2bda4033fe1961c48171b3aa3712bd8d8917f9c784bf0ce54ed09781572cb7e9397d9579a8ba6a114c1e5c2e WHIRLPOOL 083677d9f35d7c96b540a7691b72bfe5e52005371811f9a860a878af6f635792394a5feae81acd8f52d0364f53d04046a8b8067fe60d23e4c4837d5046d2af4b +DIST fcron-3.2.1.src.tar.gz 601142 SHA256 6114d0a39a32853669c0c0ba0f96d92920e7cabca3ff1edf37d25750403e5f6a SHA512 ddfd3e3a297b843c924aacccffaa5c1c6b300497f39daa1cdb90dc4cf4bc757042b0b2c1f055c119c8128c64d830ee0e8757091610432f5ffcacca25d369e5cd WHIRLPOOL 39b44f88b09be40705ca5d1f421aa4bff6d9a00fbcb572b9012fb1dd65a24c3b1b746196e722bc544a6c0db062625d9981c60956a7fb7c34e6cb630202bd5a2b +DIST fcron-3.3.0_beta.tar.gz 592481 SHA256 9aead33a0926e2eec123698c502114c6d67b483fe1ec232969fae6809b0bab60 SHA512 e5b76e23af774997d9ee1ef58d17009cea95d10b19a2d22b550b178a39bb7c439c055b440eb99c4286db6622901e5deb029318e4425e8cd098766452ffc15bc6 WHIRLPOOL ec814a8d23263539623ef6f3415313b80f22353c5ca72d556a537e4c46ca98818dbebf79966138c1de9e1f071478e782e01d9e3139fc9b75e981b3807e069a91 +EBUILD fcron-3.2.1-r1.ebuild 6952 SHA256 e2c709db6fdfb6b1d4e648635b6ed213d6004d1c5e8e12c167b3b002da74c6bb SHA512 79304f14e5cfad7741fd9cb467bd80da28f5bea49b019b849412f931a9edbdf2a54444bf534ef2a48e150def03ce1fea666ca4041cae5b645bc884513dd3d572 WHIRLPOOL 374e21b6123346d9918a102d93f10fb81d4bf0ad29a0fe49af77bfc823aa391fd6dc6b70d06aa0fd32ab535fa495926f6a30040336c6014e3412eb31941df0b9 +EBUILD fcron-3.2.1-r2.ebuild 7004 SHA256 179eb78dddeec98ced35838d0fad1c214f8ca11a64cb2133faedb1d481b362a2 SHA512 aa53fe077985dcc8bc9f86f06ba0897d4f46c1a9725f702a519e0dec4ddcd1d792ef8ce0cd1a38c56aa0a4453a76ba5c0e614766e001d4e09eb6afc8dde9b02b WHIRLPOOL 47d720a788fb71760ebf54ed4f3dcdbe1dcd3a15a6517a30914e3bf9dc7dc3a4d583980a71992f05a9ff058e5cc8042da25661138059bba451d28fa19ac9809c +EBUILD fcron-3.3.0_beta-r1.ebuild 7023 SHA256 89434869bd5693cca5d778225cee88f7f1c7b4f448852610ce011903d8bff2f6 SHA512 8de93d73933bcbd232083d2a498f2d90e3c6c026a32566489cb7a8347e992170cf79dd65f373185eef71f3575194716e0b884233f138a8fc34cebbe47c5492db WHIRLPOOL 401bc18f7600517d4fa438b59c8e5997fef8f5db5fad35b64307fe8ce8f50ef35502646e0491b91282e059b6a04200520779c42cdeba6353bd76494f121c0431 +MISC ChangeLog 6268 SHA256 6a2fe8d899feefcfb8ca8a240186be4de485dc068661a9e7fe8f500bec8e33dc SHA512 ec64179d883d38aeb4782280827574a2de7ab6948d2be39f15e95e124d45bfa2d65a6a41f65ac2832a79c716ce424b9938441a47eaa6968c86bdee9b02b075c8 WHIRLPOOL 34c33d520fd71f5d45b7657daec18b20a8869f3710047d0b95d57ec92716b6a86a639f0dda645b56e044b4d86b5dde60d29691391955188c0aa5996c847d2c52 +MISC ChangeLog-2015 25652 SHA256 63ac3dad65cc0d7211853ba2248555e193f17b4dea770c48428b81874cf9da6f SHA512 35bf788f3e3d7a21a3d0a25cbd3ca1f1f861acff7146a4f3207895d924a78d1cdf2e64e049de30ec5f7065fbf2958b3cc8938407dcf1b5c9d97156cf14c735bb WHIRLPOOL 72a37a77efc9825aaac85436ed32622719cb48c1068343c68f204e3219ce42b46d6ee6db22d89fae4430e584a1a052e8a18de38d29a9e3d697fd3258c58b5fa8 +MISC metadata.xml 1207 SHA256 00cad944882d88cc0faf3c18bef4bdb2394787c5a7ba752e2add3736b0d238c6 SHA512 ebaa6621585af97981630fba9dfcb9821c7538c11a82b2240b05eaf08460ea2227a3b94aa88eb9e286cac6eb436c6d95ddaa3cf4bed4804c1759c37a0e171c35 WHIRLPOOL 99bbc801a5ef969cf17aec0cc993118436d65b72df17e98369345458b934fcae7c019f5078b306880aa06cbf9d5f91efbcb54b9791cc28e65d1d8ea860116383 diff --git a/sys-process/fcron/fcron-3.2.1-r1.ebuild b/sys-process/fcron/fcron-3.2.1-r1.ebuild new file mode 100644 index 000000000000..810739795fae --- /dev/null +++ b/sys-process/fcron/fcron-3.2.1-r1.ebuild @@ -0,0 +1,255 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +WANT_AUTOMAKE=none + +inherit cron pam flag-o-matic user autotools versionator systemd + +DESCRIPTION="A command scheduler with extended capabilities over cron and anacron" +HOMEPAGE="http://fcron.free.fr/" +SRC_URI="http://fcron.free.fr/archives/${P}.src.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="audit debug pam selinux l10n_fr +mta +system-crontab readline" + +DEPEND="audit? ( sys-process/audit ) + pam? ( virtual/pam ) + readline? ( sys-libs/readline:= ) + selinux? ( sys-libs/libselinux )" + +RDEPEND="${DEPEND} + app-misc/editor-wrapper + mta? ( virtual/mta ) + pam? ( sys-auth/pambase )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-noreadline.patch + "${FILESDIR}"/${PN}-3.2.1-configure-fix-audit-parameter-check.patch +) + +pkg_setup() { + enewgroup fcron + enewuser fcron -1 -1 -1 fcron + 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 -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed" + + # Adjust fcrontab path + sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' 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 + econf \ + --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)" +} + +src_compile() { + default + + # bug #216460 + sed -i \ + -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \ + -e 's:/usr/local/etc:/etc:g' \ + -e 's:/usr/local/:/usr/:g' \ + 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 6775 /usr/bin/fcron{dyn,tab} + + fperms 4710 /usr/libexec/fcronsighup + + fperms 0750 /etc/fcron + fperms 0640 /etc/fcron/fcron.{allow,deny,conf} + + 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 + newpamd "${T}"/fcrontab.pam fcrontab + + newinitd "${FILESDIR}"/fcron.init.4 fcron + systemd_newunit "${S}/script/fcron.init.systemd" fcron.service + + 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 ! version_is_at_least "3.2.1" ${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/fcron-3.2.1-r2.ebuild b/sys-process/fcron/fcron-3.2.1-r2.ebuild new file mode 100644 index 000000000000..604e9afb710b --- /dev/null +++ b/sys-process/fcron/fcron-3.2.1-r2.ebuild @@ -0,0 +1,257 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +WANT_AUTOMAKE=none + +inherit cron pam flag-o-matic user autotools versionator systemd + +DESCRIPTION="A command scheduler with extended capabilities over cron and anacron" +HOMEPAGE="http://fcron.free.fr/" +SRC_URI="http://fcron.free.fr/archives/${P}.src.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="audit debug pam selinux l10n_fr +mta +system-crontab readline" + +DEPEND="audit? ( sys-process/audit ) + pam? ( virtual/pam ) + readline? ( sys-libs/readline:= ) + selinux? ( sys-libs/libselinux )" + +RDEPEND="${DEPEND} + app-misc/editor-wrapper + mta? ( virtual/mta ) + pam? ( sys-auth/pambase )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-noreadline.patch + "${FILESDIR}"/${PN}-3.2.1-configure-fix-audit-parameter-check.patch +) + +pkg_setup() { + enewgroup fcron + enewuser fcron -1 -1 -1 fcron + 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 -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed" + + # Adjust fcrontab path + sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' 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 + econf \ + --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)" +} + +src_compile() { + default + + # bug #216460 + sed -i \ + -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \ + -e 's:/usr/local/etc:/etc:g' \ + -e 's:/usr/local/:/usr/:g' \ + 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 6775 /usr/bin/fcron{dyn,tab} + + fperms 4710 /usr/libexec/fcronsighup + + fperms 0750 /etc/fcron + fperms 0640 /etc/fcron/fcron.{allow,deny,conf} + + 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 + 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 ! version_is_at_least "3.2.1" ${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/fcron-3.3.0_beta-r1.ebuild b/sys-process/fcron/fcron-3.3.0_beta-r1.ebuild new file mode 100644 index 000000000000..10f03c92f516 --- /dev/null +++ b/sys-process/fcron/fcron-3.3.0_beta-r1.ebuild @@ -0,0 +1,262 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +WANT_AUTOMAKE=none + +inherit cron pam flag-o-matic user autotools versionator systemd + +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" + +LICENSE="GPL-2" +KEYWORDS="" +IUSE="audit debug pam selinux l10n_fr +mta +system-crontab readline" + +DEPEND="audit? ( sys-process/audit ) + pam? ( virtual/pam ) + readline? ( sys-libs/readline:= ) + selinux? ( sys-libs/libselinux )" + +RDEPEND="${DEPEND} + app-misc/editor-wrapper + mta? ( virtual/mta ) + pam? ( sys-auth/pambase )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-noreadline.patch + "${FILESDIR}"/${PN}-3.2.1-configure-fix-audit-parameter-check.patch +) + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + enewgroup fcron + enewuser fcron -1 -1 -1 fcron + 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 -i "s:\(@LIBS@\):\$(LDFLAGS) \1:" Makefile.in || die "sed failed" + + # Adjust fcrontab path + sed -i -e 's:/etc/fcrontab:/etc/fcron/fcrontab:' 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 + econf \ + --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)" +} + +src_compile() { + default + + # bug #216460 + sed -i \ + -e 's:/usr/local/etc/fcron:/etc/fcron/fcron:g' \ + -e 's:/usr/local/etc:/etc:g' \ + -e 's:/usr/local/:/usr/:g' \ + 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 6775 /usr/bin/fcron{dyn,tab} + + fperms 4710 /usr/libexec/fcronsighup + + fperms 0750 /etc/fcron + fperms 0640 /etc/fcron/fcron.{allow,deny,conf} + + 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 + 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 ! version_is_at_least "3.2.1" ${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/crontab.2 b/sys-process/fcron/files/crontab.2 new file mode 100644 index 000000000000..4f2048f03de8 --- /dev/null +++ b/sys-process/fcron/files/crontab.2 @@ -0,0 +1,26 @@ +# /etc/crontab: +# This is fcron's special systab and *not* root's crontab! + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# "run-crons" from sys-process/cronbase package doesn't allow selective +# runs like "run-parts" from sys-apps/debianutils. So every time +# "run-crons" gets executed it loops through +# /etc/cron.{hourly,daily,weekly,monthly} and executes one after another if +# lastrun lock file isn't in place. +# Without fcron's "serial(true)" option it would be possible that a lastrun +# lock file which should have been removed still exists when "run-crons" +# starts so that a promptly execution of all cronjobs isn't always +# guaranteed. + +!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) diff --git a/sys-process/fcron/files/fcron-3.1.1-noreadline.patch b/sys-process/fcron/files/fcron-3.1.1-noreadline.patch new file mode 100644 index 000000000000..161e75b0998e --- /dev/null +++ b/sys-process/fcron/files/fcron-3.1.1-noreadline.patch @@ -0,0 +1,14 @@ +Index: fcron-3.1.1/configure.in +=================================================================== +--- fcron-3.1.1.orig/configure.in ++++ fcron-3.1.1/configure.in +@@ -86,7 +86,8 @@ AC_FUNC_WAIT3 + AC_CHECK_LIB(xnet, shutdown) + AC_CHECK_LIB(selinux, getcon, [selinuxavail=1], [selinuxavail=0]) + AC_CHECK_LIB(audit, audit_open, [auditavail=1], [auditavail=0]) +-AX_LIB_READLINE ++AC_ARG_WITH([readline], AS_HELP_STRING([--without-readline], [Build without readline @<:@default=yes@:>@])) ++AS_IF([test "x$with_readline" != "xno"], [AX_LIB_READLINE], [ax_cv_lib_readline=no]) + AC_CHECK_FUNC(getloadavg, [getloadavg=1], [getloadavg=0]) + AC_CHECK_LIB(kstat, kstat_open, [kstat=1], [kstat=0]) + if test $getloadavg -eq 1; then diff --git a/sys-process/fcron/files/fcron-3.2.1-configure-fix-audit-parameter-check.patch b/sys-process/fcron/files/fcron-3.2.1-configure-fix-audit-parameter-check.patch new file mode 100644 index 000000000000..b4166ff9d7e3 --- /dev/null +++ b/sys-process/fcron/files/fcron-3.2.1-configure-fix-audit-parameter-check.patch @@ -0,0 +1,30 @@ +From cc7a684862fee31c442c49d6a537d86979c23220 Mon Sep 17 00:00:00 2001 +From: Thomas Deutschmann <whissi@gentoo.org> +Date: Thu, 17 Nov 2016 17:19:35 +0100 +Subject: [PATCH] configure: Fix --with-audit parameter check + +Due to a missing "$" the variable "$useaudit" was never checked for +0 value with the result that you cannot disable building against +libaudit. + +Gentoo-Bug: https://bugs.gentoo.org/540446 +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index 7e7634f..708d1dd 100644 +--- a/configure.in ++++ b/configure.in +@@ -822,7 +822,7 @@ AC_ARG_WITH(audit, + ;; + esac ] + ) +-if test useaudit = "0"; then ++if test "$useaudit" = 0; then + AC_MSG_RESULT(no) + elif test "$useaudit" = "1" && test "$auditavail" != 1; then + useaudit=0 +-- +2.10.2 + diff --git a/sys-process/fcron/files/fcron.confd b/sys-process/fcron/files/fcron.confd new file mode 100644 index 000000000000..ea907d8e80b7 --- /dev/null +++ b/sys-process/fcron/files/fcron.confd @@ -0,0 +1,7 @@ +# /etc/conf.d/fcron + +# Options to fcron +# See fcron(8) for more details +# Notes: +# * Do not specify another CONFIGFILE +#FCRON_OPTS="" diff --git a/sys-process/fcron/files/fcron.init-r5 b/sys-process/fcron/files/fcron.init-r5 new file mode 100644 index 000000000000..4021cb2fbb3e --- /dev/null +++ b/sys-process/fcron/files/fcron.init-r5 @@ -0,0 +1,100 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +FCRON_INSTANCE="${SVCNAME##*.}" +FCRON_OPTS=${FCRON_OPTS:-""} + +if [ -n "${FCRON_INSTANCE}" ] && [ "${SVCNAME}" != "fcron" ]; then + FCRON_CONFIGFILE="/etc/fcron/fcron.${FCRON_INSTANCE}.conf" +else + FCRON_CONFIGFILE="/etc/fcron/fcron.conf" +fi + +getconfig() { + local key="$1" + local value_default="$2" + local value= + + if service_started; then + value="$(service_get_value "${key}")" + fi + + if [ -z "${value}" ] && [ -r "${FCRON_CONFIGFILE}" ]; then + value="$(sed -n -e 's:^'"${key}"'[ \t]*=[ \t]*::p' "${FCRON_CONFIGFILE}")" + fi + + if [ -z "${value}" ]; then + # Value not explicitly set in the configfile or configfile does not exist + # or is not readable + echo "${value_default}" + else + echo "${value}" + fi + + return 0 +} + +depend() { + config "${FCRON_CONFIGFILE}" + + use clock logger + need hostname + + # provide the cron service if we are the main instance + [ "${SVCNAME}" = "fcron" ] && provide cron +} + + +command="/usr/libexec/fcron" +command_args="${FCRON_OPTS} -c \"${FCRON_CONFIGFILE}\"" +start_stop_daemon_args=${FCRON_SSDARGS:-"--wait 1000"} +pidfile="$(getconfig pidfile /run/fcron.pid)" +fcrontabs="$(getconfig fcrontabs /var/spool/fcron)" +fifofile="$(getconfig fifofile /run/fcron.fifo)" +required_files="${FCRON_CONFIGFILE}" + +extra_started_commands="reload" + +reload() { + start-stop-daemon --signal HUP --pidfile "${pidfile}" +} + +start_pre() { + if [ "${SVCNAME}" != "fcron" ]; then + local _has_invalid_instance_cfg=0 + + if [ "${pidfile}" = "/run/fcron.pid" ]; then + eerror "You cannot use the same pidfile like the default instance!" + eerror "Please adjust your 'pidfile' setting in '${FCRON_CONFIGFILE}'." + _has_invalid_instance_cfg=1 + fi + + if [ "${fcrontabs}" = "/var/spool/fcron" ]; then + eerror "You cannot use the same fcrontabs location like the default instance!" + eerror "Please adjust your 'fcrontabs' setting in '${FCRON_CONFIGFILE}'." + _has_invalid_instance_cfg=1 + fi + + if [ "${fifofile}" = "/run/fcron.fifo" ]; then + eerror "You cannot use the same fifo file like the default instance!" + eerror "Please adjust your 'fifofile' setting in '${FCRON_CONFIGFILE}'." + _has_invalid_instance_cfg=1 + fi + + [ ${_has_invalid_instance_cfg} -ne 0 ] && return 1 + fi + + checkpath --file "${FCRON_CONFIGFILE}" --owner root:fcron --mode 0640 + + if [ ! -d "${fcrontabs}" ]; then + ebegin "Creating missing spooldir '${fcrontabs}'" + ${command} --newspooldir "${fcrontabs}" + eend $? + fi +} + +start_post() { + service_set_value fcrontabs "${fcrontabs}" + service_set_value fifofile "${fifofile}" +} diff --git a/sys-process/fcron/files/fcron.init.4 b/sys-process/fcron/files/fcron.init.4 new file mode 100644 index 000000000000..e253e5bffcfe --- /dev/null +++ b/sys-process/fcron/files/fcron.init.4 @@ -0,0 +1,98 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +FCRON_INSTANCE="${SVCNAME##*.}" + +if [ -n "${FCRON_INSTANCE}" ] && [ "${SVCNAME}" != "fcron" ]; then + FCRON_CONFIGFILE="/etc/fcron/fcron.${FCRON_INSTANCE}.conf" +else + FCRON_CONFIGFILE="/etc/fcron/fcron.conf" +fi + +getconfig() { + local key="$1" + local value_default="$2" + local value= + + if service_started; then + value="$(service_get_value "${key}")" + fi + + if [ -z "${value}" ] && [ -r "${FCRON_CONFIGFILE}" ]; then + value="$(sed -n -e 's:^'"${key}"'[ \t]*=[ \t]*::p' "${FCRON_CONFIGFILE}")" + fi + + if [ -z "${value}" ]; then + # Value not explicitly set in the configfile or configfile does not exist + # or is not readable + echo "${value_default}" + else + echo "${value}" + fi + + return 0 +} + +depend() { + config "${FCRON_CONFIGFILE}" + + use clock logger + need hostname + + # provide the cron service if we are the main instance + [ "${SVCNAME}" = "fcron" ] && provide cron +} + +command="/usr/libexec/fcron" +command_args="-c \"${FCRON_CONFIGFILE}\"" +start_stop_daemon_args=${FCRON_SSDARGS:-"--wait 1000"} +pidfile="$(getconfig pidfile /run/fcron.pid)" +fcrontabs="$(getconfig fcrontabs /var/spool/fcron)" +fifofile="$(getconfig fifofile /run/fcron.fifo)" +required_files="${FCRON_CONFIGFILE}" + +extra_started_commands="reload" + +reload() { + start-stop-daemon --signal HUP --pidfile "${pidfile}" +} + +start_pre() { + if [ "${SVCNAME}" != "fcron" ]; then + local _has_invalid_instance_cfg=0 + + if [ "${pidfile}" = "/run/fcron.pid" ]; then + eerror "You cannot use the same pidfile like the default instance!" + eerror "Please adjust your 'pidfile' setting in '${FCRON_CONFIGFILE}'." + _has_invalid_instance_cfg=1 + fi + + if [ "${fcrontabs}" = "/var/spool/fcron" ]; then + eerror "You cannot use the same fcrontabs location like the default instance!" + eerror "Please adjust your 'fcrontabs' setting in '${FCRON_CONFIGFILE}'." + _has_invalid_instance_cfg=1 + fi + + if [ "${fifofile}" = "/run/fcron.fifo" ]; then + eerror "You cannot use the same fifo file like the default instance!" + eerror "Please adjust your 'fifofile' setting in '${FCRON_CONFIGFILE}'." + _has_invalid_instance_cfg=1 + fi + + [ ${_has_invalid_instance_cfg} -ne 0 ] && return 1 + fi + + checkpath --file "${FCRON_CONFIGFILE}" --owner root:fcron --mode 0640 + + if [ ! -d "${fcrontabs}" ]; then + ebegin "Creating missing spooldir '${fcrontabs}'" + ${command} --newspooldir "${fcrontabs}" + eend $? + fi +} + +start_post() { + service_set_value fcrontabs "${fcrontabs}" + service_set_value fifofile "${fifofile}" +} diff --git a/sys-process/fcron/files/fcrontab.2 b/sys-process/fcron/files/fcrontab.2 new file mode 100644 index 000000000000..e8c83b5fa3bf --- /dev/null +++ b/sys-process/fcron/files/fcrontab.2 @@ -0,0 +1,4 @@ +# Script for checking system crontabs and creating the fcron systab. +# Runs every 10 minutes, does not mail output, doesn't log job runs +# except for errors. +@mail(false),nolog(true) 10 /usr/libexec/check_system_crontabs -s 0 diff --git a/sys-process/fcron/metadata.xml b/sys-process/fcron/metadata.xml new file mode 100644 index 000000000000..0a8d8d7a3e54 --- /dev/null +++ b/sys-process/fcron/metadata.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>whissi@gentoo.org</email> + <name>Thomas Deutschmann</name> + </maintainer> + <maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> + <use> + <flag name="debug"> + Enable debug code and output. Since version 3.0.5 this will no + longer force foreground execution, and fcron will be able to run + as a service properly. + </flag> + <flag name="mta"> + Enable mta support for sending emails from fcron + </flag> + <flag name="pam"> + Enable PAM support for fcron. This means that fcron will pass + through the "fcron" stack before executing the jobs, and + fcrontab will use the "fcrontab" stack to authenticate the user + before editing its crontab file. + </flag> + <flag name="system-crontab"> + Set up fcron to respect /etc/crontab and /etc/cron.d. If this + flag is disabled, /etc/cron.d and /etc/crontab will be ignored, + but /etc/cron.{hourly,daily,weekly,monthly} will still be + respected. + </flag> + </use> +</pkgmetadata> diff --git a/sys-process/ftop/Manifest b/sys-process/ftop/Manifest new file mode 100644 index 000000000000..db491575e483 --- /dev/null +++ b/sys-process/ftop/Manifest @@ -0,0 +1,7 @@ +AUX ftop-1.0-overflow.patch 480 SHA256 799944a33ae10060e7c7c2d223d914b9d6a4eceb087f5588986e19b2b1a2ccbd SHA512 8057c3e938c0e3d53fa6925bb11d5ea5596343fc82c7bf0e3e32461f11b86c0e3f62b7eedd597b31dad587c585a5b99cd1f4c3d99c13c6825e59278ad1f17d2f WHIRLPOOL 03d4ab44971690edff282deabd844a5d75db46202e4fbf4e84c51b1ff4e19334db4eea1f28ffb2ff6dc522fd0002f60c7615a962d713b491beeb812b2556b8dc +AUX ftop-1.0-tinfo.patch 194 SHA256 9db007202a8dbd59ba04522427fcf98fd5b9d630081b8e6714a0aa8810b816a2 SHA512 a15acc7acd78ca2abc166ff9f9fc66f3b2c5f1348d6d416d70520a8e07cc128529129d217045ca16a115b1a18e0729cacf0f5fc711d3a8da5b56466ddc1650b6 WHIRLPOOL 19bfa15580134dcef8d27cd9263933e4900183b1e6b67cac6404061ee5fed4df482c2e927e4a274d2d9b3dccbec0e514497d133c6247ea6ae2f04816631ec9d9 +DIST ftop-1.0.tar.bz2 143122 SHA256 3a705f4f291384344cd32c3dd5f5f6a7cd7cea7624c83cb7e923966dbcd47f82 SHA512 f572a52481db7d52a1e384500f5ec57eec36fefab95c7237197d69650e6522dd5ddd4c4425a08ffe853ba730519b90de522186aad5d8bd94cece6e66db5e634a WHIRLPOOL 091fd2e25770f77423fbd137d7a4f5b2989d9ac7478b360d7e7d1a22649dcd68b922882d30159e6e136309f92b156f07fb4c9ac886e7c569d17b3084938c89a7 +EBUILD ftop-1.0.ebuild 501 SHA256 2551a659fbdc3cdcb8fca4c7f4e2ab2d23d9ef44140a67271530a799a844fc43 SHA512 c73952cc3f929fe27712c26f1fc2e4d3c240f81787eb2fce271477d4ffe49e400f22bad6d26620428df555e1bb937e6e573fe2c9c54789c6c206fc2ac6776fb9 WHIRLPOOL e2bdf290fd072d1b32000c6f4b587d0d950ac2fc882291765f697a281decc1296eda0b5640a8ccc1eb51c6afec680edfda5a1a7a740a53c9a2eac00b1b276b87 +MISC ChangeLog 3195 SHA256 c403602d4c2558e72766fd233b95f480f47152e3da7e5a3e0da285c7bc1857e3 SHA512 e576f96bbce92002e32a5cf71553fefcd991ff3118424a8114d844e937d8cf4c984e8604db8157c9abcccdd9413580df6d40ac9d07c4175167a4db1fbb5e6b3d WHIRLPOOL eff38fb0ac05dd2cc03a104d0559a73a9bcbc824142ef5e9b87caa5d70823d46765c453e872b223ff46971c985f46b299280f2af312571e8e00dbdfe5803648f +MISC ChangeLog-2015 1055 SHA256 41512de44d946b93ae695816eec033ab1762123eb3edb645ab6fec9405bd8363 SHA512 f178877a773892b30f3cd2571c40126cae38a69a373ea4b85fd53c05f49a8b24447fd728ec10b623758d43d4245ee1a8ee2069789ed428ef1e12c4b449e7f3bc WHIRLPOOL ca8ac6fe2d94d897d95c54644bb7ee5212a795e27c1600166451ffd72eecb298cc6749b7845e852494c9fb8fbccdd5f3761779186253aacbb504945dc1ab029d +MISC metadata.xml 224 SHA256 ac3edf52832f461791959c8bdcd28822502e10ec02f961682dbda42216f9b1a4 SHA512 50fd033081cbd709e8dbd3441700c8301309ccfbf81200ea387916a3e95d88b231748df77c3f6ec62207d02fc268d4841679374e06abee36bf196eeecfac64e5 WHIRLPOOL 3166e67c06c16ee2b8eb9b37606a674b674e49524d82cd9c987fab4e039adc11639f38762e803781aa95ce3cf16d7c9188cc3286b17d25d7601cef98bf45024d diff --git a/sys-process/ftop/files/ftop-1.0-overflow.patch b/sys-process/ftop/files/ftop-1.0-overflow.patch new file mode 100644 index 000000000000..f6503fcdbc19 --- /dev/null +++ b/sys-process/ftop/files/ftop-1.0-overflow.patch @@ -0,0 +1,14 @@ +Set tmp_buf and rate_buf to something ridiculously high to fix a buffer +overflow when COLUMNS is large. - JeR + +--- a/src/ftop.c 2009-02-16 07:00:00.000000000 +0100 ++++ b/src/ftop.c 2013-09-06 14:42:41.788852952 +0200 +@@ -736,7 +736,7 @@ + { + size_t i, j, bytes, bar_total; + char more_procs_ch, more_files_ch, expanded_ch; +- char tmp_buf[80], rate_buf[80]; ++ char tmp_buf[2048], rate_buf[2048]; + char *tmp_str; + snapshot *s, *s_prev; + file_info *tmp_file; diff --git a/sys-process/ftop/files/ftop-1.0-tinfo.patch b/sys-process/ftop/files/ftop-1.0-tinfo.patch new file mode 100644 index 000000000000..cdbc30efa48e --- /dev/null +++ b/sys-process/ftop/files/ftop-1.0-tinfo.patch @@ -0,0 +1,10 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -15,6 +15,7 @@ + + # Checks for libraries. + AC_CHECK_LIB([curses], [initscr]) ++AC_SEARCH_LIBS(stdscr,tinfo) + + # Checks for header files. + AC_HEADER_STDC diff --git a/sys-process/ftop/ftop-1.0.ebuild b/sys-process/ftop/ftop-1.0.ebuild new file mode 100644 index 000000000000..ed63276afe3d --- /dev/null +++ b/sys-process/ftop/ftop-1.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=frob +inherit autotools-utils + +DESCRIPTION="Monitor open files and filesystems" +HOMEPAGE="https://code.google.com/p/ftop/" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~hppa ~x86" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-overflow.patch + "${FILESDIR}"/${P}-tinfo.patch +) diff --git a/sys-process/ftop/metadata.xml b/sys-process/ftop/metadata.xml new file mode 100644 index 000000000000..0ae91bddd943 --- /dev/null +++ b/sys-process/ftop/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>monsieurp@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/sys-process/fuser-bsd/Manifest b/sys-process/fuser-bsd/Manifest new file mode 100644 index 000000000000..49435c15dc78 --- /dev/null +++ b/sys-process/fuser-bsd/Manifest @@ -0,0 +1,6 @@ +DIST fuser-1142334561.tar.bz2 11008 SHA256 2edf0d189a77a55c84d58545de2cd446401ed42d2f06dd043db3c61f2087e5a2 SHA512 49c6a2773da47a55c59210e878c40f3313cef21795ab5c67bb61632a5d8bc7857f9e3501f54029b3187809bb927ae93690687a0cbcf34e296b6e53d6e9dc6ee4 WHIRLPOOL acaaba5e556b2ada3c1a5f37b3ad37129458f7337199862a644d16e436fe8fa7f5c4387e023a2ea3b9322508fcbc06723423e744bf00048eb65fe927a3cf1e01 +DIST fuser-bsd-patches-1.tar.bz2 1694 SHA256 8386839d7af010eab8f550f1121dca256c46ecb57d931ca18072221f125e992e SHA512 7dad917c3a9ff628f4fe6893fad5aa42d1e206182ce9d7b831fd3713b2757b39d4134a1d4f085e0ac90ea392fae6006cd446944128035dda5e4272b778457ef4 WHIRLPOOL f5243c4d846fa91d051b9bb958229b4e18e460f03508b1d71b31cc218bd269ec3c480283bb042fa4845c62b23742f5d3047a9bbbcdeb91c2c14d0b1bef3fcbfc +EBUILD fuser-bsd-1142334561.ebuild 813 SHA256 50c7790a822936b94b6a647f7641ba8102b88c02b75c9671af1c43b530aa4c7c SHA512 ec1e03e841c87fd5dc5b30ee6c0c2afce466f510490305279f74f80afc047fc24c087c8bde0378b7cce6acb6a37e36490ff5b8f4155cd01343e99c0200c6455f WHIRLPOOL 66d178a29ffd4f632bc695674dadd0aadcc4d8b0069eb77c9d8f83a18e9a044c924170fab3c508916476531cb64f3a9e0758377ffd95d53ab20dbf7bf1ab2db5 +MISC ChangeLog 2446 SHA256 3635dfd9245b37a9e4cfc3e1c66e158d3bf8711630901b0498152985ca0f0c96 SHA512 fd2a74822a169089a891c656d6348d38bd0b3dd6ce8ce339c8bbf7a2c09ea043a75fdc6af01bd19998927471742e01419236e6de9d2b2c157a04b5779b4cd697 WHIRLPOOL 715f132a18a0d4f2794f3cb22438e4e35c8bdce815a74a5981ed220c9842eb59e3b58562018ff6abff31b33f973792419fe88712c296160c8e223cfdf49584c4 +MISC ChangeLog-2015 1355 SHA256 35c6a033828727eeb788536a6f0b6646d40eaf9a7d3e2f2324be7c67f70e4e00 SHA512 8b23327430df293f8a57d7b82dd45f2cdcfe9d673ab55bdfa8c6398e7f9630c27404a9b29fe9e740e3e4eb6d3e6465060fdb6a1582b2d3369b089f00ca27659e WHIRLPOOL 54ae0d034bb99e246fa22881b4afdf4eb30fc70dededa25c069b430c5250d5f2c69f28e2117f497d2a0db7cc47f537eb7aab913ecc203e6acfc22c01fe395300 +MISC metadata.xml 238 SHA256 501d93b0c41ed422505100f002758cd173cd9783ae7fbb53e2ec5f238c868340 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d WHIRLPOOL 4ca51d994f011a5e7e4939f02a54b5c2f9f3e526665893c9ac2876c9871b7dc80361393d41c5247b3a5520e82d31d0dd10da520e7715c94b806a94ce0fed2a5a diff --git a/sys-process/fuser-bsd/fuser-bsd-1142334561.ebuild b/sys-process/fuser-bsd/fuser-bsd-1142334561.ebuild new file mode 100644 index 000000000000..5c43d028228b --- /dev/null +++ b/sys-process/fuser-bsd/fuser-bsd-1142334561.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit base bsdmk eutils + +MY_P="${PN/-bsd/}-${PV}" + +PATCHLEVEL=1 +DESCRIPTION="fuser(1) utility for *BSD" +HOMEPAGE="http://mbsd.msk.ru/stas/fuser.html" +SRC_URI="http://mbsd.msk.ru/dist/${MY_P}.tar.bz2 + mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" +IUSE="" + +DEPEND="sys-freebsd/freebsd-mk-defs" +# virtual/libc needed here for has_version to work. +RDEPEND="virtual/libc + !sys-process/psmisc" + +S="${WORKDIR}/${PN/-bsd/}" + +src_prepare() { + if has_version '>=sys-freebsd/freebsd-lib-8' ; then # any better way to check it? + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + fi +} + +src_install() { + into / + dosbin fuser + + doman fuser.1 +} diff --git a/sys-process/fuser-bsd/metadata.xml b/sys-process/fuser-bsd/metadata.xml new file mode 100644 index 000000000000..a00f3aeb1f81 --- /dev/null +++ b/sys-process/fuser-bsd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>bsd@gentoo.org</email> + <name>BSD Project</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest new file mode 100644 index 000000000000..067be9f303b6 --- /dev/null +++ b/sys-process/glances/Manifest @@ -0,0 +1,14 @@ +DIST Glances-2.10.tar.gz 5625608 SHA256 3e3ebd41a4f627b76ee1cdf107482d81e787efde8a5e41e6568169d38eb2e696 SHA512 a63c8280cd50564c6304979d2ea41eb05fca33c0618f78777f8c956249a345138d14cc6d745441cd73de85e88bc1074d0d8445ff531b0dafe9d565a326337993 WHIRLPOOL 985ceedeb8951e03f202c39c7e7eead570e80154408baf123be35e067ecca0f91aba01dbdb1c098e6fe6fae632200b6b2dfd3624c1d86822e77d590b8267cb58 +DIST Glances-2.11.tar.gz 5658061 SHA256 94c9d54c6d158492aed454918cca91103387e03170397ba8cc7e9328db8dc9a1 SHA512 b215326df86e4168ce54237595746d0ef119100f5fc50ee50781fa8b17fff7b91e85d9b67dacf7cb53fc5d847472eab786e87443c43f769744bbdbc1f77f3007 WHIRLPOOL 9ce82e2819f001312e91a874e3c5b47c307c43f8b2a7515596a278b15ef9975183eaeaeb97d509c989b815bed9c8b17b2ba9444fed21ba1b7b03be5c8f085b1c +DIST Glances-2.7.1.tar.gz 13277845 SHA256 afdfdb4b14ae514422c4a882788800473c6cff53719266735c9a2af400c14b86 SHA512 c13e7fb8e6025d284cfabade4eaf10189f6605f53f219889c3c636780ac11773c579f39d956a9eebcf5618de2bffec42446982fb892d775109341af74e621b83 WHIRLPOOL 119792772e45e4a23ca7ddb0e84081eb79a6e72d68311fcba42f4305ae068b105a882b8dda3d14b3f9da6fb7fa55208a125d16c4170767c623c1d1286927fa11 +DIST Glances-2.8.1.tar.gz 5530699 SHA256 12c10f9a9cac9c7ba70b0b5aa6551a97599731f2c8751c2cc53232da395c6b8b SHA512 27759f621d5e29e1f4da0465abf9112b3e4146a8644110481000a7bf0fc8f2d3171a8082e7db7acd9a4a12558a8b3de8db1ae1bf0b1e5503b618aa5648b07c10 WHIRLPOOL 93ea9affc069a7c00fc7795d9afa625bfe9ba6dddf784c45403a305b7c4e186f964eebf15638709487aa66040f8270daf5bae06bf0ece434da1a7011a4085a5a +DIST Glances-2.9.1.tar.gz 5644812 SHA256 03ce730566e183372ee73e45729485396bb62d1c0f108a00f27feff43206fc52 SHA512 b4629d0225c2b027f0b983ed40801910e44043e232313c5f2920d90053224a33406575ab03d21e2b7ee5195528a842d6cd806c50c45258a6bb3f6621f4fb84a7 WHIRLPOOL c2cf912f53877035d46f3f4a648356c3327dcfaeb963021d0712d88ce65b99f60f2efcb71df483a6056a7b3fad285300fb990b86827df3f99ec3de19c0e19dba +EBUILD glances-2.10-r1.ebuild 2369 SHA256 f2b98512da3f7b156d445098f9d515de5f56b108cecc2a445654069738bc7ac2 SHA512 4ce296629091d25c8d2764c78efa30e7587c63858d5c57e87e7a8a1df5d8dd93fc53fe558246d527ae65cd455f190cebbf2429394a6dbebc8a7257b662ef8bd5 WHIRLPOOL 504917f94506927e1f6c63926b67e28303ccf1b0069b02c285d7c4a5f027258408a63665f5664581f0c63e577c4ab5ce65ded22832e953be0b85132efcf41930 +EBUILD glances-2.10.ebuild 2320 SHA256 65ee007d242bae36596b66502ae9e4681e2b626c10563305f8a03ca2706aa222 SHA512 e8e1335d030349518848d682b634d4fd5a1ed501eda596ed499cce469ee50d24b6bb3f4b5df0073db154b48ee995e93e9a44352fce1430224786da669b9a84a0 WHIRLPOOL bc03f4740e8a0b7608bd298aff56ee2f042eabb2829ebee06edcaf51961795dc0b95538ea57ca41092404663f1e27c9325e01cd9b14559dfd7588be53e16be27 +EBUILD glances-2.11.ebuild 2369 SHA256 f2b98512da3f7b156d445098f9d515de5f56b108cecc2a445654069738bc7ac2 SHA512 4ce296629091d25c8d2764c78efa30e7587c63858d5c57e87e7a8a1df5d8dd93fc53fe558246d527ae65cd455f190cebbf2429394a6dbebc8a7257b662ef8bd5 WHIRLPOOL 504917f94506927e1f6c63926b67e28303ccf1b0069b02c285d7c4a5f027258408a63665f5664581f0c63e577c4ab5ce65ded22832e953be0b85132efcf41930 +EBUILD glances-2.7.1.ebuild 2318 SHA256 60d93cd5b32172f58baea03d5166967471efaee3eefd4515048f57a0a0b62754 SHA512 47c272307488b6a637658bbb391d4e920049a50ad49c1e5830d11a13a63df693d9ae75904d87e13ee0144ee04dee1f94afc627222a0e5a9e8ebbede2ef110c0f WHIRLPOOL 7e7091429e6d99861efbdf6ffa5fa25c3564407175e469a4fc8fcfc70aab431e4ecf9b3614f19abab7e22c4e0036494934e229be3b20a263493f70ff4881ee21 +EBUILD glances-2.8.1.ebuild 2320 SHA256 65ee007d242bae36596b66502ae9e4681e2b626c10563305f8a03ca2706aa222 SHA512 e8e1335d030349518848d682b634d4fd5a1ed501eda596ed499cce469ee50d24b6bb3f4b5df0073db154b48ee995e93e9a44352fce1430224786da669b9a84a0 WHIRLPOOL bc03f4740e8a0b7608bd298aff56ee2f042eabb2829ebee06edcaf51961795dc0b95538ea57ca41092404663f1e27c9325e01cd9b14559dfd7588be53e16be27 +EBUILD glances-2.9.1.ebuild 2320 SHA256 65ee007d242bae36596b66502ae9e4681e2b626c10563305f8a03ca2706aa222 SHA512 e8e1335d030349518848d682b634d4fd5a1ed501eda596ed499cce469ee50d24b6bb3f4b5df0073db154b48ee995e93e9a44352fce1430224786da669b9a84a0 WHIRLPOOL bc03f4740e8a0b7608bd298aff56ee2f042eabb2829ebee06edcaf51961795dc0b95538ea57ca41092404663f1e27c9325e01cd9b14559dfd7588be53e16be27 +MISC ChangeLog 4319 SHA256 3b9d10cd3689c1944c434a7f28a7da072ae704ea9131665d90c8fc1a720c695f SHA512 b6abfaaa91eb7e6f8fbc384dd17f8fc5983ad6a01afd374e112e8a7fe0576ab82b07b09f87f0ed5721f47bd8a8875532848bd4ab9dac345c7f36c41c3734806b WHIRLPOOL f6a283b126512bd40de769f564abc60f4d4a979f42961ab757ec37b85f84a25f109a1758ca4af09abf2b637013f60617520e7f46b844f1877d61f5f18e123a83 +MISC ChangeLog-2015 4375 SHA256 459215bc5426c31b9025be4cc9b5ccae94439f5f21123c3f731203f1d4f51127 SHA512 63214c1428d7f0493234191c9cb59fff712e058526c886bb58315dca1e2d6d00a63e2cf48c49eb14f29adb11ce77b2f161d00eb7e41f60b4029719d759ccad37 WHIRLPOOL bbe6420a3509c215f18162d94dea0edd00375f9b5316d73a4fdc28d68a537f63316c9e7e6da4c1c0f10b2e308063d9e454698c8aa917955d494a05e3dd1c9237 +MISC metadata.xml 599 SHA256 79354cd64c62d97eaa579ed1dc94964704bd39b509e671a7d6b49498c0baa370 SHA512 a847b6f7e3db008c2875f1fcf352058ac41f516c2548ac8a7256833a7b08331da6c7a70cfaf212bc070fdea7978c82359cf13b7f32343dd813f76595238519e8 WHIRLPOOL 63a198bf9211dbf4734fe79acc3e87ecf1798dbc5c3c8d6fb3202ed0d0a4e7a4913429c0fb5b78cc9c6533799e5f46da50f5c981f2eb946b7136bb82b5140653 diff --git a/sys-process/glances/glances-2.10-r1.ebuild b/sys-process/glances/glances-2.10-r1.ebuild new file mode 100644 index 000000000000..98a897e02d66 --- /dev/null +++ b/sys-process/glances/glances-2.10-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + # Remove duplicate entries of a prebuilt doc build and + # ensure install of the file glances.conf in /etc/${PN} + sed \ + -e '/share\/doc\/glances/d' \ + -e "s/'CONTRIBUTING.md',//" \ + -e "s:'conf/glances.conf':('/etc/glances', ['conf/glances.conf':g" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf ) + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Action script feature" dev-python/pystache + optfeature "Autodiscover mode" dev-python/zeroconf + optfeature "Battery monitoring support" dev-python/batinfo + optfeature "Docker monitoring support" dev-python/docker-py + optfeature "Graphical/chart support" dev-python/matplotlib + # https://bitbucket.org/gleb_zhulik/py3sensors + # optfeature "Hardware monitoring support" dev-python/py3sensors + optfeature "IP plugin" dev-python/netifaces + optfeature "InfluxDB export module" dev-python/influxdb + optfeature "Hard drive temperature monitoring" app-admin/hddtemp + optfeature "Quicklook CPU info" dev-python/py-cpuinfo + optfeature "RAID support" dev-python/pymdstat + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika + # https://github.com/banjiewen/bernhard + # optfeature "Riemann export" dev-python/bernhard + optfeature "SNMP support" dev-python/pysnmp + optfeature "StatsD export module" dev-python/statsd + optfeature "Web server mode" dev-python/bottle +} diff --git a/sys-process/glances/glances-2.10.ebuild b/sys-process/glances/glances-2.10.ebuild new file mode 100644 index 000000000000..84f43f88532d --- /dev/null +++ b/sys-process/glances/glances-2.10.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + # Remove duplicate entries of a prebuilt doc build and + # ensure install of the file glances.conf in /etc/${PN} + sed \ + -e '/share\/doc\/glances/d' \ + -e "s:'conf/glances.conf':('etc/glances', ['conf/glances.conf':g" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS=( README.rst conf/glances.conf ) + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Action script feature" dev-python/pystache + optfeature "Autodiscover mode" dev-python/zeroconf + optfeature "Battery monitoring support" dev-python/batinfo + optfeature "Docker monitoring support" dev-python/docker-py + optfeature "Graphical/chart support" dev-python/matplotlib + # https://bitbucket.org/gleb_zhulik/py3sensors + # optfeature "Hardware monitoring support" dev-python/py3sensors + optfeature "IP plugin" dev-python/netifaces + optfeature "InfluxDB export module" dev-python/influxdb + optfeature "Hard drive temperature monitoring" app-admin/hddtemp + optfeature "Quicklook CPU info" dev-python/py-cpuinfo + optfeature "RAID support" dev-python/pymdstat + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika + # https://github.com/banjiewen/bernhard + # optfeature "Riemann export" dev-python/bernhard + optfeature "SNMP support" dev-python/pysnmp + optfeature "StatsD export module" dev-python/statsd + optfeature "Web server mode" dev-python/bottle +} diff --git a/sys-process/glances/glances-2.11.ebuild b/sys-process/glances/glances-2.11.ebuild new file mode 100644 index 000000000000..98a897e02d66 --- /dev/null +++ b/sys-process/glances/glances-2.11.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + # Remove duplicate entries of a prebuilt doc build and + # ensure install of the file glances.conf in /etc/${PN} + sed \ + -e '/share\/doc\/glances/d' \ + -e "s/'CONTRIBUTING.md',//" \ + -e "s:'conf/glances.conf':('/etc/glances', ['conf/glances.conf':g" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf ) + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Action script feature" dev-python/pystache + optfeature "Autodiscover mode" dev-python/zeroconf + optfeature "Battery monitoring support" dev-python/batinfo + optfeature "Docker monitoring support" dev-python/docker-py + optfeature "Graphical/chart support" dev-python/matplotlib + # https://bitbucket.org/gleb_zhulik/py3sensors + # optfeature "Hardware monitoring support" dev-python/py3sensors + optfeature "IP plugin" dev-python/netifaces + optfeature "InfluxDB export module" dev-python/influxdb + optfeature "Hard drive temperature monitoring" app-admin/hddtemp + optfeature "Quicklook CPU info" dev-python/py-cpuinfo + optfeature "RAID support" dev-python/pymdstat + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika + # https://github.com/banjiewen/bernhard + # optfeature "Riemann export" dev-python/bernhard + optfeature "SNMP support" dev-python/pysnmp + optfeature "StatsD export module" dev-python/statsd + optfeature "Web server mode" dev-python/bottle +} diff --git a/sys-process/glances/glances-2.7.1.ebuild b/sys-process/glances/glances-2.7.1.ebuild new file mode 100644 index 000000000000..fae0504a48d6 --- /dev/null +++ b/sys-process/glances/glances-2.7.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + # Remove duplicate entries of a prebuilt doc build and + # ensure install of the file glances.conf in /etc/${PN} + sed \ + -e '/share\/doc\/glances/d' \ + -e "s:'conf/glances.conf':('etc/glances', ['conf/glances.conf':g" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS=( README.rst conf/glances.conf ) + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Action script feature" dev-python/pystache + optfeature "Autodiscover mode" dev-python/zeroconf + optfeature "Battery monitoring support" dev-python/batinfo + optfeature "Docker monitoring support" dev-python/docker-py + optfeature "Graphical/chart support" dev-python/matplotlib + # https://bitbucket.org/gleb_zhulik/py3sensors + # optfeature "Hardware monitoring support" dev-python/py3sensors + optfeature "IP plugin" dev-python/netifaces + optfeature "InfluxDB export module" dev-python/influxdb + optfeature "Hard drive temperature monitoring" app-admin/hddtemp + optfeature "Quicklook CPU info" dev-python/py-cpuinfo + optfeature "RAID support" dev-python/pymdstat + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika + # https://github.com/banjiewen/bernhard + # optfeature "Riemann export" dev-python/bernhard + optfeature "SNMP support" dev-python/pysnmp + optfeature "StatsD export module" dev-python/statsd + optfeature "Web server mode" dev-python/bottle +} diff --git a/sys-process/glances/glances-2.8.1.ebuild b/sys-process/glances/glances-2.8.1.ebuild new file mode 100644 index 000000000000..84f43f88532d --- /dev/null +++ b/sys-process/glances/glances-2.8.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + # Remove duplicate entries of a prebuilt doc build and + # ensure install of the file glances.conf in /etc/${PN} + sed \ + -e '/share\/doc\/glances/d' \ + -e "s:'conf/glances.conf':('etc/glances', ['conf/glances.conf':g" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS=( README.rst conf/glances.conf ) + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Action script feature" dev-python/pystache + optfeature "Autodiscover mode" dev-python/zeroconf + optfeature "Battery monitoring support" dev-python/batinfo + optfeature "Docker monitoring support" dev-python/docker-py + optfeature "Graphical/chart support" dev-python/matplotlib + # https://bitbucket.org/gleb_zhulik/py3sensors + # optfeature "Hardware monitoring support" dev-python/py3sensors + optfeature "IP plugin" dev-python/netifaces + optfeature "InfluxDB export module" dev-python/influxdb + optfeature "Hard drive temperature monitoring" app-admin/hddtemp + optfeature "Quicklook CPU info" dev-python/py-cpuinfo + optfeature "RAID support" dev-python/pymdstat + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika + # https://github.com/banjiewen/bernhard + # optfeature "Riemann export" dev-python/bernhard + optfeature "SNMP support" dev-python/pysnmp + optfeature "StatsD export module" dev-python/statsd + optfeature "Web server mode" dev-python/bottle +} diff --git a/sys-process/glances/glances-2.9.1.ebuild b/sys-process/glances/glances-2.9.1.ebuild new file mode 100644 index 000000000000..84f43f88532d --- /dev/null +++ b/sys-process/glances/glances-2.9.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +DESCRIPTION="CLI curses based monitoring tool" +HOMEPAGE="https://github.com/nicolargo/glances" +SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# There is another optional extra batinfo, absent from portage +RDEPEND="${DEPEND} + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +S="${WORKDIR}/${P^}" + +pkg_setup() { + linux-info_pkg_setup +} + +python_prepare_all() { + # Remove duplicate entries of a prebuilt doc build and + # ensure install of the file glances.conf in /etc/${PN} + sed \ + -e '/share\/doc\/glances/d' \ + -e "s:'conf/glances.conf':('etc/glances', ['conf/glances.conf':g" \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + # add an intended file from original data set from setup.py to DOCS + local DOCS=( README.rst conf/glances.conf ) + # setup for pre-built html docs in setup.py + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "Action script feature" dev-python/pystache + optfeature "Autodiscover mode" dev-python/zeroconf + optfeature "Battery monitoring support" dev-python/batinfo + optfeature "Docker monitoring support" dev-python/docker-py + optfeature "Graphical/chart support" dev-python/matplotlib + # https://bitbucket.org/gleb_zhulik/py3sensors + # optfeature "Hardware monitoring support" dev-python/py3sensors + optfeature "IP plugin" dev-python/netifaces + optfeature "InfluxDB export module" dev-python/influxdb + optfeature "Hard drive temperature monitoring" app-admin/hddtemp + optfeature "Quicklook CPU info" dev-python/py-cpuinfo + optfeature "RAID support" dev-python/pymdstat + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika + # https://github.com/banjiewen/bernhard + # optfeature "Riemann export" dev-python/bernhard + optfeature "SNMP support" dev-python/pysnmp + optfeature "StatsD export module" dev-python/statsd + optfeature "Web server mode" dev-python/bottle +} diff --git a/sys-process/glances/metadata.xml b/sys-process/glances/metadata.xml new file mode 100644 index 000000000000..63f8470d66bc --- /dev/null +++ b/sys-process/glances/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fdsfgs@krutt.org</email> + <name>soredake</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Glances is a cross-platform curses-based monitoring tool written in Python. +</longdescription> + <upstream> + <remote-id type="pypi">Glances</remote-id> + <remote-id type="github">nicolargo/glances</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/htop/Manifest b/sys-process/htop/Manifest new file mode 100644 index 000000000000..39eaacbf7dd4 --- /dev/null +++ b/sys-process/htop/Manifest @@ -0,0 +1,13 @@ +AUX htop-1.0.3-tinfo.patch 2588 SHA256 2b7b939a9e2f7ee06885f2b5e7ea4931647229eabb175cb408d1d47723bd629b SHA512 071a24efb5536baae05478bb2035da0c6f1f42c7d99be92d6e8f534d78ea5ba90bdb4a8fd4d9fa27cad2097f2b593bf60dd9fa6a84758eb2f3cfbc5a58f02bf4 WHIRLPOOL 5c141c7ec1624e9b7dbf57db79262bdb9d3c68fdd37ba4696b700f53ade8a41af618f44d1e947d47e081e4290ca31265aaf7945505131a06765943005ada7dff +AUX htop-2.0.0-tinfo.patch 3850 SHA256 f061093acc1b7f43d5b2c7ee21c2c05f1163dd93e9343f11b3d3a49f3501de81 SHA512 8b2d64eaafa1dbf7217371750e9cd8bccaed80ff416f2773ce387dda8fbb81093f52392fc6b6b7377fc22b7831d5d9601ab54319df6681df090cd11ee93eb4fd WHIRLPOOL 5e4e48974e95a70035e0ac80e3006c728bae50cb3da82cb18c9197a147ed8badddce0ef55ebc8661f1ff819edfb9b6791803e5a65ca8751994b6ca90c93023d6 +AUX htop-2.0.2-tinfo.patch 3655 SHA256 5534d481252f96843f854b835a71bca274892fac91dc50475424a399e73824a6 SHA512 33273ddcb89e955ef499854fb9361b65bafa83cce8e91f4ef62dd70fc29e58e169148c957d9cd0c5a123b9e5fe66f838212c8066bff12ada38c430087d02b210 WHIRLPOOL e8da5df7695c86629dfa75abfa11f99ac55ff29ae814e5084d05af6c03e6d2c28135554505495a62e69ca8d3610bb4cfac3d3088252ae71d0deaaf8c2ccb116f +DIST htop-1.0.3.tar.gz 399306 SHA256 055c57927f75847fdc222b5258b079a9542811a9dcf5421c615c7e17f55d1829 SHA512 4c5c784b093bcad06eb2e8d8bb215e14f6e838a3d47d8da8402344c270c1724f85d0bcde2899571ba5d0e5a02274a0c3390a76fed61785b2604b51351f08f232 WHIRLPOOL 14b8879210025aff9a1e098314a1b35d2bb6fcfaab42b95670e3726c61d471b1618486e6fc3dbbc97043e85f9a22196d97e676f3b2dd98250326be8527bdebbe +DIST htop-2.0.1.tar.gz 477196 SHA256 f410626dfaf6b70fdf73cd7bb33cae768869707028d847fed94a978e974f5666 SHA512 57991a55b69028c01549b067ec749099466df5b08a0ed9a65dd779e6d2c8ee0a5d9c330bb6c727b04a349146ad441b7115718e433d1f8232f74b28903fb351ff WHIRLPOOL 0bfd3bd5eff3a4597b349e83510cefaf8dbf0dacf8161ab0fea50216a44915cbf7d506d1479daf4e064803e0b6a0f65180fa7aa52d6ab161774a579ccb1dfe7d +DIST htop-2.0.2.tar.gz 476364 SHA256 179be9dccb80cee0c5e1a1f58c8f72ce7b2328ede30fb71dcdf336539be2f487 SHA512 1c9bf71a36c56b301667aa6d03756fc757fbcb63e848d9581d10db3df6193cdeb00e55ceb6e2392794ac03ea034b04459a8fe550b3ac2318cd86263a74c78cda WHIRLPOOL 24468bbe22b67e84302561c4e3b593f7fa29a862e29ac66a0c5a2605c47885edf0cdfbbda7cd61519cea8ae51cb50e57ad3284e1fc728199088c60400a48b631 +EBUILD htop-1.0.3-r1.ebuild 1936 SHA256 77c720860d0b593d6cf1310266c0a19797e0b928816b8198b49ae33fbd1a0f53 SHA512 cbfad60ba2750f95b99ed0d51094a457c20a67954d8b3bf9878ff666c8b378e913415bd86703d1b1dc3f51ba63afd40ef7976eb9de902c81ba3221897355c487 WHIRLPOOL 4997816ff7c9a5c663e5dc1fa56b559969865974c7ae9ea5e0e804b2f1f924204788b4b52030c4feba16085f5e729b7ffa26b06aa606883ff2e672158ec63879 +EBUILD htop-1.0.3.ebuild 2097 SHA256 3fbd45697556f6b03916db29e3ab3168828f1623bcc3d987f3ff6122e65a3813 SHA512 ee81709d86fa64b5e9900f99f75f6f08bbb1ad2c64a9c456e53a85fd94067e53103707b46f8b96d0e771f983b7613fe860e14c018e379efba557906bb9b2cbfb WHIRLPOOL 090ff7fd1459ba7d1f4aa06e04a88456b746629516b2036a3d77e9526b77a50b5581b048df0a0dad4d6d380f693b5b4a109ba7f9202c02b4030e46718fe5e524 +EBUILD htop-2.0.1.ebuild 1388 SHA256 903c57dc293f80851c0f1f36c3d581cb92b882fb6e1905f43c6e1e318457cd68 SHA512 fcf3f2f083d5d26f2946402d83e721bff4c395b8497c551cc4be3ac25f78e904a3df8c6e78970689398526bf84bcc17be5e1e43e81b96cad452fe516251df6dd WHIRLPOOL f0f9f481559ee507c7c22c10e68d171abe0a817f81d0ee508d9a7648434b897501d83e757179557e347e64a4c8d993e1b554d8c4257c691578b4193c1fa1dfed +EBUILD htop-2.0.2.ebuild 1378 SHA256 09de413bf113248d8e5451e4572c0ff9f8c7e5ad7c12a148fe84f5961d8b44b6 SHA512 3a72437bdf1d2d7ee2ec53fe38912fa5e56e4344de29913934cb46b026f138c2756b97421528fa2859a99ae016ab1f027dc3961c0c6507ff5790e49c2e14b0d7 WHIRLPOOL 20435e98aaca15ea4c079912aab4ab673aee3bfdd0bdc3763af3eabcbe69f021b5e460ff9f3a16811487bf6877b7899da13c043b36b9ec8f4505fe576a0aa273 +MISC ChangeLog 5582 SHA256 f3e9468e9f02ed6e44fbe7e375b6aa99b9c7825d4b02e004efbe3245d5586ed1 SHA512 047b26fb043c883aea58d791e473539dc35e2acd467a26fab83f3a2043c8647b19fb9b07e951e5acd425ee96e28e89a8b7b394bceb0cbe58bf14d36278a13798 WHIRLPOOL c2c90d68797e1c6e3e3cf6706530452d9092f4f19f014854973ffc2ebb99d963fe888f1ed6f8b9399de3940600ccb6a1d1c3e0e2a9261cf11315e493a90e8845 +MISC ChangeLog-2015 20241 SHA256 0fe9ba9376f78a3e0300e3f82cae399897c6d43e1a87a062bcf7afae8d8e0cc3 SHA512 e0796ed68ee5a08ecd0a323762e49755d6f34be058dd06b3c38235d32b5677faf05faa886be059e184d39d86b5d29c02e181a0a5a5dc2290e5cfe2166034ceea WHIRLPOOL b4578af6d5bf213b0f0d3c873c40977818a19a605cbd4a158cf5c96576e48ac02ebd0e7e1cf9d783c30a9f8510f1c73c4726cd66d56d76f18866f1df47dad40a +MISC metadata.xml 830 SHA256 3ce82fea0c9491ece33c2be8298cbe997066e40c6ff18e54ce48742a116df16a SHA512 0019a634b333e013f48aacd2c59825a7650cb02c3a6f31b57963e16845cef07d1f6b4108fece6cd12ed29d5730c52aa87d43d81303b359bbbc661b4b60e19d05 WHIRLPOOL 4d1bab68438a081b96bceb5149800f0f7c3d2d53a20fb49999d45664de71e298b112f23bb46c9e5d355be570a91944baed3cbc5a89b8fbb5b024e806ad6e256b diff --git a/sys-process/htop/files/htop-1.0.3-tinfo.patch b/sys-process/htop/files/htop-1.0.3-tinfo.patch new file mode 100644 index 000000000000..62a887baf376 --- /dev/null +++ b/sys-process/htop/files/htop-1.0.3-tinfo.patch @@ -0,0 +1,62 @@ +diff --git a/Makefile.am b/Makefile.am +index 820e2e5..85f49e9 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -36,6 +36,8 @@ SUFFIXES = .h + BUILT_SOURCES = $(myhtopheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h + ++htop_LDADD = $(NCURSES_LIBS) ++ + profile: + $(MAKE) all CFLAGS="-pg" AM_CPPFLAGS="-pg -O2 -DNDEBUG" + +diff --git a/configure.ac b/configure.ac +index 2b934e8..3593885 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -20,6 +20,7 @@ AM_PROG_CC_C_O + AC_DISABLE_SHARED + AC_ENABLE_STATIC + AC_PROG_LIBTOOL ++PKG_PROG_PKG_CONFIG + + # Checks for libraries. + AC_CHECK_LIB([m], [ceil], [], [missing_libraries="$missing_libraries libm"]) +@@ -89,20 +90,24 @@ fi + + AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") + if test "x$enable_unicode" = xyes; then +- AC_CHECK_LIB([ncursesw], [refresh], [], [ +- missing_libraries="$missing_libraries libncursesw" +- AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) ++ PKG_CHECK_MODULES([NCURSES], [ncursesw],[ ++ AC_CHECK_LIB([ncursesw], [refresh], [], [ ++ missing_libraries="$missing_libraries libncursesw" ++ AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) ++ ]) ++ AC_CHECK_HEADERS([ncursesw/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) + ]) +- AC_CHECK_HEADERS([ncursesw/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) + else +- AC_CHECK_LIB([ncurses], [refresh], [], [missing_libraries="$missing_libraries libncurses"]) +- AC_CHECK_HEADERS([curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ PKG_CHECK_MODULES([NCURSES], [ncurses],[ ++ AC_CHECK_LIB([ncurses], [refresh], [], [missing_libraries="$missing_libraries libncurses"]) ++ AC_CHECK_HEADERS([curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + fi + + if test ! -z "$missing_libraries"; then diff --git a/sys-process/htop/files/htop-2.0.0-tinfo.patch b/sys-process/htop/files/htop-2.0.0-tinfo.patch new file mode 100644 index 000000000000..e04019519e0c --- /dev/null +++ b/sys-process/htop/files/htop-2.0.0-tinfo.patch @@ -0,0 +1,82 @@ +--- htop-2.0.0/configure.ac ++++ htop-2.0.0/configure.ac +@@ -23,6 +23,7 @@ + AC_DISABLE_SHARED + AC_ENABLE_STATIC + AC_PROG_LIBTOOL ++PKG_PROG_PKG_CONFIG + + # Checks for platform. + # ---------------------------------------------------------------------- +@@ -175,32 +176,36 @@ + + AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") + if test "x$enable_unicode" = xyes; then +- HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", +- HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config", +- HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config", +- HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], +- HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], +- HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], +- missing_libraries="$missing_libraries libncursesw" +- AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) +- )))))) +- +- AC_CHECK_HEADERS([ncursesw/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ PKG_CHECK_MODULES([NCURSES], [ncursesw],[ ++ HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", ++ HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config", ++ HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config", ++ HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], ++ HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], ++ HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], ++ missing_libraries="$missing_libraries libncursesw" ++ AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) ++ )))))) ++ ++ AC_CHECK_HEADERS([ncursesw/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + else +- HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", +- HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", +- HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES], +- HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES], +- missing_libraries="$missing_libraries libncurses" +- )))) ++ PKG_CHECK_MODULES([NCURSES], [ncurses],[ ++ HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", ++ HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", ++ HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES], ++ HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES], ++ missing_libraries="$missing_libraries libncurses" ++ )))) + +- AC_CHECK_HEADERS([curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ AC_CHECK_HEADERS([curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + fi + + if test "$my_htop_platform" = "freebsd"; then +--- htop-2.0.0/Makefile.am ++++ htop-2.0.0/Makefile.am +@@ -85,6 +85,8 @@ + BUILT_SOURCES = $(myhtopheaders) $(myhtopplatheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources) config.h + ++htop_LDADD = $(NCURSES_LIBS) ++ + target: + echo $(htop_SOURCES) + diff --git a/sys-process/htop/files/htop-2.0.2-tinfo.patch b/sys-process/htop/files/htop-2.0.2-tinfo.patch new file mode 100644 index 000000000000..4a536c0251a1 --- /dev/null +++ b/sys-process/htop/files/htop-2.0.2-tinfo.patch @@ -0,0 +1,73 @@ +--- htop-2.0.2/configure.ac ++++ htop-2.0.2/configure.ac +@@ -185,32 +185,36 @@ + + AC_ARG_ENABLE(unicode, [AS_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes") + if test "x$enable_unicode" = xyes; then +- HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", +- HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config", +- HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config", +- HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], +- HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], +- HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], +- missing_libraries="$missing_libraries libncursesw" +- AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) +- )))))) ++ PKG_CHECK_MODULES([NCURSES], [ncursesw],[ ++ HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", ++ HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config", ++ HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config", ++ HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], ++ HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], ++ HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], ++ missing_libraries="$missing_libraries libncursesw" ++ AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) ++ )))))) + +- AC_CHECK_HEADERS([ncursesw/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ AC_CHECK_HEADERS([ncursesw/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + else +- HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", +- HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", +- HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES], +- HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES], +- missing_libraries="$missing_libraries libncurses" +- )))) ++ PKG_CHECK_MODULES([NCURSES], [ncurses],[ ++ HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", ++ HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", ++ HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES], ++ HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES], ++ missing_libraries="$missing_libraries libncurses" ++ )))) + +- AC_CHECK_HEADERS([curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/curses.h],[:], +- [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], +- [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ AC_CHECK_HEADERS([curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/curses.h],[:], ++ [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], ++ [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) ++ ]) + fi + + if test "$my_htop_platform" = "freebsd"; then +--- htop-2.0.2/Makefile.am ++++ htop-2.0.2/Makefile.am +@@ -85,6 +85,8 @@ + BUILT_SOURCES = $(myhtopheaders) $(myhtopplatheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources) config.h + ++htop_LDADD = $(NCURSES_LIBS) ++ + target: + echo $(htop_SOURCES) + diff --git a/sys-process/htop/htop-1.0.3-r1.ebuild b/sys-process/htop/htop-1.0.3-r1.ebuild new file mode 100644 index 000000000000..3f35a581888a --- /dev/null +++ b/sys-process/htop/htop-1.0.3-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux oom openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +# config.h problems +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=("${FILESDIR}/${P}-tinfo.patch") + +pkg_setup() { + if use kernel_FreeBSD && ! [[ -f ${ROOT}/compat/linux/proc/stat && -f ${ROOT}/compat/linux/proc/meminfo ]]; then + echo + eerror "htop requires linprocfs mounted at /compat/linux/proc to build and function." + eerror "To mount it, type:" + [ -d /compat/linux/proc ] || eerror "mkdir -p /compat/linux/proc" + eerror "mount -t linprocfs none /compat/linux/proc" + eerror "Alternatively, place this information into /etc/fstab" + echo + die "htop needs /compat/linux/proc mounted" + fi + + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + autotools-utils_src_prepare +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + use kernel_FreeBSD && myeconfargs+=( --with-proc=/compat/linux/proc ) + + myeconfargs+=( + $(use_enable openvz) + $(use_enable kernel_linux cgroup) + $(use_enable vserver) + $(use_enable unicode) + $(use_enable oom) + --enable-taskstats + ) + autotools-utils_src_configure +} diff --git a/sys-process/htop/htop-1.0.3.ebuild b/sys-process/htop/htop-1.0.3.ebuild new file mode 100644 index 000000000000..1665da56d72f --- /dev/null +++ b/sys-process/htop/htop-1.0.3.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils linux-info python-any-r1 + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux oom openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +# config.h problems +AUTOTOOLS_IN_SOURCE_BUILD=1 + +PATCHES=("${FILESDIR}/${P}-tinfo.patch") + +pkg_setup() { + if use kernel_FreeBSD && ! [[ -f ${ROOT}/compat/linux/proc/stat && -f ${ROOT}/compat/linux/proc/meminfo ]]; then + echo + eerror "htop requires linprocfs mounted at /compat/linux/proc to build and function." + eerror "To mount it, type:" + [ -d /compat/linux/proc ] || eerror "mkdir -p /compat/linux/proc" + eerror "mount -t linprocfs none /compat/linux/proc" + eerror "Alternatively, place this information into /etc/fstab" + echo + die "htop needs /compat/linux/proc mounted" + fi + + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + python-any-r1_pkg_setup + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + sed \ + -e '1c\#!'"${EPREFIX}"'/usr/bin/python' \ + -i scripts/MakeHeader.py || die + + autotools-utils_src_prepare +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + use kernel_FreeBSD && myeconfargs+=( --with-proc=/compat/linux/proc ) + + myeconfargs+=( + $(use_enable openvz) + $(use_enable kernel_linux cgroup) + $(use_enable vserver) + $(use_enable unicode) + $(use_enable oom) + --enable-taskstats + ) + autotools-utils_src_configure +} diff --git a/sys-process/htop/htop-2.0.1.ebuild b/sys-process/htop/htop-2.0.1.ebuild new file mode 100644 index 000000000000..a2b10fdb96a6 --- /dev/null +++ b/sys-process/htop/htop-2.0.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools linux-info + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +PATCHES=( + "${FILESDIR}/${PN}-2.0.0-tinfo.patch" +) + +pkg_setup() { + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + default + eautoreconf +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + myeconfargs+=( + # fails to build against recent hwloc versions + --disable-hwloc + --enable-taskstats + $(use_enable kernel_linux cgroup) + $(use_enable kernel_linux linux-affinity) + $(use_enable openvz) + $(use_enable unicode) + $(use_enable vserver) + ) + econf ${myeconfargs[@]} +} diff --git a/sys-process/htop/htop-2.0.2.ebuild b/sys-process/htop/htop-2.0.2.ebuild new file mode 100644 index 000000000000..b8537f91509d --- /dev/null +++ b/sys-process/htop/htop-2.0.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools linux-info + +DESCRIPTION="interactive process viewer" +HOMEPAGE="http://hisham.hm/htop/" +SRC_URI="http://hisham.hm/htop/releases/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="kernel_FreeBSD kernel_linux openvz unicode vserver" + +RDEPEND="sys-libs/ncurses:0=[unicode?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( ChangeLog README ) + +CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS" + +PATCHES=( + "${FILESDIR}/${PN}-2.0.2-tinfo.patch" +) + +pkg_setup() { + if ! has_version sys-process/lsof; then + ewarn "To use lsof features in htop(what processes are accessing" + ewarn "what files), you must have sys-process/lsof installed." + fi + + linux-info_pkg_setup +} + +src_prepare() { + rm missing || die + + default + eautoreconf +} + +src_configure() { + [[ $CBUILD != $CHOST ]] && export ac_cv_file__proc_{meminfo,stat}=yes #328971 + + local myeconfargs=() + + myeconfargs+=( + # fails to build against recent hwloc versions + --disable-hwloc + --enable-taskstats + $(use_enable kernel_linux cgroup) + $(use_enable kernel_linux linux-affinity) + $(use_enable openvz) + $(use_enable unicode) + $(use_enable vserver) + ) + econf ${myeconfargs[@]} +} diff --git a/sys-process/htop/metadata.xml b/sys-process/htop/metadata.xml new file mode 100644 index 000000000000..31af477b5ce7 --- /dev/null +++ b/sys-process/htop/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>idl0r@gentoo.org</email> + <name>Christian Ruppert</name> + </maintainer> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <use> + <flag name="oom">Add column to track the OOM-killer score of processes</flag> + <flag name="openvz">Enable openvz support</flag> + <flag name="vserver">Enable vserver support</flag> + </use> + <longdescription> +htop is an interactive process viewer for Linux. It aims to be a 'better top': +you can scroll the process list vertically and horizontally, and select a +process to be killed with the arrow keys instead of by typing its process id. + </longdescription> +</pkgmetadata> diff --git a/sys-process/incron/Manifest b/sys-process/incron/Manifest new file mode 100644 index 000000000000..80ad904d44e5 --- /dev/null +++ b/sys-process/incron/Manifest @@ -0,0 +1,8 @@ +AUX incron-0.5.10+gcc-4.7.patch 335 SHA256 5d921eeba25467b2d3d529915a8c671dc16eb3dfd5abecb08e5a50d297615b06 SHA512 d5f78513aba03c02b0f0f69000a0c9c1e8a0e3a5011fc85645f188b26cbcf958532b1fe55d91949708ff14fe36e372dc0f7423b82b634a993081ad143e0fb682 WHIRLPOOL 95716d2f29ea2e8cece6b0bba2e827cc81659488894fe193521af8ef3d547d3b0c51b91c496b967adde4229dfdbb292e7f8dc24a60d918f47bba0c0d2e78bee8 +AUX incrond.init 435 SHA256 ece2773d9af383b9d9c41b057174c2c0f8d162e5a7c31f01f8abf8fe2d209927 SHA512 11190582fa29bcbbf5f151f9e1ac1f7c74970d4a5a633a5f82102cf8bb574c25376c54d37621dd4fdaa1a99f16c5aefb2332c8f3e3de2ca0eef6783b379a1083 WHIRLPOOL 68789ed04e20293e81f0a2b0aaeac0fc26ecf89d91031474fab66dc071d93403b1f628d1a4c1521c630b397cb9a463fc06a940ede818847333e23a8ce6aa8b74 +AUX incrond.service 155 SHA256 f25b0cdd0bb4f490c0d7974a6e4eb05d190d30b5c5bc9082501b5ad958dd377a SHA512 059043d3607aafb1d469977574eb96478845d17d88f7f61ba23269341c407e443bca36411eedf0753edf0216bd04800128c9557dc8827ffb980d5512f257bb80 WHIRLPOOL 2a9c44157ed732cc6840436ab1128a18e6d050dd604ad3a4b8aeb3f3583065d4cb3b321d123049a1692f94368873dec6f99ef77b6dee931349a332e45a38c7c3 +DIST incron-0.5.10.tar.gz 203158 SHA256 5d4abadb5f16c26e4f728a6433ad22f7655663b5812fbd4f94e852050f38e78a SHA512 653817c35059b5305e059137eac78f21a7d32ccc03fc92ba282eab66ba5f3d2c83a1a571ebdcead8df3ed500a7fd30cfa46375c635450b08d2bd8d00dfe86df3 WHIRLPOOL 563730d7d2ac9122d6650431c259b50f6e0fd5cbbaa2e64383c756722efd9bf6a8595cfee8bceff006afffff8ce49702b6d44de1c4156498fb559f4ef00e3458 +EBUILD incron-0.5.10-r1.ebuild 833 SHA256 347a103e87f112906049d7ec311499ee907e469cb7ea0fed4b36af1b5c9fb225 SHA512 89ce3fcfe569e42a9863d3bbe47db3565e3b8e653d66d5e9304a8d975d51e7f034307375a383d68fec8cc602e5fd561382f0013544aa96710410acf53152a8f9 WHIRLPOOL 3b80a49f8ce641337af04d7b8b715de328c1e54ddcea3507e943a07b41351f7e79ef099e942ec7ae9054a46a95827ee38edb2e7ecff977f0a3aa849a8b07699b +MISC ChangeLog 2450 SHA256 ab4e2c9dfe586cb1d30ef9c701480b9dfbc5f41b49fb01c3cf17b28a60cd07a8 SHA512 97066a83675f94ab9bd6b265d8a8dff1feb13c688737cfbb86ee5307fa6886b5c92c3e07f084f892241b0ac339752a7a22198f2b1069192603772547705140cd WHIRLPOOL d366d3ca86ea02af3cd9486d3ff3311dae54ccd537f656aaab69cfdd9e059ae804a973293edf7adc3ebd3f130b6a30d5898073fcf8873fe8aae1a03636e15df5 +MISC ChangeLog-2015 4009 SHA256 e6c05b672cf5d43d72ff95dcd2db0cbe0f5f50afbc09ada9866c13e9506a69ad SHA512 02f62e6c9e10b449b207103c91967fad2a5024fa62f1ac339a73fe7e3b8b843d58f87dc825d9ef94f8a0dec6b608c31294c380053356f3e4a36a8fd8352a6c5b WHIRLPOOL f08cde94b7c4917143ed35e1c1501de4050f49b92982fc5ed37a2b0721ae474072e622dbaf786e628481bce4a9634f84e34620cda50151f86909e454a1f9660a +MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b diff --git a/sys-process/incron/files/incron-0.5.10+gcc-4.7.patch b/sys-process/incron/files/incron-0.5.10+gcc-4.7.patch new file mode 100644 index 000000000000..a1b690510f34 --- /dev/null +++ b/sys-process/incron/files/incron-0.5.10+gcc-4.7.patch @@ -0,0 +1,12 @@ +Index: incron-0.5.10/icd-main.cpp +=================================================================== +--- incron-0.5.10.orig/icd-main.cpp ++++ incron-0.5.10/icd-main.cpp +@@ -24,6 +24,7 @@ + #include <dirent.h> + #include <syslog.h> + #include <errno.h> ++#include <unistd.h> + #include <sys/poll.h> + #include <sys/stat.h> + #include <cstdio> diff --git a/sys-process/incron/files/incrond.init b/sys-process/incron/files/incrond.init new file mode 100644 index 000000000000..511364eafafc --- /dev/null +++ b/sys-process/incron/files/incrond.init @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use clock logger + need localmount +} + +start() { + ebegin "Starting incrond" + start-stop-daemon --start --pidfile /var/run/incrond.pid --exec /usr/sbin/incrond -- -f /etc/incron.conf + eend $? +} + +stop() { + ebegin "Stopping incrond" + start-stop-daemon --stop --pidfile /var/run/incrond.pid + eend $? +} diff --git a/sys-process/incron/files/incrond.service b/sys-process/incron/files/incrond.service new file mode 100644 index 000000000000..a3d2a9b0b3bb --- /dev/null +++ b/sys-process/incron/files/incrond.service @@ -0,0 +1,9 @@ +[Unit] +Description=Inotify System Scheduler + +[Service] +ExecStart=/usr/sbin/incrond --foreground -f /etc/incron.conf + +[Install] +WantedBy=multi-user.target + diff --git a/sys-process/incron/incron-0.5.10-r1.ebuild b/sys-process/incron/incron-0.5.10-r1.ebuild new file mode 100644 index 000000000000..67fe3b645e7d --- /dev/null +++ b/sys-process/incron/incron-0.5.10-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils linux-info systemd toolchain-funcs + +DESCRIPTION="inotify based cron daemon" +HOMEPAGE="http://incron.aiken.cz/" +SRC_URI="http://inotify.aiken.cz/download/incron/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +# < 2.6.18 => INOTIFY, >= 2.6.18 => INOTIFY_USER +# It should be ok to expect at least 2.6.18 +CONFIG_CHECK="~INOTIFY_USER" + +src_prepare() { + epatch "${FILESDIR}"/${P}+gcc-4.7.patch +} + +src_compile() { + emake CXX=$(tc-getCXX) +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr DOCDIR=/usr/share/doc/${PF} install + + newinitd "${FILESDIR}/incrond.init" incrond + systemd_dounit "${FILESDIR}/incrond.service" + + dodoc CHANGELOG README TODO +} diff --git a/sys-process/incron/metadata.xml b/sys-process/incron/metadata.xml new file mode 100644 index 000000000000..7a38bb900964 --- /dev/null +++ b/sys-process/incron/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +</pkgmetadata> diff --git a/sys-process/iotop/Manifest b/sys-process/iotop/Manifest new file mode 100644 index 000000000000..b09f3bc8cbbc --- /dev/null +++ b/sys-process/iotop/Manifest @@ -0,0 +1,6 @@ +AUX iotop-0.6-setup.py3.patch 1151 SHA256 17383250d9b911e4265f9df3648dbef456711ee08c9338aca878bb6e92cb55dd SHA512 6b97da5ef9e78c268193ce0270328f4c4d99d30f532fe68dac9bd033bb0a5e6cdb3145b53a7670c7babdae7f170473d1f9eb23137b5950fdaceadde266b4bb73 WHIRLPOOL 5fdbcac4466c841c1568a30d3ee2c7653c1765f1d6668914c1de6c5f235472b747791254d3ac772e6e8cf91c657394f68eaa52ff6401a764170e547a7058d8b8 +DIST iotop-0.6.tar.bz2 29779 SHA256 3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b SHA512 b1047da3bc46604447cc8ab22442a3a5381e1a79a6b176fe9ee8402ee5cebb959205407a6aeaffccccde9d2f67624ff8ee6717b051838f13ab88bf3a16db3ab9 WHIRLPOOL 662aece6230a0165739aac3130f69fc8f595fad045cf204e524fa1955692e81382a77fbb6938af3452608d64a7ca374ca49cc99db4c8cdb2bb04a1006676c82b +EBUILD iotop-0.6.ebuild 717 SHA256 d6c2c618d7df7c983505bb1af958090e793b7b3ac3c0fa242bd9c583834bb0dd SHA512 c36caf56f06bb6a48fd2c8a13dc46dc916a9f5953a2368303975a9d3f7f8805bc881ca1e543df0c3c3b6e53d9e6e936c07a17dc46d51c16ac16eba09238148b5 WHIRLPOOL 7a20f507400a509543881fe56a99bb23599e98ccbba35dea00a4bec507dab5551d38c2357b72d0d4c10ae8d79edaa093738b7f03dc3e271b1641c0916ad27237 +MISC ChangeLog 3128 SHA256 a606ae4a1a5c4164b76af8919a112bf8766caf2f89433fb85bd60c15959122aa SHA512 097678ebfe45ab10eec34ee4c9322c26ad31979cb191922d00f88215bd9da4159e1185ca1280b9270d228f71a839e023e94774ffb010b8b2e5df8b2c59c8a1d5 WHIRLPOOL a38d633dd3e29b3f4ff480db41877f4606cabe5cd2d121b18b7846825518e709cfd728b78db59fd10ff5ef9642593a17b76661faf9b719ac7ca96109ea0199a2 +MISC ChangeLog-2015 9153 SHA256 92dd631d2864149e0e680fc8950ae8064824bb61bcc9750e2455a86ffc191e91 SHA512 19f9548b7e8dcd2bbf73fb9a643efe0914fe024277a53aea25a7e5a6870cba1991a19e75addaf824120d9b47fcb374069579d0e0e594ef82f07ce257e5f55304 WHIRLPOOL 64bdeee806f069f46dca4334dc1e4299eeb623b60e04b1b33285ddf3f667afb860acc2cabbb422cdbfe0be8ee7eea7ccecc4157eb66b7420fb3960b4117b8abe +MISC metadata.xml 359 SHA256 b909ed55c75dcd448c50ef0c52e6bf18b55a1c6286b9d627da42084e57e6b49e SHA512 12f1f2e8971ea7d83248c637e6128be106087f733af8625fea8dd7ad9c891ef38ea0eda8ed7f6cfe96a4c0b795a799c1b51301e0ae424898c413a354305c7852 WHIRLPOOL 39fe7756930e9851bbc72c57cc3a2fdfe6a3aca674bd782992ec4ac35d0276d6dba07a21d5d58f4cd8c22b93be59624e3a273e88109e4e651d6be780e6a8c04a diff --git a/sys-process/iotop/files/iotop-0.6-setup.py3.patch b/sys-process/iotop/files/iotop-0.6-setup.py3.patch new file mode 100644 index 000000000000..5844d86cb1ba --- /dev/null +++ b/sys-process/iotop/files/iotop-0.6-setup.py3.patch @@ -0,0 +1,31 @@ +From 98a5985e52e7041eb96c80dd95fd5c70634f5ee7 Mon Sep 17 00:00:00 2001 +Message-Id: <98a5985e52e7041eb96c80dd95fd5c70634f5ee7.1371536396.git.jlec@gentoo.org> +From: Justin Lecher <jlec@gentoo.org> +Date: Tue, 18 Jun 2013 08:19:28 +0200 +Subject: [PATCH] Make setp.py compatible with python3 + +Dictionaries in python 3 do not contain the itervalues() method anymore. +The values() method should be used and can also safely applied for +python 2. + +Signed-off-by: Justin Lecher <jlec@gentoo.org> +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 7150102..9de6068 100755 +--- a/setup.py ++++ b/setup.py +@@ -7,7 +7,7 @@ from iotop.version import VERSION + # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/ + # while still honoring the choice of installing into local/ or not. + if hasattr(distutils_install, 'INSTALL_SCHEMES'): +- for d in distutils_install.INSTALL_SCHEMES.itervalues(): ++ for d in distutils_install.INSTALL_SCHEMES.values(): + if d.get('scripts', '').endswith('/bin'): + d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin' + +-- +1.8.2.1 + diff --git a/sys-process/iotop/iotop-0.6.ebuild b/sys-process/iotop/iotop-0.6.ebuild new file mode 100644 index 000000000000..8d3f4872da40 --- /dev/null +++ b/sys-process/iotop/iotop-0.6.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="ncurses(+)" + +inherit distutils-r1 linux-info + +DESCRIPTION="Top-like UI used to show which process is using the I/O" +HOMEPAGE="http://guichaz.free.fr/iotop/" +SRC_URI="http://guichaz.free.fr/iotop/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 hppa ~ia64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS" + +DOCS=( NEWS README THANKS ChangeLog ) + +PATCHES=( "${FILESDIR}"/${P}-setup.py3.patch ) + +pkg_setup() { + linux-info_pkg_setup +} diff --git a/sys-process/iotop/metadata.xml b/sys-process/iotop/metadata.xml new file mode 100644 index 000000000000..968cfd1f3c6c --- /dev/null +++ b/sys-process/iotop/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + </maintainer> +<maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/latencytop/Manifest b/sys-process/latencytop/Manifest new file mode 100644 index 000000000000..08ab0755aa6d --- /dev/null +++ b/sys-process/latencytop/Manifest @@ -0,0 +1,9 @@ +AUX latencytop-0.5-01-mkdir-usr-sbin-as-well.patch 626 SHA256 8da1389fec99231d22b13dd79a41e3070babd4a330242ec610b1a6874d9ff794 SHA512 feb80688c39b611d9bbb37c58f7d0c84b9d8c43534c2475f1f6e118406ab05a2ae98090c472085eb6ff08b4610486ede091d4c357979a5ec693deba30afd2a91 WHIRLPOOL a675831857f38897ac53ff36f09b45111c870d768443e5c0b311cf33c8ea1ff414ebe02ce632a1389d8f13f5adde231616ef3898fc19ee1e984f8a530b6aa928 +AUX latencytop-0.5-03-clean-up-build-system.patch 2395 SHA256 6dad63d99b0815699d6448a463fe3b5ce6a7fcbc0f4d1ce10a4a715b7c1be015 SHA512 6d3657580440bc95e2cef123133ac7c87167a3fcfaf6f7c781570838b5815902571fceddd847c6e7549b273ba9948fdd1eeaf5bb5cd864dcd9f0541d9feb9a32 WHIRLPOOL 9c70ace1d0b34645833156fc98857f4ed725866fe121ec9bdc28549ece66b679ae77150270bce2f512b88ee6d195f41d177fc854caa9128a3dc62283ce6829c3 +AUX latencytop-0.5-fsync-fix-implicit-decl.patch 684 SHA256 69b148f165fe5859cf18666b96d7888ab4911c8d85d7594df40fccb0b925e372 SHA512 01aa09725f7786f157452c994927c985b2cc4748101ed5db73c3e6db3754bf234a45fb8937185ad61e18d5f5ab650844bbdbf0134a7d28a707843db31d1efa63 WHIRLPOOL 39de833739d9298710ab24ece0836021c34204ab46300ae148e1d60f52818133adac88826de44e54711278f5b60b6270dd91c6fce88ef38e3217578612152c16 +DIST latencytop-0.5.tar.gz 25374 SHA256 9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef SHA512 81db52b29a5fd2a5e14863f1cbf948b15ea68ff41a826cdf323215c2c8b0334144aaccf00cb49a9f7c195efcb5ff49fbf2b687a8bd4b604d338af6628d319b2c WHIRLPOOL 4b189706105fafcaad8b0583516b1ffdb69d490f39e9ff272c2871aad4306a7e1d6dcd071bd020469679f4676035e736f7c8e41c808dceeaf260e3d0fa3bc088 +EBUILD latencytop-0.5-r1.ebuild 1195 SHA256 45db4f04c439e22ccd075e60132df97ea3da3329f14d93c4720a9268f9fe7519 SHA512 f3c5440505eb3701f8f3c451527b4c53721c0aa04b31d7f103473f9ba58538806ce93356d6960c0d865f57e2a7bdd0b8da5d99cf64939ae24e7b0941d635cb0e WHIRLPOOL 4f53c1164ae0a40ffc56e9c0b3a4b6b6ca8a8bf01862ff1b623e66b944845a7e58e7978650a9e92dc3d9682ff27dd44b84770f57dea48b05da0c49c38d954d0e +EBUILD latencytop-0.5.ebuild 762 SHA256 07613c2c688d925b76b7ad4d4360bbe714b464cb4ad384845390dacf84d1baf4 SHA512 aa228c5507777a8de60832abe7f26689140ac1a82f023713eab01506d3ff69ac3fb847d4e65e05e99cd3e3432f3911f58acc343f72c81e7d8cf550fb48eef760 WHIRLPOOL 41c1d4261cde2183ad679f575c5b857c2ffcec176bd9c8629738481935e042e8a8873acc9a2c3a1c6a7823e528a3bcea0bc8b2f6303759360c5c4c0d91260a65 +MISC ChangeLog 3809 SHA256 c10115a1f9ae5b4811683fd3fbd65f7d10391f6fef037c84c78359c9d263b184 SHA512 6f866943d0493e96fef34d1bc6959c8df301256ba7f8356f69b639f389cbec483db743d20fed1997116d35cb9cd96e3016043b534eabcbfb44804c169612f17a WHIRLPOOL 700106d79e474f8942a51ca763fd1a49775bab8becbda02dfb77b7303514a5568f9d7dd5951a731139cf70c06efa643b3a3bbcda358fb17fc15449bb2d58fab6 +MISC ChangeLog-2015 1866 SHA256 dd7fdab6207e8c9db1ed140380b6ce7a063f6da4b8a7406bf83e9affc1dab2f0 SHA512 0da6a9aad891a17003900f6183c1c1fa46c5587a92c19882184284302824895cd77612155a3c90209de8df75abcfd914e8aed889a4f0ecde2dbdf96da367e341 WHIRLPOOL 426f1a33cbb0705f3278e8b2a208567c972eed3964f795b94d6e2433e14adc16a688d3b9c5c073961b5f4de99db7598ca71ef2e537f479c22267bacc0f1cd22f +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch new file mode 100644 index 000000000000..d5a60c938754 --- /dev/null +++ b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch @@ -0,0 +1,22 @@ +From d9685bb69c581489ef1c4278df8990fe02b0728d Mon Sep 17 00:00:00 2001 +From: Arjan van de Ven <arjan@linux.intel.com> +Date: Tue, 28 Apr 2009 14:44:34 +0100 +Subject: [PATCH] mkdir /usr/sbin as well + +--- + +diff --git a/src/Makefile b/src/Makefile +index fdf1616..de24551 100644 +--- a/Makefile ++++ b/Makefile +@@ -30,6 +30,7 @@ + + install: latencytop + mkdir -p $(DESTDIR)/usr/share/latencytop ++ mkdir -p $(DESTDIR)/$(SBINDIR) + install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans + install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/ + install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/ +-- +1.6.5.4 + diff --git a/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch new file mode 100644 index 000000000000..4c3461b08051 --- /dev/null +++ b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch @@ -0,0 +1,75 @@ +From e024a79b7b16b09bfe88222ed7f43b969b3eb444 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 18 Dec 2009 10:49:19 -0500 +Subject: [PATCH] clean up build system + +Respect env build settings (compiler flags and tools) and install the man +page for people. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + src/Makefile | 32 ++++++++++++++++++-------------- + 1 files changed, 18 insertions(+), 14 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index de24551..9a3cc05 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,14 +3,22 @@ HAS_GTK_GUI = 1 + + DESTDIR = + SBINDIR = /usr/sbin +-XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare +-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw ++DATADIR = /usr/share/latencytop ++MANDIR = /usr/share/man ++MAN8DIR = $(MANDIR)/man8 ++PKG_CONFIG ?= pkg-config ++CFLAGS ?= -g -W ++CPPFLAGS ?= -D_FORTIFY_SOURCE=2 ++override CFLAGS += -Wno-sign-compare ++override CPPFLAGS += `$(PKG_CONFIG) --cflags glib-2.0` ++LDFLAGS ?= -Wl,--as-needed ++LDADD = `$(PKG_CONFIG) --libs glib-2.0` `$(PKG_CONFIG) --libs ncursesw` + + OBJS= latencytop.o text_display.o translate.o fsync.o + +-ifdef HAS_GTK_GUI +- XCFLAGS += `pkg-config --cflags gtk+-2.0` -DHAS_GTK_GUI +- LDF += `pkg-config --libs gtk+-2.0` ++ifeq ($(HAS_GTK_GUI),1) ++ override CPPFLAGS += `$(PKG_CONFIG) --cflags gtk+-2.0` -DHAS_GTK_GUI ++ LDADD += `$(PKG_CONFIG) --libs gtk+-2.0` + OBJS += gtk_display.o + endif + +@@ -24,19 +32,17 @@ endif + # libncursesw5-dev package. + # + +-# We write explicity this "implicit rule" +-%.o : %.c +- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@ +- + latencytop: $(OBJS) latencytop.h Makefile +- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LDADD) + + clean: + rm -f *~ latencytop DEADJOE *.o + + install: latencytop +- mkdir -p $(DESTDIR)/usr/share/latencytop +- mkdir -p $(DESTDIR)/$(SBINDIR) +- install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans +- install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/ ++ mkdir -p $(DESTDIR)$(DATADIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MAN8DIR) ++ install -m 0644 latencytop.trans $(DESTDIR)$(DATADIR)/latencytop.trans ++ifeq ($(HAS_GTK_GUI),1) ++ install -m 0644 *.png $(DESTDIR)$(DATADIR)/ ++endif ++ install -m 0644 *.8 $(DESTDIR)$(MAN8DIR)/ + install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/ +-- +1.6.5.4 + diff --git a/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch new file mode 100644 index 000000000000..33f2bc278600 --- /dev/null +++ b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch @@ -0,0 +1,28 @@ +From 60427a259ba76b8238198e1f17a0c3b06491be3c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 18 Dec 2009 10:48:39 -0500 +Subject: [PATCH] fsync: fix implicit decl + +fsync.c: In function 'fsync_display': +fsync.c:330: warning: implicit declaration of function 'gettimeofday' + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + src/fsync.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/src/fsync.c b/src/fsync.c +index 1706571..3bec719 100644 +--- a/fsync.c ++++ b/fsync.c +@@ -30,6 +30,7 @@ + #include <string.h> + #include <ncurses.h> + #include <time.h> ++#include <sys/time.h> + #include <wchar.h> + #include <ctype.h> + +-- +1.6.5.4 + diff --git a/sys-process/latencytop/latencytop-0.5-r1.ebuild b/sys-process/latencytop/latencytop-0.5-r1.ebuild new file mode 100644 index 000000000000..581390bf9ef9 --- /dev/null +++ b/sys-process/latencytop/latencytop-0.5-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils linux-info + +DESCRIPTION="tool for identifying where in the system latency is happening" +HOMEPAGE="http://git.infradead.org/latencytop.git" + +# Upstream is long gone, so we explicitly use our mirrors for the tarball +SRC_URI="mirror://gentoo/${P}.tar.gz" + +CONFIG_CHECK="~LATENCYTOP" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gtk" + +RDEPEND="dev-libs/glib:2 + gtk? ( x11-libs/gtk+:2 ) + sys-libs/ncurses:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +# Upstream is dead, so there are no bugs to track for any +# of these patches. +PATCHES=( + "${FILESDIR}/${P}-01-mkdir-usr-sbin-as-well.patch" + "${FILESDIR}/${P}-03-clean-up-build-system.patch" + "${FILESDIR}/${P}-fsync-fix-implicit-decl.patch" +) + +pkg_pretend() { + linux-info_pkg_setup +} + +pkg_setup() { + linux-info_pkg_setup +} + +src_prepare() { + epatch "${PATCHES[@]}" + + # Without a configure script, we toggle bools manually + # This also needs to be done after patches are applied + # since this bool doesn't exist outside our patches + if ! use gtk; then + sed -i -e "/HAS_GTK_GUI = 1/d" Makefile || die + fi +} diff --git a/sys-process/latencytop/latencytop-0.5.ebuild b/sys-process/latencytop/latencytop-0.5.ebuild new file mode 100644 index 000000000000..805401c62f15 --- /dev/null +++ b/sys-process/latencytop/latencytop-0.5.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils toolchain-funcs + +DESCRIPTION="tool for identifying where in the system latency is happening" +HOMEPAGE="http://www.latencytop.org/" +SRC_URI="http://www.latencytop.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="gtk unicode" + +RDEPEND="=dev-libs/glib-2* + gtk? ( =x11-libs/gtk+-2* ) + sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-*.patch + sed -i \ + -e "/^HAS_GTK_GUI/s:=.*:=$(use gtk && echo 1):" \ + Makefile || die +} + +src_compile() { + tc-export CC PKG_CONFIG + emake || die +} + +src_install() { + emake install DESTDIR="${D}" || die +} diff --git a/sys-process/latencytop/metadata.xml b/sys-process/latencytop/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/latencytop/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest new file mode 100644 index 000000000000..7e91f15e6db7 --- /dev/null +++ b/sys-process/lsof/Manifest @@ -0,0 +1,12 @@ +AUX lsof-4.85-cross.patch 1061 SHA256 3bd94ea0d47e01626c3c6e7bbf4b25245cb221d8700194f01e93e264903abd60 SHA512 9326a2708910a39ba3b81253c21149f8e4fa44b207e4c2a88f86c9322d2b50e6360760fcb13e00f644aba57ad207106c280db00ebc2d1f3d49405b54681548e8 WHIRLPOOL 900bb6f38c83405e9315894af570669d96d2bbcd6240dbf65a78462471ef505ad1d30ee578ef6689d6b4aae4cb2ab212ef7cea3259003a060f5c08d41556e5ab +AUX lsof-4.88-linux.dnode.c.patch 494 SHA256 8c824fe2ac4f4cb492a2d4539e8a921d50e337235c4f42650bade3728487b34b SHA512 253c0b3e3d50f805ffde21ba214e0a56fa554eb98fd126fd3edc4aa0401e24c2fbb72e30288fe8cc371a3f615f5365e6fc753e7dc2aa0a8367f132c7411b28f1 WHIRLPOOL 31aa05df4e7b3a1b0f9c8f37544a2c3d6be3d596a6ef844855cd3e99fb53291ded85e61690e91e274f5edcf805c73e7663723e8c43458d3a70e3abb6689fe2eb +DIST lsof_4.87.tar.bz2 773664 SHA256 dfdd3709d82bc79ccdf3e404b84aafa9aede5948642a824ecaefd0aac589da2c SHA512 5e811225dd65366e3ef49628d567864fadda1dbda2d66a5e473123e73c468f5a3a577ae4e1b701a55ac49c2a759dab5c413663121c260a2804fca10ece902766 WHIRLPOOL 4ef01b855dbd8418e1533ebb293c3faacfa38c7a3cd30436d0a8174a974b7cd0eebfb79b23c4c3f13b66a65813a6fbdf5aa483d3f8d2689325fe7d0f48bfb5eb +DIST lsof_4.88.tar.bz2 778563 SHA256 fe6f9b0e26b779ccd0ea5a0b6327c2b5c38d207a6db16f61ac01bd6c44e5c99b SHA512 acf3901ac08bac5acaa123af835de03fcf86c1cb851a2cba5bb6d08c53dff62570e4129c18ffa241ae84a83d5e6fc5207fb12e43b5ff5a21a0c1967ca117848b WHIRLPOOL 74d85794e5f05920ac83b160b02e510442ebe3f390a8f30bbf514f31bb8ff74ad191f89bed5b3eee47033cc7d6fe01ba4d9d812050d7132e041899d96264076f +DIST lsof_4.89.tar.bz2 784560 SHA256 81ac2fc5fdc944793baf41a14002b6deb5a29096b387744e28f8c30a360a3718 SHA512 cafb0209143c7863e5cebe7efc33a2520d36f9e26222350e4edfa18debbcfb5c81f42f71469e5913fb21f49a7562bbe761b72dfc8f297dadf75ac619cdcb318c WHIRLPOOL e269b5bff958461b0f522b9baa64efc64e04cb71a1fa3ca5b17564b9d180fa8984b74238d4769ff5e4d453bc76cb5d9c4652d080b7d26571326fab4b0bbaf4ac +EBUILD lsof-4.87-r1.ebuild 2749 SHA256 1e7c8e794c019f12f51534f1c7f70bf89c6cea15adafe5e361e0b2bdf9ed3480 SHA512 13a86d48c4755a6aeedf170874f5c7181458ea15b89b3c4db7f467a3147a13d031cfa7660885242428c4a3347f4efb0d81075add39815da0de301a5b5b244ba4 WHIRLPOOL e7df1ae5d9148336ffb26bd8be07771d03e90d76c107fcd2ed6c4402fd54237c3a88f50377f63abcdafc4e3b393719310af2f76f3ae3b6866a133ab71a0a85b2 +EBUILD lsof-4.88-r1.ebuild 2933 SHA256 25abf40bd1985a9f93faaf6ca44c311c9cc8b4bbfc511a1b245a122513d64a00 SHA512 80737257fb08e8f41d76bb1c2f36cf190d2b08fa431174a607ee39632c749fecaba0662f8596e8ec3a85fb4a2d45af71dbd764498f21d7cbac2a6766676cf4cd WHIRLPOOL c2d41219982da80f0ec1c783ac37414d7cef0dfa91f033afa49fad32da0aaacab873e5a12f7506b5f62e3cb7201429f78fcc286f645246a39208c3ffbf73a9cd +EBUILD lsof-4.89-r1.ebuild 3252 SHA256 a487ed6aaddeca6cebaeedf80281566edca377b6388718ccbfba3313bb7f4b3c SHA512 f44b786019ecf0cf041f51725a8a5ee742b01723638ed215b60988b48a98c164aaee7beb4dcd906f836d383630edc6fe805910082f9782adf6734b2ee16e58e5 WHIRLPOOL 15ea59c6ebf637a4db8cf14ee3bf71911f26f311b02f336c8ce785bf546361e27d63c071292a7bc842e754b5ed19a31512cf1e10e8083a18aeab3be83c70dd34 +EBUILD lsof-4.89.ebuild 2980 SHA256 6cfc68bf915a3d3d8313f67224e3d65495cac03f593b98d984c1f10944490824 SHA512 3b3d5ce06f3123aca989c683d8c3ef165eafc488258e87e429c96159f5c402326cbfee8426594b89b3106c36d7c2c80e3a501c4d2f4dddd6c8fb2687017772b1 WHIRLPOOL 4187b05be1b1c266a3554762366636d3998f33c71128bb6bfbfbc8bddf6acb0809bc11a3e85c493870fd67cb494adaa5fafcffbe352f53a66329b2bdd953b3a4 +MISC ChangeLog 4051 SHA256 16f7c274c2e3ea0b505cfd19be491ed6fbb6996d5a09e161d94662cfd60ac62a SHA512 68911b6e5dbee7a6a6b76851b06879e37f8f7652fbcc7636bc8c05b94afec6d28350031256cc8b174ed85dc9c4e4d3fdd94f74b47cd3d7adb4bfa90cb684a383 WHIRLPOOL 8c520e36755344e97cac9467bf11573e854f671928ab6a7d17d7c533dd8cad524b1cddcad2ea431b90b3e2936ef4e38c6b16a412e06f467f8886d95fce2c7dbf +MISC ChangeLog-2015 18846 SHA256 a875bcf3981662398df5ec316a288ccf49ba98b6c17c1d6003c51e0417e5d04e SHA512 8cfbb8f725019d8ee29f9416a5b20e1317fb824984519d80aadca097881f736d4d4d926a1542347d3743988101bac50884a57ac7f38f2f6256732bdb5157797b WHIRLPOOL 3932c65a684c4bdb0a80d106fce6b4c0a2aac96fef5570b7682855a98823f61f0fe678027f317452b03e39fbe3b396b8900e1cf74bfe70d077fb803590c06cd6 +MISC metadata.xml 327 SHA256 be9246f94d3a616b0eed2cfe506c6673aafefb5d2bd85946ec462c2ff3f49494 SHA512 c8c0efc3b339063936d805d533cf3528e1a4e1a84829c0e0f993fd3268751f4d7d4713f45cc6fec2956101b611e6e344e0c0336eb8d1b769a47481d72088fb98 WHIRLPOOL fa94b6d626e8e3d55b5f90ed6a9dbcfdb806cadf43ebdf5086c3dcdf08138f75cf7c14442edd4c5825571a5264d1dc666d4e0c6e242a450f5c8d2424d22416c6 diff --git a/sys-process/lsof/files/lsof-4.85-cross.patch b/sys-process/lsof/files/lsof-4.85-cross.patch new file mode 100644 index 000000000000..c2c73ccb563f --- /dev/null +++ b/sys-process/lsof/files/lsof-4.85-cross.patch @@ -0,0 +1,37 @@ +let the preprocessor work its magic rather than executing the code + +https://bugs.gentoo.org/432120 + +make sure to use -P here + +https://bugs.gentoo.org/546636 + +--- a/Configure ++++ b/Configure +@@ -2730,20 +2730,17 @@ LOCKF_OWNER4 + rm -f ${LSOF_TMPC}.* + cat > $LSOF_TMPC.c << .LSOF_END_HERE_DOC1 + #include <features.h> +-main() { ++#undef XXX + #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) +-printf("-DGLIBCV=%d\n",__GLIBC__*100+__GLIBC_MINOR__); ++XXX: __GLIBC__ * 100 + __GLIBC_MINOR__ + #elif defined(__GLIBC__) +-printf("-DGLIBCV=%d00\n",__GLIBC__); +-#else +-printf("\n"); ++XXX: __GLIBC__ * 100 + #endif +-return(0); } + .LSOF_END_HERE_DOC1 +- $LINUX_CONF_CC ${LSOF_TMPC}.c -I$LSOF_INCLUDE -o ${LSOF_TMPC}.x > /dev/null 2>&1 ++ $LINUX_CONF_CC ${LSOF_TMPC}.c -E -P -I$LSOF_INCLUDE 2>/dev/null | sed -n '/^XXX:/s|.*:||p' > ${LSOF_TMPC}.x +- if test -x ${LSOF_TMPC}.x # { ++ if test -s ${LSOF_TMPC}.x # { + then +- LINUX_CLIB=`${LSOF_TMPC}.x` ++ LINUX_CLIB="-DGLIBCV=$(( `cat ${LSOF_TMPC}.x` ))" + LSOF_TMP=$? + else + LINUX_CLIB="" diff --git a/sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch b/sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch new file mode 100644 index 000000000000..28640a9e65ed --- /dev/null +++ b/sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch @@ -0,0 +1,21 @@ +ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/patches/4.88/linux.dnode.c.patch + +*** dnode.c +--- lsof_4.88_src/dialects/linux/dnode.c +*************** +*** 580,586 **** + Lf->inp_ty = 1; + + #if defined(HASEPTOPTS) +! if (Lf->ntype == N_FIFO) { + (void) enter_pinfo(); + Lf->sf |= SELPINFO; + } +--- 580,586 ---- + Lf->inp_ty = 1; + + #if defined(HASEPTOPTS) +! if ((Lf->ntype == N_FIFO) && FpipeE) { + (void) enter_pinfo(); + Lf->sf |= SELPINFO; + } diff --git a/sys-process/lsof/lsof-4.87-r1.ebuild b/sys-process/lsof/lsof-4.87-r1.ebuild new file mode 100644 index 000000000000..1ff04cdc9b14 --- /dev/null +++ b/sys-process/lsof/lsof-4.87-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +MY_P=${P/-/_} +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/" +SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2 + ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples ipv6 rpc selinux static" + +RDEPEND="rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + rpc? ( virtual/pkgconfig )" + +S=${WORKDIR}/${MY_P}/${MY_P}_src + +src_unpack() { + unpack ${A} + cd ${MY_P} + unpack ./${MY_P}_src.tar +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120 + # convert `test -r header.h` into a compile test + sed -i -r \ + -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \ + -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \ + Configure || die +} + +target() { + case ${CHOST} in + *-darwin*) echo darwin ;; + *-freebsd*) echo freebsd ;; + *-solaris*) echo solaris ;; + *-aix*) echo aixgcc ;; + *) echo linux ;; + esac +} + +src_configure() { + use static && append-ldflags -static + + append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H") + append-cppflags $(usex ipv6 -{D,U}HASIPv6) + + export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \ + $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)" + + # Set LSOF_INCLUDE to a dummy location so the script doesn't poke + # around in it and mix /usr/include paths with cross-compile/etc. + touch .neverInv + LINUX_HASSELINUX=$(usex selinux y n) \ + LSOF_INCLUDE=${T} \ + LSOF_CC=$(tc-getCC) \ + LSOF_AR="$(tc-getAR) rc" \ + LSOF_RANLIB=$(tc-getRANLIB) \ + LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ + ./Configure -n $(target) || die +} + +src_compile() { + emake DEBUG="" all +} + +src_install() { + dobin lsof + + if use examples ; then + insinto /usr/share/lsof/scripts + doins scripts/* + fi + + doman lsof.8 + dodoc 00* +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "Note: to use lsof on Solaris you need read permissions on" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" + elif [[ ${CHOST} == *-aix* ]] ; then + einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group system" + fi +} diff --git a/sys-process/lsof/lsof-4.88-r1.ebuild b/sys-process/lsof/lsof-4.88-r1.ebuild new file mode 100644 index 000000000000..f9371208a23a --- /dev/null +++ b/sys-process/lsof/lsof-4.88-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils flag-o-matic toolchain-funcs + +MY_P=${P/-/_} +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/" +SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2 + ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples ipv6 rpc selinux static" + +RDEPEND="rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + rpc? ( virtual/pkgconfig )" + +S=${WORKDIR}/${MY_P}/${MY_P}_src + +src_unpack() { + unpack ${A} + cd ${MY_P} + unpack ./${MY_P}_src.tar +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120 + epatch "${FILESDIR}"/${P}-linux.dnode.c.patch + # fix POSIX compliance with `echo` + sed -i \ + -e 's:echo -n:printf:' \ + AFSConfig Configure Customize Inventory tests/CkTestDB || die + # convert `test -r header.h` into a compile test + sed -i -r \ + -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \ + -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \ + Configure || die +} + +target() { + case ${CHOST} in + *-darwin*) echo darwin ;; + *-freebsd*) echo freebsd ;; + *-solaris*) echo solaris ;; + *-aix*) echo aixgcc ;; + *) echo linux ;; + esac +} + +src_configure() { + use static && append-ldflags -static + + append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H") + append-cppflags $(usex ipv6 -{D,U}HASIPv6) + + export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \ + $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)" + + # Set LSOF_INCLUDE to a dummy location so the script doesn't poke + # around in it and mix /usr/include paths with cross-compile/etc. + touch .neverInv + LINUX_HASSELINUX=$(usex selinux y n) \ + LSOF_INCLUDE=${T} \ + LSOF_CC=$(tc-getCC) \ + LSOF_AR="$(tc-getAR) rc" \ + LSOF_RANLIB=$(tc-getRANLIB) \ + LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ + ./Configure -n $(target) || die +} + +src_compile() { + emake DEBUG="" all +} + +src_install() { + dobin lsof + + if use examples ; then + insinto /usr/share/lsof/scripts + doins scripts/* + fi + + doman lsof.8 + dodoc 00* +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "Note: to use lsof on Solaris you need read permissions on" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" + elif [[ ${CHOST} == *-aix* ]] ; then + einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group system" + fi +} diff --git a/sys-process/lsof/lsof-4.89-r1.ebuild b/sys-process/lsof/lsof-4.89-r1.ebuild new file mode 100644 index 000000000000..0fc565391989 --- /dev/null +++ b/sys-process/lsof/lsof-4.89-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils flag-o-matic toolchain-funcs + +MY_P=${P/-/_} +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/" +SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2 + ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2 + http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples ipv6 rpc selinux static" + +RDEPEND="rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + rpc? ( virtual/pkgconfig )" + +S=${WORKDIR}/${MY_P}/${MY_P}_src + +src_unpack() { + unpack ${A} + cd ${MY_P} || die + unpack ./${MY_P}_src.tar +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120 + # fix POSIX compliance with `echo` + sed -i \ + -e 's:echo -n:printf:' \ + AFSConfig Configure Customize Inventory tests/CkTestDB || die + # Convert `test -r header.h` into a compile test. + # Make sure we convert `test ... -a ...` into two `test` commands + # so we can then convert both over into a compile test. #601432 + sed -i -E \ + -e '/if test .* -a /s: -a : \&\& test :g' \ + -e '/test -r/s:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:g' \ + -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \ + Configure || die +} + +target() { + case ${CHOST} in + *-darwin*) echo darwin ;; + *-freebsd*) echo freebsd ;; + *-solaris*) echo solaris ;; + *-aix*) echo aixgcc ;; + *) echo linux ;; + esac +} + +src_configure() { + use static && append-ldflags -static + + append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H") + append-cppflags $(usex ipv6 -{D,U}HASIPv6) + [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX + + export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \ + $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)" + + # Set LSOF_INCLUDE to a dummy location so the script doesn't poke + # around in it and mix /usr/include paths with cross-compile/etc. + touch .neverInv + LINUX_HASSELINUX=$(usex selinux y n) \ + LSOF_INCLUDE=${T} \ + LSOF_CC=$(tc-getCC) \ + LSOF_AR="$(tc-getAR) rc" \ + LSOF_RANLIB=$(tc-getRANLIB) \ + LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ + ./Configure -n $(target) || die +} + +src_compile() { + emake DEBUG="" all +} + +src_install() { + dobin lsof + + if use examples ; then + insinto /usr/share/lsof/scripts + doins scripts/* + fi + + doman lsof.8 + dodoc 00* +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "Note: to use lsof on Solaris you need read permissions on" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" + elif [[ ${CHOST} == *-aix* ]] ; then + einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group system" + fi +} diff --git a/sys-process/lsof/lsof-4.89.ebuild b/sys-process/lsof/lsof-4.89.ebuild new file mode 100644 index 000000000000..38ea4bcd1155 --- /dev/null +++ b/sys-process/lsof/lsof-4.89.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils flag-o-matic toolchain-funcs + +MY_P=${P/-/_} +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/" +SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2 + ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2 + http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="examples ipv6 rpc selinux static" + +RDEPEND="rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + rpc? ( virtual/pkgconfig )" + +S=${WORKDIR}/${MY_P}/${MY_P}_src + +src_unpack() { + unpack ${A} + cd ${MY_P} || die + unpack ./${MY_P}_src.tar +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120 + # fix POSIX compliance with `echo` + sed -i \ + -e 's:echo -n:printf:' \ + AFSConfig Configure Customize Inventory tests/CkTestDB || die + # convert `test -r header.h` into a compile test + sed -i -r \ + -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \ + -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \ + Configure || die +} + +target() { + case ${CHOST} in + *-darwin*) echo darwin ;; + *-freebsd*) echo freebsd ;; + *-solaris*) echo solaris ;; + *-aix*) echo aixgcc ;; + *) echo linux ;; + esac +} + +src_configure() { + use static && append-ldflags -static + + append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H") + append-cppflags $(usex ipv6 -{D,U}HASIPv6) + + export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \ + $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)" + + # Set LSOF_INCLUDE to a dummy location so the script doesn't poke + # around in it and mix /usr/include paths with cross-compile/etc. + touch .neverInv + LINUX_HASSELINUX=$(usex selinux y n) \ + LSOF_INCLUDE=${T} \ + LSOF_CC=$(tc-getCC) \ + LSOF_AR="$(tc-getAR) rc" \ + LSOF_RANLIB=$(tc-getRANLIB) \ + LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ + ./Configure -n $(target) || die +} + +src_compile() { + emake DEBUG="" all +} + +src_install() { + dobin lsof + + if use examples ; then + insinto /usr/share/lsof/scripts + doins scripts/* + fi + + doman lsof.8 + dodoc 00* +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "Note: to use lsof on Solaris you need read permissions on" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" + elif [[ ${CHOST} == *-aix* ]] ; then + einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group system" + fi +} diff --git a/sys-process/lsof/metadata.xml b/sys-process/lsof/metadata.xml new file mode 100644 index 000000000000..4f913c0bcab0 --- /dev/null +++ b/sys-process/lsof/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +<use> + <flag name="rpc">support looking up RPC service info</flag> +</use> +</pkgmetadata> diff --git a/sys-process/memwatch/Manifest b/sys-process/memwatch/Manifest new file mode 100644 index 000000000000..6961a95cb942 --- /dev/null +++ b/sys-process/memwatch/Manifest @@ -0,0 +1,18 @@ +DIST memwatch-0.1.0.tar.gz 6733 SHA256 72002e7d9c3a9053404710982bb782cfcdc20abe8b6c0fabdcb78d8a3a69ddb9 SHA512 9adcc65640fcbc252b15a48502ddd705e6f3b2bcf5e3cbd3ad61e640d6921af29f9fb5f086cb71e6badecda3d2f64e76b308d65b70a0d9b70dafb4f608f1f0f0 WHIRLPOOL 8d8fe7aa9cfeec42f012b6d2a34622776dd2d1b1e1900a754acca7990c4c1205db0bdf12709e643f8ddfaed7d1e3efe14c2075ef43e1ca955ddb504b26caf8f5 +DIST memwatch-0.2.0.tar.gz 10278 SHA256 391159b4ec01c7d66dc81480d838a3ef2a7baa2781c007cce87a3c8fdb743b07 SHA512 f2b0f72258802877887d3c2367a04a42a9fcb1be72777a3744dc98fe78d4b1b7f5cf426b9355b1d3ccf5b2cd690c33885e557c8ceac4732d91c6fc3c61c2c1ca WHIRLPOOL fd0fa9a56131674cb4fe538eda10a58ef96c1a04bc4e116528bc62e7b4b15184d2335888696acf6ffc0b6b62f76a13b7bbf6b9b00748e6a30cc467c9c7b98f8b +DIST memwatch-0.2.1.tar.gz 10599 SHA256 ad810fcda56d36bd107333f0edbab41a76df9dde8b566364c1b0c5df5a0f24f6 SHA512 c30d802922b3241c2245c3762ce41ef6f495aa53feb74644f657898d5dcb2bd7464143a7f42c24865e0ac86e9450af1d66528a7519b2a1dba550c8175d3967c6 WHIRLPOOL fa5da8211d2b4a28e9951e58115a83f0fa2c63ac80a22580240545ceb4af2d15eff38f814fb0c336df526b36b0f98f05890af97d97fa5fe16239bce5ff5b587d +DIST memwatch-0.3.0.tar.gz 16715 SHA256 a8f39462ae196f31d189ad28772892c951ccc87492ecab7de2cf2efc731f593f SHA512 5feb6ad67ffc85a6304875d9cb8f98c42017894d05b86180293f8facb811268bc5b7942a489432dfc45bfb62155a5935bd569241b463116a8bd3c51d50ec6237 WHIRLPOOL efa24a5590f0ff7219e8a24f41dbe54f11caea850970250e05496a59481120977ce3ed45a710f76eab3519e6fa52561bba4917f134d8143ddfe8dd58da633584 +DIST memwatch-0.3.1.tar.gz 17655 SHA256 01775cbca2712e0b81f8bb6d016d89f434f0633c4d5e65112053259c6b8ec104 SHA512 cbc55cd1a70c5d0077a43e223d360c980cccc959808ee511e8727341baa6d96bc2c66be9481f4e25989e28692cf044c2cf9f904eed5ca4695cf484711d3ce594 WHIRLPOOL 25072b6a8a7c37afd402c5f447a53b2b29aa8c639644917091a1b571af44a843d5310b85622fab64edf38552d72c165a72f9ab78254ece35f8bd0b6f2bc56a13 +DIST memwatch-0.3.2.tar.gz 16587 SHA256 dca34608425d931d27c5e1a5a31f95659dd118e09f39772daed0c06a0e771fcd SHA512 94bfa9832d934f9d2271f3abb350df3f601e6dc9a84c5e18c783c924b774f007e91d4249492f4b98cff465e377474b20d077879d8b3e22945791ca94c81660fa WHIRLPOOL a9fc798ce8d74be9bbccab9d93a73697601d1084942de8af56b2a2fb1885145cd64e73a0f24ad5a5d8cc287ff4d89d385f6fb261000f1b886c7d2821025a3d76 +DIST memwatch-0.3.3.tar.gz 16629 SHA256 6fb458302c046dc40fa0bcf4f109c75c4e667a50e2dcb105a98c0ad86d5e7461 SHA512 a6e89c5929c07b9348798983c15c0ad308762ba061fef78a8d33597db2a02e7984ffb3949a19dda61945b2265f15454fa9eb29849de91fc00690d34c568df234 WHIRLPOOL 26ac77a87f0845c1bd51a851ce46338ccdccbb60755c841263104d1b3c38217d8d766b685fb94e1a93cad91aa012f7e06ec92290a3395dac3d6d97e3a3e789e4 +EBUILD memwatch-0.1.0.ebuild 515 SHA256 4b434e8c1145f5009ca3eafa8be040ec21b47af56802a23734735b9cf717c102 SHA512 42492ab6bd9d2681b3802193ae4fd7f3245b087c399fb47c12d02d2f35e7487f8479803374f351b40e43b08ce29f93b2a158e298d1407f250ce31f9cb9cb2f7b WHIRLPOOL 110cc5cd46e91985c5f7a84f54fe5d28710919c8c5bac9898e1fbd73b15912197e7a167c3359857e17ff1d2748354b38ae378ce319edd0cee0213bb9c1d84fa8 +EBUILD memwatch-0.2.0.ebuild 519 SHA256 9ee807edfa59adbe87ced9c3ef614b3539461a45e1ecec6ac65c96b3eaa00e0f SHA512 10ed308b8b557bc3e00e0e8a9bdc00173c912cdf69ff9faf6c7719d2421890c81db621c4ae186aad8689ff54ce5c12b6d882f04ef27771701969f78965994d9a WHIRLPOOL f17f23f0108a778ed8ee8f5500913b8e5fef9ca1dfc254b10a55c63bafaa40cd194bf0e1985e49a71c97ecf293486013518d6e899dc10ed1da6141c44a0a5668 +EBUILD memwatch-0.2.1.ebuild 519 SHA256 9ee807edfa59adbe87ced9c3ef614b3539461a45e1ecec6ac65c96b3eaa00e0f SHA512 10ed308b8b557bc3e00e0e8a9bdc00173c912cdf69ff9faf6c7719d2421890c81db621c4ae186aad8689ff54ce5c12b6d882f04ef27771701969f78965994d9a WHIRLPOOL f17f23f0108a778ed8ee8f5500913b8e5fef9ca1dfc254b10a55c63bafaa40cd194bf0e1985e49a71c97ecf293486013518d6e899dc10ed1da6141c44a0a5668 +EBUILD memwatch-0.3.0-r1.ebuild 545 SHA256 414b832fa8cfb75fd8a7c434295ee0759ad12e0f276d277d8848cf91d6ddf63b SHA512 198a62dbcc8a6da01182506785fc3d0db3f799433eb99478c2c377c24767d5cbaa3ccccd63fb0466c0bf13d520506b74a135deae6dce17284a951f46fe385b5a WHIRLPOOL 46d2f88a61e73d61e40d53c2cc924fac3894574290a440a444ffa58a7ec2318b9521f9d5eeca9d1f2dd565a8e9213f9c0c4c19bd266cd554b8f8c95ee2528cdb +EBUILD memwatch-0.3.0.ebuild 505 SHA256 250b78d88d6d3acc202cdc08accc51ff6f2de6a061de4dc9aa6ee93465ec616f SHA512 b957ba4805c53dea8e91b295243a962d970f1e4925d30868b69194e84af7dc2b90ddf62123f325de8364bc8a0b0a5e6ec0c70639784b785f7d046b7ef521d56e WHIRLPOOL e9066a49860c0dc5db1ce37d921faa4a232f92d7ebaafa9372f305d9332a3010be5935b444ba22c2fdb036317700d30030d47e541b5a770e96a25ba5d3003760 +EBUILD memwatch-0.3.1.ebuild 545 SHA256 414b832fa8cfb75fd8a7c434295ee0759ad12e0f276d277d8848cf91d6ddf63b SHA512 198a62dbcc8a6da01182506785fc3d0db3f799433eb99478c2c377c24767d5cbaa3ccccd63fb0466c0bf13d520506b74a135deae6dce17284a951f46fe385b5a WHIRLPOOL 46d2f88a61e73d61e40d53c2cc924fac3894574290a440a444ffa58a7ec2318b9521f9d5eeca9d1f2dd565a8e9213f9c0c4c19bd266cd554b8f8c95ee2528cdb +EBUILD memwatch-0.3.2.ebuild 545 SHA256 414b832fa8cfb75fd8a7c434295ee0759ad12e0f276d277d8848cf91d6ddf63b SHA512 198a62dbcc8a6da01182506785fc3d0db3f799433eb99478c2c377c24767d5cbaa3ccccd63fb0466c0bf13d520506b74a135deae6dce17284a951f46fe385b5a WHIRLPOOL 46d2f88a61e73d61e40d53c2cc924fac3894574290a440a444ffa58a7ec2318b9521f9d5eeca9d1f2dd565a8e9213f9c0c4c19bd266cd554b8f8c95ee2528cdb +EBUILD memwatch-0.3.3.ebuild 545 SHA256 414b832fa8cfb75fd8a7c434295ee0759ad12e0f276d277d8848cf91d6ddf63b SHA512 198a62dbcc8a6da01182506785fc3d0db3f799433eb99478c2c377c24767d5cbaa3ccccd63fb0466c0bf13d520506b74a135deae6dce17284a951f46fe385b5a WHIRLPOOL 46d2f88a61e73d61e40d53c2cc924fac3894574290a440a444ffa58a7ec2318b9521f9d5eeca9d1f2dd565a8e9213f9c0c4c19bd266cd554b8f8c95ee2528cdb +MISC ChangeLog 4584 SHA256 2cec58361ed0d86a1fa2e4856984bab9a96776f433ce314304157d52b2840bfb SHA512 e34d9023cc7dedf0a58fc01adfb003e1f0caed20c4a04bc59df8ccc7a1c9e8a376979565f436f6458425836861252661eb26db2c251dc2c95564e09114e73312 WHIRLPOOL 621d4ab2bbc51d4d15df62ea9511f678d6583401347e639ce13b78b7b13e404b61550d18a9048e50ef612027ef83cca8642fceb61d0cd58454442dd25e6109e4 +MISC ChangeLog-2015 535 SHA256 00b55c27df4a78bfe92702b37188eee5dd6bdad2dfebf084db24268f161caf6b SHA512 4f34cfd2347b29cf1386274e9ccb807c73614b149460a7581d86e5c7056b11f90078b15c27c7fdf4e44f25879e70a4fc801c93630d9bed1e9426a8eaeb883e82 WHIRLPOOL e531a35144949a826af0feb10e238b3c9b17189073020faee39b979c88a5611acc97920d5344d717daa5883beafbc69d8211ce2e0864305b2287e99dbc1e950e +MISC metadata.xml 313 SHA256 6baed3fcc42fa1218d63fd7480ab7d38631ca305c9badb2d6873418c23fcf7a0 SHA512 405264987a6dc63c05bca58fb9cdb73ced60db5d832ee8b1f410ed80760527800806f5dc7273f94d62a08008abdf6ba7502bdbd7a9f3c3e6d2268fe8e5632448 WHIRLPOOL 74ee1d04afbec0797f10780c4df3644549e233dba6e86abccf70e0af67a7e018422e2c404e401c344bb7ffa654fed7aa0d098d7ffbbece7a50cc64bc9e333dde diff --git a/sys-process/memwatch/memwatch-0.1.0.ebuild b/sys-process/memwatch/memwatch-0.1.0.ebuild new file mode 100644 index 000000000000..7111f876e715 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.1.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://bitbucket.org/PascalRD/memwatch/" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.2.0.ebuild b/sys-process/memwatch/memwatch-0.2.0.ebuild new file mode 100644 index 000000000000..8c16cb95ac36 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.2.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://bitbucket.org/PascalRD/memwatch/" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" + +RDEPEND="${DEPEND}" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.2.1.ebuild b/sys-process/memwatch/memwatch-0.2.1.ebuild new file mode 100644 index 000000000000..8c16cb95ac36 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.2.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://bitbucket.org/PascalRD/memwatch/" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" + +RDEPEND="${DEPEND}" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.3.0-r1.ebuild b/sys-process/memwatch/memwatch-0.3.0-r1.ebuild new file mode 100644 index 000000000000..7d7b69239750 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.3.0-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://unixdev.ru/memwatch" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +CMAKE_REMOVE_MODULES_LIST="FindCurses" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.3.0.ebuild b/sys-process/memwatch/memwatch-0.3.0.ebuild new file mode 100644 index 000000000000..d071cbf48cdb --- /dev/null +++ b/sys-process/memwatch/memwatch-0.3.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://unixdev.ru/memwatch" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.3.1.ebuild b/sys-process/memwatch/memwatch-0.3.1.ebuild new file mode 100644 index 000000000000..7d7b69239750 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.3.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://unixdev.ru/memwatch" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +CMAKE_REMOVE_MODULES_LIST="FindCurses" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.3.2.ebuild b/sys-process/memwatch/memwatch-0.3.2.ebuild new file mode 100644 index 000000000000..7d7b69239750 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.3.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://unixdev.ru/memwatch" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +CMAKE_REMOVE_MODULES_LIST="FindCurses" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/memwatch-0.3.3.ebuild b/sys-process/memwatch/memwatch-0.3.3.ebuild new file mode 100644 index 000000000000..7d7b69239750 --- /dev/null +++ b/sys-process/memwatch/memwatch-0.3.3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Interactive memory viewer" +HOMEPAGE="https://unixdev.ru/memwatch" +SRC_URI="http://unixdev.ru/src/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses:0=" +RDEPEND="${DEPEND}" + +CMAKE_REMOVE_MODULES_LIST="FindCurses" + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} diff --git a/sys-process/memwatch/metadata.xml b/sys-process/memwatch/metadata.xml new file mode 100644 index 000000000000..7fa4d3d18292 --- /dev/null +++ b/sys-process/memwatch/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>monsieurp@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="bitbucket">PascalRD/memwatch</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/metadata.xml b/sys-process/metadata.xml new file mode 100644 index 000000000000..18512914adfd --- /dev/null +++ b/sys-process/metadata.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The sys-process category contains packages which query or manipulate + processes. The 'cron' daemons are included in this. + </longdescription> + <longdescription lang="es"> + La categoría sys-proccess contiene paquetes que manipulan y obtienen + información de los procesos. Los paquetes de 'cron' también están + incluidos en esta categoría. + </longdescription> + <longdescription lang="ja"> + sys-processカテゴリにはプロセスを照会と操作パッケージが含まれます。 + cronデーモンはここに含まれます。 + </longdescription> + <longdescription lang="de"> + Die Kategorie sys-process enthält Pakete für das Arbeiten mit Prozessen. + Auch die Cron-Daemons sind in dieser Kategorie enthalten. + </longdescription> + <longdescription lang="nl"> + De sys-process categorie bevat pakketten voor de omgang met processen. Ook + de verschillende cron-daemons behoren tot deze categorie. + </longdescription> + <longdescription lang="vi"> + Nhóm sys-process chứa các phần mềm truy vấn và xử lý tiến trình. + Các 'cron' daemon cũng nằm trong đây. + </longdescription> + <longdescription lang="it"> + La categoria sys-process contiene pacchetti per la manipolazione e l'analisi dei processi. + I demoni 'cron' appartengono a questa categoria. + </longdescription> + <longdescription lang="pt"> + A categoria sys-process contém pacotes que manipulam e captam + informações dos processos. Os daemons de 'cron' estão incluídos + aqui. + </longdescription> + <longdescription lang="pl"> + Kategoria sys-process zawiera programy do przeszukiwania listy procesów + oraz do manipulowania nimi. Znajdują się tu również demony cron. + </longdescription> + <longdescription lang="ru"> + Категория sys-process содержит пакеты, которые работают с процессами в системе. + Демоны 'cron' также относятся к данной категории. + </longdescription> +</catmetadata> + diff --git a/sys-process/minit/Manifest b/sys-process/minit/Manifest new file mode 100644 index 000000000000..0d2e8a3f646f --- /dev/null +++ b/sys-process/minit/Manifest @@ -0,0 +1,10 @@ +AUX 0.9.1-destdir.patch 622 SHA256 3e9f633a6f9c02a61a68d85c1bd8308d26898379d5fa31fd8dac88381e522d19 SHA512 decff61697cbce5ffad4dff34141182c585b5b367cc31f1983cfe816b5a22a2f35454e1dc997443b4f79c597d6029cbf3c1d23ec830af5fabd7abedcd2be89c0 WHIRLPOOL 591892fbd5ac8b7dbd91258868aad53e3517990df95bea7b9dcc2d0549bfee16c6cf6c275d2ae9d3f6c2e6b8d7401481f28436f96404ebb6aee6544e89377819 +AUX minit-0.10-fixes.diff 1916 SHA256 0d65720c5170949fad9b798cf8185eb4a01ccbeab6a79ef5805ff65b9975a5a2 SHA512 dca96b6a5c6dba7d72f0df32a2d615aee7ffd9f640a20fa67b4fcd9a0f56e991033196e91090fd78c2ba1c38d013a4ca4b0a74e7ddc39f488354a8aafb281b00 WHIRLPOOL 7b1da1fea2e69b229aee51e21c796e150c545f1a6fe0e15bd71f2b1c9566a46363ec3fc4bdaa8e0b7377b3732e9c9c1c2095b2c272e5e2d9a4625f439574f153 +DIST minit-0.10.tar.bz2 26119 SHA256 e976926342da1828d7e6b10fe489366e7690acdd0c81c0fdfa04c57182ddfacd SHA512 9c617ca9f3638a430ae8347ec4b3dc36c5b23c703f11c4d445c9abebb2e7cb2460424f5ed71112bb21e862818a45338926bc4de3d0ed8b2e99f7d296ca37479c WHIRLPOOL 1786e1bf0df70bf6df71c71f0b2ea263f44d8cc75e6999b4fc2b1dbdef7e9df17cf72e4e128c4234519751f7e6f299b0b5f419e55ecbde12043a692ce1ce99a3 +DIST minit-0.9.1.tar.bz2 21894 SHA256 8128b6b96dbe31072005acb63005d77f052a98393c455a725c2ac5054d561d22 SHA512 896ed2eb163c63daebea50e1edc8ce4de02dce619d5bc5bf08f76dc19df82c1fdeee1e8dc0f89f5662ea5975436bdfcb4690f367b89bcb92f7a5f8328c03cfb1 WHIRLPOOL a5c8ece4ccb570f4e07a212886b5954523fad6338f41ed817ae5f25c2ce7a0974e791383d76296d94f9d7bf9440ad6b4ecc78247d74569b834ace0b6bc6de82d +EBUILD minit-0.10-r1.ebuild 927 SHA256 4c07c0bd298dae3b5c25dde45103503355129d820baf34cfc3583a521f1db67d SHA512 a6ab53764eded985db3d889b008edc54b4780ce206802469ec6dbc70c012149e37350d35c03af53c55b5d13ebad6d8ba5a2582024123a7e973ebce26f811fad4 WHIRLPOOL b3be09f9d180a7e1d56ebbade5be1db80226ace498061410fae7e66d0bb3af3c75b064569e7caaa68b351d8b74b7f8414ea58cb217e8db50a0337f80c0d6202d +EBUILD minit-0.10.ebuild 951 SHA256 869b7f2b9fefdb3f28e8347b45d002bda3cb3d81dac3d4762d8f242f6675efbb SHA512 7e6d8184034ecb17889e816430e74bff6e4de4ff32df439be1ffee3784213c73b05cd0064b4f58370ad340c089333a3e7dfe644c1d5ba1ba71f88e0baa9dc091 WHIRLPOOL c87784a53afdf42989c9157073fbd216fba5ad2d906afca65b8bb74d85f9e7573fd36529aae8cb1dbdf190e67e8dc2e20b01caea888b4d275bae201db21a664d +EBUILD minit-0.9.1.ebuild 564 SHA256 a836a2d606d50ee70aafcf114c4f8790d6dee03982fd1962d4cb28cdb3db0897 SHA512 a38009475f4e59a365d306553fe6e41a73491f18341b4ce71d7b1c9a77db091188167a4ef9e314ad9c86ed4d92e749c1a2cb741540d7df1670378585e47edd93 WHIRLPOOL 71af08e1234708907877ad1c95a655971200f978172ccebf2e4b7a02d477050ba8982f41bd13eb13e26dbdcc17b7834379980eacc1c8d3174184955efb39bf68 +MISC ChangeLog 2651 SHA256 9e0df0570cbee039aa33587d9adef7f7d35327442e30fb84f7c3fcb99f8d6e8d SHA512 efc262a45901235d19028b168b88c9a493f8c721f611e2befb73c3e80c0c3b690701ad500240380373a6c4698df2a096672faf280bdf00910be71dd39d988617 WHIRLPOOL 2410bf48ad11e8f364ef678f56696a92770685348646b4541e431ef034d81d6cdb8d40d391889a7467f4a218a8a7ebb8d81e3c430c564d54fd13701cf4b18c2d +MISC ChangeLog-2015 1798 SHA256 142e0746dc65b5ee8a58e023b30aa9717c5d4dfaa72b70887fb3b365ca00ce47 SHA512 ca210157d7b569d072a980f6e04f270703e67da55ae4c113711914748380b0f499b2a9d1af71d6828d2eb5f184f4a638a37df8ac6b0615cbe816b0f8c9f10975 WHIRLPOOL fceff01fa967ed6599a1496d064ff561621aabf52cc0387ad75b3086de3e040f0c410e9f39de64f385faa9afa36432bd806a8d81ee9c526d76594d4503fdb78c +MISC metadata.xml 1255 SHA256 8192d5d6c872e064d678552d0d5f39e454324b7d79112966ed71352ccb1f0451 SHA512 2c39ac25adbc3f8931e346608703f8de990081dec3b1f8b9dbc5c1292e57e8277e62b82cd3d390684abb9e2288748886df6ffe6fe5ad5e3ff4b9d79476993fed WHIRLPOOL 9981f15b801ce636e4e5e09a9de5df8eedaf92436b18a97aff53d7c37c9df8bcd9264c739180f7950bb1f44b76bfbf085d882e000e6f2292235dd92db4330207 diff --git a/sys-process/minit/files/0.9.1-destdir.patch b/sys-process/minit/files/0.9.1-destdir.patch new file mode 100644 index 000000000000..7a36d3cdfde7 --- /dev/null +++ b/sys-process/minit/files/0.9.1-destdir.patch @@ -0,0 +1,16 @@ +--- Makefile.orig 2004-03-04 03:08:18.967017104 -0500 ++++ Makefile 2004-03-04 03:10:11.445917712 -0500 +@@ -36,10 +36,12 @@ + $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ + + install-files: ++ test -d $(DESTDIR)/sbin || mkdir -p $(DESTDIR)/sbin + install minit pidfilehack $(DESTDIR)/sbin + install write_proc hard-reboot $(DESTDIR)/sbin ++ test -d $(DESTDIR)/bin || mkdir -p $(DESTDIR)/bin + install msvc $(DESTDIR)/bin +- test -d $(DESTDIR)/etc/minit || mkdir $(DESTDIR)/etc/minit ++ test -d $(DESTDIR)/etc/minit || mkdir -p $(DESTDIR)/etc/minit + + install-fifos: + -mkfifo -m 600 $(DESTDIR)/etc/minit/in $(DESTDIR)/etc/minit/out diff --git a/sys-process/minit/files/minit-0.10-fixes.diff b/sys-process/minit/files/minit-0.10-fixes.diff new file mode 100644 index 000000000000..5c80091f84f3 --- /dev/null +++ b/sys-process/minit/files/minit-0.10-fixes.diff @@ -0,0 +1,62 @@ +diff -ru minit-0.10.orig/Makefile minit-0.10/Makefile +--- minit-0.10.orig/Makefile 2005-04-08 19:24:04.000000000 +0200 ++++ minit-0.10/Makefile 2008-11-27 23:05:57.000000000 +0100 +@@ -7,7 +7,7 @@ + CROSS= + #CROSS=arm-linux- + LDFLAGS=-s +-MANDIR=/usr/man ++MANDIR=/usr/share/man + + path = $(subst :, ,$(PATH)) + diet_path = $(foreach dir,$(path),$(wildcard $(dir)/diet)) +@@ -44,9 +44,11 @@ + msvc: msvc.o + minit-update: minit-update.o split.o openreadclose.o + serdo: serdo.o +- + shutdown: shutdown.o split.o openreadclose.o opendevconsole.o +- $(DIET) $(CROSS)$(CC) $(LDFLAGS) -o shutdown $^ ++pidfilehack: pidfilehack.o ++hard-reboot: hard-reboot.o ++write_proc: write_proc.o ++killall5: killall5.o + + %.o: %.c + $(DIET) $(CROSS)$(CC) $(CFLAGS) -c $< +@@ -61,22 +63,11 @@ + test: test.c + gcc -nostdlib -o $@ $^ -I../dietlibc/include ../dietlibc/start.o ../dietlibc/dietlibc.a + +-pidfilehack: pidfilehack.c +- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ +- +-hard-reboot: hard-reboot.c +- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ +- +-write_proc: write_proc.c +- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ +- +-killall5: killall5.c +- $(DIET) $(CROSS)$(CC) $(CFLAGS) -o $@ $^ +- + install-files: + install -d $(DESTDIR)/etc/minit $(DESTDIR)/sbin $(DESTDIR)/bin $(DESTDIR)$(MANDIR)/man8 +- install minit pidfilehack $(DESTDIR)/sbin ++ install minit killall5 pidfilehack $(DESTDIR)/sbin + install write_proc hard-reboot minit-update $(DESTDIR)/sbin ++ install listpids $(DESTDIR)/sbin/minit-list + install msvc serdo $(DESTDIR)/bin + install -m 4750 shutdown $(DESTDIR)/sbin + test -f $(DESTDIR)/sbin/init || ln $(DESTDIR)/sbin/minit $(DESTDIR)/sbin/init +diff -ru minit-0.10.orig/serdo.c minit-0.10/serdo.c +--- minit-0.10.orig/serdo.c 2005-02-26 18:00:22.000000000 +0100 ++++ minit-0.10/serdo.c 2008-11-27 23:02:57.000000000 +0100 +@@ -10,6 +10,7 @@ + #define MAXENV 256 + char* envp[MAXENV+2]; + int envc; ++extern char **environ; + + int continueonerror; + diff --git a/sys-process/minit/metadata.xml b/sys-process/minit/metadata.xml new file mode 100644 index 000000000000..e4a4ebd1d0b1 --- /dev/null +++ b/sys-process/minit/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>aw-gentoo@instandbesetzt.net</email> + <name>Andreas Wiese</name> + </maintainer> +<maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +<longdescription> +minit - a small yet feature-complete init + +What works so far + * It can start services and take dependencies into account. + * It can restart services + * It can start services in sync mode (i.e. wait until they +terminate, to get around race conditions for static initializations) + * There is a companion utility "msvc" that can be used much in the +same way as the svc from daemontools. Communication works over two +fifos, /etc/minit/in and /etc/minit/out. Those have to exist before +minit is started and they should be owned by root and have mode 600. + * There is a companion utility "pidfilehack" that can be used to do +stuff like run ssh, wait a while, read the PID off /var/run/sshd.pid and +tell minit this PID so it will know when sshd exits and can restart it. + * It can pipe stdout to a dedicated log process. +</longdescription> +</pkgmetadata> diff --git a/sys-process/minit/minit-0.10-r1.ebuild b/sys-process/minit/minit-0.10-r1.ebuild new file mode 100644 index 000000000000..b5e5a674cca0 --- /dev/null +++ b/sys-process/minit/minit-0.10-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="a small yet feature-complete init" +HOMEPAGE="http://www.fefe.de/minit/" +SRC_URI="http://dl.fefe.de/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-libs/libowfat + dev-libs/dietlibc" + +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/minit-0.10-fixes.diff +) + +DOCS=( CHANGES README TODO ) + +src_compile() { + emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" \ + DIET="diet"\ + CC="$(tc-getCC)" +} + +src_install() { + emake install-files DESTDIR="${D}" + mv "${D}"/sbin/shutdown "${D}/sbin/${PN}-shutdown" || die + mv "${D}"/sbin/killall5 "${D}/sbin/${PN}-killall5" || die + rm -v "${D}"/sbin/init || die +} + +pkg_postinst() { + [[ -e /etc/minit/in ]] || mkfifo "${ROOT}"/etc/minit/in + [[ -e /etc/minit/out ]] || mkfifo "${ROOT}"/etc/minit/out +} diff --git a/sys-process/minit/minit-0.10.ebuild b/sys-process/minit/minit-0.10.ebuild new file mode 100644 index 000000000000..f1502b99c2bc --- /dev/null +++ b/sys-process/minit/minit-0.10.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="a small yet feature-complete init" +HOMEPAGE="http://www.fefe.de/minit/" +SRC_URI="http://dl.fefe.de/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND=">=dev-libs/libowfat-0.28-r1 + dev-libs/dietlibc" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}"/minit-0.10-fixes.diff +} + +src_compile() { + emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" DIET="diet" CC="$(tc-getCC)" || die +} + +src_install() { + emake install-files DESTDIR="${D}" || die + mv "${D}"/sbin/shutdown "${D}"/sbin/minit-shutdown || die + mv "${D}"/sbin/killall5 "${D}"/sbin/minit-killall5 || die + rm "${D}"/sbin/init || die + dodoc CHANGES README TODO +} + +pkg_postinst() { + [ -e /etc/minit/in ] || mkfifo "${ROOT}"/etc/minit/in + [ -e /etc/minit/out ] || mkfifo "${ROOT}"/etc/minit/out +} diff --git a/sys-process/minit/minit-0.9.1.ebuild b/sys-process/minit/minit-0.9.1.ebuild new file mode 100644 index 000000000000..8e576817cb0a --- /dev/null +++ b/sys-process/minit/minit-0.9.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="a small yet feature-complete init" +HOMEPAGE="http://www.fefe.de/minit/" +SRC_URI="http://www.fefe.de/minit/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PV}-destdir.patch +} + +src_compile() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" DIET="" || die +} + +src_install() { + make install DESTDIR="${D}" || die + dodoc CHANGES README TODO +} diff --git a/sys-process/nmon/Manifest b/sys-process/nmon/Manifest new file mode 100644 index 000000000000..8a392ca6f4de --- /dev/null +++ b/sys-process/nmon/Manifest @@ -0,0 +1,7 @@ +DIST lmon16f.c 271123 SHA256 280a371e17488f8a2c5e0c64273155789be6fa5b937ab5c465488e591bdc5cd9 SHA512 04d22b4678932067d42158f1bc794f79b5a321e10ba7163632be3b930e28176d0d057cd652ef7cd342167741aafdc00a16e612a99522bfe75072e67cf8d0a66b WHIRLPOOL 26d7f13fad94171a9f66da52fc5a927e2133c41f524956725a4f5e4527d61c2d0034a4c0eada85d22ff81c2b0cbc0f4f26eee0595f844212af36197b76704d3d +DIST lmon16g.c 267681 SHA256 da82dd693b503b062854dfe7dbb5d36b347872ab44a4aa05b97e9d577747f688 SHA512 87287183db48338a281438efc7a8b74249cf88c0a0799e826a9a89b0eb39835b0ba223c7ea6decc217848179f4991909b3cf307aa7eec8a3a4604ebf8a4e8ebe WHIRLPOOL 662146f0554692435969d191848aecec630c48d156fa4f23544c8a30f15ee6fd03f43de4fa556dc644a9c1dfb5714e9fb2eb51d9dd3d0566e4145541e13fa28f +EBUILD nmon-16f.ebuild 961 SHA256 3753715c8e8126231c2bea35f52be9f3f4d52414c00dede757e92f5adc3e9168 SHA512 d8aee18fc9778aee3a733ff81bd326dbc877f4de582b3b3489a0063700d4809bc7571728763a720b5ed48074f620f5d51a00b20e92b4ee8780137b470314fca1 WHIRLPOOL 1180acc0397d93cfbb726728a30d4059d761ecbdc6a137b63384965d607400892e4acf802a25d77a9564332acfd23ea4bfec9a305f92b466a0f5e7d4115dfb2f +EBUILD nmon-16g.ebuild 963 SHA256 ca3d5c47d02474b08a9e579b3942eab703aefe76f73ecadd958581dff0b8a149 SHA512 c1d8cfea464ada9feb245075c8d4094f42ef444fc1f4ff53286a2170b8a6561ed50eb5c151cd0bd75880e6f5508c87b72867a4aaa25447b8dd36a473755b42dd WHIRLPOOL e92051510a352db85bae5d5c6d6d1d264a8b85bbda414b036fb062383a8044324197799c907c5591e2d7e85471dc40968819e9c5e3a290ae93175e02f61f7a89 +MISC ChangeLog 4138 SHA256 d98fc1dfdc589db3c61873ebb0162092464b401401a36986313cde1bff63b77d SHA512 3ab58b8eb1883bb32004f2c3b8db279cf11a80e53ff64f66fe3002526ec68f88d466a95c010ad0332b513db0af18fd80bb6b638334ed463301c06fb497a43906 WHIRLPOOL 34b208a776e53c178c2ed6fdb450562fc49650763341afd2a7593d4bed5e2e065d3cd53f850101dd34d18205f5c53cc3fbd8b042787e25a522886ae7c3903239 +MISC ChangeLog-2015 1135 SHA256 d8fe1e6c65ca68e6999d895ff9b52b91216fb891662d287ed8cedec119146e94 SHA512 9fa6737acda9b722f95e3e7c9eadb65fc87dc30483d1e8db4550240aa8e825e6c7de0ea1b000e8179502c5b8d348f8185a6e50880212d3f081f7827eb560d9c9 WHIRLPOOL f7b173781f80d7bda230b8f90a5c4255f9fbc83447c37f3fda974a66b1ac4aaf33ff99c0b6e94de5de1eccf8c96660c54ef93038ccc1c756fe848d7c3ceb1ef9 +MISC metadata.xml 541 SHA256 9170ac921358422edf97ee2a8c653b296f5d2199b524b50fee9a149985a301e0 SHA512 aad83c0e01dae9b89900b1d762be4442e39e0da5c3b26522c50853da3e9f69161428d66a52589c7ca5fe663d84bc7241edd36a47a79c20c29e8205d5cd08bf12 WHIRLPOOL bc04ec8f3254d93fc85f5f1491a568cad6ea6026b88fdf0b3d08e2c5e72910df0c7680640145b2ff8b042dcd1924741dd5a24b98bc6cdbc19570900ba7d3437d diff --git a/sys-process/nmon/metadata.xml b/sys-process/nmon/metadata.xml new file mode 100644 index 000000000000..01c56e510ab2 --- /dev/null +++ b/sys-process/nmon/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>nelo@wallus.de</email> + <name>Nelo-Thara Wallus</name> + <description>Proxied by Polynomial-C</description> + </maintainer> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + <description>Proxy maintainer for Nelo</description> + </maintainer> + <upstream> + <remote-id type="sourceforge">nmon</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/nmon/nmon-16f.ebuild b/sys-process/nmon/nmon-16f.ebuild new file mode 100644 index 000000000000..e416c50b8747 --- /dev/null +++ b/sys-process/nmon/nmon-16f.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +MY_P="lmon${PV}" + +DESCRIPTION="Nigel's performance MONitor for CPU, memory, network, disks, etc..." +HOMEPAGE="http://nmon.sourceforge.net/" +LICENSE="GPL-3" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.c" + +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc64 x86" + +RDEPEND="sys-libs/ncurses:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +S="${WORKDIR}" + +src_unpack() { + cp -v -f "${DISTDIR}"/${MY_P}.c "${S}"/${PN}.c || die +} + +src_configure() { + local cflags=( + ## recommended by upstream to be always on + -DGETUSER + -DJFS + -DLARGEMEM + -DKERNEL_2_6_18 + + ## archs + $(usex amd64 -DX86 '') + $(usex x86 -DX86 '') + $(usex arm -DARM '') + $(usex ppc64 -DPOWER '') + ) + append-cflags "${cflags[@]}" + export LDLIBS="$( $(tc-getPKG_CONFIG) --libs ncurses ) -lm" +} + +src_compile() { + emake ${PN} +} + +src_install() { + dobin ${PN} +} diff --git a/sys-process/nmon/nmon-16g.ebuild b/sys-process/nmon/nmon-16g.ebuild new file mode 100644 index 000000000000..918ae4569cc1 --- /dev/null +++ b/sys-process/nmon/nmon-16g.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +MY_P="lmon${PV}" + +DESCRIPTION="Nigel's performance MONitor for CPU, memory, network, disks, etc..." +HOMEPAGE="http://nmon.sourceforge.net/" +LICENSE="GPL-3" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.c" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" + +RDEPEND="sys-libs/ncurses:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +S="${WORKDIR}" + +src_unpack() { + cp -v -f "${DISTDIR}"/${MY_P}.c "${S}"/${PN}.c || die +} + +src_configure() { + local cflags=( + ## recommended by upstream to be always on + -DGETUSER + -DJFS + -DLARGEMEM + -DKERNEL_2_6_18 + + ## archs + $(usex amd64 -DX86 '') + $(usex x86 -DX86 '') + $(usex arm -DARM '') + $(usex ppc64 -DPOWER '') + ) + append-cflags "${cflags[@]}" + export LDLIBS="$( $(tc-getPKG_CONFIG) --libs ncurses ) -lm" +} + +src_compile() { + emake ${PN} +} + +src_install() { + dobin ${PN} +} diff --git a/sys-process/numactl/Manifest b/sys-process/numactl/Manifest new file mode 100644 index 000000000000..c6b396573373 --- /dev/null +++ b/sys-process/numactl/Manifest @@ -0,0 +1,16 @@ +AUX numactl-2.0.10-numademo-cflags.patch 504 SHA256 fd1b3cc3f03155269f52f4e4beda67221993104315eaef413fb83f271e98cd1b SHA512 15266d98c375241fd84146a010f329265644666ab90d517865675618a8f793ea6bdc39e7c8b64836fa5b393afad1cd3c89452e838d751adbb315668a2cd29b78 WHIRLPOOL 8d8313bb7d4423e4008bd755c268a658bd88a40a33956afc26134bcf18b21e5f0283a68d36a45af48a8f06a8bdd9b216e2dc55c1c037da405860bfb3367cf3c8 +AUX numactl-2.0.11-sysmacros.patch 1391 SHA256 592f30f7f5f757dfc239ad0ffd39a9a048487ad803c26b419e0f96b8cda08c1a SHA512 39c5841000650af58ae4f6b15a2e2af7b4fb45e7514537f1d081cc0be74bf13aaa3d336a31ef15386b897cc3478ec58b8c194850e99ca2605f5f25be1650a63f WHIRLPOOL 6ba6d97fc65bd9544b56cb07623784532cf21f06eda20e366a77699428fbcd81cd3dd79083b71a7547c12ffab01b7efa633ed2501456c9d21b70daf3deff50d4 +AUX numactl-2.0.8-cpuid-pic.patch 697 SHA256 fc6d5e058ceb1953665fe67ec893a575b51c4cdd43a11117fb416bb88ad45459 SHA512 d9624110a7f8459c13b67eb990f05bc54ffe55818d586691b307dcc4ca5861f064a7269f1038cba5f8abf0f2b6d359d30e4f8d6e904a7e5c0da3404ef1bd4d51 WHIRLPOOL a59de11f4784636d618774f1a660eed3a534225e85881a036b13a59ec28823813b224081dffb9ab5870f7cf3bf4155bb0c92abc317dd3955fed8ab266f8d299d +AUX numactl-2.0.8-static_libs.patch 2761 SHA256 ff8abe7defc4fde1f2bd380ccb0df3990ea57ddfcafd07cde6327820c667be16 SHA512 828dbcd719671c8ca81745d5670d48c071a8b353b9e42bbbaf9eeffd41b607a53ae24ddd6f0be422a2e6f61899635228da0926d7d8dedd143f52fde5bc5dbe05 WHIRLPOOL fd8f1dcc105b6cec190cd767a0c9bf2b3f556b541637e88c8ec718973732108bac3eec8cc1bcb5394c2f882b972b37d6234b016b2bbc3d8e1faa1372eb13e60c +AUX numactl-2.0.9-testsuite_fix.patch 262 SHA256 2b857d892f99fb93e2fb961ac08f054d60b0c9a93331226e866d6bb66b7c4417 SHA512 8b9d952076eb04f0093d25c87f25e3f68f9a02a96daa4b574414f75092ded757fd587419584e8ea1883c0881aa2d462cf04904a479c0a925784e111e4b95a6c8 WHIRLPOOL 9d996e854e68d610658e0a0853ee4be9ea5aa30dc4ced8db0a55689c5d8d3235af54102744704b0480d1d8213f814dbe5b8792479ac7e90cce1de2597747bb02 +AUX numactl-2.0.9-testsuite_path.patch 716 SHA256 a498b303d93c8d311c163d497e7b28899dfd09fc5201ef3cde7b65381ea99878 SHA512 ed6ba9f225f551d473231c187b962e7c6dd2d20ded491a07fab6ec1edebd27c0eed7186e6eeee0c665eb2139425b23dd4a1162cca0eab31e8f063d48a4908629 WHIRLPOOL f91ff4876e75f6130d4199e1dd3d0beb4d7e959c25877f5703342623366ef4f841e2b7832177fbe7222607a5f1c120a89dd6ed88b5b84f020347bf28d28287e9 +DIST numactl-2.0.10.tar.gz 98999 SHA256 9d197fefac81c73dc2b2e554f1758b2ec56d4e9b2f04a7f45dff5d6cb14fb9ce SHA512 3a82b28bbc724a2340950ac33396055da852ee06e5b1d3414cd83dd6f9e26fbb648faae35ce4009c76d6a180f3067a8f3fb18e3ffaa6b6db68adfc0877e94975 WHIRLPOOL 59a172c14d96b01b1e13d2913f6f820d4f9bacb2f80e2920d4350273ff01ab57d56ab4a163fde2df3898c4b7cf204bd4a333c99f9feb9d5bcd89fea799a3d2db +DIST numactl-2.0.11.tar.gz 408175 SHA256 450c091235f891ee874a8651b179c30f57a1391ca5c4673354740ba65e527861 SHA512 1969d7ee0ff3de0d6f1fa42ec089a17cdb3f92cb35d453b8f8b2eec49724c43787ecbd213357013a8f2500a260b0df9844d515815ca3a0376314a0eed050a0d4 WHIRLPOOL 2d22a54de00bea80835e206704652d4fead1b585b3bedd4eeb4b61d96514117e91a9c8bda466bd7f8d17e3777c4e7a8d69dd0a6e5b6ab29c0141e086c09c311b +DIST numactl-2.0.9.tar.gz 341455 SHA256 9ca033e6c14c0f26c20379b0cf9299429fd5a354a79c3c7880fd41ef69f7751c SHA512 483cbb1607da0f3bf0923202ea565100ea430b19502bdbd322f043f75dc945cc0f47878c0ed28badab23561c37da0b04aa12d07656bb4666c4f8d02a0d256407 WHIRLPOOL 5aba5b4a6ab0a4f06a2266054fdc7be8ca81696cf417e4fa4d10667ab95195edc5e002551a3bda4ea1eb25caf01d171ed18a16e4c29960902546aa78d7b93d73 +EBUILD numactl-2.0.10-r2.ebuild 1341 SHA256 e2e7e246ab9e032849df4c4d24478fc3bb8c8ab267268d705a85161c2922e290 SHA512 ca84553e42fdfc562ffa94d4add751b0005d9696891556a49961e6941e49b1334e786f0c385cbc37c7cea22fb2bc9345bae1998eb14f86d287c07ce9c5f7f331 WHIRLPOOL 5af12e18621908d51074cac692e7501229cd841d034db04da0b3d9a9279c6ac205e40e74e0efdd1821f2c0d520e2472026e37dc762360ebdb9027f1c34345533 +EBUILD numactl-2.0.11-r1.ebuild 1668 SHA256 142a557291b78e3977bdb93c9d434d96791aafabd2c3d990adf299e9ac10ce99 SHA512 f7a4265e81b14d1d5b6814ecddc5640f30fb1ca9c7cf7e8750a754bd397e7327d9af00598a7c19b8906f405487205cbee62f1937faee83fb56a5d1adbe48d740 WHIRLPOOL 86f237681f130ce92c595696549f29d731a97660f3dd2d42299715c1b3887a5764d2b170b29e1c5ccf1cb976104cd8bbc0db2dae19351c703eb74f976250422a +EBUILD numactl-2.0.11.ebuild 1527 SHA256 b4d2313199c5324bff7918821ddf2c90a0bc2b6bf4c9c742234930a07df19fbb SHA512 0a0a6eff479e075be84a48dbe2994c1ce884ad3dee6da4d2d83c770ec7db42cdde077bcd3e17c23166bf19eb83eeecbeb86d1b7c48df34c3146bfece8db481dd WHIRLPOOL 7d783ab0405bccedfb40cd0f68b1a38b7e45abae2dc837bb0acbbadfa6072edbda73eebb9fd5066e1dce412d6e3b79801a261cb2c5f6edd9737f15cfe6ac6731 +EBUILD numactl-2.0.9.ebuild 1555 SHA256 ffec5268b61594973b98470f5bd4f0dcc79d64509f9810dc72eadee08983593d SHA512 9fc857360e0dc121a0737f2109b017d0d5c5474b349ce34aa7632301f44991303b4fd6479f3d23d81c4d629553ed580f7468d1ebc5f001530eed7e1d76fd3833 WHIRLPOOL 5dfc64ab18d43cd52233c2331142c2841a5c0127cd617cee4b675fc5b555918aae9a363aedc14c28d9c0feb90289fcec0cbb0eaf468d2eb7a52a72b6ec5630d1 +MISC ChangeLog 5484 SHA256 97de5d01d56a13f7c2dea7dc7de62cff0e73b18fae8504b3676a90c57e7107b5 SHA512 1f0a8f41d536fccc01f7d77a47d41fa185d17385f3cb8138a66ccab346d80562a0c2b61a04209ee9bb2090562c241ba011ce89bcb642fcb04f6f3348b5bc4d83 WHIRLPOOL 7bdb16614201dc9bf5a6bf99db9d015d335156d6c665ef5ed4dff1a6cca92cdeb71672898d02950ccf80d5bb1817f400defada715df50bc863d0dfdca7ee2d78 +MISC ChangeLog-2015 6498 SHA256 63cc4288b037d0495b6907a3f601452e181e40c2625f8446d1ed694f92d4bc7c SHA512 43519e08192c9c14ef982ff851b7a77eea4c06a0a50243e3def2238d7b08644d0bd9750c96dbccbc0e1e4fafdc29ca1bef4cf75d97c79fd16ee9b867380068e9 WHIRLPOOL 96bf61e149caeb26755dbb7c5f235f70fa4ad491502e41350617b4f650f0d7dfc7629eff66548507a0c6c459b411035d49f7046f77de64144cd354f07e55ffcb +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/numactl/files/numactl-2.0.10-numademo-cflags.patch b/sys-process/numactl/files/numactl-2.0.10-numademo-cflags.patch new file mode 100644 index 000000000000..9b318df5a5ca --- /dev/null +++ b/sys-process/numactl/files/numactl-2.0.10-numademo-cflags.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/540856 + +respect user CFLAGS + +--- a/Makefile.am ++++ b/Makefile.am +@@ -23,7 +23,7 @@ numastat_CFLAGS = $(AM_CFLAGS) -std=gnu99 + + numademo_SOURCES = numademo.c stream_lib.c stream_lib.h mt.c mt.h clearcache.c clearcache.h + numademo_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_STREAM_LIB -DHAVE_MT -DHAVE_CLEAR_CACHE +-numademo_CFLAGS = -O3 -ffast-math -funroll-loops ++numademo_CFLAGS = $(AM_CFLAGS) -ffast-math -funroll-loops + if HAVE_TREE_VECTORIZE + numademo_CFLAGS += -ftree-vectorize + endif diff --git a/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch b/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch new file mode 100644 index 000000000000..3f9536757391 --- /dev/null +++ b/sys-process/numactl/files/numactl-2.0.11-sysmacros.patch @@ -0,0 +1,41 @@ +https://bugs.gentoo.org/580098 + +From c1644f92e340d797e490c41a9ef9961125d202b9 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 18 Apr 2016 18:49:51 -0400 +Subject: [PATCH] include sys/sysmacros.h for major/minor + +These functions are not part of any official spec, and glibc has always +kept them in sys/sysmacros.h. As glibc moves to conform to POSIX, and +more alternative C libraries come up, we need to include this header +explicitly to get the prototypes. Otherwise we fail to build like: + +affinity.c: In function 'affinity_file': +affinity.c:177:7: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] + if (major(d) != maj || minor(d) != min) + ^ +affinity.c:177:26: warning: implicit declaration of function 'minor' [-Wimplicit-function-declaration] + if (major(d) != maj || minor(d) != min) + ^ +./.libs/libnuma.so: undefined reference to 'minor' +./.libs/libnuma.so: undefined reference to 'major' +collect2: error: ld returned 1 exit status +--- + affinity.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/affinity.c b/affinity.c +index 9fbd6af..984291c 100644 +--- a/affinity.c ++++ b/affinity.c +@@ -40,6 +40,7 @@ + #include <linux/rtnetlink.h> + #include <linux/netlink.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + #include <ctype.h> + #include <assert.h> + #include <regex.h> +-- +2.7.4 + diff --git a/sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch b/sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch new file mode 100644 index 000000000000..02e84b725772 --- /dev/null +++ b/sys-process/numactl/files/numactl-2.0.8-cpuid-pic.patch @@ -0,0 +1,17 @@ +make the code work on x86/PIC. this code is only used in the demo, +and the overhead of always running this is system noise, so don't +bother bracketing with __i386__/__PIC__ defines. + +http://bugs.gentoo.org/456238 + +--- a/clearcache.c ++++ b/clearcache.c +@@ -57,7 +57,7 @@ void clearcache(unsigned char *mem, unsigned size) + #if defined(__i386__) || defined(__x86_64__) + unsigned i, cl, eax, feat; + /* get clflush unit and feature */ +- asm("cpuid" : "=a" (eax), "=b" (cl), "=d" (feat) : "0" (1) : "cx"); ++ asm("xchg %%ebx, %%esi; cpuid; xchg %%esi, %%ebx;" : "=a" (eax), "=S" (cl), "=d" (feat) : "0" (1) : "cx"); + if (!(feat & (1 << 19))) + fallback_clearcache(); + cl = ((cl >> 8) & 0xff) * 8; diff --git a/sys-process/numactl/files/numactl-2.0.8-static_libs.patch b/sys-process/numactl/files/numactl-2.0.8-static_libs.patch new file mode 100644 index 000000000000..efb84ff6240a --- /dev/null +++ b/sys-process/numactl/files/numactl-2.0.8-static_libs.patch @@ -0,0 +1,86 @@ +Build static libs without -fPIC and only if BUILD_STATIC=yes + +https://bugs.gentoo.org/379849 + +Patch written by Kacper Kowalik <xarthisius@gentoo.org> +--- a/Makefile ++++ b/Makefile +@@ -7,6 +7,8 @@ + # for compatibility with old releases + CFLAGS += ${OPT_CFLAGS} + override CFLAGS += -I. ++# build static libraries by default ++BUILD_STATIC ?= yes + + # find out if compiler supports __thread + THREAD_SUPPORT := $(shell if $(CC) $(CFLAGS) threadtest.c -o threadtest \ +@@ -24,6 +26,7 @@ + + CLEANFILES := numactl.o libnuma.o numactl numademo numademo.o distance.o \ + memhog libnuma.so libnuma.so.1 numamon numamon.o syscall.o bitops.o \ ++ distance.pic.o libnuma.pic.o syscall.pic.o \ + memhog.o util.o stream_main.o stream_lib.o shm.o stream clearcache.o \ + test/pagesize test/tshared test/mynode.o test/tshared.o mt.o empty.o empty.c \ + test/mynode test/ftok test/prefered test/randmap \ +@@ -40,11 +43,16 @@ + libdir := ${prefix}/$(shell ./getlibdir) + docdir := ${prefix}/share/doc + ++NUMA_LIBS = libnuma.so ++ifeq ($(BUILD_STATIC),yes) ++NUMA_LIBS+= libnuma.a ++endif ++ + all: numactl migratepages migspeed libnuma.so numademo numamon memhog \ + test/tshared stream test/mynode test/pagesize test/ftok test/prefered \ + test/randmap test/nodemap test/distance test/tbitmap test/move_pages \ + test/mbind_mig_pages test/migrate_pages test/realloc_test libnuma.a \ +- test/node-parse numastat ++ test/node-parse numastat ${NUMA_LIBS} + + numactl: numactl.o util.o shm.o bitops.o libnuma.so + +@@ -81,13 +89,14 @@ + + libnuma.so.1: versions.ldscript + +-libnuma.so.1: libnuma.o syscall.o distance.o affinity.o sysfs.o rtnetlink.o ++libnuma.so.1: libnuma.pic.o syscall.pic.o distance.pic.o affinity.pic.o sysfs.pic.o rtnetlink.pic.o + ${CC} ${LDFLAGS} -shared -Wl,-soname=libnuma.so.1 -Wl,--version-script,versions.ldscript -Wl,-init,numa_init -Wl,-fini,numa_fini -o libnuma.so.1 $(filter-out versions.ldscript,$^) + + libnuma.so: libnuma.so.1 + ln -sf libnuma.so.1 libnuma.so + +-libnuma.o : CFLAGS += -fPIC ++%.pic.o: %.c ++ ${CC} -fPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@ + + AR ?= ar + RANLIB ?= ranlib +@@ -95,16 +104,6 @@ + $(AR) rc $@ $^ + $(RANLIB) $@ + +-distance.o : CFLAGS += -fPIC +- +-syscall.o : CFLAGS += -fPIC +- +-affinity.o : CFLAGS += -fPIC +- +-sysfs.o : CFLAGS += -fPIC +- +-rtnetlink.o : CFLAGS += -fPIC +- + test/tshared: test/tshared.o libnuma.so + + test/mynode: test/mynode.o libnuma.so +@@ -143,7 +148,9 @@ + mkdir -p ${libdir} + install -m 0755 libnuma.so.1 ${libdir} + cd ${libdir} ; ln -sf libnuma.so.1 libnuma.so ++ifeq ($(BUILD_STATIC),yes) + install -m 0644 libnuma.a ${libdir} ++endif + mkdir -p ${prefix}/include + install -m 0644 numa.h numaif.h numacompat1.h ${prefix}/include + install -m 0755 numastat ${prefix}/bin diff --git a/sys-process/numactl/files/numactl-2.0.9-testsuite_fix.patch b/sys-process/numactl/files/numactl-2.0.9-testsuite_fix.patch new file mode 100644 index 000000000000..27a97fdf2509 --- /dev/null +++ b/sys-process/numactl/files/numactl-2.0.9-testsuite_fix.patch @@ -0,0 +1,12 @@ +Tests fail with /bin/dash + +Singned-off-by: Lars Wendler <polynomial-c@gentoo.org> + +--- numactl-2.0.9/test/printcpu ++++ numactl-2.0.9/test/printcpu +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + #print cpu it is running on + declare -a arr + arr=( $(< /proc/self/stat) ) diff --git a/sys-process/numactl/files/numactl-2.0.9-testsuite_path.patch b/sys-process/numactl/files/numactl-2.0.9-testsuite_path.patch new file mode 100644 index 000000000000..018fc6dbcd18 --- /dev/null +++ b/sys-process/numactl/files/numactl-2.0.9-testsuite_path.patch @@ -0,0 +1,14 @@ +diff -Naur numactl-2.0.10-orig/test/bind_range numactl-2.0.10/test/bind_range +--- numactl-2.0.10-orig/test/bind_range 2015-05-03 22:23:31.095600314 -0400 ++++ numactl-2.0.10/test/bind_range 2015-05-03 22:25:29.107592557 -0400 +@@ -93,8 +93,8 @@ + + HIGHESTCPU=$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 -d':') + HIGHESTCPU=$(echo $HIGHESTCPU | cut -f2 -d' ') +-HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut -f2 -d' ') +-LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ') ++HIGHESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut -f2 -d' ') ++LOWESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut -f2 -d' ') + + get_mask + diff --git a/sys-process/numactl/metadata.xml b/sys-process/numactl/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/numactl/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/numactl/numactl-2.0.10-r2.ebuild b/sys-process/numactl/numactl-2.0.10-r2.ebuild new file mode 100644 index 000000000000..9fb85bfcce33 --- /dev/null +++ b/sys-process/numactl/numactl-2.0.10-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils toolchain-funcs multilib-minimal + +DESCRIPTION="Utilities and libraries for NUMA systems" +HOMEPAGE="http://oss.sgi.com/projects/libnuma/" +SRC_URI="ftp://oss.sgi.com/www/projects/libnuma/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +# ARM lacks the __NR_migrate_pages syscall. +KEYWORDS="~amd64 -arm ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="" + +ECONF_SOURCE=${S} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.8-cpuid-pic.patch #456238 + epatch "${FILESDIR}"/${PN}-2.0.10-numademo-cflags.patch #540856 + eautoreconf +} + +src_test() { + if [ -d /sys/devices/system/node ]; then + einfo "The only generically safe test is regress2." + einfo "The other test cases require 2 NUMA nodes." + emake regress2 + else + ewarn "You do not have baseline NUMA support in your kernel, skipping tests." + fi +} + +multilib_src_compile() { + multilib_is_native_abi && default || emake libnuma.la +} + +multilib_src_install() { + emake DESTDIR="${D}" install$(multilib_is_native_abi || echo "-libLTLIBRARIES install-includeHEADERS") +} + +multilib_src_install_all() { + DOCS=( README TODO CHANGES DESIGN ) + einstalldocs + # delete man pages provided by the man-pages package #238805 + rm -r "${ED}"/usr/share/man/man[25] || die +} diff --git a/sys-process/numactl/numactl-2.0.11-r1.ebuild b/sys-process/numactl/numactl-2.0.11-r1.ebuild new file mode 100644 index 000000000000..ff96a5ace1b1 --- /dev/null +++ b/sys-process/numactl/numactl-2.0.11-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit autotools eutils toolchain-funcs multilib-minimal + +DESCRIPTION="Utilities and libraries for NUMA systems" +HOMEPAGE="http://oss.sgi.com/projects/libnuma/" +SRC_URI="ftp://oss.sgi.com/www/projects/libnuma/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +# ARM lacks the __NR_migrate_pages syscall. +KEYWORDS="~amd64 -arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="static-libs" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.8-cpuid-pic.patch #456238 + epatch "${FILESDIR}"/${PN}-2.0.10-numademo-cflags.patch #540856 + epatch "${FILESDIR}"/${PN}-2.0.11-sysmacros.patch #580098 + eautoreconf + # We need to copy the sources or else tests will fail + multilib_copy_sources +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf $(use_enable static-libs static) +} + +multilib_src_compile() { + multilib_is_native_abi && default || emake libnuma.la +} + +multilib_src_test() { + if multilib_is_native_abi ; then + if [ -d /sys/devices/system/node ]; then + einfo "The only generically safe test is regress2." + einfo "The other test cases require 2 NUMA nodes." + emake regress2 + else + ewarn "You do not have baseline NUMA support in your kernel, skipping tests." + fi + fi +} + +multilib_src_install() { + emake DESTDIR="${D}" install$(multilib_is_native_abi || echo "-libLTLIBRARIES install-includeHEADERS") + find "${ED}"/usr/ -name libnuma.la -delete +} + +multilib_src_install_all() { + DOCS=( README TODO CHANGES DESIGN ) + einstalldocs + # delete man pages provided by the man-pages package #238805 + rm -r "${ED}"/usr/share/man/man[25] || die +} diff --git a/sys-process/numactl/numactl-2.0.11.ebuild b/sys-process/numactl/numactl-2.0.11.ebuild new file mode 100644 index 000000000000..513866b7c61a --- /dev/null +++ b/sys-process/numactl/numactl-2.0.11.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils toolchain-funcs multilib-minimal + +DESCRIPTION="Utilities and libraries for NUMA systems" +HOMEPAGE="http://oss.sgi.com/projects/libnuma/" +SRC_URI="ftp://oss.sgi.com/www/projects/libnuma/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +# ARM lacks the __NR_migrate_pages syscall. +KEYWORDS="amd64 -arm ia64 ~mips ppc ppc64 x86 ~amd64-linux" +IUSE="" + +ECONF_SOURCE=${S} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.8-cpuid-pic.patch #456238 + epatch "${FILESDIR}"/${PN}-2.0.10-numademo-cflags.patch #540856 + epatch "${FILESDIR}"/${PN}-2.0.11-sysmacros.patch #580098 + eautoreconf + # We need to copy the sources or else tests will fail + multilib_copy_sources +} + +multilib_src_test() { + if multilib_is_native_abi ; then + if [ -d /sys/devices/system/node ]; then + einfo "The only generically safe test is regress2." + einfo "The other test cases require 2 NUMA nodes." + emake regress2 + else + ewarn "You do not have baseline NUMA support in your kernel, skipping tests." + fi + fi +} + +multilib_src_compile() { + multilib_is_native_abi && default || emake libnuma.la +} + +multilib_src_install() { + emake DESTDIR="${D}" install$(multilib_is_native_abi || echo "-libLTLIBRARIES install-includeHEADERS") +} + +multilib_src_install_all() { + DOCS=( README TODO CHANGES DESIGN ) + einstalldocs + # delete man pages provided by the man-pages package #238805 + rm -r "${ED}"/usr/share/man/man[25] || die +} diff --git a/sys-process/numactl/numactl-2.0.9.ebuild b/sys-process/numactl/numactl-2.0.9.ebuild new file mode 100644 index 000000000000..15331a31a4d5 --- /dev/null +++ b/sys-process/numactl/numactl-2.0.9.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="Utilities and libraries for NUMA systems" +HOMEPAGE="http://oss.sgi.com/projects/libnuma/" +SRC_URI="ftp://oss.sgi.com/www/projects/libnuma/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +# ARM lacks the __NR_migrate_pages syscall. +KEYWORDS="amd64 -arm ia64 ppc ppc64 x86 ~amd64-linux" +IUSE="static-libs" + +src_prepare() { + echo "printf $(get_libdir)" > getlibdir + epatch "${FILESDIR}"/${PN}-2.0.8-static_libs.patch + epatch "${FILESDIR}"/${PN}-2.0.8-cpuid-pic.patch #456238 + epatch "${FILESDIR}"/${PN}-2.0.9-testsuite_fix.patch + epatch "${FILESDIR}"/${P}-testsuite_path.patch + rm numastat || die #466108 +} + +src_compile() { + emake \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + RANLIB="$(tc-getRANLIB)" \ + CFLAGS="${CFLAGS}" \ + BENCH_CFLAGS="" \ + THREAD_SUPPORT=$(tc-has-tls && echo yes || echo no) \ + BUILD_STATIC=$(usex static-libs) +} + +src_test() { + if [ -d /sys/devices/system/node ]; then + einfo "The only generically safe test is regress2." + einfo "The other test cases require 2 NUMA nodes." + cd test + ./regress2 || die + else + ewarn "You do not have baseline NUMA support in your kernel, skipping tests." + fi +} + +src_install() { + emake install prefix="${ED}/usr" BUILD_STATIC=$(usex static-libs) + # delete man pages provided by the man-pages package #238805 + rm -rf "${ED}"/usr/share/man/man[25] + doman *.8 # makefile doesnt get them all + dodoc README TODO CHANGES DESIGN +} diff --git a/sys-process/numad/Manifest b/sys-process/numad/Manifest new file mode 100644 index 000000000000..6ca1016a720c --- /dev/null +++ b/sys-process/numad/Manifest @@ -0,0 +1,10 @@ +AUX 0001-Fix-man-page-directory-creation.patch 722 SHA256 615a03c589a521a6e3ef812466504a3ada154b550acfd10238024dd9ecd63856 SHA512 e43609c3e6af1f01c886e707cd126126b9bbc8da98b8313e67d98909889f2c81d640db9bc999ca056611dc7792c8a0d3e9ecf9949b4c0a58d33e9bbe74b127ae WHIRLPOOL 9970336f2ce6bd10992ca999d25e425788f808ef1f1afe7f5a28bfa758887ad8e2964c847bb1f5b7939a9008ec70134c9eaec60ea9ddc228a6606e39212a33f9 +AUX numad-0.5-ldlibs.patch 912 SHA256 1f44a6d95a6abfa282ebf68d243e5139a72327ea03daa41218f34e9f3e308fda SHA512 7bd6e90617382080aaa217fa82c1b792d4b33b2dfc51ec43f3539e2b98eec1aa7fa8312e11fef97974d3ecd3f888a997a3c2b21ee980fc8ec4e74dd4bcdb6cbc WHIRLPOOL b3f0d3edad53b12e771a1b72d537ea17f1f1b8a60f13494416bffb52024884afabc7e813ba776d9bcfb6f88b21e53f72eccfc208b493fa1c89015922d94cd1c8 +DIST numad-0.5-334278f.tar.bz2 21007 SHA256 5a288f3597d616211f7ce7cc9e7e9e65c72f2360754ac02f9e0e17f86118ea9b SHA512 1b4a577f0713bae1386f2064fcb2dcbfb9453e23e7617f40cfff4e56d02a8c26a48c8d03f1ac7aa36e4ba168824572377f84bc669d1dabdc1820c2cdc4c57911 WHIRLPOOL e4ca9eeaccab3544d39e0a7ef812f1d2eca4269f5ee8466ee043dbdabc9e987b9393b4f3f3d5f6e1d898256179515ca52985e2e38c4afa27b84c4514e2e9259d +EBUILD numad-0.5-r1.ebuild 938 SHA256 1ff3ad09ccce61aa3f36b4e51c227cefe01e832f591c5892ea32b57eeade5364 SHA512 5a80a278bd87cab8820a2d2e4da91e7f0439d2a958492ec3a5d96cce00f7c758abc3e58370368d81aada273f0a5b07ed2d0bd7b8c4b5f06ba0801aabcff30cca WHIRLPOOL 01b1a3433acaeab5e1b24cb40688dc5d43d83325993b9093c70e08bca61b40f19128f3af91f0007e2dfde35ad3fb67edd1aef7cb83976d4839957c875fe295e4 +EBUILD numad-0.5-r2.ebuild 983 SHA256 53d57c4cfca8cf14c33b4ae59bb48643461aad423efd11dc324eb7f8dcd9614c SHA512 72d2e4c8a3fea86cd0e915712061dffdd914dca9238af1e849d910d0976b3807066b353f868f2e6e50f422baf6b904a7ce80be1bbb0dfafa465933b3363990c6 WHIRLPOOL 0c36d8f78c832188b9cca34bd7889fb5984b5fd8840edfba0879cf4317211d8343b39bf32337c4a54da05c99739f2ecd5fe6ba05c5eb4cd125453826af441642 +EBUILD numad-0.5.ebuild 871 SHA256 0c6016e2bab80f852aa7c244c556c44a47f1bfbf5a3fbecd75039c40207d2196 SHA512 b6c9a498588e9e9a0bfd433dd96b394213f0f81e9697cf2afc46ae2b8b05440d59bd644973bbc51616a495f94fc959a004ed314d57253dd934771dc677ab9d02 WHIRLPOOL 30335226bb6bc1715f38e7c2e5660f42f992d4d1a2be730ae33f6d1bfc375c979319a10786006537de236501ecb251af459c58de069da54865318fcd24bff33a +EBUILD numad-9999.ebuild 734 SHA256 4e5f78db2fece70276d18ff9c6d0f43d46521311d765ed13167df749cc7caf2d SHA512 14503d684e1b9f7546a0b31748ff11d1f0f48f5ed7519497f9c3f7af19a308708b44e513bf32805d1349323608b7d7a1efc6338ab661825cce27081444dcd130 WHIRLPOOL 2f8c8f018764852af3704a84f24e48a545339fef3cf46fa8037fcbb11be99fe0f966b77c1eb46dbf7b0a26872526de7725361dafa6d28a25802d22935aa94b1a +MISC ChangeLog 3151 SHA256 fa4525c8c4482dafe23e1691bf10377b0c78f7c1d3e148db1cf32c6facb5da46 SHA512 7415703bc1980c74b10a6f5671b921b96e232eebe266045e7c00a61b91b416e16064d97fd6f43c3c650c03b6bc4b7faa8a775ff59576d826b480d8ffb8f3e8e4 WHIRLPOOL 84e354d0c3a946bfa68ac7ef1c25bf416a97f2608d15fe9847fc932236c3b8cac1d0d47fec27c849e015923fca2b4c8af539b13b3be0e763f3f5fb097ba4ab89 +MISC ChangeLog-2015 1584 SHA256 730d5de74358ebd1208ad1b8d73fd985d0a029e0b5fda79e6cc5122188ad36b9 SHA512 ff7f6c81f27730b8fafef12f02483604890e75eba1bd88ff48b470a08a4038195d95a5658d5d6dd570b9bc1b295e34a94cff0e415a71109fb09ecc5f993fc672 WHIRLPOOL 54c7589ea07169d4f1276334081690bcd2c4587d354ca7949490c4b187354f3c6da7d08d419098fc1c99d10a7a1097e1e44821eaf1ec70b351393a8e0e24dbce +MISC metadata.xml 328 SHA256 b7ddc15c0a2f8d4470c027ec078587c2a08a6899c1f0ed19a4ef29e1ac716e51 SHA512 1512c4008e723063cd4fbf1b82319fa2d55aad398017c17f6908bf9c6079087487490b68c5f5f63908dac835be5ef1ae299eb46168151a105ee1e093352bdb36 WHIRLPOOL 3e1f4a0121c363d2bff721e674efefe191b0522765a1e7d867dfe4644d27ba8965e4beb392c44eacbbee92f0b1b78e24718436c4068047207d29b2db4f010b35 diff --git a/sys-process/numad/files/0001-Fix-man-page-directory-creation.patch b/sys-process/numad/files/0001-Fix-man-page-directory-creation.patch new file mode 100644 index 000000000000..0b8a1d7c27ff --- /dev/null +++ b/sys-process/numad/files/0001-Fix-man-page-directory-creation.patch @@ -0,0 +1,26 @@ +From 276611ad637334a6e3ea464540b204318f832ba8 Mon Sep 17 00:00:00 2001 +From: Doug Goldstein <cardoe@cardoe.com> +Date: Wed, 13 Jun 2012 17:49:52 -0500 +Subject: [PATCH] Fix man page directory creation + +When building inside of a buildroot, the path for the man page might not +exist so create it before we attempt to install a file into it. +--- + Makefile | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/Makefile b/Makefile +index d9adca9..32ad480 100755 +--- a/Makefile ++++ b/Makefile +@@ -42,6 +42,7 @@ RANLIB ?= ranlib + + install: numad + mkdir -p ${prefix}/bin ++ mkdir -p ${prefix}/share/man/man8 + install -m 0755 numad ${prefix}/bin + install -m 0644 numad.8 ${prefix}/share/man/man8 + +-- +1.7.3.4 + diff --git a/sys-process/numad/files/numad-0.5-ldlibs.patch b/sys-process/numad/files/numad-0.5-ldlibs.patch new file mode 100644 index 000000000000..d124e32e9ee4 --- /dev/null +++ b/sys-process/numad/files/numad-0.5-ldlibs.patch @@ -0,0 +1,34 @@ +From 9eb3cc5c51d846c8c8b750a4eb55545d7b5fea6c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Wed, 23 Apr 2014 15:41:26 -0400 +Subject: [PATCH] use LDLIBS for linker flags + +When you put -lfoo into the dependency line of make, it forces it to +search /lib and /usr/lib for files to link against. This can cause +problems when trying to cross-compile or build for different ABIs. +Use the standard LDLIBS variable instead. + +URL: https://bugs.gentoo.org/505760 +Reported-by: Georgi Georgiev <chutzimir@gmail.com> +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index f3838b4..f2e9a6e 100644 +--- a/Makefile ++++ b/Makefile +@@ -31,7 +31,8 @@ docdir := ${prefix}/share/doc + + all: numad + +-numad: numad.o -lpthread ++LDLIBS := -lpthread ++numad: numad.o + + AR ?= ar + RANLIB ?= ranlib +-- +1.9.2 + diff --git a/sys-process/numad/metadata.xml b/sys-process/numad/metadata.xml new file mode 100644 index 000000000000..f5e477fa1c04 --- /dev/null +++ b/sys-process/numad/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>cardoe@gentoo.org</email> +</maintainer> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/numad/numad-0.5-r1.ebuild b/sys-process/numad/numad-0.5-r1.ebuild new file mode 100644 index 000000000000..32ad4fbefe36 --- /dev/null +++ b/sys-process/numad/numad-0.5-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit linux-info toolchain-funcs + +if [[ ${PV} = *9999* ]]; then + inherit git-2 + EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" + KEYWORDS="~amd64 -arm -s390 x86" +else + SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=334278ff3d774d105939743436d7378a189e8693;sf=tbz2 -> numad-0.5-334278f.tar.bz2" + KEYWORDS="amd64 -arm -s390 x86" + S="${WORKDIR}/${PN}-334278f" +fi + +DESCRIPTION="The NUMA daemon that manages application locality" +HOMEPAGE="http://fedoraproject.org/wiki/Features/numad" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="" + +CONFIG_CHECK="~NUMA ~CPUSETS" + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${FILESDIR}" \ + epatch + + tc-export CC +} + +src_configure() { + : +} + +src_compile() { + emake CFLAGS="${CFLAGS} -std=gnu99" +} + +src_install() { + emake prefix="${ED}/usr" install +} diff --git a/sys-process/numad/numad-0.5-r2.ebuild b/sys-process/numad/numad-0.5-r2.ebuild new file mode 100644 index 000000000000..c3cec523349a --- /dev/null +++ b/sys-process/numad/numad-0.5-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit linux-info toolchain-funcs eutils + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" + inherit git-2 +else + HASH="334278ff3d774d105939743436d7378a189e8693" + SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=${HASH};sf=tbz2 -> numad-0.5-${HASH:0:7}.tar.bz2" + KEYWORDS="~amd64 -arm ~arm64 -s390 ~x86" + S="${WORKDIR}/${PN}-${HASH:0:7}" +fi + +DESCRIPTION="The NUMA daemon that manages application locality" +HOMEPAGE="http://fedoraproject.org/wiki/Features/numad" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="" + +CONFIG_CHECK="~NUMA ~CPUSETS" + +src_prepare() { + epatch "${FILESDIR}"/0001-Fix-man-page-directory-creation.patch + epatch "${FILESDIR}"/${PN}-0.5-ldlibs.patch #505760 + tc-export CC +} + +src_configure() { + : +} + +src_compile() { + emake CFLAGS="${CFLAGS} -std=gnu99" +} + +src_install() { + emake prefix="${ED}/usr" install +} diff --git a/sys-process/numad/numad-0.5.ebuild b/sys-process/numad/numad-0.5.ebuild new file mode 100644 index 000000000000..e243f289db5f --- /dev/null +++ b/sys-process/numad/numad-0.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit linux-info + +if [[ ${PV} = *9999* ]]; then + inherit git-2 + EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" + KEYWORDS="-arm -s390" +else + SRC_URI="http://git.fedorahosted.org/git/?p=numad.git;a=snapshot;h=334278ff3d774d105939743436d7378a189e8693;sf=tbz2 -> numad-0.5-334278f.tar.bz2" + KEYWORDS="amd64 -arm -s390 x86" + S="${WORKDIR}/${PN}-334278f" +fi + +DESCRIPTION="The NUMA daemon that manages application locality" +HOMEPAGE="http://fedoraproject.org/wiki/Features/numad" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~NUMA ~CPUSETS" + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${FILESDIR}" \ + epatch +} + +src_configure() { + : +} + +src_install() { + emake prefix="${ED}/usr" install +} diff --git a/sys-process/numad/numad-9999.ebuild b/sys-process/numad/numad-9999.ebuild new file mode 100644 index 000000000000..c44a0fea5cb3 --- /dev/null +++ b/sys-process/numad/numad-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit linux-info toolchain-funcs eutils + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://git.fedorahosted.org/numad.git" + inherit git-2 +else + SRC_URI="" + KEYWORDS="~amd64 ~x86 -arm -s390" +fi + +DESCRIPTION="The NUMA daemon that manages application locality" +HOMEPAGE="http://fedoraproject.org/wiki/Features/numad" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="" + +CONFIG_CHECK="~NUMA ~CPUSETS" + +src_prepare() { + epatch "${FILESDIR}"/0001-Fix-man-page-directory-creation.patch + tc-export CC +} + +src_configure() { + : +} + +src_compile() { + emake CFLAGS="${CFLAGS} -std=gnu99" +} + +src_install() { + emake prefix="${ED}/usr" install +} diff --git a/sys-process/parallel/Manifest b/sys-process/parallel/Manifest new file mode 100644 index 000000000000..b05eac8a1831 --- /dev/null +++ b/sys-process/parallel/Manifest @@ -0,0 +1,7 @@ +DIST parallel-20170422.tar.bz2 1543900 SHA256 7a2438a92692c662dae3d4e80f1190af4cfe527cd3fb1a0d14e07f5c110ed329 SHA512 3785221751ef334db0c999819dd6a6cfae20400b1257467325e1533cbff3ea02a1008b61636bd8ec11b270a95c081c89f4be46d2d7a4fe8585e402f320e7c870 WHIRLPOOL 10cad743046eef4740c26272adc015cdb0ffb5fbc695343c9d3022bc3bef1cb4f63c0b883d65b7f3d97339e6d4c65a11ffe86e01a8fa45eae8457ac0f3398660 +DIST parallel-20170822.tar.bz2 1622834 SHA256 8949bfa3057e194119a85a8cba2c8e0bdd46b5f5851eda583d2386b95c039148 SHA512 d0ce008a1d10f6802b141835a931bbbe533d5a4ca41c5636dae1ccecd5ad6b0385d36f11ba33970053dc293d2a44524921a84c2f4f38e9adcb48e435fcdb29dd WHIRLPOOL 564b051677e62d2ec8d1200f1a079b34f72dc737b678aa45a7a6e2c6026e449d22dcd4018482bd978f27119476a3aa00fb29136080f008cccb781c303fffa6bb +EBUILD parallel-20170422.ebuild 870 SHA256 600c8ddcdb4edb8fcf040c1984370c9026608eedb89a059b1b590270f6a7ba3f SHA512 07ab74b5f58f5e4a7ee1900efeffd1037095948a1672c4c8a3b57a181f74531405aefe177e4cfca5e91356fdb2d6fbe327aa750aacf52726f1aeb8883585846c WHIRLPOOL c47a7cb9a65f83a4242758d6aa58a7a5507baaca06bad70b7a014e5f4bdafa528c9418a81975e363b5e6a190fce6284602327b2f26bae01892452dec744bd54a +EBUILD parallel-20170822.ebuild 872 SHA256 948dc94edbd809b6391b732bba37cd9886d0eacbaaceaaa5014368e9447a28cb SHA512 576c50813c673d7a0b7ef1285c20d4f7edffc65530521ab5289c973f7d78ef82d2cba9298ec147ee756bdd931a5ec5de3de6c1f2f62d97bc00e3e7839da333ab WHIRLPOOL 60f1a93e3f9a9410b679fa0088d35519ed8523653987a7c364b12eafedc5aa72ff490ec726b1635d9ed9e34b37977833c3b7386e9da008f23c0b598704e4eae1 +MISC ChangeLog 4517 SHA256 3cf3f78890e620cd9c61e10f9e9a4eae073d8d7b54a7c4906c279af0dfd0af7e SHA512 d555faa230a1853c45cadece58ffd2cd9f9b937dfeaaf14f698dc2cb01cf2c69a2216a04f2813798f694918bf64589e635ea0d090dfe1beec4102676b7c5eea3 WHIRLPOOL 169662ba7548606332c895edab9d0a8804ed324643de93b4aac91cc4ef9e5e5ee2d0bf9b7856954c49c8f099dbcb635ca74328b3ff111897516506d315977908 +MISC ChangeLog-2015 10567 SHA256 fb3f185af2dfa5d9550015b9443edecbc9a7d39c33615219d2375ea7449f03b0 SHA512 78cfa2f1894bcdee368197612e9261fbf16368f3fbd85e6ae67d69e5d122fb8123406e808f65bcfa0711b5572797f1e71c36fc84408a06ebc8e6fc54ad98f49a WHIRLPOOL b0998bdbd06dbf635d386d3489426e458bfbd0c276e168576e3012377dbd2d195315c948b97d23ef04b6164bf3209a613d6964f87e96ab6154cadd310374c4fe +MISC metadata.xml 1115 SHA256 f14b3fd3e946d290a9f2b271fdc144d0a2eca338383cf943e72f5c992fca733b SHA512 bc2b7cdfcc785ee020ac534d10c357c94a4a1a129d46785c08c6ec384df510ae0b5421e5cc6e57aa42c69d99a52af38e4d02869e158e6166dde0c909ab7b6d17 WHIRLPOOL a7ce2eb490d84f7def3a76e8c87ca2856e4291aea9d2c0befda63115a75528292829a54b3bc39a6754ee79b12f8b49071dcc16d17eb8c0ae954f9ccc11dec77d diff --git a/sys-process/parallel/metadata.xml b/sys-process/parallel/metadata.xml new file mode 100644 index 000000000000..666f249115b9 --- /dev/null +++ b/sys-process/parallel/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>ryoichiro.suzuki@gmail.com</email> + <name>Ryoichiro Suzuki</name> +</maintainer> +<maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> +</maintainer> +<longdescription lang="en"> +GNU parallel is a shell tool for executing jobs in parallel locally or +using remote machines. A job is typically a single command or a small +script that has to be run for each of the lines in the input. The +typical input is a list of files, a list of hosts, a list of users, a +list of URLs, or a list of tables. + +If you use xargs today you will find GNU parallel very easy to use as +GNU parallel is written to have the same options as xargs. If you +write loops in shell, you will find GNU parallel may be able to +replace most of the loops and make them run faster by running several +jobs in parallel. If you use ppss or pexec you will find GNU parallel +will often make the command easier to read. +</longdescription> +</pkgmetadata> diff --git a/sys-process/parallel/parallel-20170422.ebuild b/sys-process/parallel/parallel-20170422.ebuild new file mode 100644 index 000000000000..bc813afd8a1e --- /dev/null +++ b/sys-process/parallel/parallel-20170422.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A shell tool for executing jobs in parallel locally or on remote machines" +HOMEPAGE="https://www.gnu.org/software/parallel/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND="dev-lang/perl:= + dev-perl/Devel-Size + virtual/perl-Data-Dumper + virtual/perl-File-Temp + virtual/perl-IO" +DEPEND="${RDEPEND}" + +DOCS="NEWS README" + +src_configure() { + econf --docdir="${EPREFIX}"/usr/share/doc/${PF}/html +} + +src_install() { + default + + # See src/Makefile.am for this one: + rm -f "${ED}"usr/bin/sem + dosym ${PN} /usr/bin/sem +} + +pkg_postinst() { + elog "To distribute jobs to remote machines you'll need these dependencies" + elog " net-misc/openssh" + elog " net-misc/rsync" +} diff --git a/sys-process/parallel/parallel-20170822.ebuild b/sys-process/parallel/parallel-20170822.ebuild new file mode 100644 index 000000000000..cfc66354fd89 --- /dev/null +++ b/sys-process/parallel/parallel-20170822.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A shell tool for executing jobs in parallel locally or on remote machines" +HOMEPAGE="https://www.gnu.org/software/parallel/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND="dev-lang/perl:= + dev-perl/Devel-Size + virtual/perl-Data-Dumper + virtual/perl-File-Temp + virtual/perl-IO" +DEPEND="${RDEPEND}" + +DOCS="NEWS README" + +src_configure() { + econf --docdir="${EPREFIX}"/usr/share/doc/${PF}/html +} + +src_install() { + default + + # See src/Makefile.am for this one: + rm -f "${ED}"usr/bin/sem + dosym ${PN} /usr/bin/sem +} + +pkg_postinst() { + elog "To distribute jobs to remote machines you'll need these dependencies" + elog " net-misc/openssh" + elog " net-misc/rsync" +} diff --git a/sys-process/pidof-bsd/Manifest b/sys-process/pidof-bsd/Manifest new file mode 100644 index 000000000000..d2cb740a74a6 --- /dev/null +++ b/sys-process/pidof-bsd/Manifest @@ -0,0 +1,9 @@ +AUX pidof-bsd-20050501-fbsd11.patch 252 SHA256 cef03e8166278e8c5f2453951a379d7d934840d340f4bb21e46703002678faf6 SHA512 32c19975f2bc14e809a0416c52418416c9cfba62ed5bbda69b2773dd1dc931b7b2740054bf70f590403692f1944463e7cc6bef2dfc050d93bc5c7bc9f59559c3 WHIRLPOOL f59c9e6a8f88187ad60e2f606f6021c21c27da274aa8f7ee599adca2f0d4151a9e518628f546b7e8931eb2dbe0409eba3dd454304f3d1febf8d9e1f8d7298827 +AUX pidof-bsd-20050501-firstarg.patch 485 SHA256 40bc0e215cce2b963c949bc84ac615970d10dd5f6e820a2bb826b5307ee9aee3 SHA512 c7dd9d9c7d2d90c41b0c612284c9f23990e11d598ee6815480b2a31c2910703030511077781e9fc24e5054cc88fc6c50b6bf8eae1a9141a671f78c1be3cf9f09 WHIRLPOOL cf8ca9a8b7e1207c9275f925a03252b253076595041ef20b627d00c335b239f5623df9bf3ab51f19183f2bf101da476fafa3c782234d866f6c954ee86a950256 +AUX pidof-bsd-20050501-gfbsd.patch 2825 SHA256 d0befa96e29e1030d9aa9f41fd3f21893074418ff5ead049639c1394a416fbf4 SHA512 459bc1bb1452067207082c2b55ba86e47cb5a683cbc2ddf8b10545d8e961a0a8d9f5bba34236e150e391056364a4115be975b30e34df4c3dc82ed16bdad981a9 WHIRLPOOL e20e2c250c779c127558d66074333f38a24257fb1b3edc431f44ca5e4fc8a19d8103c757d00a79e6abfa1f08c2e516e0823b6a31b606af26eacc45a107d8bbb1 +AUX pidof-bsd-20050501-pname.patch 1374 SHA256 04fdaa9de91dafa6fc1e12443e30ec532315f74cfdffcf074fd5d8583ec322fe SHA512 5f3912a0f48db867181def6a6bb36f3544b069be89af0d0290d073f7d92041abda449c8b84694fed45e1d35a50bfa4bd157d695ab166fb61cc3b6c8d99e5f417 WHIRLPOOL aaf31effa8cfd1dd86ce684d8be8657bb3d3f3baa7c2adc44cfab5d30f7ed5340a9bb5a0cc563e020a2836790050dfd9eb35d4c8c25579ae3eb14f70b5291241 +DIST pidof-bsd-20050501.tar.gz 1769 SHA256 c3ed8826178debe872f7717b8810d477d4611ab19af73bed97c5af1c552d20e6 SHA512 27691305165848363415a7d487b36a87db0750a9c08e6327eef05f5e87326c91fbf46c415673f83268981a22bbfcfaaf5ef280c06c24b3ebb50d1483527f9c94 WHIRLPOOL cd8c2264f6286b0988385defa14e528f8c9f8f1018ece69f6bd9e8784f259c491b923d0ad70a10fbbcf132dcef8ef98c96049968a888a4bed6d09dbac83ac94e +EBUILD pidof-bsd-20050501-r4.ebuild 657 SHA256 c47f78f255b7ab71550229514a30c4cc9c817b91ffcfc57b30ecc11c889a9c0e SHA512 c01bf95df2455943b47acc303472698401009e10569f2a12b0008c6ca254c2ce3c824289542e50c4a4622a26a756a2e91c95092d7ca95adef9d1dc8b3eb5e918 WHIRLPOOL 3045d244c1543ece2a44bfd3acba1ab76a0fe83c3686c18cf9b6dc471cbf31fc07afce54f4944ce5001d30a4bf81032d584a7ccb886670d4be6d76bfee884bf6 +MISC ChangeLog 2820 SHA256 4c7079c2ca346c88825d565433cf0bb6e9a9d0b21340025160b9062dfff811d9 SHA512 6d1207a21fec16534f8a359990fa372843cd3abe6ac9975879b776da8017c7736bcdf38ad98be04f4a84e3c95c2cc6fcc5400072f638208bdc326f9566beab0d WHIRLPOOL 3700fa085427bad52773c9716a885dd27b129ab9144f618c374c2767450592b72c0205ab421ed2b4e32582baf1a59e8474ff6844fe740d1be5bb0cff9295a0cf +MISC ChangeLog-2015 2139 SHA256 fb1885d45c286e20d80134b8ec828618c3dfcf4ca418da9bbe7683a509f6a0c0 SHA512 e054b0fee6991132e566a090e1b14333ae0ab7ddf39a2f5f02412a8b91e62808cc01e2b14fc6d23c49e9d071cda2b157954437ecf04a9c04ca4d4517c3888f26 WHIRLPOOL 3f6f69436b1902f753ddcf25ce05114ac060346f42425b45040a4f35d3aa5299359ce6b115db42bac56920d4d57f850f0af7afe749a51671429433cb5eb8b4d1 +MISC metadata.xml 238 SHA256 501d93b0c41ed422505100f002758cd173cd9783ae7fbb53e2ec5f238c868340 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d WHIRLPOOL 4ca51d994f011a5e7e4939f02a54b5c2f9f3e526665893c9ac2876c9871b7dc80361393d41c5247b3a5520e82d31d0dd10da520e7715c94b806a94ce0fed2a5a diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch new file mode 100644 index 000000000000..4a1b16285205 --- /dev/null +++ b/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch @@ -0,0 +1,14 @@ +diff --git a/pidof/Makefile b/pidof/Makefile +index d2d760b..67d2725 100644 +--- a/pidof/Makefile ++++ b/pidof/Makefile +@@ -2,8 +2,7 @@ + + PROG= pidof + SRCS= pidof.c +-NOMAN= yes ++NO_MAN= yes + LDADD= -lkvm +-LINKS= ${BINDIR}/pidof + + .include <bsd.prog.mk> diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-firstarg.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-firstarg.patch new file mode 100644 index 000000000000..dfb15ae7b94b --- /dev/null +++ b/sys-process/pidof-bsd/files/pidof-bsd-20050501-firstarg.patch @@ -0,0 +1,13 @@ +Index: pidof/pidof.c +=================================================================== +--- pidof.orig/pidof.c ++++ pidof/pidof.c +@@ -67,7 +67,7 @@ get_pid_of_process(const char *process_n + char **p_argv = NULL; + + if ((p_argv = kvm_getargv(kd, p+i, 0)) != NULL) +- for (; *p_argv != NULL; p_argv++) ++ if ( *p_argv != NULL ) + if (strcmp(process_name, basename(*p_argv)) == 0) { + (void)printf("%d ", (int)p[i].ki_pid); + processes_found++; diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-gfbsd.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-gfbsd.patch new file mode 100644 index 000000000000..bb7a776b630d --- /dev/null +++ b/sys-process/pidof-bsd/files/pidof-bsd-20050501-gfbsd.patch @@ -0,0 +1,128 @@ +? .pidof.c.swp +? pidof +? pidof.core +Index: pidof.c +=================================================================== +RCS file: /cvsroot/bmp-plugins/pidof/pidof.c,v +retrieving revision 1.4 +diff -u -r1.4 pidof.c +--- pidof.c 1 May 2005 16:26:19 -0000 1.4 ++++ pidof.c 13 Sep 2005 16:11:08 -0000 +@@ -26,6 +26,7 @@ + * $Id$ + */ + ++#include <unistd.h> + #include <stdio.h> + #include <string.h> + #include <err.h> +@@ -37,56 +38,91 @@ + #include <fcntl.h> + #include <stdlib.h> + #include <sysexits.h> ++#include <libgen.h> + +-static int get_pid_of_process(char *process_name); ++static int get_pid_of_process(const char *process_name); + static void usage(void); + ++static int match_argv; ++static pid_t own_pid; ++ + static int +-get_pid_of_process(char *process_name) ++get_pid_of_process(const char *process_name) + { + static kvm_t *kd = NULL; + struct kinfo_proc *p; +- int i, n_processes, processes_found; +- +- processes_found = 0; ++ int i, n_processes, ++ processes_found = 0; + + if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open")) == NULL) + (void)errx(1, "%s", kvm_geterr(kd)); + else { + p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes); +- for (i = 0; i<n_processes; i++) +- if (strncmp(process_name, p[i].ki_comm, COMMLEN+1) == 0) { +- (void)printf("%d ", (int)p[i].ki_pid); +- processes_found++; +- } ++ for (i = 0; i<n_processes; i++) { ++ if (p[i].ki_pid != own_pid) ++ if (strncmp(process_name, p[i].ki_comm, COMMLEN+1) == 0) { ++ (void)printf("%d ", (int)p[i].ki_pid); ++ processes_found++; ++ } else if (match_argv == 1) { ++ char **p_argv = NULL; ++ ++ if ((p_argv = kvm_getargv(kd, p+i, 0)) != NULL) ++ for (; *p_argv != NULL; p_argv++) ++ if (strcmp(process_name, basename(*p_argv)) == 0) { ++ (void)printf("%d ", (int)p[i].ki_pid); ++ processes_found++; ++ break; ++ } ++ } ++ } + + kvm_close(kd); + } +- +- return processes_found; ++ ++ return (processes_found); + } + + static void + usage() + { + +- (void)fprintf(stderr, "usage: pidof name1 name2 ...\n"); ++ (void)fprintf(stderr, "usage: pidof [-x] name1 name2 ...\n"); + exit(EX_USAGE); + } + + int + main(int argc, char **argv) + { +- int i, procs_found; ++ int i, procs_found, ++ ch; + + procs_found = 0; ++ match_argv = 0; + +- if (argc <= 1) +- usage(); ++ own_pid = getpid(); ++ ++ while ((ch = getopt(argc, argv, "x")) != -1) { ++ switch (ch) { ++ case 'x': ++ match_argv = 1; ++ break; ++ case '?': ++ default: ++ usage(); ++ break; ++ } ++ } ++ argc -= optind; ++ argv += optind; + +- for (i = 1; i<argc; procs_found += get_pid_of_process(argv[i++])); ++ if (argc < 1) ++ usage(); ++ ++ for (i = 0; i<argc; i++) { ++ procs_found += get_pid_of_process(argv[i]); ++ } + + (void)printf("\n"); + +- return (procs_found > 0) ? 0 : 1; ++ return ((procs_found > 0) ? 0 : 1); + } diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch new file mode 100644 index 000000000000..13e890c6a37c --- /dev/null +++ b/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch @@ -0,0 +1,46 @@ +--- a/pidof.c 2006-09-21 15:14:03 +0100 ++++ b/pidof.c 2006-09-21 15:13:47 +0100 +@@ -53,14 +53,22 @@ + struct kinfo_proc *p; + int i, n_processes, + processes_found = 0; ++ char *pname = NULL; ++ ++ if (process_name == NULL) ++ return 0; ++ ++ if ((pname = strdup(basename(process_name))) == NULL) ++ return 0; + +- if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open")) == NULL) +- (void)errx(1, "%s", kvm_geterr(kd)); +- else { ++ if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, NULL)) == NULL) { ++ free(pname); ++ (void)errx(1, "%s", kvm_geterr(kd)); ++ } else { + p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes); + for (i = 0; i<n_processes; i++) { + if (p[i].ki_pid != own_pid) +- if (strncmp(process_name, p[i].ki_comm, COMMLEN+1) == 0) { ++ if (strncmp(pname, p[i].ki_comm, COMMLEN+1) == 0) { + (void)printf("%d ", (int)p[i].ki_pid); + processes_found++; + } else if (match_argv == 1) { +@@ -68,7 +76,7 @@ + + if ((p_argv = kvm_getargv(kd, p+i, 0)) != NULL) + if ( *p_argv != NULL ) +- if (strcmp(process_name, basename(*p_argv)) == 0) { ++ if (strcmp(pname, basename(*p_argv)) == 0) { + (void)printf("%d ", (int)p[i].ki_pid); + processes_found++; + break; +@@ -77,6 +85,7 @@ + } + + kvm_close(kd); ++ free(pname); + } + + return (processes_found); diff --git a/sys-process/pidof-bsd/metadata.xml b/sys-process/pidof-bsd/metadata.xml new file mode 100644 index 000000000000..a00f3aeb1f81 --- /dev/null +++ b/sys-process/pidof-bsd/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>bsd@gentoo.org</email> + <name>BSD Project</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild b/sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild new file mode 100644 index 000000000000..e40003dbc400 --- /dev/null +++ b/sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit bsdmk + +DESCRIPTION="pidof(1) utility for *BSD" +HOMEPAGE="http://people.freebsd.org/~novel/pidof.html" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="" + +DEPEND="sys-freebsd/freebsd-mk-defs" +RDEPEND="!sys-process/psmisc" + +S="${WORKDIR}/pidof" + +PATCHES=( "${FILESDIR}/${P}-gfbsd.patch" + "${FILESDIR}/${P}-firstarg.patch" + "${FILESDIR}/${P}-pname.patch" + "${FILESDIR}/${P}-fbsd11.patch" ) + +src_prepare() { + epatch "${PATCHES[@]}" +} + +src_install() { + into / + dobin pidof +} diff --git a/sys-process/pkill-darwin/Manifest b/sys-process/pkill-darwin/Manifest new file mode 100644 index 000000000000..9a3dc885d594 --- /dev/null +++ b/sys-process/pkill-darwin/Manifest @@ -0,0 +1,5 @@ +DIST pkill-darwin-1.0.tar.xz 8232 SHA256 a1adc263e6685d210397b8fc186b6856730b8a075aef987cee593e8cf7241e4f SHA512 18ced350664b6dcd07acb33e1872726857a6f762311f91ca2d30323153712a436017b232efd34f8cd0055e10f1036d4a84a06f37ef104722701a172a40d3575a WHIRLPOOL ad3feeb03797dacc73156dc8be2c3e0a335242ad0c4664c238e59442329249c1f76334e4af06f2d5c6f031caf8178111d94db8522e1ec1dde1cb65351494d361 +EBUILD pkill-darwin-1.0.ebuild 1085 SHA256 fcaee0ec10c8accbeb5d3ac4ada3892cfb7952b63d229c9a2ef1efdc2311873c SHA512 f222a0c99adee1258d81cb37b7d011f6e31a81d055402d96dc620abec60df6d300e94cf84c2a1c88fa4f9a253b0c3f53db28e9e86adfc3dc5c11d746c84786ec WHIRLPOOL a139acb0f5bf85be2443bb14d8a951d7d49b549e93d43965d8cb765a1e906f977cc2f7f0b69c8cb99c5498f0a03a8943f5ceb8f65ffa7431aa53520ff1da5540 +MISC ChangeLog 2615 SHA256 420517c063d5965651359b053058d79bed156a6da7d9d6cb77d1dd247822656d SHA512 0d656b8c0eea7c48296a2a9a73bd71861ea9c95257e797c076f70858a6671f8e0c743ad581d838379df15a7b59ff418d4b133cd938ff9679f28a231a88b73909 WHIRLPOOL b599997b37d3fb5efcabe7d033caee45378c27d7411a7b182682c66a8bcc5da13fb61bb4ab884d3e35f9db0ad4d66a0aa9ad963d553c7d4b21e135681a912434 +MISC ChangeLog-2015 423 SHA256 30eddf434b7906f18bc0977edd532e1b8f1b51e3598390e361baa35f3710ef4e SHA512 d6f4f5eec69bc29a95c39b75291099882a2248a12d46dae8fda2b34ace1980ccdb6ce5e594976cf0c5c7a21fe68c4ff50e282693ed4583038af9718ad2123b5c WHIRLPOOL 5afa90d27c9f73b3c7bb528eb79ca8db6526daeab2816c110856c3ced6d47280e5157deadf3f0e55dd45a138850b2228513c8b2880a9b32613ec256b438c1afd +MISC metadata.xml 253 SHA256 9499c0a0b4a789e06676a4d449b0c76c56e3e92a0fc37cc33a810888fc6becbc SHA512 b87265dab4980faf3d32b53ab9ce7d4ebbe5cc9d12300903b1365b337bcd72c337fdec2ef1574615d2d02cf0664023c17c0d30b57ac0237412fd2b401cc0e2f8 WHIRLPOOL 6811616f92b0dbb437634b151ddbb7fbfd95f68a1ff5f2afffc4b8c15effb2ff5de2cbf41f318c36c7f4ba6ae1c4e47ea6713b5451714a2293b312f2d60c4eb0 diff --git a/sys-process/pkill-darwin/metadata.xml b/sys-process/pkill-darwin/metadata.xml new file mode 100644 index 000000000000..7151af145b05 --- /dev/null +++ b/sys-process/pkill-darwin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>prefix@gentoo.org</email> + <name>Gentoo Prefix</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/pkill-darwin/pkill-darwin-1.0.ebuild b/sys-process/pkill-darwin/pkill-darwin-1.0.ebuild new file mode 100644 index 000000000000..02043e47267d --- /dev/null +++ b/sys-process/pkill-darwin/pkill-darwin-1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="pgrep(1) and pkill(1) for Darwin" +HOMEPAGE="https://sourceforge.net/p/pkilldarwin/code/ci/default/tree/" +SRC_URI="https://www.gentoo.org/~grobian/distfiles/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x86-macos ~x64-macos" +IUSE="" + +src_compile() { + echo $(tc-getCC) ${CFLAGS} -o pkill ${LDFLAGS} pkill.c + $(tc-getCC) ${CFLAGS} -o pkill ${LDFLAGS} pkill.c || die + # don't link, such that the suid trick described below won't make people + # suid their pkill too + cp pkill pgrep || die + ln -s pkill.1 pgrep.1 || die +} + +src_install() { + into /usr + dobin pkill pgrep + doman pkill.1 pgrep.1 +} + +pkg_postinst() { + einfo "If you you want pgrep to be able to show and match on the arguments" + einfo "of all processes, you will have to make pgrep suid root. To do so" + einfo "you have to perform the following steps:" + einfo " % sudo chown root ${EPREFIX}/usr/bin/pgrep" + einfo " % sudo chmod u+s ${EPREFIX}/usr/bin/prgep" +} diff --git a/sys-process/prll/Manifest b/sys-process/prll/Manifest new file mode 100644 index 000000000000..fbc2fb9dd063 --- /dev/null +++ b/sys-process/prll/Manifest @@ -0,0 +1,5 @@ +DIST prll-0.6.2.tar.bz2 37870 SHA256 49fbbcd8b8ae72afb8c1c7343f84852d2f397061ce29ec95dd462940ed355d0b SHA512 6157ab4d69ab21b0995d5e8e788605b9b602fa0268beae2d6b69e6bf32c734869f023d881ecdd0df83c1f45b584c88eef8beb88d2c58f657340697bf48dfd8cd WHIRLPOOL bff7122dce498db59d182fb28e60eb43b031f5028446c7c87c6a9de9b5982132c9f53e700fb25f035183a75ef359344349a0c223b0dd357e1b0bc6f7260ff844 +EBUILD prll-0.6.2.ebuild 650 SHA256 353a297b73d192c888e377a0a1e21628a2cd507a507ea6f5b4cc5392d15c26f9 SHA512 2a62e8dabd145b856a70d758b44fbc68f204beeceb37a50df7314351893ded41d341bef17bfb823b78e03b1898d338ce9c03c55caa6446ccaff32af931bdc94c WHIRLPOOL d97589cb9289f22ad7be9e2ef7a4e8f0827e9ad0c86a4a6bb45d291a604b8fa58da4f67f524e8bbb3cf61b2079cd5d577674dbd48926aa71aea9e7c90aff1e1c +MISC ChangeLog 2586 SHA256 0b169a3d32e2cc772a5a427f837ceccb86c4a953c3c51ef240a858a5cccca22e SHA512 298191aae47205ccdc0d61d781535aada6bdcfbfc5204541e3ca6e172a5a1a52d58e19a078f89574882a1b4a7948a6148237ee1069bfc67fb510c5086cbac0a5 WHIRLPOOL 882333ea905355cf50351b6a84a84189a46aa42de7ba66f95511e11515a8bbf4d5f4ee06e5258f01064534d551864b1d83161e565ae1f2bbb12ca1d9291bb0ef +MISC ChangeLog-2015 2185 SHA256 9fa3bd992f6f77e578d8cbec69054bc4d0635a5bf048d7f34c0dfd961562bf42 SHA512 05fc5816546ce303be7c720fa9e0e24bfff37ad100eb8e0ca160989ff35b87456ef83465bf53aed2c2916ba8a5e39c821de3e8d13e70fcfacabf0473fec5d1a6 WHIRLPOOL e0f01d369a90ff5d6bfde09ad2abe0f0ced196e3a36b504eb3524642688fc6e196eb9adf3ee65e4d9d12e46e8506d5073d6c8092dfa00ad0fda635b84ff25f09 +MISC metadata.xml 339 SHA256 ec8b490cce37ad8f74e336793a9258850bd386c089834358eaa81006ec256f4c SHA512 9277474c200a9a9c93d86eeb36dff14c3a2a0defd7c4d4559a4e841f4ab347eb8c99ea32f430153448b6a52d0e1fbe8cccd12d0d3dce556dfbf630e3b51d3871 WHIRLPOOL 9fc3f8cb1220c4f7b579c5b8a1af435d4a989b170b58c8f9310814e124fd69d1ae0fa92488b813652391de77c93e3c767df463e7c5fc375b7ab8ba1ecf9ee38e diff --git a/sys-process/prll/metadata.xml b/sys-process/prll/metadata.xml new file mode 100644 index 000000000000..dec862696a2f --- /dev/null +++ b/sys-process/prll/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">prll</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/prll/prll-0.6.2.ebuild b/sys-process/prll/prll-0.6.2.ebuild new file mode 100644 index 000000000000..cd4190e5c4da --- /dev/null +++ b/sys-process/prll/prll-0.6.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils prefix toolchain-funcs + +DESCRIPTION="A utility for parallelizing execution of shell functions" +HOMEPAGE="http://prll.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="" + +src_prepare() { + sed \ + -e '/then sh/d' \ + -e '/then zsh/d' \ + -e '/then dash/d' \ + -i tests/Makefile || die + tc-export CC +} + +src_install() { + dobin ${PN}_{qer,bfr} + insinto /etc/profile.d/ + doins ${PN}.sh + dodoc AUTHORS README NEWS + doman ${PN}.1 +} diff --git a/sys-process/procenv/Manifest b/sys-process/procenv/Manifest new file mode 100644 index 000000000000..a6dc4f0989f7 --- /dev/null +++ b/sys-process/procenv/Manifest @@ -0,0 +1,6 @@ +AUX procenv-0.45-flags.patch 282 SHA256 53108214cc9c05614feca0645f238a067283c9539bd46909a658a3be35a402c7 SHA512 ef90b8659f63ffaa114244e9b02b345c721e26bdbd5181b6daf45eff9671c442cc94b853d3e66fef16b20614515d4ae0885662c8875b529aa552ccd345c1e41b WHIRLPOOL 3e768c193063e8991706081d189727c72a5aa571fab607455d83b9037ef2d52d718ccd4b3c73e935d260f973cc4c05e0d4fe4fab41ff9a5eb6b286598841ec27 +DIST procenv-0.49.tar.gz 243974 SHA256 0d3416f75e06cd0ca39d72c43eb98ffc53c482a0ec80c06b3467c18282713f2f SHA512 2845e34abcc3c7cc56947c1b4407e7d8366bbd40ba0144e16cecd41acb24773072f58f34b54eefbf334b30a1b97a23fe611368166da8d80162657613c287af99 WHIRLPOOL 562195f0c363712dba155f4ce72b68a26d62f7425b515678bd3dfe055f822fd482a15f8e467f653a4bc2c608a422c0b3107ff8cfc38049e415084262924b7168 +EBUILD procenv-0.49.ebuild 563 SHA256 00b24910cf73468c08d9e37aab9c605c5d4bd6bc2ca6cea2bf1910b1a68fa8b5 SHA512 2237a834845450fc27bd0d680d9b75d50b2567947fff5469dcbf3f6410f9e0d90e51937e60d28c831be874694be2653b339e83813e11e265ba86dba50ee36342 WHIRLPOOL 594952a0732f8f2ce6d257b0fc9b5eafee53f97a96409a49d783918dacee325b50aaaf86c6b43af9eeb28b6ef034d390285f6fb49085303ddbf265bbfc5931fb +MISC ChangeLog 3439 SHA256 5667227a140d586948ae9c8c29a4567ecebe3c55dd820baa385d688caa25a184 SHA512 0444835a60a271a651e3d97afbaa38662058316f400a67d4109e8afdf908231f6ffda074646733a9e8aa96b2142bcc5233aec0d27e12ddc8a5cfdd4c7352ceeb WHIRLPOOL 3e3d5f70a874328fc63b30b6c82a76001e8abdac934a3fe181fbd0ac545791796ba994a652b53bbb3611974baf5c64c182cb7a42c02de306fc4a5947f1bf87b6 +MISC ChangeLog-2015 3595 SHA256 fad5ac0ffbfa0e2a523d59f2df5e505f3e9b777dd09fb22abefee96395f7c2b2 SHA512 8010ebd6360b3abffa165a5083775e183b3f5f4f6292370a119eb57adc0ba0fc5d1c0c0445f62675c70bf744db3edb354253c48374261bfd796243b4b94c3602 WHIRLPOOL 175dce92b6d3dbbdf4e8e272276958d8f51dc75be244aa992f386362175ab471a34ebe785c24ec15b9713f59d44029372804414428e85a809c26f6aa8f1eef17 +MISC metadata.xml 380 SHA256 fa9dc1235c3f5fb4291011c048e8e2cee1d1a1708b5be3e0204e7e27ac8c0651 SHA512 fc80365e646a5be525c22f4e04638d5267eb661d803615e829d84246cdd49670d3249b8b564712ce54778a8710f0b8926badf955c4479d4d2de365386818b7e1 WHIRLPOOL f7daca1069f536f3dd23772a5691a125f9f100cafbd255b592943f50d15688ef62cd787a3832ab9d508e614c1e49dbe7bd23c27d9bb306f81494fdb984cb9ec8 diff --git a/sys-process/procenv/files/procenv-0.45-flags.patch b/sys-process/procenv/files/procenv-0.45-flags.patch new file mode 100644 index 000000000000..a4c6be95c420 --- /dev/null +++ b/sys-process/procenv/files/procenv-0.45-flags.patch @@ -0,0 +1,18 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -4,7 +4,6 @@ + -pedantic \ + -std=gnu99 \ + -Wall -Wunused \ +- -fstack-protector \ + -Wformat + + +@@ -13,7 +12,6 @@ + AM_CFLAGS += -fdata-sections -ffunction-sections + + # keep it tight +-AM_CFLAGS += -Werror + + bin_PROGRAMS = procenv + diff --git a/sys-process/procenv/metadata.xml b/sys-process/procenv/metadata.xml new file mode 100644 index 000000000000..01b4992f71f0 --- /dev/null +++ b/sys-process/procenv/metadata.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <upstream> + <remote-id type="launchpad">procenv</remote-id> + <remote-id type="github">jamesodhunt/procenv</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/procenv/procenv-0.49.ebuild b/sys-process/procenv/procenv-0.49.ebuild new file mode 100644 index 000000000000..3c8ae5b1be57 --- /dev/null +++ b/sys-process/procenv/procenv-0.49.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="command-line utility to show process environment" +HOMEPAGE="https://github.com/jamesodhunt/procenv" +SRC_URI="https://github.com/jamesodhunt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" +IUSE="test" + +DEPEND=" + virtual/pkgconfig + test? ( dev-libs/check ) +" + +src_prepare() { + local PATCHES=( + "${FILESDIR}"/${PN}-0.45-flags.patch + ) + + default + eautoreconf +} diff --git a/sys-process/procexp/Manifest b/sys-process/procexp/Manifest new file mode 100644 index 000000000000..5a148348d650 --- /dev/null +++ b/sys-process/procexp/Manifest @@ -0,0 +1,5 @@ +DIST process_explorer-1.5-277.noarch.rpm 146630 SHA256 b58dd139c16295d1d89937ddd684b7298f9d5b175b6dc5ce580ec073f7cf3792 SHA512 bdf03a0cbce621791ed272d61ee230a672caa8cd2d16e52b4fc256fe7955dc93636108dffdae30375e0b497d9378a8c3fdf6fc8bbd66cf04254596507d17dbef WHIRLPOOL f7098d8744666a49abb148e683b18c990385f8dba6f9aeb94832fb3531227d635b5f8f85316237a12ddc0e2182550993275d6c882a5e70d19119c63f6b83ed42 +EBUILD procexp-1.5.277.ebuild 1706 SHA256 50ad6a975ede5f478f4988277b0863ee05880df0581ef426dd502b46ea0d4c67 SHA512 f04ee2a44d99f723f7de25dbf48e637e6698680048531f091a270fcf65c7f7c1247cb1bbfab538c24f525bbb8259f44f95e1cee0eefcea82ab45cba3da534ec6 WHIRLPOOL 25b344c0af6c6e6bade4ca18282f5cecd32f08f1f1bd6192b50c2e75c550a65cf957eb501e2283619b5290a8a06d7078edc4280cfeaade2ced6cdf4b6ba3aa5f +MISC ChangeLog 2681 SHA256 0e6be4ec055227aba3d2284b7bd3f2300f4b946242bdbd63acd93483395e0fff SHA512 9935de6ed047082eee58d6cdf077ab881de9eb48b156a759bb6ae9b9224ebfe8dc3f96762e76040f78eabd6601f88c58b9ae28588ad779646e1d1b426fe9faf8 WHIRLPOOL 771e687e53b579e3f8323f5c86c0d65ff877ebffeb38ae7e9dd77d850fb0e2474b1b2819503afe22682456d1a7b1198c4c0ee023d32625f325398df84d052164 +MISC ChangeLog-2015 549 SHA256 2773950d196f641a2190e2e90d9947d07aa9e6b07ecca8758c8cd3f3b283f49d SHA512 ca04431801ae2927d976ccaf081f2adf7509a0cc9719805e431a6639361b2dfb0397a83026cc3ed4af8e4ec1af76264e63f62e06d9a2ceed02c80500418fc2d6 WHIRLPOOL 91ddef4cdfc2c81dc1fd9e7b3ed7772580e80c5fcdf18f71ffce20edffc3835364d5619dd5cd93dbfb5f87b1fa5be277ed63ef2e53d0116004a74c45f7d7a41c +MISC metadata.xml 244 SHA256 0528ae30de755427ceef03ce2de48756d1d9b73e06fa9dc8bf880db3754f1fc8 SHA512 df7831b4f02be63e429c2fb2e1ea301250a60b9ebf35bf4aec0001aca69bbb38306b13f1a7394954214b1ce68de684178890763963fff745ad9cd7578373a2f6 WHIRLPOOL 79b6c1b02364f5c8a1e379990e3b9fd64f764b852450e5c750b2c5e807ad9fbc18f7ca511802a338138cdc9b5dab3da2a275a16b6ca4554a36d6e12a259a1bce diff --git a/sys-process/procexp/metadata.xml b/sys-process/procexp/metadata.xml new file mode 100644 index 000000000000..b921f0b919f1 --- /dev/null +++ b/sys-process/procexp/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">procexp</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/procexp/procexp-1.5.277.ebuild b/sys-process/procexp/procexp-1.5.277.ebuild new file mode 100644 index 000000000000..36ab524ffa2b --- /dev/null +++ b/sys-process/procexp/procexp-1.5.277.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +inherit eutils gnome2-utils multilib python-single-r1 rpm versionator + +MY_P="process_explorer-$(replace_version_separator 2 '-')" + +DESCRIPTION="Graphical process explorer" +HOMEPAGE="https://sourceforge.net/apps/mediawiki/procexp/index.php?title=Main_Page" +SRC_URI="mirror://sourceforge/project/procexp/${MY_P}.noarch.rpm" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/PyQt4[X,${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/pyqwt[${PYTHON_USEDEP}] + sys-auth/polkit" + +S="${WORKDIR}/opt/${MY_P}/${PN}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# No build system provided by upstream +# https://sourceforge.net/tracker/?func=detail&aid=3573774&group_id=309156&atid=1301952 + +src_prepare() { + # Removing unnecessary svn cruft + esvn_clean + + rm make_rpm.py process_explorer.spec ${PN}.desktop ${PN}.sh || die 'remove unneeded files failed' + + epatch_user + + python_fix_shebang . +} + +src_install() { + newicon -s 48 icon.png ${PN}.png + rm icon.png || die + + insinto "/usr/share/polkit-1/actions" + doins com.procexp.pkexec.policy + rm com.procexp.pkexec.policy || die + + insinto "/usr/$(get_libdir)/${PN}" + doins -r * + fperms +x "/usr/$(get_libdir)/${PN}/procexp.py" + fperms +x "/usr/$(get_libdir)/${PN}/rootproxy/procroot.py" + + dosym "/usr/$(get_libdir)/${PN}/procexp.py" /usr/bin/procexp + make_desktop_entry ${PN} "Linux Process Explorer" ${PN} "System;Utility;" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/sys-process/procps/Manifest b/sys-process/procps/Manifest new file mode 100644 index 000000000000..2b9677eb29d3 --- /dev/null +++ b/sys-process/procps/Manifest @@ -0,0 +1,11 @@ +AUX procps-3.3.11-sysctl-manpage.patch 941 SHA256 1582675083410838e844e0f4f5b2da5835bb9653aadba42bea0b0f7002dc13d4 SHA512 df8b233bde879fa675742baf8b38d43dd7c306fe52013ace715dff02c126d8c5ea12bd93087da10f5e722294eef59577b264309cbdc6f9f3727fa7111c5db313 WHIRLPOOL dce1e4758eac97eee568acfaeb324b980c7786ffe021ee542b5495c1807e35549c45af03c897a5063f8d8f48395189c29ab014b82ee0961bf792d3ff6e739c8e +AUX procps-3.3.12-elogind.patch 8365 SHA256 6e5a2da7d9601a435c91d985e631015242b9a6763967f73ae4215b50b2f8dfea SHA512 090f523c1b06e60cb82e4b73a29fa192b164923315dcba0d1511e454ee06d0616ba4a2c3b2b5a62048fb289ff4ae81c36920c77177cce09ceda06be019efa271 WHIRLPOOL 92c487a35d9e5342a9cde0f025e8a72c47ad61e5b7abcfeefbb918862c676604e0c023d46087d3c6458e7e4ea2f3c05558ba7483c5a5d638cf80bc8fb70baa3b +AUX procps-3.3.12-proc-tests.patch 1835 SHA256 a5e2be31c76f03be1ffe9c751286a617f94ede14173626e36bef793dcadec821 SHA512 ecc94717366a314ac4bba550b84472555f7b217be2174b68778d3364e16586ab9c21756d2041e2ac9d1449856fcd6aa691d8bd1a8558b4653d068dc1d59c2c71 WHIRLPOOL a698f3cdfcbcd9ea797febe92f6f185b424cc81d98aca6a734aafaf398901ac8b83a6be00d90dc727c23a7a39f6f8e344414fd1f8897826a4d5e9417e998291f +AUX procps-3.3.12-strtod_nol_err.patch 3328 SHA256 37e5343596b99c609c3b64f763ad6b9c18d67ef1f3be9386b46fc9520055d21c SHA512 00618dcf62dd2c054060eb9cef223ab8d7d93a53649fc8d0cc8251d5763e98deca97433d0017f0118dcce9d4c920ccf0a60998865efb569544e1fa47cb1c11b3 WHIRLPOOL 6f5a6e2f1ebf137df3e71da4410b076323a119691bafd834a9d9e82e1939f53455f7d65a91c99a3bc362edee13fc19f5a9cb772858c807078b6451a4ba33172f +AUX procps-3.3.8-kill-neg-pid.patch 1446 SHA256 847c21f6619c7aa0f2847726a17595f986ec2fe0f361d95e17812639abe32a79 SHA512 3ed4e83d81f7dd574ff68bbcae9ad9f8649a39d46a17de5fd4297f215d8f70cd28e415b1d3c7b5142e7719343af28f4b393061a60eb012caece81dfe5ff6c271 WHIRLPOOL cf452118312e60a0bab7a4ec87bed9a9d2f5fb8bb563769a0430f11c72348e5be79bdfc031f67f4e97e0bf9b32f6ccd1ac590f392c95ee935b77b857ce1b1739 +DIST procps-ng-3.3.12.tar.xz 845484 SHA256 6ed65ab86318f37904e8f9014415a098bec5bc53653e5d9ab404f95ca5e1a7d4 SHA512 ea816740ff72cc53d99b5d2e78a511b627ea5b295e0efff67605c56d1ab075abc6b0e2da3df4facbfe903fc9d679e892d351b6884a966d37c6f4bfd9141a924b WHIRLPOOL f6ff034c09224fb819cdadc0fc6e456a5e11bffa298a7d005a1089378a6bf19c464bb09d278618daecebcd02228d831efbe4d65a4f9f850f83c9dd030a3ab98b +EBUILD procps-3.3.12-r1.ebuild 2337 SHA256 aae91fcaafd02224db329e978a3151784f84641bcfa86960a344196e1b8395f3 SHA512 254401e697cc8017988ab42b3a89dc1986205e09145f9e03ca7a1e5c6114bbfe6edc8ebc3df1d4a6067ba61e4abcb07b191493ebe44b78124d369d8b613be09b WHIRLPOOL 9860db8d3c69e0043cfb5eb3b06ea8a859ee82f32db3eb2bd3b64e920075e87f164a3d491158792be3d9534c5cb0101feb002d3c6e8a0bf9b31811074deb4e1d +EBUILD procps-3.3.12.ebuild 1984 SHA256 73e63ee47e31fb6f03033ba6be5c03ee17f4ce79ab9cd028a7069049e42839c4 SHA512 ebdf9a402bf2682892fc8b2628da524fd85d7fc1c0593b6c4e4e742743bcedfc643d2076863e863a35cbb894bd8d37a0771c58f1eaeb6447a367ad5f445cf5db WHIRLPOOL fae16c7eac05745db7b8a874ff73c76b3216ea1e2da480041786bb53d937443d806235969f10da8e2e73952c9910240adf70ad868683df432cd3df2512ac1886 +MISC ChangeLog 10811 SHA256 0654dbe31870fb28689a46ec945e44de4b797411d9f14ddc7e05a8fbe67e7d1e SHA512 df628cdafa0dc59bd606eaf21f7f6a7ffe1abca9c3f3cead560276e820afe233d7a8cbce64c8c7997569f7f3f76575206f767b11df14d738da10ec822ebf0d7f WHIRLPOOL 03b6eaf01e53ef5557fd655a83426d5b27d84a0abbca6b98020389476f82e1167aa3d93ec8fe68199f5a413fce80c50bf13076f050737b36200700040b3d42f6 +MISC ChangeLog-2015 35845 SHA256 f4d801d61ca12a455950cfdded1b86257b5bfa68a7d23586d4ae5a7ee23cffcc SHA512 0206dd361fd68c3e16aee9998d4950928add17d47f7159c5cd75cab0aba614f88d4c44a9d9187e6aed33ffff5b57fcf5c918ef3caf4822f6fe51f1435d95710a WHIRLPOOL d84586d47079ec30f5569da1925e2aafc1e54d279e6561ebaf2bb1d010725bc695c859ff78dd9731c40f04d51dd2a6e590e389022c5219dd97a3d2ee5293e5c5 +MISC metadata.xml 653 SHA256 5a5addeac4cb1a4b0d29a9d812901c3f7de204aeac638422b3e770b1501fdc4b SHA512 d98bc7ed5e5437134c30db0a2ecbe4f430143aad2b91775e128fe735ddc39801e8d8fe62905cabbd8a41c4d07698110605b74056296282a74ac7622a09272703 WHIRLPOOL 353a06c6172e142f3e6e68537a8b9c2edd15303c31103cc622a531878a4584dd7fa3cb844ea12294f038fdc9450fe36c5548cfd0d20773f8494dadb122d0e9a0 diff --git a/sys-process/procps/files/procps-3.3.11-sysctl-manpage.patch b/sys-process/procps/files/procps-3.3.11-sysctl-manpage.patch new file mode 100644 index 000000000000..3523aad4ba46 --- /dev/null +++ b/sys-process/procps/files/procps-3.3.11-sysctl-manpage.patch @@ -0,0 +1,32 @@ +--- procps-ng-3.3.11-orig/sysctl.8 ++++ procps-ng-3.3.11/sysctl.8 +@@ -123,21 +123,21 @@ + \fB\-V\fR, \fB\-\-version\fR + Display version information and exit. + .SH EXAMPLES +-/sbin/sysctl \-a ++/usr/sbin/sysctl \-a + .br +-/sbin/sysctl \-n kernel.hostname ++/usr/sbin/sysctl \-n kernel.hostname + .br +-/sbin/sysctl \-w kernel.domainname="example.com" ++/usr/sbin/sysctl \-w kernel.domainname="example.com" + .br +-/sbin/sysctl \-p/etc/sysctl.conf ++/usr/sbin/sysctl \-p/etc/sysctl.conf + .br +-/sbin/sysctl \-a \-\-pattern forward ++/usr/sbin/sysctl \-a \-\-pattern forward + .br +-/sbin/sysctl \-a \-\-pattern forward$ ++/usr/sbin/sysctl \-a \-\-pattern forward$ + .br +-/sbin/sysctl \-a \-\-pattern 'net.ipv4.conf.(eth|wlan)0.arp' ++/usr/sbin/sysctl \-a \-\-pattern 'net.ipv4.conf.(eth|wlan)0.arp' + .br +-/sbin/sysctl \-\-system \-\-pattern '^net.ipv6' ++/usr/sbin/sysctl \-\-system \-\-pattern '^net.ipv6' + .SH DEPRECATED PARAMETERS + The + .B base_reachable_time diff --git a/sys-process/procps/files/procps-3.3.12-elogind.patch b/sys-process/procps/files/procps-3.3.12-elogind.patch new file mode 100644 index 000000000000..07c165310ce4 --- /dev/null +++ b/sys-process/procps/files/procps-3.3.12-elogind.patch @@ -0,0 +1,265 @@ +--- procps-ng-3.3.12/configure 2016-07-10 07:32:09.862265237 +0200 ++++ procps-ng-3.3.12/configure 2016-07-10 07:32:09.862265237 +0200 +@@ -650,6 +650,10 @@ + BUILD_KILL_TRUE + BUILD_PIDOF_FALSE + BUILD_PIDOF_TRUE ++WITH_ELOGIND_FALSE ++WITH_ELOGIND_TRUE ++ELOGIND_LIBS ++ELOGIND_CFLAGS + WITH_SYSTEMD_FALSE + WITH_SYSTEMD_TRUE + SYSTEMD_LIBS +@@ -815,6 +819,7 @@ + enable_libselinux + with_ncurses + with_systemd ++with_elogind + enable_pidof + enable_kill + enable_skill +@@ -845,7 +850,9 @@ + NCURSESW_CFLAGS + NCURSESW_LIBS + SYSTEMD_CFLAGS +-SYSTEMD_LIBS' ++SYSTEMD_LIBS ++ELOGIND_CFLAGS ++ELOGIND_LIBS' + + + # Initialize some variables set by options. +@@ -1521,6 +1528,7 @@ + --without-libintl-prefix don't search for libintl in includedir and libdir + --without-ncurses build only applications not needing ncurses + --with-systemd enable systemd support ++ --with-elogind enable elogind support + + Some influential environment variables: + CC C compiler command +@@ -1550,6 +1558,10 @@ + C compiler flags for SYSTEMD, overriding pkg-config + SYSTEMD_LIBS + linker flags for SYSTEMD, overriding pkg-config ++ ELOGIND_CFLAGS ++ C compiler flags for ELOGIND, overriding pkg-config ++ ELOGIND_LIBS ++ linker flags for ELOGIND, overriding pkg-config + + Use these variables to override the choices made by `configure' or to help + it to find libraries and programs with nonstandard names/locations. +@@ -17295,6 +17307,127 @@ + fi + + ++ ++# Check whether --with-elogind was given. ++if test "${with_elogind+set}" = set; then : ++ withval=$with_elogind; ++else ++ with_elogind=no ++ ++fi ++ ++# Do not allow elogind if systemd is wanted and found ++if test "x$with_systemd" != "xno"; then : ++ with_elogind=no ++fi ++ ++if test "x$with_elogind" != "xno"; then : ++ ++ ++pkg_failed=no ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5 ++$as_echo_n "checking for libelogind... " >&6; } ++ ++if test -n "$ELOGIND_CFLAGS"; then ++ pkg_cv_ELOGIND_CFLAGS="$ELOGIND_CFLAGS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_ELOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++if test -n "$ELOGIND_LIBS"; then ++ pkg_cv_ELOGIND_LIBS="$ELOGIND_LIBS" ++ elif test -n "$PKG_CONFIG"; then ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ pkg_cv_ELOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null` ++ test "x$?" != "x0" && pkg_failed=yes ++else ++ pkg_failed=yes ++fi ++ else ++ pkg_failed=untried ++fi ++ ++ ++ ++if test $pkg_failed = yes; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ ++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then ++ _pkg_short_errors_supported=yes ++else ++ _pkg_short_errors_supported=no ++fi ++ if test $_pkg_short_errors_supported = yes; then ++ ELOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1` ++ else ++ ELOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1` ++ fi ++ # Put the nasty error message in config.log where it belongs ++ echo "$ELOGIND_PKG_ERRORS" >&5 ++ ++ as_fn_error $? "Package requirements (libelogind) were not met: ++ ++$ELOGIND_PKG_ERRORS ++ ++Consider adjusting the PKG_CONFIG_PATH environment variable if you ++installed software in a non-standard prefix. ++ ++Alternatively, you may set the environment variables ELOGIND_CFLAGS ++and ELOGIND_LIBS to avoid the need to call pkg-config. ++See the pkg-config man page for more details." "$LINENO" 5 ++elif test $pkg_failed = untried; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} ++as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it ++is in your PATH or set the PKG_CONFIG environment variable to the full ++path to pkg-config. ++ ++Alternatively, you may set the environment variables ELOGIND_CFLAGS ++and ELOGIND_LIBS to avoid the need to call pkg-config. ++See the pkg-config man page for more details. ++ ++To get pkg-config, see <http://pkg-config.freedesktop.org/>. ++See \`config.log' for more details" "$LINENO" 5; } ++else ++ ELOGIND_CFLAGS=$pkg_cv_ELOGIND_CFLAGS ++ ELOGIND_LIBS=$pkg_cv_ELOGIND_LIBS ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++fi ++ ++$as_echo "#define WITH_ELOGIND 1" >>confdefs.h ++ ++ ++fi ++ if test x$with_elogind != xno; then ++ WITH_ELOGIND_TRUE= ++ WITH_ELOGIND_FALSE='#' ++else ++ WITH_ELOGIND_TRUE='#' ++ WITH_ELOGIND_FALSE= ++fi ++ ++ + # AC_ARG_ENABLEs + # Check whether --enable-pidof was given. + if test "${enable_pidof+set}" = set; then : +@@ -17712,6 +17845,10 @@ + as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined. + Usually this means the macro was only invoked conditionally." "$LINENO" 5 + fi ++if test -z "${WITH_ELOGIND_TRUE}" && test -z "${WITH_ELOGIND_FALSE}"; then ++ as_fn_error $? "conditional \"WITH_ELOGIND\" was never defined. ++Usually this means the macro was only invoked conditionally." "$LINENO" 5 ++fi + if test -z "${BUILD_PIDOF_TRUE}" && test -z "${BUILD_PIDOF_FALSE}"; then + as_fn_error $? "conditional \"BUILD_PIDOF\" was never defined. + Usually this means the macro was only invoked conditionally." "$LINENO" 5 +--- procps-ng-3.3.12/configure.ac 2016-07-09 23:49:25.817307031 +0200 ++++ procps-ng-3.3.12/configure.ac 2016-07-09 23:49:25.817307031 +0200 +@@ -155,6 +155,19 @@ + ]) + AM_CONDITIONAL([WITH_SYSTEMD], [test x$with_systemd != xno]) + ++AC_ARG_WITH([elogind], ++ [AS_HELP_STRING([--with-elogind], [enable elogind support])], ++ [], [with_elogind=no] ++) ++# Do not allow elogind if systemd is wanted and found ++AS_IF([test "x$with_systemd" != "xno"], [with_elogind=no]) ++ ++AS_IF([test "x$with_elogind" != "xno"], [ ++ PKG_CHECK_MODULES([ELOGIND], [libelogind]) ++ AC_DEFINE(WITH_ELOGIND, 1, [enable elogind support]) ++]) ++AM_CONDITIONAL([WITH_ELOGIND], [test x$with_elogind != xno]) ++ + # AC_ARG_ENABLEs + AC_ARG_ENABLE([pidof], + AS_HELP_STRING([--disable-pidof], [do not build pidof]), +--- procps-ng-3.3.12/Makefile.am 2016-07-10 00:40:44.235121270 +0200 ++++ procps-ng-3.3.12/Makefile.am 2016-07-10 00:40:44.235121270 +0200 +@@ -155,6 +155,10 @@ + proc_libprocps_la_LIBADD += @SYSTEMD_LIBS@ + endif + ++if WITH_ELOGIND ++proc_libprocps_la_LIBADD += @ELOGIND_LIBS@ ++endif ++ + proc_libprocps_la_LDFLAGS = \ + -version-info $(LIBprocps_CURRENT):$(LIBprocps_REVISION):$(LIBprocps_AGE) \ + -no-undefined \ +--- procps-ng-3.3.12/Makefile.in 2016-07-10 07:32:11.170237828 +0200 ++++ procps-ng-3.3.12/Makefile.in 2016-07-10 07:32:11.170237828 +0200 +@@ -126,6 +126,7 @@ + @BUILD_SKILL_FALSE@ snice.1 + + @WITH_SYSTEMD_TRUE@am__append_14 = @SYSTEMD_LIBS@ ++@WITH_ELOGIND_TRUE@am__append_15 = @ELOGIND_LIBS@ + TESTS = lib/test_strtod_nol$(EXEEXT) + check_PROGRAMS = $(am__EXEEXT_5) + noinst_PROGRAMS = lib/test_strutils$(EXEEXT) \ +@@ -688,6 +689,8 @@ + ECHO_N = @ECHO_N@ + ECHO_T = @ECHO_T@ + EGREP = @EGREP@ ++ELOGIND_CFLAGS = @ELOGIND_CFLAGS@ ++ELOGIND_LIBS = @ELOGIND_LIBS@ + EXEEXT = @EXEEXT@ + FGREP = @FGREP@ + GMSGFMT = @GMSGFMT@ +--- procps-ng-3.3.12/proc/readproc.c 2016-07-09 23:49:25.825306872 +0200 ++++ procps-ng-3.3.12/proc/readproc.c 2016-07-09 23:49:25.825306872 +0200 +@@ -40,6 +40,9 @@ + #ifdef WITH_SYSTEMD + #include <systemd/sd-login.h> + #endif ++#ifdef WITH_ELOGIND ++#include <elogind/sd-login.h> ++#endif + + // sometimes it's easier to do this manually, w/o gcc helping + #ifdef PROF +@@ -518,7 +521,7 @@ + } + + static void sd2proc(proc_t *restrict p) { +-#ifdef WITH_SYSTEMD ++#if defined(WITH_SYSTEMD) || defined(WITH_ELOGIND) + char buf[64]; + uid_t uid; + diff --git a/sys-process/procps/files/procps-3.3.12-proc-tests.patch b/sys-process/procps/files/procps-3.3.12-proc-tests.patch new file mode 100644 index 000000000000..9549252dd485 --- /dev/null +++ b/sys-process/procps/files/procps-3.3.12-proc-tests.patch @@ -0,0 +1,47 @@ +https://bugs.gentoo.org/583036 +http://www.freelists.org/post/procps/Patch-Test-suite-fails-if-procpidsmaps-is-absent,1 + +From: tobbs@opentrash.com +To: procps@freelists.org +Date: Sun, 11 Sep 2016 15:01:29 +0200 +Subject: [procps] [Patch] Test suite fails if /proc/<pid>/smaps is absent +Message-Id: <20160911130129.9A8B3322A81@astra4649.startdedicated.de> + +Summary: Some Linux systems do not have /proc/<pid>/smaps, hence the test +suite fails. Attached a patch to skip tests in that case it. + +When pmap is called with either -c, -x, or -x it tries to read +/proc/<pid>/smaps (pmap.c, l. 540). If not present it exits. +The file /proc/<pid>/smaps exits on Linux systems only if the kernel is +compiled with the option CONFIG_PROC_PAGE_MONITOR (see man page proc(5)). + +In the test suite some tests check the output of pmap -X et al, but they +fail if /proc/<pid>/smaps is not present, because pmap does not produce +their expected output. + +Attached a patch which checks if /proc/<pid>/smaps exits, if not it +skipps the test related to it. + +Note: It is unclear what the 'expected' behaviour/output of pmap should +be if the file /proc/<pid>/smaps is not present. Maybe add an additional +test to check the return code if /proc/<pid>/smaps is absent. + +--- a/testsuite/pmap.test/pmap.exp ++++ b/testsuite/pmap.test/pmap.exp +@@ -45,6 +45,11 @@ + spawn $pmap -qd $mypid + expect_table $test $pmap_procname $pmap_device_items "\$" + ++if { [ file readable "/proc/self/smaps" ] == 0 } { ++ unsupported "Skipping test which require pmap to access /proc/<pid>/smaps, because kernel seems to be compiled without CONFIG_PROC_PAGE_MONITOR." ++ ++} else { ++ + set test "pmap extended output" + spawn $pmap -x $mypid + expect_table $test $pmap_ext_header $pmap_ext_items $pmap_ext_footer +@@ -66,3 +71,4 @@ + spawn $pmap -XX 1 + expect_pass $test "$pmap_initname\$" + ++} diff --git a/sys-process/procps/files/procps-3.3.12-strtod_nol_err.patch b/sys-process/procps/files/procps-3.3.12-strtod_nol_err.patch new file mode 100644 index 000000000000..1a298c87f700 --- /dev/null +++ b/sys-process/procps/files/procps-3.3.12-strtod_nol_err.patch @@ -0,0 +1,110 @@ +From 4ed44ab58e27a9a09902b9c5b49df484842b6c9a Mon Sep 17 00:00:00 2001 +From: Dr. Werner Fink <werner@suse.de> +Date: Wed, 13 Jul 2016 20:08:51 +1000 +Subject: [PATCH] misc: fix strtod_nol_err tests + +A better way of implementing the string to double +conversion and a better way of testing it. + +Signed-off-by: Craig Small <csmall@enc.com.au> +--- +diff --git a/include/strutils.h b/include/strutils.h +index 85a6192..a5a15c9 100644 +--- a/include/strutils.h ++++ b/include/strutils.h +@@ -7,6 +7,6 @@ + + extern long strtol_or_err(const char *str, const char *errmesg); + extern double strtod_or_err(const char *str, const char *errmesg); +-double strtod_nol_or_err(char *str, const char *errmesg); ++extern double strtod_nol_or_err(char *str, const char *errmesg); + + #endif +diff --git a/lib/strutils.c b/lib/strutils.c +index e5245db..e0632c4 100644 +--- a/lib/strutils.c ++++ b/lib/strutils.c +@@ -20,6 +20,8 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + ++#include <float.h> ++#include <math.h> + #include <stdlib.h> + #include <ctype.h> + +@@ -71,9 +73,9 @@ double strtod_or_err(const char *str, const char *errmesg) + */ + double strtod_nol_or_err(char *str, const char *errmesg) + { +- double num; ++ long double num; + const char *cp, *radix; +- double mult; ++ long double mult; + int negative = 0; + + if (str != NULL && *str != '\0') { +@@ -95,29 +97,29 @@ double strtod_nol_or_err(char *str, const char *errmesg) + mult=0.1; + while(isdigit(*radix)) { + radix++; +- mult *= 10; ++ mult *= 10.0; + } + while(isdigit(*cp)) { +- num += (*cp - '0') * mult; +- mult /= 10; ++ num += (long double)(*cp - '0') * mult; ++ mult /= 10.0; + cp++; + } + /* got the integers */ + if (*cp == '\0') +- return (negative?-num:num); ++ return (double)(negative?-num:num); + if (*cp != '.' && *cp != ',') + error(EXIT_FAILURE, EINVAL, "%s: '%s'", errmesg, str); + + cp++; + mult = 0.1; + while(isdigit(*cp)) { +- num += (*cp - '0') * mult; +- mult /= 10; ++ num += (long double)(*cp - '0') * mult; ++ mult /= 10.0; + cp++; + } + if (*cp == '\0') +- return (negative?-num:num); ++ return (double)(negative?-num:num); + } + error(EXIT_FAILURE, errno, "%s: '%s'", errmesg, str); +- return 0; ++ return (double)0; + } +diff --git a/lib/test_strtod_nol.c b/lib/test_strtod_nol.c +index 0be798c..736768a 100644 +--- a/lib/test_strtod_nol.c ++++ b/lib/test_strtod_nol.c +@@ -1,4 +1,5 @@ +- ++#include <float.h> ++#include <math.h> + #include <stdio.h> + #include <stdlib.h> + #include "strutils.h" +@@ -33,8 +34,8 @@ int main(int argc, char *argv[]) + double val; + + for(i=0; tests[i].string != NULL; i++) { +- if(strtod_nol_or_err(tests[i].string, "Cannot parse number") != +- tests[i].result) { ++ val = strtod_nol_or_err(tests[i].string, "Cannot parse number"); ++ if(fabs(tests[i].result - val) > DBL_EPSILON) { + fprintf(stderr, "FAIL: strtod_nol_or_err(\"%s\") != %f\n", + tests[i].string, tests[i].result); + return EXIT_FAILURE; +-- +libgit2 0.24.0 + diff --git a/sys-process/procps/files/procps-3.3.8-kill-neg-pid.patch b/sys-process/procps/files/procps-3.3.8-kill-neg-pid.patch new file mode 100644 index 000000000000..00397480ca3b --- /dev/null +++ b/sys-process/procps/files/procps-3.3.8-kill-neg-pid.patch @@ -0,0 +1,46 @@ +From 396cbc4cf36166217d877e2ff7e0a290758b0bc2 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Thu, 27 Jun 2013 18:37:17 -0400 +Subject: [PATCH] kill: fix -PID handling + +Commit 19b6f48990b02aeca211b480625b95b2033c1017 tried to fix -PID +handling, but the new logic ends up skipping over the arg. This is +because getopt increments optind after it processed the -PID (even +though it was an unknown option). We need to decrement it by one +so the loop at the end of the code will process it for us. + +I also fixed some whitespace errors in that same commit. + +URL: http://code.google.com/p/chromium/issues/detail?id=255209 +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + skill.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/skill.c b/skill.c +index fb57305..074c5d7 100644 +--- a/skill.c ++++ b/skill.c +@@ -390,7 +390,7 @@ static void __attribute__ ((__noreturn__)) + else + sigopt++; + +- opterr=0; /* suppress errors on -123 */ ++ opterr = 0; /* suppress errors on -123 */ + while (loop == 1 && (i = getopt_long(argc, argv, "l::Ls:hV", longopts, NULL)) != -1) + switch (i) { + case 'l': +@@ -423,7 +423,9 @@ static void __attribute__ ((__noreturn__)) + xwarnx(_("invalid argument %c"), optopt); + kill_usage(stderr); + } +- loop=0; ++ /* We need to back off by one since getopt() ate the -PID */ ++ --optind; ++ loop = 0; + break; + default: + kill_usage(stderr); +-- +1.8.2.1 + diff --git a/sys-process/procps/metadata.xml b/sys-process/procps/metadata.xml new file mode 100644 index 000000000000..263e639ef30e --- /dev/null +++ b/sys-process/procps/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +<use> + <flag name="elogind">Use <pkg>sys-auth/elogind</pkg> for session tracking.</flag> + <flag name="kill">Build the kill program</flag> + <flag name="modern-top">Enables new startup defaults of top. Keeps old defaults if disabled</flag> + <flag name="ncurses">Build programs that use ncurses: top, slabtop, watch</flag> +</use> +<upstream> + <remote-id type="sourceforge">procps</remote-id> +</upstream> +</pkgmetadata> diff --git a/sys-process/procps/procps-3.3.12-r1.ebuild b/sys-process/procps/procps-3.3.12-r1.ebuild new file mode 100644 index 000000000000..4fc6035472f3 --- /dev/null +++ b/sys-process/procps/procps-3.3.12-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit epatch toolchain-funcs flag-o-matic + +DESCRIPTION="standard informational utilities and process-handling tools" +HOMEPAGE="http://procps-ng.sourceforge.net/ https://gitlab.com/procps-ng/procps" +SRC_URI="mirror://sourceforge/${PN}-ng/${PN}-ng-${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/5" # libprocps.so +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="elogind +kill modern-top +ncurses nls selinux static-libs systemd test unicode" + +COMMON_DEPEND=" + elogind? ( sys-auth/elogind ) + ncurses? ( >=sys-libs/ncurses-5.7-r7:=[unicode?] ) + selinux? ( sys-libs/libselinux ) + systemd? ( sys-apps/systemd ) +" +DEPEND="${COMMON_DEPEND} + elogind? ( virtual/pkgconfig ) + ncurses? ( virtual/pkgconfig ) + systemd? ( virtual/pkgconfig ) + test? ( dev-util/dejagnu )" +RDEPEND=" + ${COMMON_DEPEND} + kill? ( + !sys-apps/coreutils[kill] + !sys-apps/util-linux[kill] + ) + !<sys-apps/sysvinit-2.88-r6 +" + +S="${WORKDIR}/${PN}-ng-${PV}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.3.8-kill-neg-pid.patch # http://crbug.com/255209 + "${FILESDIR}"/${PN}-3.3.11-sysctl-manpage.patch # 565304 + "${FILESDIR}"/${PN}-3.3.12-proc-tests.patch # 583036 + + # Upstream fixes + "${FILESDIR}"/${P}-strtod_nol_err.patch +) + +src_prepare() { + epatch "${PATCHES[@]}" + + # Requires special handling or autoreconf gets triggered which we don't + # want to happen in a base-system package. + EPATCH_OPTS="-Z" \ + epatch "${FILESDIR}"/${PN}-3.3.12-elogind.patch # 599504 + + epatch_user +} + +src_configure() { + # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support + append-lfs-flags #471102 + econf \ + --docdir='$(datarootdir)'/doc/${PF} \ + $(use_with elogind) \ + $(use_enable kill) \ + $(use_enable modern-top) \ + $(use_with ncurses) \ + $(use_enable nls) \ + $(use_enable selinux libselinux) \ + $(use_enable static-libs static) \ + $(use_with systemd) \ + $(use_enable unicode watch8bit) +} + +src_test() { + emake check </dev/null #461302 +} + +src_install() { + default + #dodoc sysctl.conf + + dodir /bin + mv "${ED}"/usr/bin/ps "${ED}"/bin/ || die + if use kill; then + mv "${ED}"/usr/bin/kill "${ED}"/bin/ || die + fi + + gen_usr_ldscript -a procps + find "${D}" -name '*.la' -delete || die +} diff --git a/sys-process/procps/procps-3.3.12.ebuild b/sys-process/procps/procps-3.3.12.ebuild new file mode 100644 index 000000000000..57528f8ba618 --- /dev/null +++ b/sys-process/procps/procps-3.3.12.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="standard informational utilities and process-handling tools" +HOMEPAGE="http://procps-ng.sourceforge.net/ https://gitlab.com/procps-ng/procps" +SRC_URI="mirror://sourceforge/${PN}-ng/${PN}-ng-${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/5" # libprocps.so +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="+kill +ncurses modern-top nls selinux static-libs systemd test unicode" + +RDEPEND="ncurses? ( >=sys-libs/ncurses-5.7-r7:=[unicode?] ) + selinux? ( sys-libs/libselinux ) + systemd? ( >=sys-apps/systemd-209 )" +DEPEND="${RDEPEND} + ncurses? ( virtual/pkgconfig ) + systemd? ( virtual/pkgconfig ) + test? ( dev-util/dejagnu )" +RDEPEND+=" + kill? ( + !sys-apps/coreutils[kill] + !sys-apps/util-linux[kill] + ) + !<sys-apps/sysvinit-2.88-r6" + +S="${WORKDIR}/${PN}-ng-${PV}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.3.8-kill-neg-pid.patch # http://crbug.com/255209 + "${FILESDIR}"/${PN}-3.3.11-sysctl-manpage.patch # 565304 + "${FILESDIR}"/${PN}-3.3.12-proc-tests.patch #583036 + + # Upstream fixes + "${FILESDIR}"/${P}-strtod_nol_err.patch +) + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user +} + +src_configure() { + # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support + append-lfs-flags #471102 + econf \ + --docdir='$(datarootdir)'/doc/${PF} \ + $(use_enable kill) \ + $(use_enable modern-top) \ + $(use_with ncurses) \ + $(use_enable nls) \ + $(use_enable selinux libselinux) \ + $(use_enable static-libs static) \ + $(use_with systemd) \ + $(use_enable unicode watch8bit) +} + +src_test() { + emake check </dev/null #461302 +} + +src_install() { + default + #dodoc sysctl.conf + + dodir /bin + mv "${ED}"/usr/bin/ps "${ED}"/bin/ || die + if use kill; then + mv "${ED}"/usr/bin/kill "${ED}"/bin/ || die + fi + + gen_usr_ldscript -a procps + prune_libtool_files +} diff --git a/sys-process/psinfo/Manifest b/sys-process/psinfo/Manifest new file mode 100644 index 000000000000..94fd66ea21b7 --- /dev/null +++ b/sys-process/psinfo/Manifest @@ -0,0 +1,6 @@ +AUX psinfo-0.12-asneeded.patch 1173 SHA256 d3975e6c163eb2189acec10d54d4cb942450b05fa00e6d85040769d2278de133 SHA512 26e70733df993fc0614027c7c2abd02d4b900e5003211148e2c303476c1fd6f5dcb7e0c76b09dc90c1cca9663bf8ee1a14d999ab6aed5a96c8c40691e7ac1d7f WHIRLPOOL 6c45f88dc22e91f58fefe5cf957bc9972a8b71c86c19918586f06afb669d918c141ed82b4dfc981cf4ac3435eaf841b570802dcd58774c03ffecc4afd3b40c7f +DIST psinfo-0.12.tar.gz 9107 SHA256 2c1ad9a76eb91c92f79c859b9058f673fabc6cfc2b0a752db392fc5afd8a3aa1 SHA512 481743c9b8112fa34779bcdeb12d84a1445a4e4c105161d9a9927fe920e5c4f190dc3e03cb65d9978538cb3d4102983af7e290d31c809a1efa0f6c871064c62f WHIRLPOOL 378fd789b4fd8fb6822d0857c3865fdcef8a1b7e58feb709e28a5b197eefbe8924e9c077dd5e11b0d227b1df10f0815231497cf91fdb2c265f735b52a0ec9cd9 +EBUILD psinfo-0.12.ebuild 615 SHA256 5b10ddb1d0d5013be11aaa0eb8d6f0fe5abd677efc9d68f5f3e19489cdb12d9a SHA512 88ba397bacc382c0e08ab30aed9331955ab93c25d20d5a0a01df904d2b14f7bd994b0b3d38265706225f21972c8824281c4dca76a576e76eeea5650817c7eab1 WHIRLPOOL 2dd74fd28b016306c690b4685270abb5360d4ad30fc9f4881bbfb408ba11931876c370c84c7163ebfd9cdf048b2b2d020b900c63ba126e625c2738de6eb21e0c +MISC ChangeLog 2600 SHA256 f88de3c0578df3ff0306a1dfcdb26b192c671bb62236e02f997b0beb2c0a9c57 SHA512 a81ce918a177a0216c6e44e23efe2a3834e8a7e0b30ce68f6a893d7b814e16cd88202999e7172849d484f14023a035eef547679ffbd72cd5da65ffeb6921ad0f WHIRLPOOL 72242167b0e2133f442c1e48aac48be718bddf187de148595e3bb96da7c10ef2c8d151eef6f56820ae7b9e9de5067f4fb6cd8b244c926d6a2ece380b5fd4b514 +MISC ChangeLog-2015 414 SHA256 740a083f0e17f572104ebbe5bd068d6adfe87468cd8636273b86b97ed8be37ab SHA512 5d3897fa10bccfe201103f90f4ddce82b2a231dbb648a76d1270323e3dc60d534627871241cc62f54dab019db17f278e202635926fc30f0e8fbec31f60bec5af WHIRLPOOL ab71ab2a861a97d2afee2666101fb28fc05d15532344b3b9d44536eafbc789a6c01fd3bdb01f3a359e029c63ca6fd9aef66d19f317f68779728314cd58a0accd +MISC metadata.xml 261 SHA256 fb9f18027aca4a5ba2a667473e25e22b0f997c3e06c6c52fc5fe288a68c7f9a4 SHA512 714bffc43ca20bdd43a5039acceab4c92e78861b8f75e7eda27c7940fa527716a6f4a8373d610976c5b20b55f0ff08280fb2571274d0716e7e4a097e076a3df3 WHIRLPOOL e45e618a3fbc000232b38d88d7f849de1d890aa44d93ba812b6857146b42cbeee3e4427694e34ef83d4cb768740ec43c9950bda6b91b7520e846486118466ff7 diff --git a/sys-process/psinfo/files/psinfo-0.12-asneeded.patch b/sys-process/psinfo/files/psinfo-0.12-asneeded.patch new file mode 100644 index 000000000000..97cfd7f817fb --- /dev/null +++ b/sys-process/psinfo/files/psinfo-0.12-asneeded.patch @@ -0,0 +1,36 @@ + Makefile | 17 ++++++++++------- + 1 files changed, 10 insertions(+), 7 deletions(-) + +diff --git a/Makefile b/Makefile +index 2964607..fb4ece8 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,10 +1,10 @@ +-CC=gcc +-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wshadow -Wcast-align -Wno-unused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls ++CC ?=gcc ++CFLAGS ?=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wswitch -Wshadow -Wcast-align -Wno-unused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls + INSTALL=install +-LDFLAGS= ++LDFLAGS ?= + SOURCES=psinfo.c + EXECUTABLE=psinfo +-TARGETDIR=/usr/local/bin ++TARGETDIR=/usr/bin + + all: $(EXECUTABLE) + +@@ -12,7 +12,10 @@ clean: + rm -f $(EXECUTABLE) + + install: $(EXECUTABLE) +- $(INSTALL) -m 755 psinfo $(TARGETDIR) ++ $(INSTALL) -D -m 755 psinfo $(DESTDIR)/$(TARGETDIR)/$(EXECUTABLE) + +-$(EXECUTABLE): $(SOURCES) +- $(CC) $(CFLAGS) -o $@ $(SOURCES) $(LDFLAGS) ++$(EXECUTABLE): psinfo.o ++ $(CC) $(LDFLAGS) -o $@ psinfo.o ++ ++psinfo.o: psinfo.c ++ $(CC) $(CFLAGS) -c psinfo.c diff --git a/sys-process/psinfo/metadata.xml b/sys-process/psinfo/metadata.xml new file mode 100644 index 000000000000..5ba39f7258f4 --- /dev/null +++ b/sys-process/psinfo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/psinfo/psinfo-0.12.ebuild b/sys-process/psinfo/psinfo-0.12.ebuild new file mode 100644 index 000000000000..7276412c5a68 --- /dev/null +++ b/sys-process/psinfo/psinfo-0.12.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Process information and statistics using the kernel /proc interface" +HOMEPAGE="http://www.ward.nu/computer/psinfo/" +SRC_URI="http://www.ward.nu/computer/${PN}/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-2" +IUSE="" + +src_prepare () { + epatch "${FILESDIR}"/${P}-asneeded.patch + tc-export CC +} + +#src_compile() { +# emake \ +# CFLAGS="${CFLAGS}" \ +# CC=$(tc-getCC) +#} + +#src_install() { +# dobin ${PN} +# dodoc README +#} diff --git a/sys-process/psmisc/Manifest b/sys-process/psmisc/Manifest new file mode 100644 index 000000000000..d5648ec60db1 --- /dev/null +++ b/sys-process/psmisc/Manifest @@ -0,0 +1,11 @@ +AUX psmisc-22.21-fuser_typo_fix.patch 1226 SHA256 51c251f07ad0a898a5654fe18d8955e08943025c5df2f73d0f65d00c4b6c3c92 SHA512 c2e46a19959f368935462bc93bde8bf5ee4a3b5530a66255cd9a83be04acbc6246e0a3900efeb1cb9f1bbaf5a1435c0c65d677f643664be25f87662e6048c930 WHIRLPOOL 48c6bc0bd4c4b521be621406d5b52d4df47687307ec681e5c20dfce77db22c7f1db322d40614a9eb59cfa3aebd287af8e23b6ce9cba21dd986f78718669c34e5 +AUX psmisc-22.21-sysmacros.patch 693 SHA256 c3e071e67c808c68acc49edc3b8d7ad665780403ca697e6e74b290816ec91633 SHA512 febac721daad0046eb8367015657904eafaa934dc4b314f19ec487c1953ea2f4ff70e79e7c94473a20e5a69e7ed1eb17a4cfbbac6b102622b12322bb9cc76a09 WHIRLPOOL 394bfdfc37f8ed754092b5868a5bafd1858fdc8ee00b060f0455bd0736ed84288b7bd1aed0d9e17c108fcc166b056dd10547f067be3ee0e25e4b0db9bfd6a509 +DIST psmisc-22.21.tar.gz 457702 SHA256 97323cad619210845b696d7d722c383852b2acb5c49b5b0852c4f29c77a8145a SHA512 766aeb45687090b88b17176c5117a603e83fe92a13c013aea72c8ee80048adf02e18c7daa52ddfb8b2135f7c9a1bcae38896cdfb8d0158728d85a446c5e0d5ae WHIRLPOOL cbd4af3e54ce01f43558184b57a24e44dfb6e05d8438bd11e2308ee62535bb93dc417b08e66603966cc5912d7fa88c29df1529995a42e2a8b7c3da663b01681f +DIST psmisc-23.0.tar.xz 295128 SHA256 7553318c5ecf021d3b98de0a200761e1a5898397832499201c1aa191a053f04c SHA512 334d625202fccd741363787c3f1d750515d63e2b5322b8ada5979144c8d841f505244c569bae9b63ce332aeace41b7caacd5354014c0301b56aca720a227f10d WHIRLPOOL 160e2d3d3eaf5482d5fee7a8966cf5c2620a4cb5551a4d9b673f2decd3e39480ca3b7e74c49cf28bb285fc1e3ae34f2de9df36aef036463ee00d458f92edfd7f +DIST psmisc-23.1.tar.xz 296136 SHA256 2e84d474cf75dfbe3ecdacfb797bbfab71a35c7c2639d1b9f6d5f18b2149ba30 SHA512 f678869ea555986a2538ada9630b74ce79304f3ee85cc9d69a3912d8d30ad491829eac0dcb69aae7003ee9b5de9645d2135b80a9e0b77824e60c417dc0be5f95 WHIRLPOOL e0b891475a7b3ff3fbc9c835f388e626b70d3e4dc47a611c1fa34b5ec479cd20912aa6895dda9c6cc5fabcfc36b7aba12db989a3b733b35f643c927769910266 +EBUILD psmisc-22.21-r3.ebuild 1381 SHA256 93faf90d7de142df5dd0da987a64d644c929fae9e70869ad551d54340218eb20 SHA512 e909d68ebb9b81959c8c4126bf511337450c19fdc66dac38db2fa66bf580e88d42a070e9fc602f9b68bbf0d96044ff57ae7b7655095e48aec5e8dab37bd1a483 WHIRLPOOL e94124c1af09a52a4c5e4ced21f9a335ac2e9f027c25b064a2878415f03c11d9abd10befa94442d3f0734adc4ccee95a117d6d9e7ad521af5cdc527b0cb50a31 +EBUILD psmisc-23.0.ebuild 1297 SHA256 d89f158bb37ba9fb93da9a55934ab7230cfaca5ff59b613505bbd9fe549c228c SHA512 7e980ce6e4dd2cb1df7b4d28d176854a27c97e4a52260bdfa864e3837617debcd68595f7d280ad8c08b9d14a462e42d797ca2565d5b8356e556fe442f9f7fd12 WHIRLPOOL fc2fb48ff2984dfeb0c57bd54e713dca996f48b2bec3d5cc54dffe05df364e8c0ece26f05d939018f2dabc92ceaef6c923bc4c0b9e49705b29e0a933781a88e8 +EBUILD psmisc-23.1.ebuild 1299 SHA256 df47f8f80c7eeb8fac4e651b58f43d74f210238575b03e70594945bf2bbb0b2c SHA512 0387c7623dd36e04f74e7a83d948d1ff0a064a8b5108267b9d5ab1024a72f9225e4ae1e7bdee014b2ae69e2c609528810484e0e22708f7a17f6ea349fe634ece WHIRLPOOL cd0445b1d1e8d77525705d07fa2b5e3084e51102d4864f8b0a5fb84b6daacdb987f9b84d87d6a387ab2267f7276bcd9e63d6a66352e8dd81a23a0728f6f1af81 +MISC ChangeLog 4157 SHA256 1933a163265796f6a0b5f603640716dd8be4134a15dc0174132306c66665bc58 SHA512 c0a497b0627d987ab53bf7f3ed081143d4b1dab32a98205fa070f83161f6f6c005935d73fe679de537fb7f123d659a621349d0b2ffeab260411ba3ca33a016b8 WHIRLPOOL ca43354b38b5fc1d4a9a6e76769af3ffd204df1983fc2918a110a3bcf2259ade2ace4c4308fe5756f4c58200d6c10700ef667c95105449819a34d164403ef693 +MISC ChangeLog-2015 26697 SHA256 16d09f477a180f5ce09972e75d65ab01786762c8fbab16c8626c3d71c6a715a2 SHA512 69d1685bdca62d3abb35a1505a25127afb938604f18ef8331c119a09668b6aa5d710835a06139f235194db9ddf532e5d010a71744f9ceaae5f3be392175414ee WHIRLPOOL 474cd900f638a54fe261afe828a3b87441a6dc862c3c5fae44676d1d6bb5139bb68dd7a9ac2d09e6d007bc11ce19c207045f35530b6755368f560512ade9d9c8 +MISC metadata.xml 326 SHA256 f9e015cc6214350091a0d68a07299ed5e6ad518b10eb91902da25726658623f3 SHA512 580a0e66078b7304d0bf76e3c990e61ee4c073b49381b60c5f3f01e2b64d5f0c318eb5596f7da09a70fa52dc93769b25f37f531038e5d7ce6278dda10e18117c WHIRLPOOL c0a2727f3ee0a38abe0ad2ceb0adf0b476a1fe9ba8435168c457aa0326aa8fb54f25d7828ac11a1f98b9e1066e69112ecb77b02111449680b64073163130bfa5 diff --git a/sys-process/psmisc/files/psmisc-22.21-fuser_typo_fix.patch b/sys-process/psmisc/files/psmisc-22.21-fuser_typo_fix.patch new file mode 100644 index 000000000000..5c5fd990f9ca --- /dev/null +++ b/sys-process/psmisc/files/psmisc-22.21-fuser_typo_fix.patch @@ -0,0 +1,44 @@ +From 3638cc55b4d08851faba46635d737b24d016665b Mon Sep 17 00:00:00 2001 +From: Brad Jorsch <anomie@users.sourceforge.net> +Date: Fri, 28 Feb 2014 21:55:02 +1100 +Subject: [PATCH] Typo in fuser makes -M on all the time + +Brad found that fuser had the -M option on all the time. +A simple but significant typo caused this, thanks the the patch. + +Bug-Debian: http://bugs.debian.org/740275 + +Signed-off-by: Craig Small <csmall@enc.com.au> +--- + ChangeLog | 4 ++++ + src/fuser.c | 2 +- + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/ChangeLog b/ChangeLog +index fd1cccf..e5f784c 100644 +--- a/ChangeLog ++++ b/ChangeLog +@@ -1,3 +1,7 @@ ++Changes in 22.22 ++================ ++ * Fixed typo in fuser which has -M on Debian #740275 ++ + Changes in 22.21 + ================ + * Missing comma in fuser(1) added Debian #702391 +diff --git a/src/fuser.c b/src/fuser.c +index b485f65..389b302 100644 +--- a/src/fuser.c ++++ b/src/fuser.c +@@ -1174,7 +1174,7 @@ int main(int argc, char *argv[]) + usage(_("No process specification given")); + + /* Check if -M flag was used and if so check mounts */ +- if (opts * OPT_ISMOUNTPOINT) { ++ if (opts & OPT_ISMOUNTPOINT) { + check_mountpoints(&mounts, &names_head, &names_tail); + } + +-- +2.2.2 + diff --git a/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch b/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch new file mode 100644 index 000000000000..440c5e62e7ed --- /dev/null +++ b/sys-process/psmisc/files/psmisc-22.21-sysmacros.patch @@ -0,0 +1,26 @@ +From 367886e1c49238d1a02721f849564d77a163465b Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 7 Mar 2016 14:52:22 -0500 +Subject: [PATCH] fuser: include sysmacros.h for makedev + +BSD/Linux define makedev in the sysmacros.h header. Include it directly +instead of relying on types.h pulling it in for us. +--- + src/fuser.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/fuser.c b/src/fuser.c +index da94d22..380046f 100644 +--- a/src/fuser.c ++++ b/src/fuser.c +@@ -36,6 +36,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/socket.h> ++#include <sys/sysmacros.h> + #include <sys/wait.h> + #include <arpa/inet.h> + #include <netinet/in.h> +-- +2.6.2 + diff --git a/sys-process/psmisc/metadata.xml b/sys-process/psmisc/metadata.xml new file mode 100644 index 000000000000..df39eb8e2f0f --- /dev/null +++ b/sys-process/psmisc/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +<upstream> + <remote-id type="sourceforge">psmisc</remote-id> +</upstream> +</pkgmetadata> diff --git a/sys-process/psmisc/psmisc-22.21-r3.ebuild b/sys-process/psmisc/psmisc-22.21-r3.ebuild new file mode 100644 index 000000000000..1414df7d9b49 --- /dev/null +++ b/sys-process/psmisc/psmisc-22.21-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="A set of tools that use the proc filesystem" +HOMEPAGE="http://psmisc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="ipv6 nls selinux X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7:0= + nls? ( virtual/libintl ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.2.6b + nls? ( sys-devel/gettext )" + +DOCS="AUTHORS ChangeLog NEWS README" + +PATCHES=( + "${FILESDIR}/${P}-fuser_typo_fix.patch" + "${FILESDIR}/${P}-sysmacros.patch" +) + +src_prepare() { + epatch "${PATCHES[@]}" +} + +src_configure() { + econf \ + $(use_enable selinux) \ + --disable-harden-flags \ + $(use_enable ipv6) \ + $(use_enable nls) +} + +src_compile() { + # peekfd is a fragile crap hack #330631 + nonfatal emake -C src peekfd || touch src/peekfd{.o,} + emake +} + +src_install() { + default + + use X || rm -f "${ED}"/usr/bin/pstree.x11 + + [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd + [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1 + + # fuser is needed by init.d scripts; use * wildcard for #458250 + dodir /bin + mv "${ED}"/usr/bin/*fuser "${ED}"/bin || die +} diff --git a/sys-process/psmisc/psmisc-23.0.ebuild b/sys-process/psmisc/psmisc-23.0.ebuild new file mode 100644 index 000000000000..b2ccbcd6c3e8 --- /dev/null +++ b/sys-process/psmisc/psmisc-23.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="A set of tools that use the proc filesystem" +HOMEPAGE="http://psmisc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="ipv6 nls selinux X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7:0= + nls? ( virtual/libintl ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.2.6b + nls? ( sys-devel/gettext )" + +DOCS="AUTHORS ChangeLog NEWS README" + +src_configure() { + local myeconfargs=( + $(use_enable selinux) + --disable-harden-flags + $(use_enable ipv6) + $(use_enable nls) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + # peekfd is a fragile crap hack #330631 + nonfatal emake -C src peekfd || touch src/peekfd{.o,} + emake +} + +src_install() { + default + + use X || rm -f "${ED}"/usr/bin/pstree.x11 + + [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd + [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1 + + # fuser is needed by init.d scripts; use * wildcard for #458250 + dodir /bin + mv "${ED}"/usr/bin/*fuser "${ED}"/bin || die +} diff --git a/sys-process/psmisc/psmisc-23.1.ebuild b/sys-process/psmisc/psmisc-23.1.ebuild new file mode 100644 index 000000000000..e25d09501c93 --- /dev/null +++ b/sys-process/psmisc/psmisc-23.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="A set of tools that use the proc filesystem" +HOMEPAGE="http://psmisc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" +IUSE="ipv6 nls selinux X" + +RDEPEND=">=sys-libs/ncurses-5.7-r7:0= + nls? ( virtual/libintl ) + selinux? ( sys-libs/libselinux )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2.2.6b + nls? ( sys-devel/gettext )" + +DOCS=( AUTHORS ChangeLog NEWS README ) + +src_configure() { + local myeconfargs=( + $(use_enable selinux) + --disable-harden-flags + $(use_enable ipv6) + $(use_enable nls) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + # peekfd is a fragile crap hack #330631 + nonfatal emake -C src peekfd || touch src/peekfd{.o,} + emake +} + +src_install() { + default + + use X || rm -f "${ED}"/usr/bin/pstree.x11 + + [[ -s ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/bin/peekfd + [[ -e ${ED}/usr/bin/peekfd ]] || rm -f "${ED}"/usr/share/man/man1/peekfd.1 + + # fuser is needed by init.d scripts; use * wildcard for #458250 + dodir /bin + mv "${ED}"/usr/bin/*fuser "${ED}"/bin || die +} diff --git a/sys-process/rtirq/Manifest b/sys-process/rtirq/Manifest new file mode 100644 index 000000000000..10fd91fa40a4 --- /dev/null +++ b/sys-process/rtirq/Manifest @@ -0,0 +1,5 @@ +AUX rtirq 435 SHA256 0aa717b88482a110c9d1a1844ffd810e7c9eff0217494c982e862ff0d271cbbd SHA512 9b7ef8e58098032f68210b64ae604558fed58a66b8d86ec9198dcf2f4b020582d8c4983d95f60e048bc97c0ef19b4b31cdc615635b4f57902362843a11a5fc6f WHIRLPOOL 0a01b4b4c452dd526dd34892fabee05f379b4dc02751b970a0de0eae16df337cd69f2dbd0fe647321c8a9280bd6d377960f5f0a3c8422e2bcd4043f0c42fcc89 +DIST rtirq-20150216.tar.gz 12249 SHA256 2b44133cefe1527c9f3eecaa59f167f314286cdff10d55301dd6d2cb794e9b93 SHA512 4cb4e3a8e314cec238c2a21c975bec258f229b660e0994893b73aa0b16f6041179ff4e220532fde237d70e15fd5420e22ee5dbf84168148060e760d76617b59c WHIRLPOOL 4f1441532ef75b78f5a17b78a325d86d767960923094b2ba8dbdff21b12102fb70a20c56cfa7f325703ff84a1bf50396c7e761f84ea01a4952970172919fa324 +EBUILD rtirq-20150216.ebuild 1113 SHA256 0e1edd09e3d0ca40b46deed4994580b24aaead7c5526aa7610694ee9ea557b3c SHA512 9f8c0149ad69ca3fdcfeb73090f283409671c5d365baf10899a3e2144dda1e7859484486ed379ff5a09108aa7ec73210562eb31fbe6c374cd5efc00a89f18c80 WHIRLPOOL e515b7b909b0527f52d774476ded215369fc9ef14efcbe1b43dbde861b81fa700e704822eb06e620aeea08a94bd2907a4b8f6250ab63e47c27107ab75ab045c1 +MISC ChangeLog 808 SHA256 61b32333ddb933bbed918c90db31fbe6b6e9eeb1933cfb55820bd93c7ffc47ad SHA512 f79c3765ae34fbe5e5a23b99ab84abaf238fc6f5c5e4dcb259a0d2c69fc0969bef549af21d86cc67f043c5f53cbea15a3f7093db8b061631ec89b564688dbef3 WHIRLPOOL 8a9f04e9a7792038b5aa90b1dd9c60af9bc388870dd0347c12a715a5ee8bb9466ded5f66a87a357a84d1cb5acee669c66195ed68db35f1a8d622ef3433870200 +MISC metadata.xml 366 SHA256 a445257df154dc3e497780ca46f9d404fc2717fdb226f577c5bb4b594cb9cce9 SHA512 2bf60d72d132d726e404dbb65ab389fe4845521e24e4bb4eded5605a33ddb798cca921c91b1916292e0beed9506b8138b4dd1847bea53d39aba23367223764be WHIRLPOOL 55701385db1dc6a1561d368dd7723bc3605b7d5509af651d26274fce6dfadf6c734c77b28dfc31336f8d7d53017f911dbc6c01771e3c55269f5e2fb0769be03c diff --git a/sys-process/rtirq/files/rtirq b/sys-process/rtirq/files/rtirq new file mode 100644 index 000000000000..988337fbf1eb --- /dev/null +++ b/sys-process/rtirq/files/rtirq @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +command="/usr/sbin/rtirq.sh" + +extra_commands="status" + +depend() { + need localmount + after alsasound logger +} + +start() { + ebegin "Starting rtirq" + ${command} start + eend $? +} + +stop() { + ebegin "Stopping rtirq" + ${command} reset + eend $? +} + +status() { + ${command} status +} diff --git a/sys-process/rtirq/metadata.xml b/sys-process/rtirq/metadata.xml new file mode 100644 index 000000000000..d2a8f1079999 --- /dev/null +++ b/sys-process/rtirq/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>karl.j.linden@gmail.com</email> + <name>Karl Linden</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/rtirq/rtirq-20150216.ebuild b/sys-process/rtirq/rtirq-20150216.ebuild new file mode 100644 index 000000000000..25ac445e4028 --- /dev/null +++ b/sys-process/rtirq/rtirq-20150216.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +DESCRIPTION="Modify realtime scheduling policy and priority of IRQ handlers" +HOMEPAGE="http://www.rncbc.org/jack/" + +SRC_URI="http://www.rncbc.org/jack/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=sys-apps/util-linux-2.13" + +src_prepare() { + # Correct config file path. + sed -i -e "s:^\(RTIRQ_CONFIG\=\)\(.*\):\1/etc/conf.d/rtirq:" ${PN}.sh || die + sed -i -e "s:/etc/sysconfig/rtirq:/etc/conf.d/rtirq:" ${PN}.conf || die + + default +} + +src_install(){ + dosbin ${PN}.sh + doinitd "${FILESDIR}"/${PN} + newconfd ${PN}.conf ${PN} +} + +pkg_postinst(){ + if [[ "$(rc-config list default | grep rtirq)" = "" ]] ; then + elog "You probably want to add rtirq to the default runlevel, i.e." + elog " rc-update add rtirq default" + fi + if [[ "$(uname -r | grep rt)" = "" ]] ; then + elog "To use rtirq you need a realtime kernel." + elog "Realtime kernel sources are supplied in sys-kernel/rt-sources." + fi + elog "To display the rtirq status issue:" + elog " /etc/init.d/rtirq status" +} diff --git a/sys-process/runit/Manifest b/sys-process/runit/Manifest new file mode 100644 index 000000000000..01d9b5f9475f --- /dev/null +++ b/sys-process/runit/Manifest @@ -0,0 +1,18 @@ +AUX 1 175 SHA256 fd9520369851473556c038b55679dcb1eb1265d1220e8c3cf4aac2dfae4e6594 SHA512 04fa0e61c3db9f85cafea61c77c11da79d6d7a261425874e610821c92ea74d2d79a7ff7c47dacf830faaa007d9d9c7048ade0c19470f7a8fd1c8f80964cdf9d1 WHIRLPOOL f0213863f70305cc0bbde8c99cd7c9ba698863b9f20cdefdca2d9b53e126fcbe2fb095a3c16e7a4920a3254ec8419cbf03a89f57249fdb4afc72d85f797c4889 +AUX 1-2.1.2 183 SHA256 3ba9ed21183fe120a91223820d107c96aad1e4a477da77a5d1fa50f552501b01 SHA512 813b83675fc71522a6469c9c391d87219da43896ecb702a957ad2a9a6f8c4d0d59e4ab784b50de288c7e98efd2a8fd26aa5a1fbb8376f7c24226a97fee49d87a WHIRLPOOL 7becefc2adb87ba7ac8cfa8f20238573ff1b2d4ea81d4a156993bb5629435926d65cc08bef84e891a76c53b051bd461b48f13fd60e4855e854b78829b94ee49b +AUX 2 551 SHA256 d0cb35c4ecdd5ef9179af22f24cb371eb8f1082ec1af7850237842bd49ccba0f SHA512 0176a59c84e135df2f92546567bbc3b0ad5709734da7cd435bf117c2e4c359098584a7e30c89b7c0fa0fa796c49bbe3f59d52ebd6a510e71004e9415ca4bd89e WHIRLPOOL 93cca0ab872980e1956e177fe638cd712b808f022662869959ef42fc1ea69d32ebd61364658ddcff6617615f6863d3a99dc805ab7077e0b8604159b8ed3b32fd +AUX 2-2.1.2 554 SHA256 9a03154881c7630ff2ff4f1d74782c19089174f671cc1650208c6d44622536d7 SHA512 d21f6877f459b3c4b93049f6d342e48715ce7b762f6c5d858ad26ada07e66fe6f56ebb095083c7f153091fcb8ef877dc2b7c1738daeeacd6e04c70e3753682a5 WHIRLPOOL 3e148486a95d2b945734651b1317986b78f2285279513800df6ad3e6e2a879ca594a74a1e46216bb18b53e0518b07df55ca43bb9eebb7bb324d6de13d1306e90 +AUX 3 372 SHA256 56b835cb329e71d14523038cd382ad92f77317a2c1bb75e9414bf468fa57f03b SHA512 8511045da385878f2ecc238b68d0c4317b5ac677028393b6ace7d575e0a1bceaf1e6ce639db01501461bcaa7521a5856a4e9a65097babf9a653a4747bddcd553 WHIRLPOOL 5daf16b59a23386103549167b27266225e1e54355d3e7973f7a275439b2eaf295619a3cf8d978125814eb916821edbf44a7d843e5d0d7237f6de0b3870007d4f +AUX 3-2.1.2 388 SHA256 1c579104b89f7aa9acae9d87f6410c583c4c4646eeda63036b614a5dd3cddf90 SHA512 47256f52367c7f1af5d2b435550e5d4786e056c3a43138fd472d6bc48093a07c36a5e1bdafd4235e0c1299579c100f9d97190424cf2bd114ec29956f3c9991f5 WHIRLPOOL 1260ec48f198d5eab121af59262b013fa33795cf50d4e2fc430c5c141b8bfa890bf7ed0eb78b16dcce077ed040e5bba2f3cb7c13056b514519429b2ea00183e2 +AUX ctrlaltdel 189 SHA256 84eff8b4bd83ebded1689404f5da22a442e82e7f9d5d8df61a1a3032f80b503c SHA512 a0980e1dbcd2c591997e62e3e1b8ab660c36f007d12f6dd3eb6607d286c0056eb96c40b997b2c9569a7e3a6bf9a2a39d8050c31aa09a9c0ba6eb931183049b1b WHIRLPOOL 8e477312206adbc89f00e6df5acc37542dbf300558b58bd580a80f7da868924096583a706ae495b0266b9ed66516e1fa4886a27f91dbbd3afdee885560ca5fdc +AUX finish.getty 30 SHA256 6c5db3570b4abbc2547ee7923c18879912f197b52883abb08586f529cccd5aa5 SHA512 122a4ab21dbd5e6b77e0225bda48f813ec680c85767fdc917933bd1a88d854b6714809ebd63d0fa6b81c25c5e0a9de224aa920565e8d197556e7d99c5836681d WHIRLPOOL 531628897da4a74a84bd75730a2812eb7338b88bfadb988479705bab02b550c72a7863e07b0149dc8a98e73be03dd6a71f166722d785356ad3499560ae59c1a1 +AUX run.getty 44 SHA256 3b4105965417490496352da0fa36d7e79e8ff27989ce7d33023251654d6c119e SHA512 c23aa0ba79043a5717e5567f39bb714154f68c1e417538013943a65de5584b775c265423dd5d47c52027a1be1621f8fb017b115d75d127a31b2ef7cae3ed9eea WHIRLPOOL 987669e356d167019db08885d9f54f91639b8ede3d449295175e96ecf2ed8c39dc4b88c4f18ae1d66a3279547fd877e08ae8b405b678a211d446645f7592fc06 +AUX run.getty-2.1.2 44 SHA256 3b4105965417490496352da0fa36d7e79e8ff27989ce7d33023251654d6c119e SHA512 c23aa0ba79043a5717e5567f39bb714154f68c1e417538013943a65de5584b775c265423dd5d47c52027a1be1621f8fb017b115d75d127a31b2ef7cae3ed9eea WHIRLPOOL 987669e356d167019db08885d9f54f91639b8ede3d449295175e96ecf2ed8c39dc4b88c4f18ae1d66a3279547fd877e08ae8b405b678a211d446645f7592fc06 +DIST runit-2.1.1.tar.gz 109661 SHA256 ffcf2d27b32f59ac14f2d4b0772a3eb80d9342685a2042b7fbbc472c07cf2a2c SHA512 a927a757386653fdc40437884e3dc2d1dda6aaf5f1919f301fcf604e559836bd44e5fcb296d69e7f4260fd881475124c44996530de4948d35d8a102b206ca470 WHIRLPOOL ff378ace3c4e0829a435eec8a9e40da7df6e0e0b00ad8c821a169d2e88a38aee4608147316eec1cfc2e676780fefb4bab81e56e3fe7be80bbb6bd08656373208 +DIST runit-2.1.2.tar.gz 110916 SHA256 6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18 SHA512 a18773ebf1aa22305dd89ed67363165b9fcf86c192b2be4e268d08005dd82d51265160c637abe072f2f2e378c4b315a75bd3d3e602c3e75bdd451a3b0190f8cf WHIRLPOOL c70ecafcdd874b08e6bd47a904903eae03884b71eca30306c6eb512fc72ee8c93a5b0badc4a954e248421157e07bf0620789a810901365c2eeac38107cd62747 +EBUILD runit-2.1.1-r1.ebuild 1835 SHA256 65bf6f641683f512041e49ba39fd807c55c1ade9a9a65f75a4bc8cc3d4fec2dd SHA512 6b975f0dc0043cf261715698ceadec51cc73c2ffa28df41fce96f8b015428c582a36e53cb56b26aa174f6901290deaafdd164b90663162fe7d45b203e2af2092 WHIRLPOOL 907f04680f88df0fc0a2e5814a231ec619d86eb5851f5b2dd1a260894ab9d1fe7403e6a89f336ff63bd49c4007f5be402883a9ccea0c31fff3c3510dc27e3f48 +EBUILD runit-2.1.2-r1.ebuild 4120 SHA256 dfb3ac10109281588862f1083c58f7be3b49dd010674c7099049b1a59d077be3 SHA512 706b60ea8c5b820717c6b160d56f15439ade2a7233aeafcaab7110ec05e5116fba417e3e0fee5eac207b12e4e006b1e5c22f7547d53c96c19f4ac7c86a0d874e WHIRLPOOL ad77ec07b00f5be3f6f1104963a13fa48e141be94ffb30f3ed18477fa69511413d8753079c23f22beb3c1b4a69ceb8c3c6c477d8371a93341cc5d54cb01825b5 +EBUILD runit-2.1.2.ebuild 3999 SHA256 458763a66c7dad0606b05fb277b0785d09b9f39ff20b678e38443f963bd346a4 SHA512 8141d2f1916dd602180667a9ac6a2c44ed903e1a8535cb08b8713f2e29e1c10848e84b2d28467213e33307c63622aceadfbdbcc8d1fac58d918642b60171f183 WHIRLPOOL 0c94edbe670cad4515cd6d99594a7ace2b8fd412bebbc31caf29cbaa16e9a5c9db2a0fd51400a95ed98e02fe8e1391ec1ed9c84b8f4b57a395c1d59162f7e689 +MISC ChangeLog 4175 SHA256 7ddff3b363860d2d44243d6e2dd3d77005f88aea4efb1fb05226ecaf316aaf19 SHA512 aa3f302027734b402fe0a62eb6bb7545f7681d9a30d53959c86f782f0270cfcdedd39dbda1dd7eaf1279b656dc173a46e0b397707f35e1184b90d04dc7b04c97 WHIRLPOOL 0ed5ed856a7b7a3a4d74b5a233c84a9f57a7dfbf151bdbe6c65d74307f9cc2c8f6ffb788ed26d99dc2808dbf6a628523bbcbec873158979dd204fa670078293f +MISC ChangeLog-2015 6397 SHA256 46adc966e1a191b33a90022fe4d85c7da0f5533e52e89f4940378b898aa0c2d5 SHA512 825fe92789e17b5b25039bb8e794959c2e4b235a568b1960b00211620a09fd1ea7c887eb9dd0e03a5aa875b17c128c83fe0ac04d1e5a8312386a546a7e649275 WHIRLPOOL d753b62e0ad4e097cacda1198c4ee7b9e09099ecb313615b6181c980b74062c548feace35ffd4248be177fa01eeb6818e4ffce1cffd5bd8994e6a61355c1ecab +MISC metadata.xml 330 SHA256 bc5ba13dd202d011c8d7388fe227657b945fa69815292456ec046807ba7ba1eb SHA512 fad9bdd34ed7305ef25a909651d5e37e9b77360a12f60b40d9aa73b890a1ede5676ab1f1be4013b67ffc6f91cc15005a2f5acf54a5b99d22fa762af914b94901 WHIRLPOOL e40540a2640fb470cb2381f5a3cf6ba5054022d604d8e6381da9c50e0b4e65739bde79a83afff137c2ffa0272f877d7f1bc82e391b16c69476cd22f147f334cf diff --git a/sys-process/runit/files/1 b/sys-process/runit/files/1 new file mode 100644 index 000000000000..d6a5b4f64eeb --- /dev/null +++ b/sys-process/runit/files/1 @@ -0,0 +1,10 @@ +#!/bin/sh +# system one time tasks + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +RUNLEVEL=S /sbin/rc sysinit +RUNLEVEL=S /sbin/rc boot + +touch /etc/runit/stopit +chmod 0 /etc/runit/stopit diff --git a/sys-process/runit/files/1-2.1.2 b/sys-process/runit/files/1-2.1.2 new file mode 100644 index 000000000000..9761472ac739 --- /dev/null +++ b/sys-process/runit/files/1-2.1.2 @@ -0,0 +1,10 @@ +#!/bin/sh +# system one time tasks + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +RUNLEVEL=S /sbin/openrc sysinit +RUNLEVEL=S /sbin/openrc boot + +touch /etc/runit/stopit +chmod 0 /etc/runit/stopit diff --git a/sys-process/runit/files/2 b/sys-process/runit/files/2 new file mode 100644 index 000000000000..233ad006aac3 --- /dev/null +++ b/sys-process/runit/files/2 @@ -0,0 +1,6 @@ +#!/bin/sh + +PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin + +exec env - PATH=$PATH \ +runsvdir /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' diff --git a/sys-process/runit/files/2-2.1.2 b/sys-process/runit/files/2-2.1.2 new file mode 100644 index 000000000000..a63a1b2d269d --- /dev/null +++ b/sys-process/runit/files/2-2.1.2 @@ -0,0 +1,6 @@ +#!/bin/sh + +PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin + +exec env - PATH=$PATH \ +runsvdir -P /etc/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' diff --git a/sys-process/runit/files/3 b/sys-process/runit/files/3 new file mode 100644 index 000000000000..f143f5f46011 --- /dev/null +++ b/sys-process/runit/files/3 @@ -0,0 +1,14 @@ +#!/bin/sh +exec >/dev/console 2>&1 +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +echo 'Waiting for getties to stop...' +sv shutdown -w 10 /var/service/getty-* + +echo 'Waiting for services to stop...' +sv shutdown -w 300 /var/service/* + +echo 'Shutdown...' +test -x /etc/runit/reboot && LAST=6 || LAST=0 +test -x /etc/runit/reboot && RC=reboot || RC=shutdown +RUNLEVEL=$LAST /sbin/rc $RC diff --git a/sys-process/runit/files/3-2.1.2 b/sys-process/runit/files/3-2.1.2 new file mode 100644 index 000000000000..30e602cdae96 --- /dev/null +++ b/sys-process/runit/files/3-2.1.2 @@ -0,0 +1,14 @@ +#!/bin/sh +exec >/dev/console 2>&1 +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +echo 'Waiting for getties to stop...' +sv -w 10 force-shutdown /etc/service/getty-* + +echo 'Waiting for services to stop...' +sv -w 300 force-shutdown /etc/service/* + +echo 'Shutdown...' +test -x /etc/runit/reboot && LAST=6 || LAST=0 +test -x /etc/runit/reboot && RC=reboot || RC=shutdown +RUNLEVEL=$LAST /sbin/openrc $RC diff --git a/sys-process/runit/files/ctrlaltdel b/sys-process/runit/files/ctrlaltdel new file mode 100644 index 000000000000..668445738dfc --- /dev/null +++ b/sys-process/runit/files/ctrlaltdel @@ -0,0 +1,9 @@ +#!/bin/sh + +PATH=/bin:/usr/bin +MSG="System is going down in 14 seconds..." + +# echo 'disabled.' ; exit +touch /etc/runit/stopit +chmod 100 /etc/runit/stopit && echo "$MSG" | wall +/bin/sleep 14 diff --git a/sys-process/runit/files/finish.getty b/sys-process/runit/files/finish.getty new file mode 100644 index 000000000000..c3d440a85e38 --- /dev/null +++ b/sys-process/runit/files/finish.getty @@ -0,0 +1,2 @@ +#!/bin/sh +exec utmpset -w TTY diff --git a/sys-process/runit/files/run.getty b/sys-process/runit/files/run.getty new file mode 100644 index 000000000000..ab6f9543fe97 --- /dev/null +++ b/sys-process/runit/files/run.getty @@ -0,0 +1,2 @@ +#!/bin/sh +exec /sbin/agetty 38400 TTY linux diff --git a/sys-process/runit/files/run.getty-2.1.2 b/sys-process/runit/files/run.getty-2.1.2 new file mode 100644 index 000000000000..ab6f9543fe97 --- /dev/null +++ b/sys-process/runit/files/run.getty-2.1.2 @@ -0,0 +1,2 @@ +#!/bin/sh +exec /sbin/agetty 38400 TTY linux diff --git a/sys-process/runit/metadata.xml b/sys-process/runit/metadata.xml new file mode 100644 index 000000000000..7be6dfacc53a --- /dev/null +++ b/sys-process/runit/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>williamh@gentoo.org</email> +</maintainer> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/runit/runit-2.1.1-r1.ebuild b/sys-process/runit/runit-2.1.1-r1.ebuild new file mode 100644 index 000000000000..806a4a39161a --- /dev/null +++ b/sys-process/runit/runit-2.1.1-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="3" + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="A UNIX init scheme with service supervision" +HOMEPAGE="http://smarden.org/runit/" +SRC_URI="http://smarden.org/runit/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="static" + +S=${WORKDIR}/admin/${P}/src + +src_prepare() { + # we either build everything or nothing static + sed -i -e 's:-static: :' Makefile +} + +src_configure() { + use static && append-ldflags -static + + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld +} + +src_install() { + dodir /var + keepdir /etc/runit{,/runsvdir{,/default,/all}} + dosym default /etc/runit/runsvdir/current + dosym ../etc/runit/runsvdir/current /var/service + dosym ../etc/runit/2 /sbin/runsvdir-start + + dobin $(<../package/commands) || die "dobin" + dodir /sbin + mv "${ED}"/usr/bin/{runit-init,runit,utmpset} "${ED}"/sbin/ || die "dosbin" + + cd "${S}"/.. + dodoc package/{CHANGES,README,THANKS,TODO} + dohtml doc/*.html + doman man/*.[18] + + exeinto /etc/runit + doexe "${FILESDIR}"/{1,2,3,ctrlaltdel} || die + for tty in tty1 tty2 tty3 tty4 tty5 tty6; do + exeinto /etc/runit/runsvdir/all/getty-$tty/ + for script in run finish; do + newexe "${FILESDIR}"/$script.getty $script + dosed "s:TTY:${tty}:g" /etc/runit/runsvdir/all/getty-$tty/$script + done + dosym ../all/getty-$tty /etc/runit/runsvdir/default/getty-$tty + done + + # make sv command work + cd "${S}" + insinto /etc/env.d + cat <<-EOF > env.d + #/etc/env.d/20runit + SVDIR="/var/service/" + EOF + newins env.d 20runit +} + +pkg_postinst() { + ewarn "/etc/profile was updated. Please run:" + ewarn "source /etc/profile" + ewarn "to make 'sv' work correctly on your currently open shells" +} diff --git a/sys-process/runit/runit-2.1.2-r1.ebuild b/sys-process/runit/runit-2.1.2-r1.ebuild new file mode 100644 index 000000000000..9a515b6eb8b8 --- /dev/null +++ b/sys-process/runit/runit-2.1.2-r1.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="A UNIX init scheme with service supervision" +HOMEPAGE="http://smarden.org/runit/" +SRC_URI="http://smarden.org/runit/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="static" + +RDEPEND="sys-apps/openrc" + +S=${WORKDIR}/admin/${P}/src + +src_prepare() { + default + + # we either build everything or nothing static + sed -i -e 's:-static: :' Makefile + + # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726008 + [[ ${COMPILER} == "diet" ]] && + use ppc && + filter-flags "-mpowerpc-gpopt" +} + +src_configure() { + use static && append-ldflags -static + + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld +} + +src_install() { + into / + dobin $(<../package/commands) + dodir /sbin + mv "${ED}"/bin/{runit-init,runit,utmpset} "${ED}"/sbin/ || die "dosbin" + dosym ../etc/runit/2 /sbin/runsvdir-start + + DOCS=( ../package/{CHANGES,README,THANKS,TODO} ) + HTML_DOCS=( ../doc/*.html ) + einstalldocs + doman ../man/*.[18] + +dodir /etc/runit + exeinto /etc/runit + doexe "${FILESDIR}"/ctrlaltdel + newexe "${FILESDIR}"/1-${PV} 1 + newexe "${FILESDIR}"/2-${PV} 2 + newexe "${FILESDIR}"/3-${PV} 3 + + dodir /etc/sv + for tty in tty1 tty2 tty3 tty4 tty5 tty6; do + exeinto /etc/sv/getty-$tty/ + newexe "${FILESDIR}"/finish.getty finish + newexe "${FILESDIR}"/run.getty-${PV} run + for script in finish run; do + sed -i -e "s:TTY:${tty}:g" "${ED}"/etc/sv/getty-$tty/$script + done + done + + # make sv command work + cat <<-EOF > "${T}"/env.d + #/etc/env.d/20runit + SVDIR="/etc/service/" + EOF + insinto /etc/env.d + newins "${T}"/env.d 20runit +} + +pkg_preinst() { + if has_version 'sys-process/runit' && + has_version '<sys-process/runit-2.1.2' && + [ -d "${EROOT}"etc/runit/runsvdir/all ]; then + if [ -e "${EROOT}"etc/sv ]; then + mv -f "${EROOT}"etc/sv "${EROOT}"etc/sv.bak || die + ewarn "${EROOT}etc/sv was moved to ${EROOT}etc/sv.bak" + fi + mv "${EROOT}"etc/runit/runsvdir/all "${EROOT}"etc/sv|| die + ln -sf "${EROOT}"etc/sv "${EROOT}"etc/runit/runsvdir/all || die + cp -a "${EROOT}"etc/runit/runsvdir "${T}" || die + touch "${T}"/make_var_service || die + fi +} + +default_config() { + local sv="${EROOT}"etc/sv + local service="${EROOT}"etc/service + mkdir -p "${service}" || die + for x in tty1 tty2 tty3 tty4 tty5 tty6; do + ln -sf "${sv}"/getty-$x "${service}"/getty-$x || die + done + einfo "The links to services runit will supervise are installed" + einfo "in $service." + einfo "If you need multiple runlevels, please see the documentation" + einfo "for how to set them up." + einfo +} + +migrate_from_211() { + # Create /etc/service and /var/service if requested + if [ -e "${T}"/make_var_service ]; then + ln -sf "${EROOT}"etc/runit/runsvdir/current "${EROOT}"etc/service || die + ln -sf "${EROOT}"etc/runit/runsvdir/current "${EROOT}"var/service || die + fi + if [ -d "${T}"/runsvdir ]; then + cp -a "${T}"/runsvdir "${EROOT}"etc/runit || die + fi + return 0 +} + +pkg_preinst() { + if has_version '<sys-process/runit-2.1.2'; then + pre_212=yes + fi +} + +pkg_postinst() { + if [[ -z $REPLACING_VERSIONS ]]; then + default_config + elif [[ -n $pre_212 ]]; then + migrate_from_211 + fi + + ewarn "To make sure sv works correctly in your currently open" + ewarn "shells, please run the following command:" + ewarn + ewarn "source /etc/profile" + ewarn + + if [ -L "${EROOT}"var/service ]; then + ewarn "Once this version of runit is active, please remove the" + ewarn "compatibility symbolic link at ${EROOT}var/service" + ewarn "The correct path now is ${EROOT}etc/service" + ewarn + fi + + if [ -L "${EROOT}"etc/runit/runsvdir/all ]; then + ewarn "${EROOT}etc/runit/runsvdir/all has moved to" + iewarn "${EROOT}etc/sv." + ewarn "Any symbolic links under ${EROOT}etc/runit/runsvdir" + ewarn "which point to services through ../all should be updated to" + ewarn "point to them through ${EROOT}etc/sv." + ewarn "Once that is done, ${EROOT}etc/runit/runsvdir/all should be" + ewarn "removed." + ewarn + fi +} diff --git a/sys-process/runit/runit-2.1.2.ebuild b/sys-process/runit/runit-2.1.2.ebuild new file mode 100644 index 000000000000..99f58d316c21 --- /dev/null +++ b/sys-process/runit/runit-2.1.2.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs flag-o-matic versionator + +DESCRIPTION="A UNIX init scheme with service supervision" +HOMEPAGE="http://smarden.org/runit/" +SRC_URI="http://smarden.org/runit/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="static" + +S=${WORKDIR}/admin/${P}/src + +src_prepare() { + # we either build everything or nothing static + sed -i -e 's:-static: :' Makefile + + # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726008 + [[ ${COMPILER} == "diet" ]] && + use ppc && + filter-flags "-mpowerpc-gpopt" +} + +src_configure() { + use static && append-ldflags -static + + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld +} + +src_install() { + into / + dobin $(<../package/commands) + dodir /sbin + mv "${ED}"/bin/{runit-init,runit,utmpset} "${ED}"/sbin/ || die "dosbin" + dosym ../etc/runit/2 /sbin/runsvdir-start + into /usr + + cd .. + dodoc package/{CHANGES,README,THANKS,TODO} + dohtml doc/*.html + doman man/*.[18] + +dodir /etc/runit + exeinto /etc/runit + doexe "${FILESDIR}"/{1,ctrlaltdel} + newexe "${FILESDIR}"/2-${PV} 2 + newexe "${FILESDIR}"/3-${PV} 3 + + dodir /etc/sv + for tty in tty1 tty2 tty3 tty4 tty5 tty6; do + exeinto /etc/sv/getty-$tty/ + newexe "${FILESDIR}"/finish.getty finish + newexe "${FILESDIR}"/run.getty-${PV} run + for script in finish run; do + sed -i -e "s:TTY:${tty}:g" "${ED}"/etc/sv/getty-$tty/$script + done + done + + # make sv command work + cat <<-EOF > "${T}"/env.d + #/etc/env.d/20runit + SVDIR="/etc/service/" + EOF + insinto /etc/env.d + newins "${T}"/env.d 20runit +} + +pkg_preinst() { + if has_version 'sys-process/runit' && + has_version '<sys-process/runit-2.1.2' && + [ -d "${EROOT}"etc/runit/runsvdir/all ]; then + if [ -e "${EROOT}"etc/sv ]; then + mv -f "${EROOT}"etc/sv "${EROOT}"etc/sv.bak || die + ewarn "${EROOT}etc/sv was moved to ${EROOT}etc/sv.bak" + fi + mv "${EROOT}"etc/runit/runsvdir/all "${EROOT}"etc/sv|| die + ln -sf "${EROOT}"etc/sv "${EROOT}"etc/runit/runsvdir/all || die + cp -a "${EROOT}"etc/runit/runsvdir "${T}" || die + touch "${T}"/make_var_service || die + fi +} + +default_config() { + local sv="${EROOT}"etc/sv + local service="${EROOT}"etc/service + mkdir -p "${service}" || die + for x in tty1 tty2 tty3 tty4 tty5 tty6; do + ln -sf "${sv}"/getty-$x "${service}"/getty-$x || die + done + einfo "The links to services runit will supervise are installed" + einfo "in $service." + einfo "If you need multiple runlevels, please see the documentation" + einfo "for how to set them up." + einfo +} + +migrate_from_211() { + # Create /etc/service and /var/service if requested + if [ -e "${T}"/make_var_service ]; then + ln -sf "${EROOT}"etc/runit/runsvdir/current "${EROOT}"etc/service || die + ln -sf "${EROOT}"etc/runit/runsvdir/current "${EROOT}"var/service || die + fi + if [ -d "${T}"/runsvdir ]; then + cp -a "${T}"/runsvdir "${EROOT}"etc/runit || die + fi + return 0 +} + +pkg_postinst() { + if [ -z "$REPLACING_VERSIONS" ]; then + default_config + elif [ ! version_is_at_least 2.1.2 $REPLACING_VERSIONS ]; then + migrate_from_211 + fi + + ewarn "To make sure sv works correctly in your currently open" + ewarn "shells, please run the following command:" + ewarn + ewarn "source /etc/profile" + ewarn + + if [ -L "${EROOT}"var/service ]; then + ewarn "Once this version of runit is active, please remove the" + ewarn "compatibility symbolic link at ${EROOT}var/service" + ewarn "The correct path now is ${EROOT}etc/service" + ewarn + fi + + if [ -L "${EROOT}"etc/runit/runsvdir/all ]; then + ewarn "${EROOT}etc/runit/runsvdir/all has moved to" + iewarn "${EROOT}etc/sv." + ewarn "Any symbolic links under ${EROOT}etc/runit/runsvdir" + ewarn "which point to services through ../all should be updated to" + ewarn "point to them through ${EROOT}etc/sv." + ewarn "Once that is done, ${EROOT}etc/runit/runsvdir/all should be" + ewarn "removed." + ewarn + fi +} diff --git a/sys-process/schedtool/Manifest b/sys-process/schedtool/Manifest new file mode 100644 index 000000000000..491a012247f3 --- /dev/null +++ b/sys-process/schedtool/Manifest @@ -0,0 +1,5 @@ +DIST schedtool-1.3.0.tar.bz2 26531 SHA256 4e002a2a619d592f7c9b9d284381ffc004d8a71c38945aa95d5d53f2e4c0c8cf SHA512 1ae39a7b9481cf4062740343cd31289117610041546a7969fde7ae3bed3c1a06cd258dffaeafc4326c9115e37878b943d5abec222e25e45e2a5f76c65adf3b6a WHIRLPOOL 112683b5d2e46b36a058097c53902083594d61d0de26a527cdaff0e2040dfcf06418ba575ba37378c5ef8593750f702b8511c296e67e011e97ff4555f1c717b2 +EBUILD schedtool-1.3.0-r1.ebuild 650 SHA256 1938fba3d2f4ddff5eb2495c0889d12970532d0065d0c455d188360dae88a010 SHA512 275dbb0a8f0e965530c5698268447cae004c535141d32eeb3d4b3dcfec991064c19a43f16bb53ebfeb02ae9c38eae118cebce23c318b3a90241a694d98950593 WHIRLPOOL cb08b2be53fc41dfadc9baae504e3c304501d5bd37123d2e18f7e362ce5417a261e17104029507d62ef7d7b589290c8a713f080f579852d0c2671ea2e2c2349d +MISC ChangeLog 2584 SHA256 5af623edd43a68d6a482b1e1aabfd3ae937f80ced35444e6259e9296d8556edd SHA512 6bf2951baff3261c187bbb96b5be1e15b70dbcec14deab9996d087edb7e5f8f3f342fe5fa313eef628f673789e2a08df152776eeeb5901fd402f4e04acfd18e1 WHIRLPOOL faf528ba0e1e9eca6b57af7c8f050ab3c08a084b36db9ad233c48d2900c41ecd440506710e4b8c67004b5c78738f36b87181ae65516226963c17a04b49be08f5 +MISC ChangeLog-2015 3715 SHA256 71479e99cea3d62a47cfec2aa8b5117846e4c2e9e1f1c751de3c2046b110b513 SHA512 8efc88acf961f3fee0210488878498a08ffa8ff37961f116a9e1138a716742126c12bfe7584577333a69ac1706b08b0fece553592eef2b892a01f7de88744c21 WHIRLPOOL 25dadcac4f59ce6562357c84ed0a14396e56797eacc9ed2e4719c8d30243f03ccd43456e2c8187599ac767b20d61df2a645d54587a0c1a0f31570dd4a8f9b82b +MISC metadata.xml 373 SHA256 61c06f2cbbfab153c3dd8df587f127906d8dbac97187873db08b3e2831a6c78f SHA512 0727e19fe620bd5d64fb937d6305f029f9c90acaabc6ee6fb0473c56172a386739dddc67539fa89e3ffd0da13b00ed1d8752c2b1442f2435463fd81779b36f86 WHIRLPOOL 06f4127dbb651bdd6018ccec274adaa43a296c578ffbd2676ac71674b90ea0a43fcb7e8ddd3dcaa6d8bc8b02685037b6ddfa035dea9de9bf3c56f6b3272811e3 diff --git a/sys-process/schedtool/metadata.xml b/sys-process/schedtool/metadata.xml new file mode 100644 index 000000000000..a4ba90839d94 --- /dev/null +++ b/sys-process/schedtool/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <longdescription> + schedtool can be used to query or alter a process' scheduling policy under linux + </longdescription> +</pkgmetadata> diff --git a/sys-process/schedtool/schedtool-1.3.0-r1.ebuild b/sys-process/schedtool/schedtool-1.3.0-r1.ebuild new file mode 100644 index 000000000000..3b2244b04308 --- /dev/null +++ b/sys-process/schedtool/schedtool-1.3.0-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="A tool to query or alter a process' scheduling policy" +HOMEPAGE="http://freequaos.host.sk/schedtool" +SRC_URI="http://freequaos.host.sk/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT=0 +KEYWORDS="amd64 ~arm ~mips ppc x86 ~amd64-linux ~x86-linux" +IUSE="" + +src_prepare() { + sed -i '/^CFLAGS=/d;/^install:/s/install-doc//' Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTPREFIX="${ED}"/usr install + dodoc CHANGES INSTALL PACKAGERS README SCHED_DESIGN TODO TUNING +} diff --git a/sys-process/supervise-scripts/Manifest b/sys-process/supervise-scripts/Manifest new file mode 100644 index 000000000000..d8d520f94c73 --- /dev/null +++ b/sys-process/supervise-scripts/Manifest @@ -0,0 +1,5 @@ +DIST supervise-scripts-4.0.tar.gz 23504 SHA256 5c8e9732f6dc36afd2d4e8030acbbbf3aaf2b009cb33cb14558687ce6bd2bc87 SHA512 7543759b4078dacea7678e55498d470d8ed6edf56394f913f97721ec60330a8a0f538560ca48dc0269c2f98ff2dbaef0cf39d22f3db12eda778126a466e317cc WHIRLPOOL 18a1328a9ee44238d4a11035c969b290d632bf2c2de84e9569468c367691dca67a82d1595f2ca10d008265df89888cb800634510fdb46412e94f8201dc31ccea +EBUILD supervise-scripts-4.0.ebuild 609 SHA256 c8f89b40cef9be653d95bf24cbe72c718e9c1969be2d25f232b66212704fb885 SHA512 16cec031b705e2911ad3f1f4bc4112fa1e1919e1ca403bedbb04861694e17d294d954fee2dcc03595800256f3d2bba51e4ca491bc262c35bd5188c3bacc2e59b WHIRLPOOL 5d67f5846ebaa79a2aed4e22099de91c0eb4d94f9a09ce88bccca1b109f3b15dd70907e63a317d7a5edc5eee7dbf7ea5fb558bc19df810b4a3bb36d3a5ca88ee +MISC ChangeLog 2955 SHA256 40cfbf523e2645f64f0e5402b00c34f6121321b987af4559eafb59472b58f6e9 SHA512 1c6df05589ce07ccac151bfc8cad7ccd3eb1ea05fe13a54e94830ee0ec29228fd2b642ffe7d92dac72fb1f465e08ec887d41dc719bae3ceea547294eea8c702c WHIRLPOOL 43ef9cf17a135ecc430ede6b6436813429b05f82ef6393f178ccb2d2752d393b3035615250bcb7a302d0997f648c409a048485f67149a0f2d89fb9a5e2ebc012 +MISC ChangeLog-2015 4168 SHA256 2fe210fa811a2e2daeea3055ff22ea1ba128ebaed475bd56dc1eec594470c020 SHA512 6269645f98a3768b4d8c68b312ab4949336f61c8286974c6382191635e095a78c7cd53cc1d009d682c5f862a21d6e14519800c8f0cf28f3df907d750fe870570 WHIRLPOOL c3eb9560813d8c33065b50d9454303725d387d8c34f886a2eadd276f6440e445bab1287dd6a6e6750b89d6ae2ed05ea00ca48d959469dfd6b8893afa36120d7e +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/supervise-scripts/metadata.xml b/sys-process/supervise-scripts/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/supervise-scripts/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/supervise-scripts/supervise-scripts-4.0.ebuild b/sys-process/supervise-scripts/supervise-scripts-4.0.ebuild new file mode 100644 index 000000000000..c63c589d8040 --- /dev/null +++ b/sys-process/supervise-scripts/supervise-scripts-4.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +DESCRIPTION="Starting and stopping daemontools managed services" +HOMEPAGE="http://untroubled.org/supervise-scripts/" +SRC_URI="http://untroubled.org/supervise-scripts/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc sparc x86" +IUSE="doc" + +RDEPEND="virtual/daemontools" +DEPEND="${RDEPEND}" + +src_prepare() { + echo "/usr/bin" > conf-bin + echo "/usr/share/man" > conf-man +} + +src_install() { + emake PREFIX="${D}" install || die "Install failed" + use doc && dohtml *.html +} diff --git a/sys-process/systemd-cron/Manifest b/sys-process/systemd-cron/Manifest new file mode 100644 index 000000000000..295f03ad934b --- /dev/null +++ b/sys-process/systemd-cron/Manifest @@ -0,0 +1,9 @@ +DIST systemd-cron-1.5.10.tar.gz 31191 SHA256 46872d8662e642f588f5c98c2f9540572a0862972b43f3fc76a73bdd6551a915 SHA512 9a4bbf78c81adf74e589cd9431b5742d5dab63b0346a2330403a7e24bdab62833096445d9fd3e5f6a91f722b3f8176e52734dcc5e2ee0ec23b555e6d01805094 WHIRLPOOL 72f7afe7c0acba96ad7860e848b0369cde610d3c6be21cf683a8ea0cce14fe85f9230cf8a8a7c59ea49be154021136d8f8c35c6f11da04bb34b876260043bb20 +DIST systemd-cron-1.5.3.tar.gz 29105 SHA256 3623b625938e1dc45ea3b7abf6eab35180c73eddf7865f4297cc5f38c8e09aca SHA512 ea0241f93b8d92497fa020d84630ee153dc299d9b16b17567784a4dcb5ddf0a4589e7e033428562a862218ef79b192245178df2d7dcc69f779ef9156921674c7 WHIRLPOOL 51a148f780397b79d5988fb729061318c38afd2c096bf2eb4d62e340db2753f9268be11ca54974a7480d83b424cf9638961c713d843ef2ffaea1b1fe234ba539 +DIST systemd-cron-1.5.4.tar.gz 30436 SHA256 acb99095cbef7812e556ac98574a9121c06ffdc3f28622b9dee098d81bcbbdcd SHA512 e6fe60de9d6cbc223b8358bd6b1a060e11f1ea16a8f0b24662914ddb18d827f7b4c62fd40dbefed3d0ac38b1e748998ec5e0430d4ea751e8a20b94b9803bcb89 WHIRLPOOL 31f95488b3df2249807155eb5433d17a1e9013eee6ce49795b981847a4792b95ff6775297031cbd73cb0276b7c9ddf5a5241dfc7b4db99269da086803937c930 +EBUILD systemd-cron-1.5.10.ebuild 1934 SHA256 60a1f3a4c20617b987e1eaad2b97db8dd2073ed3807a946debb69a615b82c5c5 SHA512 08ad3edca36f7402aca3e40ef4ce048f6dd4d238fa6cccb4e8fc287c1dbc885321275a8364d9e0a34f0af29dba8c654735622dda62df6e24a10d6cd40e9a4112 WHIRLPOOL bba4e8d1903b902195f42e30a5f6fd0a6315ca90cc3fbdf199f279fd789366645acaab2c8ffe1349e3db55935eb11ff173804020aef2230a3cf9432f1f48c900 +EBUILD systemd-cron-1.5.3.ebuild 1928 SHA256 29199a2c3ffa26e0c3e04a01bf3bc663ec4d00dd83eb384c33be7a8fc19a9bd4 SHA512 5e370da06605db4f6d2366628ecbd498894302278795b530e78c16ef941b79f1aca94b2ae115c76544f53023429990708215b649cee30c18ef46dec45dd397e9 WHIRLPOOL bb2ad9aec37d93f943fd47eedbec415f8223c912845cddfb819f93169eb83108d9143db3f8abd647e5696801844c47bf8ebf3eacbfb779e6e06eb577d122a728 +EBUILD systemd-cron-1.5.4.ebuild 1932 SHA256 9ce361496ba67ea9932f19593ac88557bdf28e11f238e9708691ebb286fbce7e SHA512 d021886a0c23a7096097467b0794b0cf2756ce09af31a2f510fdefd3a8631c79e79383d153d60cba168d90e602c59d848a884722f44afc76f058af3d3205f519 WHIRLPOOL c7cd8506fd6efafc0a8521d928dbb9294ce1e6aa3a493d5906b25f572ced3b87dd1b7ab23b19f1d5bd9173a61ab20191f8a291d914fa6da52ec54db6779c8bc1 +MISC ChangeLog 2804 SHA256 c126130494fed5b54c5018bd2b4ea39e24ee74b93185529bfe06eb112cdad92a SHA512 0117db8276de808655f5ea0631ed5daef26113bc8992ff4789e94a5ded624e0063546a6008ab213670c6d38ebf75f62a275ac6799e421e7f6b47e6b158112783 WHIRLPOOL 221f2732fb9dec6d1a161336fb2f8add03ccfe5244639c5cdefa6bfa71b4c380a50136f163b0d6818c97386e6967afc3a63b7e3a428d348307ade7cb2c04b56a +MISC ChangeLog-2015 578 SHA256 c8da77bfcbedfb19ae3873dd30adfce9d36fd7e003616481aaab2e4c8a879165 SHA512 f2a0a46359688cce1f251278ad9873078ce11e768c4cef1929284e2f0d78458998cb193b9784a98876e7c0c6a83eb363c6643cac22426f404f33ca51cffffc19 WHIRLPOOL 5f0c13060e788451b92df55729817dce4652e2d1d20e09bc09b928b3eb146986cb81a1c21aa5c7e69c2b9ab6388c2d3c7bdc2e504f87a485057e168b92f9a142 +MISC metadata.xml 696 SHA256 8425927c30fa6270a7e32875a930821c07631fd5a4a5968bc9e8a6de94b37a06 SHA512 54efb7e34c7e83c0ac3e964e300705b3b33c2dd93dc711c6e71b9d93d83a627f0318ce757b01feb6d6e1edd228f94ab180394617803dcc23c5e73aece9c9f7c1 WHIRLPOOL 9c1401402742d8b99f81e25d4bbf83da86d39b9a68965b2c4c6842322bc3d762f8559533e36da2e87b2409134a3df447571a54faef8f7325acc9c3f8d27eb784 diff --git a/sys-process/systemd-cron/metadata.xml b/sys-process/systemd-cron/metadata.xml new file mode 100644 index 000000000000..a2e9865130b7 --- /dev/null +++ b/sys-process/systemd-cron/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>rich0@gentoo.org</email> + </maintainer> + <use> + <flag name="cron-boot">Include support for the boot timer.</flag> + <flag name="etc-crontab-systemd">Use dedicated /etc/crontab-systemd instead of parsing /etc/crontab</flag> + <flag name="minutely">Support /etc/cron.minutely</flag> + <flag name="yearly">Support /etc/cron.yearly</flag> + <flag name="setgid">Compile setgid C helper for crontab. Needs GCC or Clang.</flag> + </use> + <upstream> + <remote-id type="github">systemd-cron/systemd-cron</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/systemd-cron/systemd-cron-1.5.10.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.10.ebuild new file mode 100644 index 000000000000..f668c50f2a64 --- /dev/null +++ b/sys-process/systemd-cron/systemd-cron-1.5.10.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( pypy3 python3_{4,5,6} ) +inherit eutils python-single-r1 systemd + +DESCRIPTION="systemd units to create timers for cron directories and crontab" +HOMEPAGE="https://github.com/systemd-cron/systemd-cron/" +SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz -> systemd-cron-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cron-boot etc-crontab-systemd minutely setgid test yearly" + +RDEPEND=">=sys-apps/systemd-217 + sys-apps/debianutils + !etc-crontab-systemd? ( !sys-process/dcron ) + ${PYTHON_DEPS} + sys-process/cronbase" + +DEPEND="sys-process/cronbase + test? ( sys-apps/man-db dev-python/pyflakes )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + python_fix_shebang --force "${S}/src/bin" + + sed -i \ + -e 's/^crontab/crontab-systemd/' \ + -e 's/^CRONTAB/CRONTAB-SYSTEMD/' \ + -- "${S}/src/man/crontab."{1,5}".in" || die + + sed -i \ + -e 's!/crontab$!/crontab-systemd!' \ + -e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \ + -e 's/pyflakes3/pyflakes/' \ + -- "${S}/Makefile.in" || die + + if use etc-crontab-systemd + then sed -i \ + -e "s!/etc/crontab!/etc/crontab-systemd!" \ + -- "${S}/src/man/crontab."{1,5}".in" \ + "${S}/src/bin/systemd-crontab-generator.py" || die + fi + + epatch_user +} + +my_use_enable() { + if use ${1}; then + echo --enable-${2:-${1}}=yes + else + echo --enable-${2:-${1}}=no + fi +} + +src_configure() { + ./configure \ + --prefix="${EPREFIX}/usr" \ + --confdir="${EPREFIX}/etc" \ + --runparts="${EPREFIX}/bin/run-parts" \ + --mandir="${EPREFIX}/usr/share/man" \ + --unitdir="$(systemd_get_unitdir)" \ + $(my_use_enable cron-boot boot) \ + $(my_use_enable minutely) \ + $(my_use_enable yearly) \ + $(my_use_enable yearly quarterly) \ + $(my_use_enable yearly semi_annually) \ + $(my_use_enable setgid) \ + --enable-persistent=yes +} diff --git a/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild new file mode 100644 index 000000000000..ab453bf98c59 --- /dev/null +++ b/sys-process/systemd-cron/systemd-cron-1.5.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( pypy3 python3_4 ) +inherit eutils python-single-r1 systemd + +DESCRIPTION="systemd units to create timers for cron directories and crontab" +HOMEPAGE="https://github.com/systemd-cron/systemd-cron/" +SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz -> systemd-cron-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cron-boot etc-crontab-systemd minutely setgid test yearly" + +RDEPEND=">=sys-apps/systemd-217 + sys-apps/debianutils + !etc-crontab-systemd? ( !sys-process/dcron ) + ${PYTHON_DEPS} + sys-process/cronbase" + +DEPEND="sys-process/cronbase + test? ( sys-apps/man-db dev-python/pyflakes )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + python_fix_shebang --force "${S}/src/bin" + + sed -i \ + -e 's/^crontab/crontab-systemd/' \ + -e 's/^CRONTAB/CRONTAB-SYSTEMD/' \ + -- "${S}/src/man/crontab."{1,5}".in" || die + + sed -i \ + -e 's!/crontab$!/crontab-systemd!' \ + -e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \ + -e 's/pyflakes3/pyflakes/' \ + -- "${S}/Makefile.in" || die + + if use etc-crontab-systemd + then sed -i \ + -e "s!/etc/crontab!/etc/crontab-systemd!" \ + -- "${S}/src/man/crontab."{1,5}".in" \ + "${S}/src/bin/systemd-crontab-generator.py" || die + fi + + epatch_user +} + +my_use_enable() { + if use ${1}; then + echo --enable-${2:-${1}}=yes + else + echo --enable-${2:-${1}}=no + fi +} + +src_configure() { + ./configure \ + --prefix="${EPREFIX}/usr" \ + --confdir="${EPREFIX}/etc" \ + --runparts="${EPREFIX}/bin/run-parts" \ + --mandir="${EPREFIX}/usr/share/man" \ + --unitdir="$(systemd_get_unitdir)" \ + $(my_use_enable cron-boot boot) \ + $(my_use_enable minutely) \ + $(my_use_enable yearly) \ + $(my_use_enable yearly quarterly) \ + $(my_use_enable yearly semi_annually) \ + $(my_use_enable setgid) \ + --enable-persistent=yes +} diff --git a/sys-process/systemd-cron/systemd-cron-1.5.4.ebuild b/sys-process/systemd-cron/systemd-cron-1.5.4.ebuild new file mode 100644 index 000000000000..762939166312 --- /dev/null +++ b/sys-process/systemd-cron/systemd-cron-1.5.4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( pypy3 python3_{4,5,6} ) +inherit eutils python-single-r1 systemd + +DESCRIPTION="systemd units to create timers for cron directories and crontab" +HOMEPAGE="https://github.com/systemd-cron/systemd-cron/" +SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz -> systemd-cron-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cron-boot etc-crontab-systemd minutely setgid test yearly" + +RDEPEND=">=sys-apps/systemd-217 + sys-apps/debianutils + !etc-crontab-systemd? ( !sys-process/dcron ) + ${PYTHON_DEPS} + sys-process/cronbase" + +DEPEND="sys-process/cronbase + test? ( sys-apps/man-db dev-python/pyflakes )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + python_fix_shebang --force "${S}/src/bin" + + sed -i \ + -e 's/^crontab/crontab-systemd/' \ + -e 's/^CRONTAB/CRONTAB-SYSTEMD/' \ + -- "${S}/src/man/crontab."{1,5}".in" || die + + sed -i \ + -e 's!/crontab$!/crontab-systemd!' \ + -e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \ + -e 's/pyflakes3/pyflakes/' \ + -- "${S}/Makefile.in" || die + + if use etc-crontab-systemd + then sed -i \ + -e "s!/etc/crontab!/etc/crontab-systemd!" \ + -- "${S}/src/man/crontab."{1,5}".in" \ + "${S}/src/bin/systemd-crontab-generator.py" || die + fi + + epatch_user +} + +my_use_enable() { + if use ${1}; then + echo --enable-${2:-${1}}=yes + else + echo --enable-${2:-${1}}=no + fi +} + +src_configure() { + ./configure \ + --prefix="${EPREFIX}/usr" \ + --confdir="${EPREFIX}/etc" \ + --runparts="${EPREFIX}/bin/run-parts" \ + --mandir="${EPREFIX}/usr/share/man" \ + --unitdir="$(systemd_get_unitdir)" \ + $(my_use_enable cron-boot boot) \ + $(my_use_enable minutely) \ + $(my_use_enable yearly) \ + $(my_use_enable yearly quarterly) \ + $(my_use_enable yearly semi_annually) \ + $(my_use_enable setgid) \ + --enable-persistent=yes +} diff --git a/sys-process/time/Manifest b/sys-process/time/Manifest new file mode 100644 index 000000000000..3e376bf5efd7 --- /dev/null +++ b/sys-process/time/Manifest @@ -0,0 +1,12 @@ +AUX 1.7-info-dir-entry.patch 389 SHA256 c3d83530ea0e0c67cbfe586a3604a58577714056c5f78ee10d1f5ae384323f69 SHA512 2c490a82cfb935904372ad630f82098896b4ae535b85601122e92810cb0d7f20657a07b2b286bbe8a6b084f9fb9af7dd8bb009b6f57fd2e713420acc8143a6d9 WHIRLPOOL 13133ac12c035f9c8edd1e2d59edb5d471e14cc358d2b9c825ac423061f4e4402809eca9c8a24622d2d0a9ea13c0a3bc1324a680c5bbf816e465095ceda25fe7 +AUX time-1.7-build.patch 301 SHA256 cf38a64a3fb85e1e03e182b15b69a1677e4ffcfbb358bc8cc070b9b8641f1225 SHA512 a0c03992ed5a0d44179a164771f9fb8b8972827df262eb2aa8dd0a1d04f84ab2b904cc96e0068763f197bfa418256a6459e63eeead5edc5e777f5cc459889c47 WHIRLPOOL 014b38cfccdd383505dddb421dd5315a89f203049300244789f47fd4bbff094f0c5fa0ef869da15dd02ad98035a262ffaf38f5a7c7365925fda1fe140705a333 +AUX time-1.7-incorrect_memory_usage.patch 945 SHA256 49e58baceb5d3cc22f6489098d47cd993394624674f1ad83256247e92c3c5b88 SHA512 e9affbdfb982dcd63171a75bb61471e6e27f47944ab786ba2a3764376faa9a103f999049dadd1383e03fc5f3084207e0b004f82662f07c87207cffb6aeaad703 WHIRLPOOL 5966c53c16ac5f59bcfd8523fd893ef3276c2f711d785d0ed63ea42087238c5cde9e3a30482d02db7ead1726671e1a5f666982f86a46bb48d40e665ecfaa5456 +AUX time-1.7.2-incorrect_memory_usage.patch 1012 SHA256 05950d90026e1b75c4b6dcac1a201919bee0980b7b8b162cc1ac6addfecdc8e2 SHA512 512905d1ed3210c7bea96901897c877ca77355fea6cc7ede7ba99ea2ed5dc14365e725ed1f7cc1fc53330f55597764f9936a8f2e1508e95749af38ee309d0bcf WHIRLPOOL 9ec408d9d4150dc31de67b655dc5282a618e33ad860e2644204a4540465b5492188d35e0e1460dbe2018f6227203726aca8133ff6df247c458c86cc6e025cae1 +DIST time-1.7.2.tar.gz 108371 SHA256 be6927ef6cb08c411b907ac039d9228e1649f4944ef3e0fbe381471d6a61e45b SHA512 dfde8f48a9d52bcc9080596feca6c429556e1e510977503138195d390cb52f27dd171f519d78226b0b48adc404062ec1f9234d92ea9707ec16d1be23ced90afc WHIRLPOOL 2d9bbe909bed2861459fdd2a72104ca754f99439d0ffcd9df1db23969c44b2cfcd334907a560569d552a4ed4184fd9793ad134ccb3eaad24244953c3443a1b7d +DIST time-1.7.tar.gz 103066 SHA256 e37ea79a253bf85a85ada2f7c632c14e481a5fd262a362f6f4fd58e68601496d SHA512 d759b651e343beddc0b3bd06af85881486b72319c979a2e7f752d5a34edd8b7c1c19391c5c7a2e8f6685746cc7a046bf2c8e082b31458a1dd043ed90a4cebcd1 WHIRLPOOL 8102c994a6b5faa60ee51e7343383f307c0d31cbd26177f86fc96b41014e1065b536202a371556af336394ac0bf473db2571a15bc7644247a9a3d8235269880f +EBUILD time-1.7-r1.ebuild 557 SHA256 3d2782430ba2f060057aaabd07d511b55f9db04bea73bc16c73b986ba5c571ee SHA512 5b627020ad01ba84c38cd154eede8bd1e9cdd8ff26ddb43be298bf1dc06720111d12d583e90997c8fdb582805cef40bd20ad5d54deb26b15c30e801efdc1fd69 WHIRLPOOL 3644207cd82842ae7f7a3ea87fd8b2963b63acda5c43c40556fcab7856e10165cf98c96511e56f86a8d8e8f2d12d002f406b952c3b69f1f61c303effd1fb2310 +EBUILD time-1.7-r3.ebuild 643 SHA256 099397e621a99d94320402593c4a60ee56a9d2e3c8f7ea359f0ad21e80964aca SHA512 385137702371965342aa1178b21ed070f8bcc26a771d6c3d42e80de0bb2ce71ddebedb0e47fb833edf37aa148acbb06b690200fd3ac2f900ee46326466c2149f WHIRLPOOL a4eaf38545424bc456991be3688e74b451e6999c2893d0813bda201d3ab6d0b5cd52cd4121f4434afaaef54edfc027ade7c546372bbbfea9976fa130c5a65050 +EBUILD time-1.7.2.ebuild 688 SHA256 2f50e873ab6348a671ca2a7689ab53a6bddb0e07db4f9082a9e977d6f5a6b0c1 SHA512 953d0fc78115d4b47649b80e7e5abafe48f0e94459ce23a6dfd2c6e9b98fe502a9b080a65420c9c2f0ec48d6cf53813b72de51cb461503608dad963e13132b53 WHIRLPOOL 80483a95f49bc54caa7e5a1fde0d63044fdbdf92bb1fff0f272b4b597e43cc4b9a0f10ab804712a767f12b405a9657bfc5c8887ab321339c36e08b0fab45b029 +MISC ChangeLog 3256 SHA256 1c2a074339b4de71760673f6418c0c7b6403cba40e925ceacf9817337a01028b SHA512 c23754427cec4a423ea34f6e2386311ed03a169fe508abf4cbd5153090ab79c4b25ac32005338fa9888b1c2a2f37771c2b798a6c1504888dbb4538f368f91adf WHIRLPOOL bd12b19c0d6106fe7ae51365aee315a43be608787a7a372fe12cf58672ca375fde07c16870bec27520c538559049567bcf9bcf38c3f2f35c9f18144eadcd2861 +MISC ChangeLog-2015 2409 SHA256 94aafa96c12241bda52707b22165c27e87d22e5a43d843bc84b62d8826975a87 SHA512 574fa9cd3b97f4be09eda2efa1e6238b644d98051bfafa7139b978db3320d7264f87521ecf0540bb79930ae59de81c8faff27890e40e6344dd632541cc3fd06f WHIRLPOOL 592284c6d40860f5b42b425d817af231fe697fa5e60b82304a9e3eaddec31fc94631fb98b7e2eeeac594af6171db255e5e4f5171cea96dda712c407f73ddae62 +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/time/files/1.7-info-dir-entry.patch b/sys-process/time/files/1.7-info-dir-entry.patch new file mode 100644 index 000000000000..eb30029722bb --- /dev/null +++ b/sys-process/time/files/1.7-info-dir-entry.patch @@ -0,0 +1,12 @@ +--- a/time.info ++++ b/time.info +@@ -19,6 +19,9 @@ + manual into another language, under the above conditions for modified + versions, except that this permission notice may be stated in a + translation approved by the Foundation. ++START-INFO-DIR-ENTRY ++* time: (time). summarize system resources used ++END-INFO-DIR-ENTRY + + + File: time.info, Node: Top, Prev: (dir), Up: (dir) diff --git a/sys-process/time/files/time-1.7-build.patch b/sys-process/time/files/time-1.7-build.patch new file mode 100644 index 000000000000..504643d768e5 --- /dev/null +++ b/sys-process/time/files/time-1.7-build.patch @@ -0,0 +1,16 @@ +--- a/configure.in ++++ b/configure.in +@@ -1,11 +1,6 @@ + dnl Process this file with autoconf to produce a configure script. +-AC_INIT(time.c) +-VERSION=1.7 +-AC_SUBST(VERSION) +-PACKAGE=time +-AC_SUBST(PACKAGE) +- +-AC_ARG_PROGRAM ++AC_INIT(time, 1.7) ++AM_INIT_AUTOMAKE + + dnl Checks for programs. + AC_PROG_CC diff --git a/sys-process/time/files/time-1.7-incorrect_memory_usage.patch b/sys-process/time/files/time-1.7-incorrect_memory_usage.patch new file mode 100644 index 000000000000..ab1f4ddfbd5e --- /dev/null +++ b/sys-process/time/files/time-1.7-incorrect_memory_usage.patch @@ -0,0 +1,26 @@ +https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248 +https://bugs.gentoo.org/332253 + +--- time-1.7/ChangeLog ++++ time-1.7/ChangeLog +@@ -1,3 +1,9 @@ ++Fri Oct 1 00:00:00 2010 Bob Proulx <bob@proulx.com> ++ The struct rusage reports ru_maxrss in kbytes not pages and ++ should not be converted through pages-to-kbytes again. ++ Reported by Sven Hartrumpf. ++ * time.c (summarize): Do not call ptok on ru_maxrss. ++ + Thu Jul 11 12:37:17 1996 David J MacKenzie <djm@catapult.va.pubnix.com> + + * Version 1.7. +--- time-1.7/time.c ++++ time-1.7/time.c +@@ -398,7 +398,7 @@ summarize (fp, fmt, command, resp) + ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v)); + break; + case 'M': /* Maximum resident set size. */ +- fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss)); ++ fprintf (fp, "%lu", (UL) resp->ru.ru_maxrss); + break; + case 'O': /* Outputs. */ + fprintf (fp, "%ld", resp->ru.ru_oublock); diff --git a/sys-process/time/files/time-1.7.2-incorrect_memory_usage.patch b/sys-process/time/files/time-1.7.2-incorrect_memory_usage.patch new file mode 100644 index 000000000000..6c83f0bb9264 --- /dev/null +++ b/sys-process/time/files/time-1.7.2-incorrect_memory_usage.patch @@ -0,0 +1,29 @@ +https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248 +https://bugs.gentoo.org/332253 + +--- time-1.7.2/ChangeLog ++++ time-1.7.2/ChangeLog +@@ -1,6 +1,12 @@ + Fri Dec 21 23:00:00 2012 David C Niemi <gnutime@dcn.tuxers.net> + * Version 1.7.1. + ++Fri Oct 1 00:00:00 2010 Bob Proulx <bob@proulx.com> ++ * time.c (summarize): Do not call ptok on ru_maxrss. ++ The struct rusage reports ru_maxrss in kbytes not pages and ++ should not be converted through pages-to-kbytes again. ++ Reported by Sven Hartrumpf. ++ + Thu Jul 11 12:37:17 1996 David J MacKenzie <djm@catapult.va.pubnix.com> + + * Version 1.7. +--- time-1.7.2/time.c ++++ time-1.7.2/time.c +@@ -394,7 +394,7 @@ + ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v)); + break; + case 'M': /* Maximum resident set size. */ +- fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss)); ++ fprintf (fp, "%lu", (UL) resp->ru.ru_maxrss); + break; + case 'O': /* Outputs. */ + fprintf (fp, "%ld", resp->ru.ru_oublock); diff --git a/sys-process/time/metadata.xml b/sys-process/time/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/time/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/time/time-1.7-r1.ebuild b/sys-process/time/time-1.7-r1.ebuild new file mode 100644 index 000000000000..fb0c6152bd19 --- /dev/null +++ b/sys-process/time/time-1.7-r1.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils autotools + +DESCRIPTION="displays info about resources used by a program" +HOMEPAGE="https://www.gnu.org/directory/time.html" +SRC_URI="mirror://gnu/time/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + epatch "${FILESDIR}"/${PV}-info-dir-entry.patch + eautoreconf +} diff --git a/sys-process/time/time-1.7-r3.ebuild b/sys-process/time/time-1.7-r3.ebuild new file mode 100644 index 000000000000..0cca396dce63 --- /dev/null +++ b/sys-process/time/time-1.7-r3.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils autotools + +DESCRIPTION="Displays info about resources used by a program" +HOMEPAGE="https://www.gnu.org/directory/time.html" +SRC_URI="mirror://gnu/time/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="sys-apps/texinfo" + +PATCHES=( + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${PV}-info-dir-entry.patch + "${FILESDIR}"/${P}-incorrect_memory_usage.patch +) + +src_prepare() { + default + eautoreconf +} diff --git a/sys-process/time/time-1.7.2.ebuild b/sys-process/time/time-1.7.2.ebuild new file mode 100644 index 000000000000..ed96169755c3 --- /dev/null +++ b/sys-process/time/time-1.7.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Displays info about resources used by a program" +HOMEPAGE="https://www.gnu.org/directory/time.html" +SRC_URI="http://git.savannah.gnu.org/cgit/time.git/snapshot/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="sys-apps/texinfo" + +PATCHES=( + "${FILESDIR}"/${PN}-1.7-build.patch + "${FILESDIR}"/1.7-info-dir-entry.patch + "${FILESDIR}"/${PN}-1.7.2-incorrect_memory_usage.patch +) + +src_prepare() { + default + eautoreconf +} diff --git a/sys-process/tini/Manifest b/sys-process/tini/Manifest new file mode 100644 index 000000000000..c69a63e9e5f3 --- /dev/null +++ b/sys-process/tini/Manifest @@ -0,0 +1,8 @@ +DIST tini-0.13.2.tar.gz 27828 SHA256 85e18a4e4089612821321d1d67c16337797c3c78e81117dea56ad75ece20d05f SHA512 117822bf2e45b7cf732bfcd2aa5ea268a189c395f189c03d0e5dcd982872cff29d50adbb1a4d1b85859db4736e932900cfb64a1c487ba271a305146e9677a1d4 WHIRLPOOL f271b592e5524a2297b5a6b8fb88371a9068f01122e7ea95c4d797d2f5da91847b65675a7b5043398b8c9553746a00e4b5fe5ecfd8a1171d3bba87ee78de9a55 +DIST tini-0.15.0.tar.gz 29473 SHA256 3c0e0373c67006ac7e59ef6213e13729b53de5f414435c80133fa484174fda70 SHA512 774addddeb2bcefd1db2e4bff7c55bba6c3f4adc41e0b2a647059eef8cc5cc9d4a47b68cb4b89aa4e9e52b85916fe2680dad2a414c82b3c276beea89e3689481 WHIRLPOOL 94e39f36463344ae6587a407437c325138130bb83f38fa6e83a9d9d2b15dca4ff754fd862ec0e65eef1f6d3d11c3e75c37229da9bcca645221d6fc3c194c4fb1 +DIST tini-0.16.1.tar.gz 29641 SHA256 c2b7fe2fb92e71911d06b7571b53d4e7e8985b34efe2a599670b070b000c8dbe SHA512 aa0a802c403a07771a2b28a07b97fa2c93d40b5d5be2cba6556c8e7a92e608453010625d0236d26c27bdd2820aed3ad9ca676b70f7fcd5986d7f91eb928d053c WHIRLPOOL 98697f24e3c4ace3067943fd35f28b6243651478c407f3999e4152d58433a3c303a42ccc587717a76eec2aac10300176c2b1f360faf3a616180e2637cff661e7 +EBUILD tini-0.13.2.ebuild 894 SHA256 b97a5be53d99282e06aaa1e603705e5229870adbdd406e14ee026a6f65a105d6 SHA512 24ec88ed4125d7ef3afc3e4722462caf76c3b1703d12f60d6fb5151cb5c5a5c5f9a0e65590c03008afadb94746505070bc587b14497fecf52314a6f1793fd195 WHIRLPOOL 0b1bc6aeee70fc32465b38ee9713d3331aadc232d00323dd658709038ae73da9b5db6b543c56774a2eb265c5a9249830ddc895ac4d337b223f4c6411471ea6af +EBUILD tini-0.15.0.ebuild 895 SHA256 75dab220956a6c61faecaab161c0d49f7bd874b6ac5dd3db8a5bd5343e993fd4 SHA512 5d1fd40baac097b8aeba38329cfd516cb338379af777c148443f0b20a14277ff9814d69ef342b83a2dc2e0e0ddd2d697c513349647463f3d484de4d50f971f7b WHIRLPOOL 375a23a0f4a3b0149684e338eb36966072a0faee42fb0fea61c65e2d4f3d191f385ebe29806a84002aa613c865fcc126a6ee4048e6612ab191efce86cba17cbe +EBUILD tini-0.16.1.ebuild 895 SHA256 75dab220956a6c61faecaab161c0d49f7bd874b6ac5dd3db8a5bd5343e993fd4 SHA512 5d1fd40baac097b8aeba38329cfd516cb338379af777c148443f0b20a14277ff9814d69ef342b83a2dc2e0e0ddd2d697c513349647463f3d484de4d50f971f7b WHIRLPOOL 375a23a0f4a3b0149684e338eb36966072a0faee42fb0fea61c65e2d4f3d191f385ebe29806a84002aa613c865fcc126a6ee4048e6612ab191efce86cba17cbe +MISC ChangeLog 1296 SHA256 54e7357cc31be7839f3084b8a2879cfdf98309c6a36a8aa23fcf85580263c0ff SHA512 7306347604920f0e457cf42e73537f73b2fc8caeb3f27c00a26eb1af4ea225de2d670f5e89e9add6f98404bfda3563b88f4b12e210f4fd49246bf3dd9cd06a8d WHIRLPOOL 9de022a1f5830f1183b789fee174019eea2823c977396fabe6d139993680f081e02340700bf768ea55e16f112c9bf485322844d22235bdee4b999e50bf227b88 +MISC metadata.xml 603 SHA256 70384200c89dc98df644a896de1268dfe09cabd3cf8c60d85f48bb258305958d SHA512 9e6651c7f9ae7a2b3d856af9e74e8656f89de4496fcacf5d97bcbe4d2b20be01c306cb3e116a0ad7eabe213e2476245894ffa53e5c63ef9b4e73ca989584af9c WHIRLPOOL 9893638936c1c2013130f31317c1c1383716ef35a97e37146cfc6e406618534f9c14a9837874cdf419759742669079b893a5b29d8239cf3a07c32d6f7954b3a4 diff --git a/sys-process/tini/metadata.xml b/sys-process/tini/metadata.xml new file mode 100644 index 000000000000..f4f20fac2aa8 --- /dev/null +++ b/sys-process/tini/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <remote-id type="github">krallin/tini</remote-id> + </upstream> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <use> + <flag name="args">Enable argument parsing.</flag> + </use> +</pkgmetadata> diff --git a/sys-process/tini/tini-0.13.2.ebuild b/sys-process/tini/tini-0.13.2.ebuild new file mode 100644 index 000000000000..201e3b75b34f --- /dev/null +++ b/sys-process/tini/tini-0.13.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="A tiny but valid init for containers" +HOMEPAGE="https://github.com/krallin/tini" +SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~x86" +IUSE="+args +static" + +src_prepare() { + default + # Do not strip binary + sed -i -e 's/-Wl,-s")$/")/' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=() + use args || mycmakeargs+=(-DMINIMAL=ON) + + cmake-utils_src_configure +} + +src_compile() { + append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37 + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use static; then + mv "${ED%/}"/usr/bin/{${PN}-static,${PN}} || die + else + rm "${ED%/}"/usr/bin/${PN}-static || die + fi +} diff --git a/sys-process/tini/tini-0.15.0.ebuild b/sys-process/tini/tini-0.15.0.ebuild new file mode 100644 index 000000000000..bae9cb2b33c0 --- /dev/null +++ b/sys-process/tini/tini-0.15.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="A tiny but valid init for containers" +HOMEPAGE="https://github.com/krallin/tini" +SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+args +static" + +src_prepare() { + default + # Do not strip binary + sed -i -e 's/-Wl,-s")$/")/' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=() + use args || mycmakeargs+=(-DMINIMAL=ON) + + cmake-utils_src_configure +} + +src_compile() { + append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37 + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use static; then + mv "${ED%/}"/usr/bin/{${PN}-static,${PN}} || die + else + rm "${ED%/}"/usr/bin/${PN}-static || die + fi +} diff --git a/sys-process/tini/tini-0.16.1.ebuild b/sys-process/tini/tini-0.16.1.ebuild new file mode 100644 index 000000000000..bae9cb2b33c0 --- /dev/null +++ b/sys-process/tini/tini-0.16.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="A tiny but valid init for containers" +HOMEPAGE="https://github.com/krallin/tini" +SRC_URI="https://github.com/krallin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+args +static" + +src_prepare() { + default + # Do not strip binary + sed -i -e 's/-Wl,-s")$/")/' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=() + use args || mycmakeargs+=(-DMINIMAL=ON) + + cmake-utils_src_configure +} + +src_compile() { + append-cflags -DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37 + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use static; then + mv "${ED%/}"/usr/bin/{${PN}-static,${PN}} || die + else + rm "${ED%/}"/usr/bin/${PN}-static || die + fi +} diff --git a/sys-process/tiptop/Manifest b/sys-process/tiptop/Manifest new file mode 100644 index 000000000000..fe01e68360c6 --- /dev/null +++ b/sys-process/tiptop/Manifest @@ -0,0 +1,7 @@ +DIST tiptop-2.2.tar.gz 99602 SHA256 965cb99b16cb59df78363d83b62877ce8501b0aac1116a86bed8a16aa96b171d SHA512 533624a134fcab5e30126412b32bd6a484851ba192ef452877a2199ee3c083fe0222af28c556a8f0769457b5ee7229769b163b8d07e13d03f9f14e192a541d34 WHIRLPOOL 8eb390197404c94070b67384345100e515e3d91677133adec1539736e1a28f55430e5db0c6a99b2c2cd6663d4fb4129a02487a6b6f5ae25f74736c9e1ce29ee5 +DIST tiptop-2.3.tar.gz 101006 SHA256 3f07e958b40acaeab98e9eb1326c9f91b0be0a782c1cc2bd7a9e18d31fab18ca SHA512 e09ad1fd7063c9b8b7351b5c114cfa1f8e1737b1cfb73c4c869612c3887b060a838c33bdee330349225b48cd73d295fef24cd36c6eb36b566d20adff2dae53d5 WHIRLPOOL 11be7aa8cbd35186d402fb2453fc0969763058d6b6aaef43028bb74af5deacf5ede40b837c2e5277cdf905717862bf62ec1b23342ea7d874eda021bece520c43 +EBUILD tiptop-2.2.ebuild 382 SHA256 a755b7654e98cc2eb1ca62edee2959061311c76547cd63b99cb0b30e68ad02cd SHA512 f6a183d723696e31046edace659567aba706f86a526d29d589ee0c88a8b6c0afe090aa7ff749d5ba0f2054ea090b8d670d64b36002910387b728e685442b5d41 WHIRLPOOL 9eae7fb2d1a45d099718d89bb88e48ab057304f0216a6fe570c9a1a4f5298245078bb3c24da9ea163e4f7bba554fb2843acb1277d69922b9716dddc6bc2e18ed +EBUILD tiptop-2.3.ebuild 384 SHA256 13b5a9da4bb32d1ec5177ef914a787fa34557e654192e474753f56c3909f6d0f SHA512 adfe01fc9670f696a28d0779ea78a2731705459e7336eb9f6f77c84ed12155eb9ba70dabf4f4ad9e6f2f997f7281c51e2dcef3e0947ff9ee38525643adc22e8b WHIRLPOOL b72a6e31f4c1c8df21a7ae058af54e829dd852ff52a331817e0dc81ac6e9877a7c80af0acfe61a2654492f925c16219d5186f67bf03c3ffa69615a1e87cc7ad4 +MISC ChangeLog 2218 SHA256 e929f077b16bd548a42ae2b6f8076b4039bb581918d4cfd1c39ce1ef73eacd6e SHA512 51df5920ba9c9b346f4027d8ac169b3d1174103d3c62d5ba4dd7ec8ed613634fc6fec89b3bbb1aab924c2ab68422b9b676d6ec362312a6f43294e876cf8a52a4 WHIRLPOOL 90dcb83a1074d5eab4cd1c0cfdc180d865c3b0915d8d9f367db21d62f327a1f8687d7d37e18849ae9c2ef3ae140b9ba47ceb93d640a897aee49a5723aa75e268 +MISC ChangeLog-2015 686 SHA256 e013fa4c404e28a575ef8aef1c17cb4ebcd47d48909499ef87c5d2c83d2ea117 SHA512 2c76cc735dd597cb1b66f65479a66b1e0d66de3cf87a5260f77a7b51fc97ba5ba3591abe34ab9fb35112a0d84bc02ae53eeae89d877fc67be67603188934407b WHIRLPOOL 0ffa9b90b79539c2245db9844638c889cbdc11d28820d347082de131b16e2d2f331d40613d9fc05a9c48ab9b28e4f65880b2ee18900766f52724e09cff49ed88 +MISC metadata.xml 253 SHA256 0c78fc0afa8613e977eb4628a883b16145da7aadb7d5de8f1c46404cefd75e5b SHA512 303268e1f46e337e32c64b544c0962ecbe8de1799c42736b3c3515b6f31954a655830c402317bd0534cac12059e17eeb5f360d010432dff795a136662a5c10f1 WHIRLPOOL 7a7e49ac517082517073244d5b110e8f751910e5f5245d52dada566f95f2432696db1747492592bc84b35fdf48e947d2e9aeca6e44f1f2a5076c26f3d6e1870c diff --git a/sys-process/tiptop/metadata.xml b/sys-process/tiptop/metadata.xml new file mode 100644 index 000000000000..f3de5f693ed8 --- /dev/null +++ b/sys-process/tiptop/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/tiptop/tiptop-2.2.ebuild b/sys-process/tiptop/tiptop-2.2.ebuild new file mode 100644 index 000000000000..be841dd4d3e0 --- /dev/null +++ b/sys-process/tiptop/tiptop-2.2.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="top for performance counters" +HOMEPAGE="http://tiptop.gforge.inria.fr/" +SRC_URI="http://${PN}.gforge.inria.fr/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-libs/ncurses + dev-libs/libxml2" +DEPEND="${RDEPEND}" diff --git a/sys-process/tiptop/tiptop-2.3.ebuild b/sys-process/tiptop/tiptop-2.3.ebuild new file mode 100644 index 000000000000..4d1b047023d6 --- /dev/null +++ b/sys-process/tiptop/tiptop-2.3.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="top for performance counters" +HOMEPAGE="http://tiptop.gforge.inria.fr/" +SRC_URI="http://${PN}.gforge.inria.fr/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-libs/ncurses + dev-libs/libxml2" +DEPEND="${RDEPEND}" diff --git a/sys-process/top-apple/Manifest b/sys-process/top-apple/Manifest new file mode 100644 index 000000000000..a0fb32cd7df1 --- /dev/null +++ b/sys-process/top-apple/Manifest @@ -0,0 +1,7 @@ +AUX top-apple-73-darwin9.patch 1157 SHA256 3f6ac323299af89277d4903bfacbbe5f6bcc97cb8fd10bdef85480207e74a02d SHA512 946257f7b33684479aab189c43d3e385ed8c70c882f1ae26ab38a0c9aa3318aed57a2e00bfd4f8a0e801b3510067ff5bb7fc1846b256d0787ba7d60ce3a0675e WHIRLPOOL f24578843f280d014cb446f00184417292eb5920f4389956dbc47a14b43b4d5d04f46795b85cccffd085797d4b2d07a73793e59b5eca136a2147c8a8aaf2b35b +DIST libutil-11-top-73.h 5641 SHA256 b7f92a89bb8907a00709cd564d673806f46af4875c3016e6e27191ca5f73adc6 SHA512 1acfefa549dce3f9fbbb30d1684f88538ceee2ec81554b9cb992c655edf2bd10464aa3f5beba4ffd0e7021aa77e1e97dcc18d6ee4801d63ecabb3b43185c1f51 WHIRLPOOL cd257db07e1895b086081c62e2092a2f78365b9f46be2ac9b7aa23e607381e649197edcfbbd27cd1327b8b4c5135a51571b57d6e32adf790d931e3b67381c8ed +DIST top-73.tar.gz 69253 SHA256 69668602b008a04b808e37cfbbca4335e60a1c69cac0f51891a573687d0d7227 SHA512 cefffbd59bb4e9021d62c93dfb04866f300e7e53af697c6c084fb66851d5e6df8dfb15ef46994a108febe66f95b9702e7ebb078df1f645a01adc86c2145322c9 WHIRLPOOL 82a48a14656ef9f0e21f892be39ec489ff6d89d576a812bd22e800bf97eb7127c042a841cc12e85da359f326ba2ffd8bc7c845cde81d0b08f4bef7ba5897d141 +EBUILD top-apple-73.ebuild 1225 SHA256 ff586e673ad5e039d47d8f52497a080fe9d3af277fcb463ae2e06a70ef0dc40f SHA512 5b2d561cbae86b0f8edeb146904362e60c1cc254456ab98e1f72ba2363215ff59a614dfcc0e9a23dd52cdb98c8674a81eb74675f4b1e5f164e522c5120d6331b WHIRLPOOL 21dd06647954c56b86249ec8302baa13bed8dce73d808c8db10c0137ad92fb48c0e579dd3f19853a730afb9e3f759b3e5dcdb0954ce9997e67094508f0d3ab64 +MISC ChangeLog 2465 SHA256 80b81acf5382c2d11cbe1265316c217bcb9c9365754e1de1d073ca9331c91775 SHA512 e8f1180d3dd75bf19ce48a1cf15ec64a76819fdf217391a9f85eebc9bf5ca60f28a84bfda77b51c636102e63863e96dcd3f18c1a32ac502014a351a29bb6aa20 WHIRLPOOL b8de7052064acef17501e17a9596c647d304301c673142a4f244e0a35c70947a9230aa473e702efde46963d85eb92d3700882abd8fc7151a7cc328acbb9935bd +MISC ChangeLog-2015 612 SHA256 98a020b52f57207523d1fb3c20d26454ad62d155a5aa54176b0b66b7713aa0de SHA512 39a931cdbffab42b32e386d9bc52a12b8c8c9684bf2bd85019371c83402ba083f8d1c190be12d98e8e08c37e61d6b086e83960a4fde2a3754f308d9982af0e74 WHIRLPOOL dd799842dbe1a85cb2bd14f491100da6c47fba78539599b752576cc1cb46f74d4fa9236e8097b39f177bdf6008ebab663f54a723e1d23be4d0d4e083b2c6b6cb +MISC metadata.xml 253 SHA256 9499c0a0b4a789e06676a4d449b0c76c56e3e92a0fc37cc33a810888fc6becbc SHA512 b87265dab4980faf3d32b53ab9ce7d4ebbe5cc9d12300903b1365b337bcd72c337fdec2ef1574615d2d02cf0664023c17c0d30b57ac0237412fd2b401cc0e2f8 WHIRLPOOL 6811616f92b0dbb437634b151ddbb7fbfd95f68a1ff5f2afffc4b8c15effb2ff5de2cbf41f318c36c7f4ba6ae1c4e47ea6713b5451714a2293b312f2d60c4eb0 diff --git a/sys-process/top-apple/files/top-apple-73-darwin9.patch b/sys-process/top-apple/files/top-apple-73-darwin9.patch new file mode 100644 index 000000000000..63d37c58f30b --- /dev/null +++ b/sys-process/top-apple/files/top-apple-73-darwin9.patch @@ -0,0 +1,40 @@ +--- libtop.c.orig 2012-05-03 14:35:48.000000000 +0200 ++++ libtop.c 2012-05-03 14:41:36.000000000 +0200 +@@ -23,6 +23,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <limits.h> ++#include <inttypes.h> + #include <sys/types.h> + #include <mach/bootstrap.h> + #include <mach/host_priv.h> +@@ -1458,6 +1459,7 @@ + libtop_pinfo_update_kernmem_info(task_t task, libtop_pinfo_t* pinfo) { + kern_return_t kr; + ++#ifdef TASK_KERNELMEMORY_INFO_COUNT + mach_msg_type_number_t count = TASK_KERNELMEMORY_INFO_COUNT; + + pinfo->psamp.p_palloc = pinfo->psamp.palloc; +@@ -1466,6 +1468,9 @@ + pinfo->psamp.p_sfree = pinfo->psamp.sfree; + + kr = task_info(task, TASK_KERNELMEMORY_INFO, (task_info_t)&pinfo->psamp.palloc, &count); ++#else ++ memset(&pinfo->psamp.palloc, 0, sizeof(pinfo->psamp.palloc)); ++#endif + return kr; + } + +@@ -1630,9 +1635,11 @@ + } + + switch (info.share_mode) { ++#ifdef SM_LARGE_PAGE + case SM_LARGE_PAGE: + // Treat SM_LARGE_PAGE the same as SM_PRIVATE + // since they are not shareable and are wired. ++#endif + case SM_PRIVATE: + rprvt += info.private_pages_resident * pagesize; + rprvt += info.shared_pages_resident * pagesize; diff --git a/sys-process/top-apple/metadata.xml b/sys-process/top-apple/metadata.xml new file mode 100644 index 000000000000..7151af145b05 --- /dev/null +++ b/sys-process/top-apple/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>prefix@gentoo.org</email> + <name>Gentoo Prefix</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/top-apple/top-apple-73.ebuild b/sys-process/top-apple/top-apple-73.ebuild new file mode 100644 index 000000000000..489dda9c7a83 --- /dev/null +++ b/sys-process/top-apple/top-apple-73.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs eutils + +DESCRIPTION="Apple's top from Mac OS X Lion 10.7" +HOMEPAGE="http://www.opensource.apple.com/" +SRC_URI=" + http://www.opensource.apple.com/tarballs/top/top-${PV}.tar.gz + http://www.opensource.apple.com/source/libutil/libutil-11/libutil.h?txt -> libutil-11-top-${PV}.h" + +LICENSE="APSL-2 BSD" +SLOT="0" +KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" +IUSE="" + +S=${WORKDIR}/top-${PV} + +src_prepare() { + # libutil.h header is missing at least on Leopard (10.5), the dylib just + # exists + [[ ! -e ${ROOT}/usr/include/libutil.h ]] && \ + cp "${DISTDIR}"/libutil-11-top-${PV}.h "${S}"/libutil.h || die + epatch "${FILESDIR}"/${P}-darwin9.patch +} + +src_compile() { + local libs="-lutil -lpanel -lncurses -framework CoreFoundation -framework IOKit" + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o top -I." *.c ${libs} + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o top -I. *.c ${libs} || die +} + +src_install() { + dobin top +} + +pkg_postinst() { + ewarn "To use top, you need to perform the following commands:" + ewarn " % sudo chown root ${EPREFIX}/usr/bin/top" + ewarn " % sudo chmod u+s ${EPREFIX}/usr/bin/top" +} diff --git a/sys-process/unixtop/Manifest b/sys-process/unixtop/Manifest new file mode 100644 index 000000000000..6133e02aa45e --- /dev/null +++ b/sys-process/unixtop/Manifest @@ -0,0 +1,11 @@ +AUX unixtop-3.8_beta1-high-threadid-crash.patch 2261 SHA256 23db7fe72cb7523e886c5d0bc7d06b61320a182c2f03001060ea1b5496b9ec83 SHA512 d25ce022391db06eeef794062bd49cb4c20f4a544bbd389fed566e172c58025cfc79ba6128ebdac2c9c97c21782842922834138d8a754e20c88d64ee65ccf2c7 WHIRLPOOL a3423a71a18f80d6922c56147ca5311200039f1682f6b94ba1cedeb8019930abbc733eab6f0da542a5a2100282b40a76816835f53da361ce43ad80ce6e39cac3 +AUX unixtop-3.8_beta1-memleak-fix-v2.patch 1060 SHA256 56167fb4d6a655c248ddc3a2809fba5bb0a410d4497990e089d680cb57e2a250 SHA512 83ac5d5c61adeb839d45af91c5a52dce38a66abea5f14407dcb988e29c297f7fd36a6c6d845cd90110a003471aba9ed0f715b68beaf6cbb15f433597a6273c8c WHIRLPOOL 6e9c96d6c5df1193f16afa9db98ad3551c4ed256060c4dc07cc0928cafb57a0a17da46d24a606526fd2be215ad1396c9816fcceb00f28f1fc9cab03f5955aa6f +AUX unixtop-3.8_beta1-ncurses.patch 436 SHA256 26971db7940dd2aed33f523ea19c0084a679d4803f9f8fab8edcd822cad05e3c SHA512 1d5e63cadcc3c69ed4e92973cd0e8bd2de69d19a4dc7cf92ba30e669ece9e9c70b7ec8f0cfb621e101abd850470b75e388f70ceb46dfc9746ab04442ec98f68a WHIRLPOOL 87afe7f29f35f90c398620dde03d27f161ee979809cad57a0c6be25c4cc0cdd7b76b98cedee0888c5522883a88b327a4c90b3bf780abb4b57144f53f4293640f +AUX unixtop-3.8_beta1-no-AX-macros.patch 609 SHA256 ba24d9c3f3d361d6dfb55447fb2e7e270224868723121fefa7ebd04a1909129f SHA512 a55e9c5b4f337365b24b99f2412ad69edc51a610a4cf831592183d284c83202149342c52e1f09fbdb78dc468484510d3d67902386358aa85eb45c5e8a092ff8e WHIRLPOOL 1b150b36dffbe125b853dfd9dcecc479a8501aa75bcf3a3722fe37d3908a43f7a04b625f2a3330dbf1b0b373159663defeef9e1e37ea0d0a654f2d9c0b691d11 +AUX unixtop-3.8_beta1-percent-cpu.patch 903 SHA256 94236fc3ceb038a7022b8b9208cf8e29ffd1a6bfbb1a05baa97a4e8e4cc45a91 SHA512 6867b2c9951e801aeefc464e7903b719c6acfee7db33e65c7c51da2055daef5990d5a8d1131dc069334bca54f866b25db2891fdb7c15a9d8c468047f090e327c WHIRLPOOL 71cb14d53f25ac5ce510204c9993a95115ce8dc0372e380367a7f153810354740e81b0904a02e9632f773a9e1251ad157bec0f2cb187a92f508cbbedd295133b +AUX unixtop-3.8_beta1-renice-segfault.patch 518 SHA256 47ffd2879fa9d3e6eae4fd38191abc004540f04b54cf39a72ab2366802067c7e SHA512 2d74ee0e67136a59d6745522ea7671404a9d0a026311f6dfa47dc78d12ecb12da63aab915b969cdecbdf9f3ba9dd86babeebc5c1b61713adbb7c98f70adf56f6 WHIRLPOOL 9f9619bb73c0d3856fcb84bff57856fc83ed80ac0bdc8680d1cf1d89600cd4367240b2aa2e1d119c9758a81f9e2ca5c4fb0769ae70519e1ec3058733adf03f35 +DIST top-3.8beta1.tar.bz2 233880 SHA256 1b5281071a4fcc132205e643fb2fe196cf839555874aaee507a7d07aa0076cda SHA512 c66d786e34070afd00dc2225ce4cddcf0fdaee0e2a6c6e2dfadadcd97bbe84c6668041ff5b075137630b99240c711fbfda8b85fb09c6a39e3067798cbe612671 WHIRLPOOL 1a51c53494d8128fd6ff8bcbfea54efbacf0d7af3e78a492ca29d5bf276ca639d403273f03e49536e7168122bc6002cd1fb1c0c84cd322d691b41032ed766842 +EBUILD unixtop-3.8_beta1-r3.ebuild 1092 SHA256 d1d798cd1442efc65b87bcfd7f8756e6c2053f3529e71c1ea340caf2651e08c4 SHA512 25c86d0658a57534c6c90b976761205dcd5c2385a0ba5c1571b292da2d63546e505ff9df2e60688151a9d2ac396941be7c900e7f81b017fb957bbb3c964680d1 WHIRLPOOL 3cf20cafda41fa64870e11e01ec7b3dd7cd6fa868eb94db69599d621ef4edf6e276d0bf57835601bf7d3cfb6d16070ce3bfc988faa52fc0ded2c6a77ea584aa2 +MISC ChangeLog 2966 SHA256 98ca5c3c1bc6d170946473c74f142f7787309ff2d22543ccfddfff4872a02dbd SHA512 ccf5a78a1a0fd0aa302a55149d6e4eb431ff797e1baac1e3f09d47bfc60d5d622a5952cb4fd405ca81513f39724455e24641a7c4c6a46b70d29ec2704b5dd7a6 WHIRLPOOL 358fa40c060dba982e59a8ffa993a6f5b686e2fcad04d9ca4ba7d6857fe223e02cafbc0b203d8986e1cc67f0715f96b04f52ef62296a3b9752f11bc56a78a360 +MISC ChangeLog-2015 1471 SHA256 fb97d4396cc7ad726df7f79893557941e6fc8b42a8b1d2fefa80fd3a797c6cd1 SHA512 cf17716444d5cce2cfa92422336858c51fd1c693e04d27a8f57f8a2466b9661ef67512a168a2615391b74b7f6d55d64ff7912c246c765ffc68cb012ea9f9abc7 WHIRLPOOL a6a8ae18d02f53f0d3d1edfa80a5fddf8bdafd7b4c7b37a44025fd1fedfa1f452fe26982912238f2808c9dceb5b90de58b61e77ff6adf03c07a5d2d905deddcc +MISC metadata.xml 324 SHA256 1ec4053008fdd25e9fd79b5e0169462977711a937f31b5986d8bec3dbcb820f4 SHA512 9d0285bab5e9e40597de61a2dd87370aa693ea943f63a6163d5fc3100e9ca8dd7198a309e0d4735a9cb6bbfdb850a06f1e082758d71df21ab1eb0af34361968d WHIRLPOOL 39cb0277eb39a1a456b3c0aec3adce1515aaa9320d0d6990f543ea1254ac4dd76502622601970d3ff986abdd832c818f6a00083d2a7fab74697a22600f2b86d0 diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-high-threadid-crash.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-high-threadid-crash.patch new file mode 100644 index 000000000000..734826a647dd --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-high-threadid-crash.patch @@ -0,0 +1,75 @@ +https://sourceforge.net/tracker/index.php?func=detail&aid=2815842&group_id=72892&atid=536042 + +*** hash.c-old Thu Jul 2 15:30:55 2009 +--- hash.c Thu Jul 2 15:48:39 2009 +*************** +*** 1354,1360 **** + hi->value = value; + + /* hash to the bucket */ +! bucket = &(ht->buckets[((key.k_thr * 10000 + key.k_pid) % ht->num_buckets)]); + + /* walk the list to make sure we do not have a duplicate */ + ll = &(bucket->list); +--- 1354,1360 ---- + hi->value = value; + + /* hash to the bucket */ +! bucket = &(ht->buckets[(((unsigned long)(key.k_thr) * 10000U + (unsigned long)(key.k_pid)) % ht->num_buckets)]); + + /* walk the list to make sure we do not have a duplicate */ + ll = &(bucket->list); +*************** +*** 1408,1414 **** + pidthr_t k1; + + /* find the bucket */ +! bucket = &(ht->buckets[((key.k_thr * 10000 + key.k_pid) % ht->num_buckets)]); + + /* walk the list until we find the existing item */ + ll = &(bucket->list); +--- 1408,1414 ---- + pidthr_t k1; + + /* find the bucket */ +! bucket = &(ht->buckets[(((unsigned long)(key.k_thr) * 10000U + (unsigned long)(key.k_pid)) % ht->num_buckets)]); + + /* walk the list until we find the existing item */ + ll = &(bucket->list); +*************** +*** 1460,1466 **** + pidthr_t k1; + + result = NULL; +! if ((bucket = &(ht->buckets[((key.k_thr * 10000 + key.k_pid) % ht->num_buckets)])) != NULL) + { + ll = &(bucket->list); + li = LL_FIRST(ll); +--- 1460,1466 ---- + pidthr_t k1; + + result = NULL; +! if ((bucket = &(ht->buckets[(((unsigned long)(key.k_thr) * 10000U + (unsigned long)(key.k_pid)) % ht->num_buckets)])) != NULL) + { + ll = &(bucket->list); + li = LL_FIRST(ll); +*************** +*** 1499,1505 **** + pidthr_t k1; + + result = NULL; +! if ((bucket = &(ht->buckets[((key.k_thr * 10000 + key.k_pid) % ht->num_buckets)])) != NULL) + { + ll = &(bucket->list); + li = LL_FIRST(ll); +--- 1499,1505 ---- + pidthr_t k1; + + result = NULL; +! if ((bucket = &(ht->buckets[(((unsigned long)(key.k_thr) * 10000U + (unsigned long)(key.k_pid)) % ht->num_buckets)])) != NULL) + { + ll = &(bucket->list); + li = LL_FIRST(ll); + + + diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix-v2.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix-v2.patch new file mode 100644 index 000000000000..76042bb4c1a6 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-memleak-fix-v2.patch @@ -0,0 +1,44 @@ +https://hg.openindiana.org/upstream/oracle/userland-gate/raw-file/23c55a2f8a8e/components/top/patches/03.sunos5.patch + +*** top-3.8beta1/machine/m_sunos5.c.orig Wed Aug 31 05:23:52 2011 +--- top-3.8beta1/machine/m_sunos5.c Wed Aug 31 05:25:25 2011 +*************** +*** 2064,2070 **** + + /* read the whole file */ + p = malloc(st.st_size); +! (void)pread(fd, p, st.st_size, 0); + + /* cache the file descriptor if we can */ + if (fd < maxfiles) +--- 2064,2076 ---- + + /* read the whole file */ + p = malloc(st.st_size); +! if (pread(fd, p, st.st_size, 0) != st.st_size) +! { +! (void) close(fd); +! op->fd_lpsinfo = -1; +! free(p); +! continue; +! } + + /* cache the file descriptor if we can */ + if (fd < maxfiles) +*************** +*** 2148,2154 **** + op->oldtime = TIMESPEC_TO_DOUBLE(lwpp->pr_time); + op->seen = 1; + } +! free(p); + } + #endif + +--- 2154,2160 ---- + op->oldtime = TIMESPEC_TO_DOUBLE(lwpp->pr_time); + op->seen = 1; + } +! free(prp); + } + #endif + diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch new file mode 100644 index 000000000000..73cd88b72826 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-ncurses.patch @@ -0,0 +1,14 @@ +* check ncurses first, such that we only link agains (system) termcap if + necessary (never the case in prefix) -- grobian@gentoo.org + +--- configure.ac ++++ configure.ac +@@ -174,7 +174,7 @@ + AC_CHECK_LIB(kvm, kvm_open) + # -lmld -lmach + AC_CHECK_LIB(mach, vm_statistics) +-AC_SEARCH_LIBS(tgetent, termcap curses ncurses) ++AC_SEARCH_LIBS(tgetent, ncurses curses termcap) + AC_CHECK_LIB(m, exp) + + # check for libraries required by extension diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch new file mode 100644 index 000000000000..f5d34a4a9ae9 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-no-AX-macros.patch @@ -0,0 +1,22 @@ +* no idea where these macros are, but we can surely do without this, for + now -- grobian@gentoo.org + +--- configure.ac ++++ configure.ac +@@ -504,16 +504,6 @@ + + AC_MSG_RESULT($result) + +-# add extra cflags if the compiler accepts them +-AX_CFLAGS_WARN_ALL +-MODULE_CFLAGS="" +-if test "$ax_cv_c_compiler_vendor" = "gnu"; then +- AX_CFLAGS_GCC_OPTION([-fno-strict-aliasing], [MODULE_CFLAGS]) +- if test "$target_cpu" = "alpha"; then +- AX_CFLAGS_GCC_OPTION([-mfp-trap-mode=sui -mtrap-precision=i]) +- fi +-fi +- + # Define man page supplement + MAN_SUPPLEMENT=machine/m_$MODULE.man + AC_SUBST_FILE(MAN_SUPPLEMENT) diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-percent-cpu.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-percent-cpu.patch new file mode 100644 index 000000000000..503ed3576a70 --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-percent-cpu.patch @@ -0,0 +1,23 @@ +https://hg.openindiana.org/upstream/oracle/userland-gate/file/23c55a2f8a8e/components/top/patches/04.percent_cpu.patch + +--- top-3.8beta1/machine/m_sunos5.c.orig Tue Nov 8 11:23:08 2011 ++++ top-3.8beta1/machine/m_sunos5.c Tue Nov 8 11:23:11 2011 +@@ -152,8 +152,17 @@ + * one of the spare slots in the prinfo structure. + */ + +-#define percent_cpu(pp) (*(double *)dbl_align(&pp->pr_filler[0])) ++#if OSREV > 59 ++/* ++ * on Solaris 10, psinfo.pr_filler is 4 bytes and not double-aligned, so we must * move our scratch space to the larger pr.lwp_pr_filler which is 20 bytes ++ * XXX this is a time bomb and will likely break in future Solaris releases. ++ */ ++#define percent_cpu(pp) (*(double *)dbl_align(&pp->pr_lwp.pr_filler[0])) ++#else ++#define percent_cpu(pp) (*(double *)dbl_align(&pp->pr_filler[0])) ++#endif + ++ + /* definitions for indices in the nlist array */ + #define X_V 0 + #define X_MPID 1 diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch new file mode 100644 index 000000000000..afea694b59ad --- /dev/null +++ b/sys-process/unixtop/files/unixtop-3.8_beta1-renice-segfault.patch @@ -0,0 +1,21 @@ +http://defect.opensolaris.org/bz/show_bug.cgi?id=6580 + +--- top-3.8beta1/commands.c ++++ top-3.8beta1/commands.c +@@ -501,13 +501,15 @@ + if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) + { + message_error(" renice: bad priority value"); ++ return; + } + #endif + + /* move to the first process number */ + if ((str = next_field(str)) == NULL) + { +- message_error(" remice: no processes specified"); ++ message_error(" renice: no processes specified"); ++ return; + } + + #ifdef HAVE_SETPRIORITY diff --git a/sys-process/unixtop/metadata.xml b/sys-process/unixtop/metadata.xml new file mode 100644 index 000000000000..47b89025aeed --- /dev/null +++ b/sys-process/unixtop/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>prefix@gentoo.org</email> + <name>Gentoo Prefix</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">unixtop</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-process/unixtop/unixtop-3.8_beta1-r3.ebuild b/sys-process/unixtop/unixtop-3.8_beta1-r3.ebuild new file mode 100644 index 000000000000..d32e3863a6f7 --- /dev/null +++ b/sys-process/unixtop/unixtop-3.8_beta1-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils autotools + +DESCRIPTION="top for UNIX systems" +HOMEPAGE="http://unixtop.sourceforge.net/" +SRC_URI="mirror://sourceforge/unixtop/top-${PV/_/}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/top-${PV/_/} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ncurses.patch + epatch "${FILESDIR}"/${P}-no-AX-macros.patch + epatch "${FILESDIR}"/${P}-renice-segfault.patch + epatch "${FILESDIR}"/${P}-memleak-fix-v2.patch + epatch "${FILESDIR}"/${P}-high-threadid-crash.patch + epatch "${FILESDIR}"/${P}-percent-cpu.patch + eapply_user + eautoreconf +} + +src_configure() { + local myconf= + + # don't do bi-arch cruft on hosts that support that, such as Solaris + export enable_dualarch=no + + # configure demands an override because on OSX this is "experimental" + [[ ${CHOST} == *-darwin* ]] && myconf="${myconf} --with-module=macosx" + + econf ${myconf} +} diff --git a/sys-process/vixie-cron/Manifest b/sys-process/vixie-cron/Manifest new file mode 100644 index 000000000000..497a066a5c36 --- /dev/null +++ b/sys-process/vixie-cron/Manifest @@ -0,0 +1,23 @@ +AUX crontab 488 SHA256 524b108b3758436c935e4f840389abe861e8ea644d0774024aad5145424a911a SHA512 adf8335c4742aea39f825e21475959e638b0926cf557f20aefa93efa1291145ef4e44ec9e4fa0f0d6358c65d2c2b6b411deb4d4ac1dcc811085851910fb8c071 WHIRLPOOL 5cd5b076434f316701520a3405cc4f6f3cec2fdcd34031ac8436f836a62a57bc6b17d0672427eb956e3d40cea7952bb8d84135d10d38890f73ac099206e4dcc6 +AUX crontab-3.0.1-r4 489 SHA256 ad81688a4e22d70b0c9dc332f1390c6350b4d65be53ee4b51bc911b25f06b883 SHA512 6387680385c0f75a77a939592a9eb0f6ed30de20f262597875c64847d480a54854c4810001b7872fa769a7f9c45fa3045b2179744efad78fd80a4e8a3f4f326d WHIRLPOOL 32a351a13aecb9ea1badc64a0d92216dc104a175c7042c7ac308f6b1b90f94ce04fbb25689dba644ba4e7692029344fe4c3d6418e92f755b2966867a9b3232be +AUX crontab.5.diff 772 SHA256 24bac83157b5eb0e559ad8e536986019099d97d6f636fd8d655054a0219ec0f3 SHA512 2efecff5b35f06ccd65961143c55d8c4be92714c67de6c064b1d3b6975ef9d825c3f4b1b4c32c64efede2a8aa727bb4b22330ac45118f0e2b0feb6b169dfb17d WHIRLPOOL e928aa0bc23436d08eef53cfdef0f05bf27ce1fa1d563ea84382bc7edb6469f3a06ca2c023faafb6b03b83760003cdd8125fa0473d40f316829d02845e2ba176 +AUX pamd.compatible 123 SHA256 35940dd36bf0332b1a57d44d3f2f6cc7489c262119c69f8b1329f559a03177a2 SHA512 ea770adf46e00c0d517333f9c072946300db88e53fa7379616f499b6e771a24b0514bd85e24272b16a9dd4599b04514c557519ecb6d51f2ad752b7326376c62b WHIRLPOOL 972b899b0e51ba2fb5360308a35d738de199dbf48d16bb92a00f6d358d135563f3a7f7fca937691d2c258b73e1ffeee11d5230ce74cc479535a6b824add3abc4 +AUX vixie-cron-4.1-basename.diff 479 SHA256 a6ef26a9666fcbbed530195aa2f2f040778f8f5155e344e6f4979e5c152a6371 SHA512 979942efca89b724ca4bdc865d6d5ee3a298c9a1d2af69edbc3d65b3831ff99225eb7b2b4974722d38272b8fb4651806d51f2d1bf2e15e2a65deb1c64f7a8349 WHIRLPOOL 07b80da050eca4ac8e13b60996656c0bd6e8bd823cdc608b5d8d86ae60dfaa95b8200d210f14d7caa0566b15e857e1b5fcbcc1542b278783d6a3b46a44aa35ff +AUX vixie-cron-4.1-commandline.patch 387 SHA256 158eaa10c4e197c7c82b19297da298b3a56bb4bda91b5e94cd06dafaa489d4d4 SHA512 cfd85bb7999160559d462c246e6b87b0dd472dd859065adc0b3c98332b6da484a2be70a8ad55001f0d701e91f6f7f35972c1c0135cf79f1f7399a5371558c05b WHIRLPOOL 62734843003856a3e5162a4ab46e3cd5ac6d7b28e7389586f2e7714ff317e7be2dd2917c59d2328ae5b562141443c3bb26323cc2ee95ddd6d5ac1e4231b06c66 +AUX vixie-cron-4.1-cron.deny 148 SHA256 2da98580288864e2470b01bb781bb88111b719dfe6bcb10c8fd5e019e3f3a953 SHA512 e2e3a72a527d7d905b8e36f3a988eb71baebab5eb83d4a744d7c4ff4e9d6030d17bd9d8dbea30397027f4f0bbcd8df82ca0c2dd89777aade530af832fa26b5c6 WHIRLPOOL d562e8c6058ee7f69bdbb4828653112643ba2c60712e360aff58d6f5edb6aa36ea9a53780cc7f957fdc261795aec814334dbc817997c3a751d752360a18aa3c1 +AUX vixie-cron-4.1-crontabrace.patch 658 SHA256 428649286f6f3245a8fcc6a7bc39991dbdc5d2fbc8cda850c34c62c419dfea13 SHA512 7aac74563a26bc86bb99488ab0a556a389b5a3d36bed7c80c355a3504d9175d1ac8d437ebdba60831de42a1cc7188b464956f8e94876f8eaf465c9f7005b8242 WHIRLPOOL 5317ec4caea35f9e36badb186f618d96fd828372b37c29181f594fe705cd8943ff33fd325d7bd9ab65215162213bbeb431b60244b269248b5aee346eac41dfde +AUX vixie-cron-4.1-hardlink.patch 369 SHA256 abce88d7f48f902baddf532a8c137b6d55a1157d04b179b3f18b19de70b030bd SHA512 32a804929f1a005edbe58c17e5a4e57141e1b379724e1d760729ba2e5f578b9e509e5e04893e648f463dc250804a9b6303b3dfb7d91c485e57ac02e1c866600a WHIRLPOOL edb0030a0e57becfe440abc75de16b1393a40283507e512c923e4892ef4b60c7fdb8f088ceff3182b9b1ebbdd8c6e7a4ff65969530892154ea83a7cb86b79c7d +AUX vixie-cron-4.1-pam.patch 1714 SHA256 7dbfc2aaa50ab7aff012e97306fa12a1751e96c42e3af0ae82b9659ab24e660e SHA512 596e3888c9ba484b5e4f2b0db14aac0449760d9e4ca91105cac19555c4e45ae96c9e5e302335c5559697881286eae98d7149742e4f01102cc5042edf795d46fc WHIRLPOOL fef465a81aea7748645cc76aeece6aaeb1ea7d4e4deea99a3015266b4ef453584b48ed838ab9d926af8b11068cf2b4ffe123a84e83282311b46465ba45275cda +AUX vixie-cron-4.1-selinux-1.diff 4658 SHA256 35909d7c59e60ee77833a17fdf58bd03590e710e67905ebb3331bc7eff92d091 SHA512 aa226982ace71b951d46af7777c173c8c4a1dcb4fc5967fa7396cbe617a7c341add25cfbf6210aa99ab8f1af9773d55fc57985f396a827b75acca12dd542dc54 WHIRLPOOL 2bf4608cd45bb17b6cab5f1b3785928d86909bd9b9db33d822532d2153cdecccc36e6536067a516838e3414da5b5fe22557d28a64bb867e64e13e558433eb520 +AUX vixie-cron-4.1-selinux-2.patch 6566 SHA256 57aa9e3c45c3d738038bce3cbc59a2a2c2e6a44e2cfd03a8639a2257ae8a31e8 SHA512 b272b8a9dda7b80f6213ce7b0b38dc3beb16bf38ae202410c9062ae0c14653174dc309fe6dffa469058acf58fae903e0eb670b721213bbdcba3bf21eccfbdfd3 WHIRLPOOL 79bbc51793eadbab1cf4b437e84766a3edf4625e71e77ada55c2431ef2df107cc4fb1979f16f646bea62839e1780a762ffc3fc895a8f068d403dfa0f1d9aacac +AUX vixie-cron-4.1-selinux.diff 3557 SHA256 2e5df441230bed3f7fef9c63bb730d43a6293f756b64ffae29f8b98daff64524 SHA512 d8efaced8447e717ba68ab3c1b2e3097036647c46c328862bdc6060f7948c3d54ea6717dd7d684de517e516091ea28e35ca3b651e504f9b0481de21a812b2eb6 WHIRLPOOL 6b5593f074fad21a5b70461c6f2ff9787b9c8f551509c97586bb77e77e17d8b2a01f9f4c50ddfc383076ae5fc00e684a4b6a20d123fcef8b0ee0c47ef403a1ff +AUX vixie-cron-4.1-setuid_check.patch 767 SHA256 63722e28b0477f5c3195d919b6a46647b76be50c0192879e64fcd17e54882ed5 SHA512 4c49ac5465a142a49799ce1ab816aacd458b44287a3200d9dc35afe1b717d095b2db93eee70913c3c6ee4171afe1293d6838af3f0e6156a96e1e6431ded2af70 WHIRLPOOL 75d04b2a5888500393976495a283112ac3439276e7f9622576eddf6d26917015c84136311cba6bd7f9600ea03ffe2ee74d0a192c0f0b451afddb027a13617924 +AUX vixie-cron.rc7 239 SHA256 3cdbe2c12e9d694103537795c66912721f1ab9cf2bbbd3552d36437f6f965c5d SHA512 d491ae5db8e6ad00bf59380a3358577dfe45a0d137fa5100c22252b8d6d84149d379aae860a30b39c4bdbfc0274ed6cf8fe8d2dfedbea29f4260d5aaab975766 WHIRLPOOL ce0dd40f8e579829be9d540eb848dc72cf23c172fb181fb75213d4e474b246e22d69b635a72c0715fc88ff89e0a3666222673d5dced0d3763949bbf4a7dd595d +AUX vixie-cron.service 178 SHA256 248368dc7dcdd94ff641ad017cc64ed7a82a3791f81dcedea48bcc4d3e1a2a21 SHA512 09af14c9010c55c204db8755872df531d0e28b473d56f0b5f99c037e2183e2f9e2be9cc66895f4da2036b74efa7bc472e932331fac13722a505ae2be400a068d WHIRLPOOL d2fc8b7cb9c1e39f1095534f25d3c647c27c96fdfd0ed218f4b3a6544aa0c3e273c40ee50cb5a82dab29c0322cce52d04653bb252065101c912da0a7a6163aa6 +DIST vixie-cron-4.1-gentoo-r4.patch.bz2 4204 SHA256 8de14b11da567f7859df3dcf71802f32ac1b3650ae07c6cb6dbc259e1f6da7fc SHA512 eec8f89a97927a3557bd1350ed7e9baa0ec133e2c49f8f0fbf51adf62c377451dc48867ca6affcc7576833a5b6b749613c9b99641b1b658853f91d8071c3411b WHIRLPOOL 9951885d10f0f49cb0b66b1b592a870f24c04647688422c7fb396e266af0aeed7ae357bb571f13ee30aeec747ecfe78abb0335f80ea5bfd0084aee4321a581d4 +DIST vixie-cron-4.1.tar.bz2 54246 SHA256 fd25119b301e0e8306ec27ee912298740c5c8ae879bac02381429cf355d1122d SHA512 1db9a246243dbd4934438ce70bf022215ccffed4b899a77b076d5a7679a7b98a23ef67344e329fc7a836df90685581e10b1c95709db40601c33d2052ce561e04 WHIRLPOOL e137a0e056103efc1bf0aa022bf0f9e2ca3ab8bb3ff97645de27c2e381a4aa5303d477cd1bc6220177aa503c2bce5bbe2331d311dfac4f5ab43cf6928dbe1ea7 +EBUILD vixie-cron-4.1-r14.ebuild 3493 SHA256 54bdc9689ae51ea6a8d961c5a862b2b179d05219cd79b7b993d1600e15124086 SHA512 b51b9b7b81394c285db9b1a44aa4cc0b194c0b9480fbc1a57cf644db6b689b5715a763585c6145b8551a44e1676aabe409bc08c96a16de663c57d14184079c2c WHIRLPOOL f73639db790901d1e448062c1a36e5eccc1a4c1b7f7cc073032146f3477322470b5c568648597e256fbb39270cdae04fa285037f10f356ff6807df8dd9413839 +EBUILD vixie-cron-4.1-r15.ebuild 3507 SHA256 36357a62d775523a35e725b9f1a3fcec242d0d5c188b88cf8ca3cd6c6a171b2a SHA512 fef94027206efd56bbc2452392d9ed77332a942ac9eb6df3d358d71e8622bb23a3304215e2131c0a971e12e856db7dc2e7768fda2b438f1a77cfc9d736b6044c WHIRLPOOL 440b3386725ce795647f4c3170f02b32bead777f60e09a4cc2f50e4c6303469ffff182becf33a7117f655d1e0b6f2329be81c09562b48eeb9130a874e8c0c5a5 +MISC ChangeLog 3256 SHA256 8331d01c2abdf9d5ea9abc969c3d172a07e38e8395a3b9ab4a8dafc80d41fc55 SHA512 d6c5ac7898ad8be3e4171e90d0957fea01b48f6d0dea011b8a8cc6e2120907721f5e4ec4461a7741ee9909efb9fb1a73218ba45479977f3c276e9b53db9f7f15 WHIRLPOOL 1c8740f364acb4e34e1d40b0a0040634f2766e84c72264ffada2e828f1be4535461f0bdde2a785ebbd427eddbecbe2aa8e01fe09d9d74ce9beb153af43d2b639 +MISC ChangeLog-2015 24228 SHA256 9ab7b065b5fc93ce8b3602cf1105dee690b53a2e3ab58ccf4fafc9b7bf7b1e42 SHA512 faf5e627979e5b3500ca99af9eaf4d0b3b362ffed25be809f8e129f841227bbdd881750b3f18d7cd2c997c58e98b7e7890e69f2696b51b748bac82a245de1379 WHIRLPOOL d120d61750414f765097afdf93e1977846d41607aba77047ae8140a4c318ce1ccedfbbabcd850369f1284ed5e37ef6946252ff150d21cadc5a91e6b0f41684cc +MISC metadata.xml 256 SHA256 cbca1ae57df68811dc0f0eeceb7449e69bc046966ad0feff3279e148f7db2f18 SHA512 155f3cbb14ae54e9dfb98e954f6bdf7f23bf5654ae2d00549f7722085a7243d934dfd99d6f1325b00dcaeb50c5344e818e602dc4e2fe47dc7aeb1fdb77668521 WHIRLPOOL 37d54b13f923df58d35217014422b6b484597ce1f80f39a4c6d8a4906d3c5dff6d8c4e14972abb5bdc3a041006c5b691d1d284dbcab35bdffd0e6a013c110215 diff --git a/sys-process/vixie-cron/files/crontab b/sys-process/vixie-cron/files/crontab new file mode 100644 index 000000000000..15622cb83e60 --- /dev/null +++ b/sys-process/vixie-cron/files/crontab @@ -0,0 +1,15 @@ +# for vixie cron +# + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +*/15 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons +0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +0 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly diff --git a/sys-process/vixie-cron/files/crontab-3.0.1-r4 b/sys-process/vixie-cron/files/crontab-3.0.1-r4 new file mode 100644 index 000000000000..d1720d49496a --- /dev/null +++ b/sys-process/vixie-cron/files/crontab-3.0.1-r4 @@ -0,0 +1,14 @@ +# for vixie cron + +# Global variables +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +HOME=/ + +# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly +59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly +9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily +19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly +29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly +*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons diff --git a/sys-process/vixie-cron/files/crontab.5.diff b/sys-process/vixie-cron/files/crontab.5.diff new file mode 100644 index 000000000000..f50db3dc7902 --- /dev/null +++ b/sys-process/vixie-cron/files/crontab.5.diff @@ -0,0 +1,35 @@ +--- crontab.5.orig 2004-02-19 20:40:04.954132624 +0000 ++++ crontab.5 2004-02-19 20:45:27.033169168 +0000 +@@ -153,6 +153,32 @@ + ``30 4 1,15 * 5'' + would cause a command to be run at 4:30 am on the 1st and 15th of each + month, plus every Friday. ++.PP ++Instead of the first five fields, one of eight special strings may ++appear: ++.IP ++.ta 1.5i ++string meaning ++.br ++------ ------- ++.br ++@reboot Run once, at startup. ++.br ++@yearly Run once a year, "0 0 1 1 *". ++.br ++@annually (same as @yearly) ++.br ++@monthly Run once a month, "0 0 1 * *". ++.br ++@weekly Run once a week, "0 0 * * 0". ++.br ++@daily Run once a day, "0 0 * * *". ++.br ++@midnight (same as @daily) ++.br ++@hourly Run once an hour, "0 * * * *". ++.br ++.fi + .SH EXAMPLE CRON FILE + .nf + diff --git a/sys-process/vixie-cron/files/pamd.compatible b/sys-process/vixie-cron/files/pamd.compatible new file mode 100644 index 000000000000..62eb029eac54 --- /dev/null +++ b/sys-process/vixie-cron/files/pamd.compatible @@ -0,0 +1,7 @@ +#%PAM-1.0 + +account required pam_unix.so + +auth required pam_unix.so + +session optional pam_limits.so diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-basename.diff b/sys-process/vixie-cron/files/vixie-cron-4.1-basename.diff new file mode 100644 index 000000000000..c7930ddc4e97 --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-basename.diff @@ -0,0 +1,20 @@ +diff --exclude='*~' -urN vixie-cron-4.1.orig/cron.c vixie-cron-4.1/cron.c +--- vixie-cron-4.1.orig/cron.c 2005-02-23 02:05:30.730975808 -0500 ++++ vixie-cron-4.1/cron.c 2005-02-23 02:07:13.233393072 -0500 +@@ -25,6 +25,7 @@ + + #define MAIN_PROGRAM + ++#include <libgen.h> + #include "cron.h" + + enum timejump { negative, small, medium, large }; +@@ -61,7 +62,7 @@ + cron_db database; + int fd; + +- ProgramName = argv[0]; ++ ProgramName = basename(argv[0]); + + setlocale(LC_ALL, ""); + diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-commandline.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-commandline.patch new file mode 100644 index 000000000000..d204ad882aa2 --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-commandline.patch @@ -0,0 +1,13 @@ +--- entry.c.orig 2004-08-27 20:09:34.000000000 +0200 ++++ entry.c 2004-12-01 22:16:10.992268200 +0100 +@@ -336,7 +336,9 @@ + + /* If the first character of the command is '-' it is a cron option. + */ +- while ((ch = get_char(file)) == '-') { ++ ch = get_char(file); ++ Skip_Blanks(ch, file) ++ while (ch == '-') { + switch (ch = get_char(file)) { + case 'q': + e->flags |= DONT_LOG; diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-cron.deny b/sys-process/vixie-cron/files/vixie-cron-4.1-cron.deny new file mode 100644 index 000000000000..f703d5846e41 --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-cron.deny @@ -0,0 +1,4 @@ +# If for any reason you have users in the 'cron' group who should not +# be allowed to run crontab, add them to this file (one username per +# line) + diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch new file mode 100644 index 000000000000..5109554e1dd1 --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch @@ -0,0 +1,29 @@ +--- vixie-cron-4.1/crontab.c ++++ vixie-cron-4.1/crontab.c +@@ -314,8 +314,6 @@ + perror("fstat"); + goto fatal; + } +- utimebuf.actime = statbuf.st_atime; +- utimebuf.modtime = statbuf.st_mtime; + + /* Turn off signals. */ + (void)signal(SIGHUP, SIG_IGN); +@@ -374,6 +372,17 @@ + perror(Filename); + exit(ERROR_EXIT); + } ++ if (swap_uids() < OK) { ++ perror("swapping uids"); ++ exit(ERROR_EXIT); ++ } ++ utimebuf.actime = statbuf.st_atime; ++ utimebuf.modtime = statbuf.st_mtime; ++ utime(Filename, &utimebuf); ++ if (swap_uids_back() < OK) { ++ perror("swapping uids back"); ++ exit(ERROR_EXIT); ++ } + utime(Filename, &utimebuf); + again: + rewind(NewCrontab); diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-hardlink.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-hardlink.patch new file mode 100644 index 000000000000..cabdef02e67b --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-hardlink.patch @@ -0,0 +1,11 @@ +--- database.c.orig 2007-04-08 21:06:16.913019387 +0200 ++++ database.c 2007-04-08 21:06:29.489736093 +0200 +@@ -251,7 +251,7 @@ + log_it(fname, getpid(), "WRONG FILE OWNER", tabname); + goto next_crontab; + } +- if (statbuf->st_nlink != 1) { ++ if (statbuf->st_nlink != 1 && pw != NULL) { + log_it(fname, getpid(), "BAD LINK COUNT", tabname); + goto next_crontab; + } diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-pam.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-pam.patch new file mode 100644 index 000000000000..64bf67138e70 --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-pam.patch @@ -0,0 +1,67 @@ +--- vixie-cron-3.0.1.orig/Makefile Thu May 30 19:47:00 2002 ++++ vixie-cron-3.0.1/Makefile Thu May 30 20:54:46 2002 +@@ -55,7 +55,7 @@ + INCLUDE = -I. + #INCLUDE = + #<<need getopt()>> +-LIBS = ++LIBS = -lpam + #<<optimize or debug?>> + OPTIM = $(RPM_OPT_FLAGS) + #OPTIM = -g +--- vixie-cron-3.0.1.orig/do_command.c Thu May 30 19:47:00 2002 ++++ vixie-cron-3.0.1/do_command.c Thu May 30 20:55:50 2002 +@@ -25,6 +25,18 @@ + + #include "cron.h" + ++#include <security/pam_appl.h> ++static pam_handle_t *pamh = NULL; ++static const struct pam_conv conv = { ++ NULL ++}; ++#define PAM_FAIL_CHECK if (retcode != PAM_SUCCESS) { \ ++ fprintf(stderr,"\n%s\n",pam_strerror(pamh, retcode)); \ ++ syslog(LOG_ERR,"%s",pam_strerror(pamh, retcode)); \ ++ pam_end(pamh, retcode); exit(1); \ ++ } ++ ++ + static void child_process(entry *, user *); + static int safe_p(const char *, const char *); + +@@ -65,6 +77,7 @@ + int stdin_pipe[2], stdout_pipe[2]; + char *input_data, *usernm, *mailto; + int children = 0; ++ int retcode = 0; + + Debug(DPROC, ("[%ld] child_process('%s')\n", (long)getpid(), e->cmd)) + +@@ -134,6 +147,16 @@ + *p = '\0'; + } + ++ ++ retcode = pam_start("cron", usernm, &conv, &pamh); ++ PAM_FAIL_CHECK; ++ retcode = pam_acct_mgmt(pamh, PAM_SILENT); ++ PAM_FAIL_CHECK; ++ retcode = pam_open_session(pamh, PAM_SILENT); ++ PAM_FAIL_CHECK; ++ retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED | PAM_SILENT); ++ PAM_FAIL_CHECK; ++ + /* fork again, this time so we can exec the user's command. + */ + switch (vfork()) { +@@ -507,6 +530,9 @@ + Debug(DPROC, (", dumped core")) + Debug(DPROC, ("\n")) + } ++ pam_setcred(pamh, PAM_DELETE_CRED | PAM_SILENT); ++ retcode = pam_close_session(pamh, PAM_SILENT); ++ pam_end(pamh, retcode); + } + + static int diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-selinux-1.diff b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux-1.diff new file mode 100644 index 000000000000..ec2493e8c3ca --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux-1.diff @@ -0,0 +1,144 @@ +diff -purN vixie-cron-4.1.orig/Makefile vixie-cron-4.1/Makefile +--- vixie-cron-4.1.orig/Makefile 2004-08-27 14:09:33.000000000 -0400 ++++ vixie-cron-4.1/Makefile 2008-08-25 15:17:20.062720415 -0400 +@@ -68,7 +68,8 @@ LINTFLAGS = -hbxa $(INCLUDE) $(DEBUGGING + #<<want to use a nonstandard CC?>> + CC = gcc -Wall -Wno-unused -Wno-comment + #<<manifest defines>> +-DEFS = ++DEFS = -s -DWITH_SELINUX ++LIBS += -lselinux + #(SGI IRIX systems need this) + #DEFS = -D_BSD_SIGNALS -Dconst= + #<<the name of the BSD-like install program>> +diff -purN vixie-cron-4.1.orig/database.c vixie-cron-4.1/database.c +--- vixie-cron-4.1.orig/database.c 2004-08-27 14:09:34.000000000 -0400 ++++ vixie-cron-4.1/database.c 2008-08-27 08:19:37.948930858 -0400 +@@ -28,6 +28,16 @@ static char rcsid[] = "# $Id$ + + #include "cron.h" + ++#ifdef WITH_SELINUX ++#include <selinux/selinux.h> ++#include <selinux/flask.h> ++#include <selinux/av_permissions.h> ++#include <selinux/get_context_list.h> ++#define SYSUSERNAME "system_u" ++#else ++#define SYSUSERNAME "*system*" ++#endif ++ + #define TMAX(a,b) ((a)>(b)?(a):(b)) + + static void process_crontab(const char *, const char *, +@@ -183,7 +193,7 @@ process_crontab(const char *uname, const + if (fname == NULL) { + /* must be set to something for logging purposes. + */ +- fname = "*system*"; ++ fname = SYSUSERNAME; + } else if ((pw = getpwnam(uname)) == NULL) { + /* file doesn't have a user in passwd file. + */ +@@ -245,6 +255,56 @@ process_crontab(const char *uname, const + free_user(u); + log_it(fname, getpid(), "RELOAD", tabname); + } ++#ifdef WITH_SELINUX ++ if (is_selinux_enabled()) { ++ security_context_t file_context=NULL; ++ security_context_t user_context=NULL; ++ struct av_decision avd; ++ int retval=0; ++ char *seuser=NULL; ++ char *level=NULL; ++ ++ if (fgetfilecon(crontab_fd, &file_context) < OK) { ++ log_it(fname, getpid(), "getfilecon FAILED", tabname); ++ goto next_crontab; ++ } ++ ++ /* ++ * Since crontab files are not directly executed, ++ * crond must ensure that the crontab file has ++ * a context that is appropriate for the context of ++ * the user cron job. It performs an entrypoint ++ * permission check for this purpose. ++ */ ++ if (getseuserbyname(fname, &seuser, &level) < 0) { ++ log_it(fname, getpid(), "NO SEUSER", tabname); ++ goto next_crontab; ++ } ++ ++ if (get_default_context_with_level(seuser, level, NULL, &user_context) < 0) { ++ log_it(fname, getpid(), "NO CONTEXT", tabname); ++ freecon(file_context); ++ free(seuser); ++ free(level); ++ goto next_crontab; ++ } ++ ++ retval = security_compute_av(user_context, ++ file_context, ++ SECCLASS_FILE, ++ FILE__ENTRYPOINT, ++ &avd); ++ freecon(user_context); ++ freecon(file_context); ++ free(seuser); ++ free(level); ++ ++ if (retval || ((FILE__ENTRYPOINT & avd.allowed) != FILE__ENTRYPOINT)) { ++ log_it(fname, getpid(), "ENTRYPOINT FAILED", tabname); ++ goto next_crontab; ++ } ++ } ++#endif + u = load_user(crontab_fd, pw, fname); + if (u != NULL) { + u->mtime = statbuf->st_mtime; +diff -purN vixie-cron-4.1.orig/do_command.c vixie-cron-4.1/do_command.c +--- vixie-cron-4.1.orig/do_command.c 2004-08-27 14:09:34.000000000 -0400 ++++ vixie-cron-4.1/do_command.c 2008-08-25 15:43:43.289174371 -0400 +@@ -25,6 +25,11 @@ static char rcsid[] = "# $Id$ + + #include "cron.h" + ++#ifdef WITH_SELINUX ++#include <selinux/selinux.h> ++#include <selinux/get_context_list.h> ++#endif ++ + static void child_process(entry *, user *); + static int safe_p(const char *, const char *); + +@@ -265,6 +270,29 @@ child_process(entry *e, user *u) { + _exit(OK_EXIT); + } + # endif /*DEBUGGING*/ ++#ifdef WITH_SELINUX ++ if (is_selinux_enabled()) { ++ char *seuser=NULL; ++ char *level=NULL; ++ security_context_t scontext; ++ ++ if (getseuserbyname(u->name, &seuser, &level) < 0) { ++ fprintf(stderr, "getseuserbyname: Could not determine seuser for user %s\n", u->name); ++ _exit(ERROR_EXIT); ++ } ++ if (get_default_context_with_level(seuser, level, NULL, &scontext) < 0) { ++ fprintf(stderr, "get_default_context_with_level: could not get security context for user %s, seuser %s\n", u->name, seuser); ++ _exit(ERROR_EXIT); ++ } ++ if (setexeccon(scontext) < 0) { ++ fprintf(stderr, "setexeccon: Could not set exec context to %s for user %s\n", scontext, u->name); ++ _exit(ERROR_EXIT); ++ } ++ free(seuser); ++ free(level); ++ freecon(scontext); ++ } ++#endif + execle(shell, shell, "-c", e->cmd, (char *)0, e->envp); + fprintf(stderr, "execl: couldn't exec `%s'\n", shell); + perror("execl"); diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-selinux-2.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux-2.patch new file mode 100644 index 000000000000..2341d092387d --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux-2.patch @@ -0,0 +1,225 @@ +diff -ur vixie-cron-4.1/Makefile vixie-cron-4.1-selinux/Makefile +--- vixie-cron-4.1/Makefile 2004-08-28 02:09:33.000000000 +0800 ++++ vixie-cron-4.1-selinux/Makefile 2017-04-26 22:16:53.321394815 +0800 +@@ -68,7 +68,8 @@ + #<<want to use a nonstandard CC?>> + CC = gcc -Wall -Wno-unused -Wno-comment + #<<manifest defines>> +-DEFS = ++DEFS = -s -DWITH_SELINUX ++LIBS += -lselinux + #(SGI IRIX systems need this) + #DEFS = -D_BSD_SIGNALS -Dconst= + #<<the name of the BSD-like install program>> +diff -ur vixie-cron-4.1/database.c vixie-cron-4.1-selinux/database.c +--- vixie-cron-4.1/database.c 2004-08-28 02:09:34.000000000 +0800 ++++ vixie-cron-4.1-selinux/database.c 2017-04-27 01:31:34.757942605 +0800 +@@ -28,6 +28,15 @@ + + #include "cron.h" + ++#ifdef WITH_SELINUX ++#include <selinux/selinux.h> ++#include <selinux/context.h> ++#include <selinux/get_context_list.h> ++#define SYSUSERNAME "system_u" ++#else ++#define SYSUSERNAME "*system*" ++#endif ++ + #define TMAX(a,b) ((a)>(b)?(a):(b)) + + static void process_crontab(const char *, const char *, +@@ -183,7 +192,7 @@ + if (fname == NULL) { + /* must be set to something for logging purposes. + */ +- fname = "*system*"; ++ fname = SYSUSERNAME; + } else if ((pw = getpwnam(uname)) == NULL) { + /* file doesn't have a user in passwd file. + */ +@@ -245,6 +254,117 @@ + free_user(u); + log_it(fname, getpid(), "RELOAD", tabname); + } ++#ifdef WITH_SELINUX ++ if (is_selinux_enabled()) { ++ security_context_t file_context=NULL; ++ security_context_t user_context=NULL; ++ context_t current_context = NULL; ++ char *current_context_str = NULL; ++ struct av_decision avd; ++ int retval=0; ++ char *seuser=NULL; ++ char *level=NULL; ++ int sys_user = 0; ++ ++ sys_user = strcmp(SYSUSERNAME, fname); ++ ++ if (fgetfilecon(crontab_fd, &file_context) < OK) { ++ log_it(fname, getpid(), "getfilecon FAILED", tabname); ++ goto next_crontab; ++ } ++ ++ if (sys_user != 0) { ++ if (getseuserbyname(fname, &seuser, &level) < 0) { ++ log_it(fname, getpid(), "NO SEUSER", tabname); ++ goto next_crontab; ++ } ++ } else { ++ if (getcon(¤t_context_str) < 0) { ++ log_it(fname, getpid(), "getcon FAILED", tabname); ++ goto next_crontab; ++ } ++ ++ current_context = context_new(current_context_str); ++ if (current_context == 0) { ++ log_it(fname, getpid(), "context new FAILED", tabname); ++ freecon(current_context_str); ++ goto next_crontab; ++ } ++ ++ seuser = context_user_get(current_context); ++ level = context_range_get(current_context); ++ } ++ ++ if (get_default_context_with_level(seuser, level, NULL, &user_context) < 0) { ++ log_it(fname, getpid(), "NO CONTEXT", tabname); ++ freecon(file_context); ++ if (sys_user != 0) { ++ free(seuser); ++ free(level); ++ } ++ freecon(current_context_str); ++ context_free(current_context); ++ goto next_crontab; ++ } ++ ++ /* ++ * Since crontab files are not directly executed, ++ * crond must ensure that the crontab file has ++ * a context that is appropriate for the context of ++ * the user cron job. It performs an entrypoint ++ * permission check for this purpose. ++ */ ++ security_class_t file_class; ++ access_vector_t entrypoint_bit; ++ file_class = string_to_security_class("file"); ++ if (file_class == 0) { ++ log_it(fname, getpid(), "file CLASS NOT DEFINED", tabname); ++ freecon(current_context_str); ++ context_free(current_context); ++ freecon(user_context); ++ freecon(file_context); ++ if (sys_user != 0) { ++ free(seuser); ++ free(level); ++ } ++ goto next_crontab; ++ } ++ ++ entrypoint_bit = string_to_av_perm(file_class, "entrypoint"); ++ if (entrypoint_bit == 0) { ++ log_it(fname, getpid(), "file:entrypoint AV NOT DEFINED", tabname); ++ freecon(current_context_str); ++ context_free(current_context); ++ freecon(user_context); ++ freecon(file_context); ++ if (sys_user != 0) { ++ free(seuser); ++ free(level); ++ } ++ goto next_crontab; ++ } ++ ++ retval = security_compute_av_raw(user_context, ++ file_context, ++ file_class, ++ entrypoint_bit, ++ &avd); ++ ++ freecon(user_context); ++ freecon(file_context); ++ if (sys_user != 0) { ++ free(seuser); ++ free(level); ++ } ++ context_free(current_context); ++ freecon(current_context_str); ++ ++ if (retval || ((entrypoint_bit & avd.allowed) != entrypoint_bit)) { ++ log_it(fname, getpid(), "ENTRYPOINT FAILED", tabname); ++ goto next_crontab; ++ } ++ } ++#endif + u = load_user(crontab_fd, pw, fname); + if (u != NULL) { + u->mtime = statbuf->st_mtime; +diff -ur vixie-cron-4.1/do_command.c vixie-cron-4.1-selinux/do_command.c +--- vixie-cron-4.1/do_command.c 2004-08-28 02:09:34.000000000 +0800 ++++ vixie-cron-4.1-selinux/do_command.c 2017-04-27 01:30:49.045144698 +0800 +@@ -25,6 +25,12 @@ + + #include "cron.h" + ++#ifdef WITH_SELINUX ++#include <selinux/selinux.h> ++#include <selinux/context.h> ++#include <selinux/get_context_list.h> ++#endif ++ + static void child_process(entry *, user *); + static int safe_p(const char *, const char *); + +@@ -265,6 +271,49 @@ + _exit(OK_EXIT); + } + # endif /*DEBUGGING*/ ++#ifdef WITH_SELINUX ++ if (is_selinux_enabled()) { ++ char *seuser = NULL; ++ char *level = NULL; ++ char *current_context_str = NULL; ++ security_context_t scontext; ++ context_t current_context = NULL; ++ ++ if (strcmp("system_u", u->name) != 0) { ++ if (getseuserbyname(u->name, &seuser, &level) < 0) { ++ fprintf(stderr, "getseuserbyname: Could not determine seuser for user %s\n", u->name); ++ _exit(ERROR_EXIT); ++ } ++ } else { ++ if (getcon(¤t_context_str) < 0) { ++ fprintf(stderr, "getcon FAILED\n"); ++ _exit(ERROR_EXIT); ++ } ++ ++ current_context = context_new(current_context_str); ++ if (current_context == NULL) { ++ fprintf(stderr, "failed to create new context: %s\n", current_context_str); ++ freecon(current_context_str); ++ _exit(ERROR_EXIT); ++ } ++ ++ seuser = context_user_get(current_context); ++ } ++ ++ if (get_default_context_with_level(seuser, level, NULL, &scontext) < 0) { ++ fprintf(stderr, "get_default_context_with_level: could not get security context for user %s, seuser %s\n", u->name, seuser); ++ _exit(ERROR_EXIT); ++ } ++ ++ if (setexeccon(scontext) < 0) { ++ fprintf(stderr, "setexeccon: Could not set exec context to %s for user %s\n", scontext, u->name); ++ _exit(ERROR_EXIT); ++ } ++ free(seuser); ++ free(level); ++ freecon(scontext); ++ } ++#endif + execle(shell, shell, "-c", e->cmd, (char *)0, e->envp); + fprintf(stderr, "execl: couldn't exec `%s'\n", shell); + perror("execl"); diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-selinux.diff b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux.diff new file mode 100644 index 000000000000..a4621e2530da --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-selinux.diff @@ -0,0 +1,117 @@ +--- vixie-cron-3.0.1/Makefile.selinux 2003-05-20 14:52:06.000000000 -0400 ++++ vixie-cron-3.0.1/Makefile 2003-05-20 14:52:21.000000000 -0400 +@@ -71,7 +71,8 @@ LINTFLAGS = -hbxa $(INCLUDE) $(COMPAT) $ + #<<want to use a nonstandard CC?>> + #CC = vcc + #<<manifest defines>> +-DEFS = ++DEFS = -s -DWITH_SELINUX ++LIBS += -lselinux + #(SGI IRIX systems need this) + #DEFS = -D_BSD_SIGNALS -Dconst= + #<<the name of the BSD-like install program>> +--- vixie-cron-3.0.1/database.c.selinux 2003-05-20 14:52:56.000000000 -0400 ++++ vixie-cron-3.0.1/database.c 2003-05-23 13:27:24.898020960 -0400 +@@ -28,6 +28,15 @@ + + #include "cron.h" + ++#ifdef WITH_SELINUX ++#include <selinux/selinux.h> ++#include <selinux/flask.h> ++#include <selinux/av_permissions.h> ++#define SYSUSERNAME "system_u" ++#else ++#define SYSUSERNAME "*system*" ++#endif ++ + #define TMAX(a,b) ((a)>(b)?(a):(b)) + + static void process_crontab(const char *, const char *, +@@ -217,7 +226,7 @@ + if (fname == NULL) { + /* must be set to something for logging purposes. + */ +- fname = "*system*"; ++ fname = SYSUSERNAME; + } else if ((pw = getpwnam(uname)) == NULL) { + /* file doesn't have a user in passwd file. + */ +@@ -279,6 +288,43 @@ + free_user(u); + log_it(fname, getpid(), "RELOAD", tabname); + } ++#ifdef WITH_SELINUX ++ if (is_selinux_enabled()) { ++ security_context_t file_context=NULL; ++ security_context_t user_context=NULL; ++ struct av_decision avd; ++ int retval=0; ++ ++ if (fgetfilecon(crontab_fd, &file_context) < OK) { ++ log_it(fname, getpid(), "getfilecon FAILED", tabname); ++ goto next_crontab; ++ } ++ ++ /* ++ * Since crontab files are not directly executed, ++ * crond must ensure that the crontab file has ++ * a context that is appropriate for the context of ++ * the user cron job. It performs an entrypoint ++ * permission check for this purpose. ++ */ ++ if (get_default_context(fname, NULL, &user_context)) { ++ log_it(fname, getpid(), "NO CONTEXT", tabname); ++ freecon(file_context); ++ goto next_crontab; ++ } ++ retval = security_compute_av(user_context, ++ file_context, ++ SECCLASS_FILE, ++ FILE__ENTRYPOINT, ++ &avd); ++ freecon(user_context); ++ freecon(file_context); ++ if (retval || ((FILE__ENTRYPOINT & avd.allowed) != FILE__ENTRYPOINT)) { ++ log_it(fname, getpid(), "ENTRYPOINT FAILED", tabname); ++ goto next_crontab; ++ } ++ } ++#endif + u = load_user(crontab_fd, pw, fname); + if (u != NULL) { + u->mtime = statbuf->st_mtime; +--- vixie-cron-3.0.1/do_command.c.selinux 2003-05-20 14:53:12.000000000 -0400 ++++ vixie-cron-3.0.1/do_command.c 2003-05-20 14:58:06.000000000 -0400 +@@ -25,6 +25,10 @@ + + #include "cron.h" + ++#ifdef WITH_SELINUX ++#include <selinux/selinux.h> ++#endif ++ + static void child_process(entry *, user *); + static int safe_p(const char *, const char *); + +@@ -265,6 +269,20 @@ + _exit(OK_EXIT); + } + # endif /*DEBUGGING*/ ++#ifdef WITH_SELINUX ++ if (is_selinux_enabled()) { ++ security_context_t scontext; ++ if (get_default_context(u->name, NULL, &scontext)) { ++ fprintf(stderr, "execle_secure: couldn't get security context for user %s\n", u->name); ++ _exit(ERROR_EXIT); ++ } ++ if (setexeccon(scontext) < 0) { ++ fprintf(stderr, "Could not set exec context to %s for user %s\n", scontext,u->name); ++ _exit(ERROR_EXIT); ++ } ++ freecon(scontext); ++ } ++#endif + execle(shell, shell, "-c", e->cmd, (char *)0, e->envp); + fprintf(stderr, "execl: couldn't exec `%s'\n", shell); + perror("execl"); diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch new file mode 100644 index 000000000000..42fd8e13edd9 --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch @@ -0,0 +1,29 @@ +--- vixie-cron-4.1/do_command.c 2006-05-25 16:44:26.000000000 +0400 ++++ vixie-cron-4.1.lk/do_command.c 2006-05-25 16:42:25.000000000 +0400 +@@ -240,12 +240,23 @@ + } + } + #else +- setgid(e->pwd->pw_gid); ++ + initgroups(usernm, e->pwd->pw_gid); + #if (defined(BSD)) && (BSD >= 199103) + setlogin(usernm); + #endif /* BSD */ +- setuid(e->pwd->pw_uid); /* we aren't root after this... */ ++ // setuid(e->pwd->pw_uid); /* we aren't root after this... */ ++ ++ if ( setgid(e->pwd->pw_gid) == -1 ) { ++ fprintf(stderr,"can't set gid for %s\n", e->pwd->pw_name); ++ _exit(1); ++ } ++ ++ if ( setuid(e->pwd->pw_uid) == -1 ) { ++ fprintf(stderr,"can't set uid for %s\n", e->pwd->pw_name); ++ _exit(1); ++ } ++ + + #endif /* LOGIN_CAP */ + chdir(env_get("HOME", e->envp)); + diff --git a/sys-process/vixie-cron/files/vixie-cron.rc7 b/sys-process/vixie-cron/files/vixie-cron.rc7 new file mode 100644 index 000000000000..0bb47f4af8dc --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron.rc7 @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/sbin/cron +pidfile=/var/run/cron.pid + +depend() { + use clock logger + need localmount + provide cron +} diff --git a/sys-process/vixie-cron/files/vixie-cron.service b/sys-process/vixie-cron/files/vixie-cron.service new file mode 100644 index 000000000000..66c3862e47ed --- /dev/null +++ b/sys-process/vixie-cron/files/vixie-cron.service @@ -0,0 +1,11 @@ +[Unit] +Description=Vixie Cron Daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/cron +ExecStop=/bin/kill -TERM $MAINPID +IgnoreSIGPIPE=false + +[Install] +WantedBy=multi-user.target diff --git a/sys-process/vixie-cron/metadata.xml b/sys-process/vixie-cron/metadata.xml new file mode 100644 index 000000000000..a22ac52b016b --- /dev/null +++ b/sys-process/vixie-cron/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cron-bugs@gentoo.org</email> + <name>Gentoo Cron Project</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/vixie-cron/vixie-cron-4.1-r14.ebuild b/sys-process/vixie-cron/vixie-cron-4.1-r14.ebuild new file mode 100644 index 000000000000..c0ddaff47e92 --- /dev/null +++ b/sys-process/vixie-cron/vixie-cron-4.1-r14.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit cron toolchain-funcs pam eutils flag-o-matic user systemd + +# no useful homepage, bug #65898 +HOMEPAGE="ftp://ftp.isc.org/isc/cron/" +DESCRIPTION="Paul Vixie's cron daemon, a fully featured crond implementation" + +SELINUX_PATCH="${P}-selinux-1.diff" +GENTOO_PATCH_REV="r4" + +SRC_URI="mirror://gentoo/${P}.tar.bz2 + mirror://gentoo/${P}-gentoo-${GENTOO_PATCH_REV}.patch.bz2" + +LICENSE="ISC BSD-2 BSD" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="selinux pam debug" + +DEPEND="selinux? ( sys-libs/libselinux ) + pam? ( virtual/pam )" + +RDEPEND="selinux? ( sys-libs/libselinux ) + pam? ( virtual/pam )" + +#vixie-cron supports /etc/crontab +CRON_SYSTEM_CRONTAB="yes" + +pkg_setup() { + enewgroup crontab +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${WORKDIR}"/${P}-gentoo-${GENTOO_PATCH_REV}.patch + epatch "${FILESDIR}"/crontab.5.diff + epatch "${FILESDIR}"/${P}-commandline.patch + epatch "${FILESDIR}"/${P}-basename.diff + epatch "${FILESDIR}"/${P}-setuid_check.patch + epatch "${FILESDIR}"/${P}-hardlink.patch + epatch "${FILESDIR}"/${P}-crontabrace.patch + use pam && epatch "${FILESDIR}"/${P}-pam.patch + use selinux && epatch "${FILESDIR}"/${SELINUX_PATCH} +} + +src_compile() { + use debug && append-flags -DDEBUGGING + + sed -i -e "s:gcc \(-Wall.*\):$(tc-getCC) \1 ${CFLAGS}:" \ + -e "s:^\(LDFLAGS[ \t]\+=\).*:\1 ${LDFLAGS}:" Makefile \ + || die "sed Makefile failed" + + emake || die "emake failed" +} + +src_install() { + docrondir -m 1730 -o root -g crontab + docron + docrontab -m 2755 -o root -g crontab + + # /etc stuff + insinto /etc + newins "${FILESDIR}"/crontab-3.0.1-r4 crontab + newins "${FILESDIR}"/${P}-cron.deny cron.deny + + keepdir /etc/cron.d + newpamd "${FILESDIR}"/pamd.compatible cron + newinitd "${FILESDIR}"/vixie-cron.rc7 vixie-cron + + # doc stuff + doman crontab.1 crontab.5 cron.8 + dodoc "${FILESDIR}"/crontab + dodoc CHANGES CONVERSION FEATURES MAIL README THANKS + + systemd_dounit "${FILESDIR}/${PN}.service" +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-4.1-r10" + fix_spool_dir_perms=$? +} + +pkg_postinst() { + if [[ -f ${ROOT}/etc/init.d/vcron ]] + then + ewarn "Please run:" + ewarn "rc-update del vcron" + ewarn "rc-update add vixie-cron default" + fi + + # bug 71326 + if [[ -u ${ROOT}/etc/pam.d/cron ]] ; then + echo + ewarn "Warning: previous ebuilds didn't reset permissions prior" + ewarn "to installing crontab, resulting in /etc/pam.d/cron being" + ewarn "installed with the SUID and executable bits set." + ewarn + ewarn "Run the following as root to set the proper permissions:" + ewarn " chmod 0644 /etc/pam.d/cron" + echo + fi + + # bug 164466 + if [[ $fix_spool_dir_perms = 0 ]] ; then + echo + ewarn "Previous ebuilds didn't correctly set permissions on" + ewarn "the crontabs spool directory. Proper permissions are" + ewarn "now being set on ${ROOT}var/spool/cron/crontabs/" + ewarn "Look at this directory if you have a specific configuration" + ewarn "that needs special ownerships or permissions." + echo + chmod 1730 "${ROOT}/var/spool/cron/crontabs" || die "chmod failed" + chgrp -R crontab "${ROOT}/var/spool/cron/crontabs" || die "chgrp failed" + cd "${ROOT}/var/spool/cron/crontabs/" + for cronfile in * ; do + [[ ! -f $cronfile ]] || chown "$cronfile:crontab" "$cronfile" \ + || ewarn "chown failed on $cronfile, you probably have an orphan file." + done + fi + + cron_pkg_postinst +} diff --git a/sys-process/vixie-cron/vixie-cron-4.1-r15.ebuild b/sys-process/vixie-cron/vixie-cron-4.1-r15.ebuild new file mode 100644 index 000000000000..1e06308a812f --- /dev/null +++ b/sys-process/vixie-cron/vixie-cron-4.1-r15.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit cron toolchain-funcs pam eutils flag-o-matic user systemd + +# no useful homepage, bug #65898 +HOMEPAGE="ftp://ftp.isc.org/isc/cron/" +DESCRIPTION="Paul Vixie's cron daemon, a fully featured crond implementation" + +SELINUX_PATCH="${P}-selinux-2.patch" +GENTOO_PATCH_REV="r4" + +SRC_URI="mirror://gentoo/${P}.tar.bz2 + mirror://gentoo/${P}-gentoo-${GENTOO_PATCH_REV}.patch.bz2" + +LICENSE="ISC BSD-2 BSD" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="selinux pam debug" + +DEPEND="selinux? ( sys-libs/libselinux ) + pam? ( virtual/pam )" + +RDEPEND="selinux? ( sys-libs/libselinux ) + pam? ( virtual/pam )" + +#vixie-cron supports /etc/crontab +CRON_SYSTEM_CRONTAB="yes" + +pkg_setup() { + enewgroup crontab +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${WORKDIR}"/${P}-gentoo-${GENTOO_PATCH_REV}.patch + epatch "${FILESDIR}"/crontab.5.diff + epatch "${FILESDIR}"/${P}-commandline.patch + epatch "${FILESDIR}"/${P}-basename.diff + epatch "${FILESDIR}"/${P}-setuid_check.patch + epatch "${FILESDIR}"/${P}-hardlink.patch + epatch "${FILESDIR}"/${P}-crontabrace.patch + use pam && epatch "${FILESDIR}"/${P}-pam.patch + use selinux && epatch "${FILESDIR}"/${SELINUX_PATCH} +} + +src_compile() { + use debug && append-flags -DDEBUGGING + + sed -i -e "s:gcc \(-Wall.*\):$(tc-getCC) \1 ${CFLAGS}:" \ + -e "s:^\(LDFLAGS[ \t]\+=\).*:\1 ${LDFLAGS}:" Makefile \ + || die "sed Makefile failed" + + emake || die "emake failed" +} + +src_install() { + docrondir -m 1730 -o root -g crontab + docron + docrontab -m 2755 -o root -g crontab + + # /etc stuff + insinto /etc + newins "${FILESDIR}"/crontab-3.0.1-r4 crontab + newins "${FILESDIR}"/${P}-cron.deny cron.deny + + keepdir /etc/cron.d + newpamd "${FILESDIR}"/pamd.compatible cron + newinitd "${FILESDIR}"/vixie-cron.rc7 vixie-cron + + # doc stuff + doman crontab.1 crontab.5 cron.8 + dodoc "${FILESDIR}"/crontab + dodoc CHANGES CONVERSION FEATURES MAIL README THANKS + + systemd_dounit "${FILESDIR}/${PN}.service" +} + +pkg_preinst() { + has_version "<${CATEGORY}/${PN}-4.1-r10" + fix_spool_dir_perms=$? +} + +pkg_postinst() { + if [[ -f ${ROOT}/etc/init.d/vcron ]] + then + ewarn "Please run:" + ewarn "rc-update del vcron" + ewarn "rc-update add vixie-cron default" + fi + + # bug 71326 + if [[ -u ${ROOT}/etc/pam.d/cron ]] ; then + echo + ewarn "Warning: previous ebuilds didn't reset permissions prior" + ewarn "to installing crontab, resulting in /etc/pam.d/cron being" + ewarn "installed with the SUID and executable bits set." + ewarn + ewarn "Run the following as root to set the proper permissions:" + ewarn " chmod 0644 /etc/pam.d/cron" + echo + fi + + # bug 164466 + if [[ $fix_spool_dir_perms = 0 ]] ; then + echo + ewarn "Previous ebuilds didn't correctly set permissions on" + ewarn "the crontabs spool directory. Proper permissions are" + ewarn "now being set on ${ROOT}var/spool/cron/crontabs/" + ewarn "Look at this directory if you have a specific configuration" + ewarn "that needs special ownerships or permissions." + echo + chmod 1730 "${ROOT}/var/spool/cron/crontabs" || die "chmod failed" + chgrp -R crontab "${ROOT}/var/spool/cron/crontabs" || die "chgrp failed" + cd "${ROOT}/var/spool/cron/crontabs/" + for cronfile in * ; do + [[ ! -f $cronfile ]] || chown "$cronfile:crontab" "$cronfile" \ + || ewarn "chown failed on $cronfile, you probably have an orphan file." + done + fi + + cron_pkg_postinst +} diff --git a/sys-process/wait_on_pid/Manifest b/sys-process/wait_on_pid/Manifest new file mode 100644 index 000000000000..41d8e4ffc2c8 --- /dev/null +++ b/sys-process/wait_on_pid/Manifest @@ -0,0 +1,6 @@ +DIST wait_on_pid-0.0.2.tar.bz2 7139 SHA256 5bb33865c294378f3217facc183c0284dd6bd81e475fff715f03eeb5d47e40f8 SHA512 22e3481736b90b1b3152dc5c07e766892d42de199669909752fcbcfcd94ec9c3a143d1474c9533cf3494931e19e4ab63f7f4dcef7fffe7e2ac3d803c22852e72 WHIRLPOOL 240d263148009e447a522bf4bf53b2dd5e62e14f5a2827091627b4435cdec56c2720032bb0b0f8e2f2031366921d37989149ba77ccfbb052c364ce69ac73e7e6 +EBUILD wait_on_pid-0.0.2-r1.ebuild 563 SHA256 e6e60abfb52056bf9d4f794d2b28a42b64e8f382516b117361a3e5306597a992 SHA512 c131be2de721d4036f477e4cea73d5f674f774c7a784c243155629b13d2d737c1db5b290e5c774b58a438558cebc90f76ca80dabb96a5dde16b14340875111b2 WHIRLPOOL a1a4af67feb6dac4a0e81bbcf3dfbb37181332ac49f96806881f46afabfc9f70b0ad4babe99cc96db7f9be33905a6afd9367fa12314db425e32dd0e4bd5f06e3 +EBUILD wait_on_pid-0.0.2.ebuild 571 SHA256 fda6349ec56a69b414c3b9f56a20dfac22e4c9d3f74119daa66077c9bec9b894 SHA512 37d89abf8028af34e2bef6ffc1088cd0d6150a562185f6862f33aa6c254bf3aece041bc514eb889dedb12db20c52589838006a73639d6a782cbfc8377b82476f WHIRLPOOL 592f37b664b1df5ca577a94b09106ede97fe6a7970876c192d5038908b86fb2c8e1e289314088a964015008983f91451ce851298af95bfcbbb57b2421f85dc2c +MISC ChangeLog 2743 SHA256 bb22edcdf36e18d25298b0075864d6171524fc456d88234e5a2930ac81a9c53f SHA512 ba4fbba0297e2e13ccf25187f1bd50f7181a327138f0e8e04cd98bd7532d09887066372b1998591ff5da250b8c821e1b8683397672a75fc3faf4705d94b7fccd WHIRLPOOL 9e4565a9418cc6f7760b46c51001822dd6cb00663265e9a3097b432c53cddae0bece6b09858534b544677c572ba9a7b374e089e214b3e1609aa7fd5008be1969 +MISC ChangeLog-2015 1548 SHA256 685fb7be6c28f15f4694a2abb05bdf7cb4a5b92b8d49b9196ce2fbded9d59548 SHA512 20697649c65e13471f1502338959563a23fe50439d36bf2bbdeed4c508a47e87fdf8b2e2353cdaadc9551f3a48b3960ae6d96559a6c219f579c44fe8487b00a5 WHIRLPOOL 8d4684ed291b97d1fc5e5f2eae250dc8111ec789ca1aa0af60d0439ed9cd03c9ba197776a39f93d9aa3975411e84e5212012503818d6c09704d307f4fc2d3841 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/sys-process/wait_on_pid/metadata.xml b/sys-process/wait_on_pid/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/sys-process/wait_on_pid/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/sys-process/wait_on_pid/wait_on_pid-0.0.2-r1.ebuild b/sys-process/wait_on_pid/wait_on_pid-0.0.2-r1.ebuild new file mode 100644 index 000000000000..96ed94e06c9c --- /dev/null +++ b/sys-process/wait_on_pid/wait_on_pid-0.0.2-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +DESCRIPTION="small utility to wait for an arbitrary process to exit" +HOMEPAGE="https://dev.gentoo.org/~zzam/wait_on_pid/" +SRC_URI="mirror://gentoo/$P.tar.bz2 https://dev.gentoo.org/~zzam/wait_on_pid/$P.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + default + tc-export CC +} + +src_install() { + default + dobin wait_on_pid +} diff --git a/sys-process/wait_on_pid/wait_on_pid-0.0.2.ebuild b/sys-process/wait_on_pid/wait_on_pid-0.0.2.ebuild new file mode 100644 index 000000000000..ff20a7fa8eed --- /dev/null +++ b/sys-process/wait_on_pid/wait_on_pid-0.0.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="small utility to wait for an arbitrary process to exit" +HOMEPAGE="https://dev.gentoo.org/~zzam/wait_on_pid/" +SRC_URI="mirror://gentoo/$P.tar.bz2 https://dev.gentoo.org/~zzam/wait_on_pid/$P.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + tc-export CC +} + +src_install() { + dobin wait_on_pid || die + dodoc README +} diff --git a/sys-process/watchpid/Manifest b/sys-process/watchpid/Manifest new file mode 100644 index 000000000000..f8694b0ac98e --- /dev/null +++ b/sys-process/watchpid/Manifest @@ -0,0 +1,5 @@ +DIST watchpid_0.1.tar.gz 36432 SHA256 f5a41188e74282bd2a37a023e0d7aeee2c347d43ee895fa020864da950e17f6c SHA512 7d4c7549e284740506f0ff10cae54be09e18058be9104cde16250ad98959b9516f44e62cb4b07ba837c4b3a12df69fc56733912e593e1ea7e3df4c427a38a3f4 WHIRLPOOL b0d6b30f7a22baf1e8332ceb8f50dd33ef6feb8aea17b13f5b365c0d73dc52d338264610da117eba059f556e7b7693df27e0157e801f750e4e5833dd91459b4a +EBUILD watchpid-0.1-r2.ebuild 502 SHA256 f7cd204e3cb72cc915d58c0964c2bece979279b6cc665a4c894318485266421a SHA512 4bf08939a1bfb8cc055abb397ec9a9a755db7ab3b84567056c76a78f95071a01104988948cbde38f8af4df8692be148dd7a0e5ed492a2793a6809ca8be8f4e9f WHIRLPOOL 9f92d6c771e8ac44fec5604918f37b98816cea1e5a0662c36ce41e3d5ab33fee1b6d178fbc578da96d3b66e3c049e92e851a99eacfbee9d1b66b47e7412457c0 +MISC ChangeLog 3368 SHA256 7a4caa386080b4b0db508fba960ff282dcffcbcaa66b74ff619866a530e00671 SHA512 670d1f272487dbe3dbaa02fb3803bd37836229a2e60a59ea28fe650eb28c652a11ccc62890f1690ba09250a45156c27e73db05468869b2e610e9cceeb4874bbf WHIRLPOOL 76a4c95873d05f328f64e7b0d467f421b7b95d56b3295f36fe5a8cc68c14044ee688e152af1572e57a46136e23b3bdecc20830a6dc67f5369f65915b2fe4077a +MISC ChangeLog-2015 1442 SHA256 9ec4ea28c25e0d1b9dca994b8e8c7ad4e44a00bb25f1958e7e6748d228d5ffcb SHA512 0b5b838824eddaa49e1a1fa324be2e8515dd9bce72408364587e81bef4376f9717f394fee95f038c0b9d203471c9b751ac37beda71aba4a8426b8d487524672d WHIRLPOOL ca95a7bb29a15542a56ae7926233ae93026dc0dab12f4dbc934a0f272b80a5c2231a1e54b4c4a144860ef0db49d696619092d4bb81d5cad2826a372490e4f475 +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/watchpid/metadata.xml b/sys-process/watchpid/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/watchpid/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> diff --git a/sys-process/watchpid/watchpid-0.1-r2.ebuild b/sys-process/watchpid/watchpid-0.1-r2.ebuild new file mode 100644 index 000000000000..93e680eadf24 --- /dev/null +++ b/sys-process/watchpid/watchpid-0.1-r2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib-minimal + +DESCRIPTION="Watches a process for termination" +SRC_URI="mirror://gentoo/${PN}_${PV}.tar.gz" +HOMEPAGE="http://www.codepark.org/" +KEYWORDS="amd64 ppc x86" + +SLOT="0" +LICENSE="GPL-2" + +DOCS=( README AUTHORS ) + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf +} + +src_compile() { + multilib-minimal_src_compile +} + +src_install() { + multilib-minimal_src_install +} diff --git a/sys-process/xjobs/Manifest b/sys-process/xjobs/Manifest new file mode 100644 index 000000000000..9ea45e982669 --- /dev/null +++ b/sys-process/xjobs/Manifest @@ -0,0 +1,5 @@ +DIST xjobs-20151016.tgz 97553 SHA256 1b80abe5effe057db21897f897842dccd76e7812c1caaa80f9b8e85cca409251 SHA512 f8df8c4f3174bde08294d925678e3e1b87e096ce8eff3425613eaf325a2cc2ee0d58f52fea01c929dba35a96879a7bb7bc23b5f1a3e64b57d38dd1daaf9839bf WHIRLPOOL e4d19ffa74dc1780d0e0a1ddd7eaee8585c520dd05343674c7798ee56949c949c5c4e7113ca16851f6eee6542f9e4bd37cd88bdaba4deb53ddf896756f77ce00 +EBUILD xjobs-20151016.ebuild 378 SHA256 1f1dfcaa06b7a13baa2a9c6403514fe76f10119895557896357441e030a94545 SHA512 ab30bd8096be711356fbff0f0099ba657f819b7abca3277db37b33cfd3067ca6c5a642e4e45c4ecc7224387e8813526ce9ca1a4f747dbcf9863f58508f820882 WHIRLPOOL ead605c747781f839bde9708776272e723a6086e8f3e48f23bf0bf0b2f73a3d7a28038da5ab592e0d6fb0d42954ee142d8eab6fd4bee621f243f6a05b59d9d06 +MISC ChangeLog 3156 SHA256 353a9ac47fb9cb07f803eac2d4a472bb8bb59bb9d0d9a2a43d6465017438f1aa SHA512 06904037181a845857fa9efca7f56a5f2d1e8b2b79de6db10e4d890443d3cce8b8933b019bd6988821d293942fffabffaf39aeedf7205adde306ab89c190f1a4 WHIRLPOOL 4af69f09e2ed1bb51dbefee3ed0a18ae9c7c39b19cf628574169d25f8efc151a08dc5e9022f04ad23563f39b5c3c614a602b74d1e15ecf4e4b442f8d19c9ae0a +MISC ChangeLog-2015 645 SHA256 931fcfc5eb14b0a8fe6e62d6e52d580c277ab2d7e571a2e448f641811ec6f82f SHA512 735540d7f6b8677f434f4682a307a6b4624765de563d4ec5d652fd33f49eb0211a2a90d034eb5dac0fec1eeef3a8a41f1dfccc583b506689db6f85413940b401 WHIRLPOOL a40a36bea9c22e6f65602d05982db0b43e8a4101165eee039ed5ed913c3f7cab667cc4bdf6ee6f1379cd1cccf69c5fa2e576e51d3613dbe77220e3d96b0d9e20 +MISC metadata.xml 252 SHA256 f12a15b7cc3ce0ff76c3dbbeba9d162cac9771fb6ecc0f965a34e93f73e67d52 SHA512 92f660063c96ac5b3e24e58733006d4a72a7e2f41605988efb575546a2539a92b1ceb3a37e018fcb5c08264a42af26950d6520ea80ba60130ad25ce6092ce742 WHIRLPOOL b7954a2a1cbccce0641aaf3dd273bf6dc64e7b5d39097eefe4d0c06eacc0b5f310db23e93a0a2fff7c8c735193acb1c5c8d4210bf77e78d457d50d05412796e0 diff --git a/sys-process/xjobs/metadata.xml b/sys-process/xjobs/metadata.xml new file mode 100644 index 000000000000..45125b9b6e99 --- /dev/null +++ b/sys-process/xjobs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + <name>Michael Orlitzky</name> + </maintainer> +</pkgmetadata> diff --git a/sys-process/xjobs/xjobs-20151016.ebuild b/sys-process/xjobs/xjobs-20151016.ebuild new file mode 100644 index 000000000000..a83a76980d50 --- /dev/null +++ b/sys-process/xjobs/xjobs-20151016.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Reads commands line by line and executes them in parallel" +HOMEPAGE="http://www.maier-komor.de/xjobs.html" +SRC_URI="http://www.maier-komor.de/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="sys-devel/flex" +RDEPEND="" |