bump(sys-apps/rng-tools): sync with upstream

This commit is contained in:
Nick Owens 2015-10-14 10:35:10 -07:00
parent aac0bd4902
commit a9dd508853
16 changed files with 255 additions and 15 deletions

View File

@ -10,4 +10,4 @@ RDEPEND=selinux? ( sec-policy/selinux-rngd )
SLOT=0
SRC_URI=mirror://sourceforge/gkernel/rng-tools-4.tar.gz
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 multilib 62927b3db3a589b0806255f3a002d5d3 systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4
_md5_=ba7760c28c160516084fb0a079d0dbf1
_md5_=613635392465996d78f4b30e82ef2fdc

View File

@ -4,10 +4,10 @@ DESCRIPTION=Daemon to use hardware random number generators
EAPI=5
HOMEPAGE=http://gkernel.sourceforge.net/
IUSE=selinux
KEYWORDS=~alpha ~amd64 ~ia64 ~ppc ~x86
KEYWORDS=~alpha amd64 ~arm ~ia64 ppc x86
LICENSE=GPL-2
RDEPEND=dev-libs/libgcrypt:0 dev-libs/libgpg-error selinux? ( sec-policy/selinux-rngd )
SLOT=0
SRC_URI=mirror://sourceforge/gkernel/rng-tools-5.tar.gz
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 multilib 62927b3db3a589b0806255f3a002d5d3 systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4
_md5_=3348d1600efddeae18c7fe783feb7949
_md5_=c0338b5506d953c036709f415fcfc3bd

View File

@ -0,0 +1,13 @@
DEFINED_PHASES=install prepare
DEPEND=dev-libs/libgcrypt:0 dev-libs/libgpg-error !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
DESCRIPTION=Daemon to use hardware random number generators
EAPI=5
HOMEPAGE=http://gkernel.sourceforge.net/
IUSE=selinux
KEYWORDS=~alpha ~amd64 ~arm ~ia64 ppc ~x86
LICENSE=GPL-2
RDEPEND=dev-libs/libgcrypt:0 dev-libs/libgpg-error selinux? ( sec-policy/selinux-rngd )
SLOT=0
SRC_URI=mirror://sourceforge/gkernel/rng-tools-5.tar.gz
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 multilib 62927b3db3a589b0806255f3a002d5d3 systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4
_md5_=3528776a300999a556131c629048a127

View File

@ -0,0 +1,13 @@
DEFINED_PHASES=install prepare
DEPEND=dev-libs/libgcrypt:0 dev-libs/libgpg-error !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.14.1:1.14 >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
DESCRIPTION=Daemon to use hardware random number generators
EAPI=5
HOMEPAGE=http://gkernel.sourceforge.net/
IUSE=selinux
KEYWORDS=~alpha ~amd64 ~arm ~ia64 ~ppc ~x86
LICENSE=GPL-2
RDEPEND=dev-libs/libgcrypt:0 dev-libs/libgpg-error selinux? ( sec-policy/selinux-rngd )
SLOT=0
SRC_URI=mirror://sourceforge/gkernel/rng-tools-5.tar.gz
_eclasses_=autotools a9597abac7226d89ad9d010abeef6cfb eutils 9fb270e417e0e83d64ca52586c4a79de libtool 52d0e17251d04645ffaa61bfdd858944 multilib 62927b3db3a589b0806255f3a002d5d3 systemd 090342761f573a8280dd5aa6b0345f3b toolchain-funcs 42408102d713fbad60ca21349865edb4
_md5_=d9a0a6cfc257856f098a194df6513e78

View File

@ -1,6 +1,26 @@
# ChangeLog for sys-apps/rng-tools
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/ChangeLog,v 1.57 2014/11/18 19:54:10 mrueg Exp $
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/ChangeLog,v 1.61 2015/07/23 19:59:40 pacho Exp $
23 Jul 2015; Pacho Ramos <pacho@gentoo.org> rng-tools-5.ebuild:
ppc stable wrt bug #555100
17 Jul 2015; NP-Hardass <NP-Hardass@gentoo.org> -files/larger-poolsize.patch,
-rng-tools-5-r1.ebuild:
Revert -r1 due to change in bug #517942. Additionally, included patch has bugs
in it and will need to be reworked if it is to be readded later.
17 Jul 2015; Ian Delaney <idella4@gentoo.org> +files/larger-poolsize.patch,
rng-tools-5-r1.ebuild, rng-tools-5.ebuild:
patch to fix Bug 517942, sourced from Debian, attached to bug #517942 by
cilly, also prompted by proxy maintainer
*rng-tools-5-r1 (17 Jul 2015)
17 Jul 2015; Ian Delaney <idella4@gentoo.org> +files/rngd-initd-r1-4.1,
+rng-tools-5-r1.ebuild, metadata.xml:
rebump; fix to init script, patch by new proxy maintainer via Bug #481254,
metadata.xml updated accordingly
*rng-tools-5 (18 Nov 2014)

View File

@ -1,12 +1,18 @@
AUX fix-textrels-on-PIC-x86.patch 1971 SHA256 55d277a1b4dfed429bf82ca430371f2487e47948630203969bb66fc63fad39cb SHA512 201300211d322ca36e945f5adf225d072881f285b4d4a8710baf1416a532386befa91eec6da7131278fb1fbcecbf67d47742e563deecfd6d363f60b477462d09 WHIRLPOOL 92f189ee66e35f4242d2d4e7b6fc7d314775cfe1c211a900a5442f82fa3c18cbb8d375d8c7b80229ee21e8ff5fa4617c56d10a787b6b08831d7ae72cca9d0c35
AUX rng-tools-5-fix-noctty.patch 2065 SHA256 cd8589748f36729d3463132cc93f85bf6165164ea3fa490b325a8c73609c7d38 SHA512 0dc1cb0385ed2c83cb9ecb07917b4a09cae656c7598230673ddaedece478eeacdcc19f835c1a001e1faee60466c36f94fdb4f3f6d646cdb93f8fbbff8eab1e4f WHIRLPOOL 9c169d2c2dc74b8aba663db9c0d76db1d832d77d3b6f45e042e3744a7936ee3ad2bc6a4cf3ed110fc99769d7ca680f2b5c028d0bf105f3ac10e022f351bd9296
AUX rng-tools-5-fix-textrels-on-PIC-x86.patch 2677 SHA256 71fac69129bf3ac6f54cabdd995db2946d5ccc279212de42608cea19fa3c2ada SHA512 8c7c6bced6e0982069ba6ef99c169609ff452a55c32543c25f198a59f81d4e976caf400867cb52bbe2996363f22943ff73c678427da43ad3a019bbe29bd29ce1 WHIRLPOOL 2346261e9891f77a48e8ea54e647fc77e40ec79d099597dec4fd06e265ac3a255eec8d6e2ed46ae00e90fd900998b48a6c3a963bb89d9b81e3cba24cefb7ba11
AUX rng-tools-5-man-fill-watermark.patch 761 SHA256 4c982ff728c40ade1382fd26fe400f90c6a9d7128d972f63d44a67b910aeacd9 SHA512 0ffe1f7a2a01526e33a287ccc6735b801431be6e66310f03c4d0098dd0c68428fc051c08a96e6ebdf6ae2bd6af2bc5f9e2ad2fe5d1dc8e81a31ddbdd1a66b68c WHIRLPOOL 1e9971cf021b3c25dfcdfb744a2cde14ec9b4c981007ca0866a6d31d352c13ae07ade7b904b539b5744067116522fc021c25f4ddd294dbd780aa3859540e5341
AUX rng-tools-5-man-rng-device.patch 394 SHA256 984726c683b9ddd3da88fb47d96439ecdd448355012bc72912b594b4dfb1a441 SHA512 bf5d521aa5a85d363836a53c7258490f22c42bbc68b60c491fde1b86fdbcc4383d83000e73c2218deee2eee1d0d91246d0d6a4d25de7fa484f55c22a37b83619 WHIRLPOOL a23fd3e56d88ee979c2537f1a7bf292a2521bd6f5df7b6baa7574b32483b025a1f1dbfc1233144fe393f0c82e0178610d0235e4063bfd479afdf3cf480764f71
AUX rngd-confd-4.1 562 SHA256 cdbd39f7446f12a9b78e87e9f135cfd0f6f364c4fa4ade0c96084b85c32afc38 SHA512 45e0e9cbe0180162f659bf05c15ee99fb8c1b80274cd8744384ba7f791b1c9a46a63e81eea665b4f492c13b7d5cc1fdb6e524a49a25af77f3791f527b31f688b WHIRLPOOL 87634cea70a1c8ffa7598cc8b0d93c79578433cc21b58bb13bc9144502b9502e2c4f151bcf282ad4ccef44a931f1be5d1e87ff7b9b6d07cfa0a4c288b4172ec3
AUX rngd-initd-4.1 897 SHA256 56780a5d0a3348a08ab19ba56e591f60f84665417ce9893d7b669fbc442bf1d4 SHA512 43d6612c6d6376a21b4522369688908e24544311632277a8dadc2a7c91ed664f7cf6610bab6592040fb10ca4adb98d2136134879bcfeeb25159c55cf9c0f6799 WHIRLPOOL c740a965b0e47dcae0d2ac01d01d3cf5e3f9ce4c5df626d75de82f3b5fe232391bafd43be099439cf6445f362ad7681d782db9497e6a13008d221fb8663579e5
AUX rngd-initd-4.1 790 SHA256 9546a7fd27d59a2900623a7a8d72ca22b3a5a719d1f0ac19253fcd46cc199b0e SHA512 6e93e5ce34b85df59579b238307368102bb36453891db90ea8930661e4fe87d525da5fcb35e4d564367e50843fa51f494e4f150c6e1dd9e8d6eadad0579b0384 WHIRLPOOL 2aa5c54e6a701d94065f29e17f4ec4e56a721a9906980a8e393a207a1a2b3429585a872b01bec72d34e44439eafb33b70c5cb16e6f6f3fb0b6e9926228779ea6
AUX rngd-initd-r1-4.1 500 SHA256 a11a8abb7bda9f826856caba999b4f394e0f013bc8f06b4f21ab25adfcc13dc3 SHA512 2da391727ce4cad0f89454e168a6af92f86ac45f42de2b5fc4fb5e364d3e23e121a06ad4e2da1cbc7d14a7bcdcea36bb60a312a06b6c3b0a90f4fec38cc76dad WHIRLPOOL f07988ffd3225d747d5f1df2346e269614925ce94e4f73d76d44b228617c7fdbfb955c781721b0c573d2704aaf57ac948b7afd6261c4281c91296f40057c2bbc
AUX rngd.service 133 SHA256 a05b1075157d39302106221594e1640479fae5dee4595de09442901a3a2d1648 SHA512 51e9ea84b624cda8d3689d6a9a8d60da4a556aa9d2a1a04e698d9a1490717aa47172e152c93711f8d04be8a5b68b1dfd568a762bd8ee7219afb7cdfff15657d2 WHIRLPOOL 093b0cd19a147abd9fc10f366c2c5a167d31b839d755cf2e56f6ae35409b6eb764db0651858d20dc95b71fe1d90b4ca33bde88053c80e40665613d132357366a
AUX test-for-argp.patch 1318 SHA256 222ee3b8bfbe4827140a67af4b8d170aaa135d5317e3a40b236f8d79a06c4274 SHA512 9418bea246052391e9dab1583a7e44c47f87c34d39860c76bf11090fd397ea70ec76cb7e4c91afbe1f18a19c6f8767e0e6ceec02fbd7ef8204e8ab168f3077d8 WHIRLPOOL a54d1e8f4d3e1070cda067120318d775f0a768836984c831cc84929801d29e5f7c694e90e96926e52af57d509a52d4340c3cf9ee847782927d3dfa16fa3f758b
DIST rng-tools-4.tar.gz 110943 SHA256 b71bdfd4222c05e8316001556be90e1606f2a1bac3efde60153bd84e873cc195 SHA512 328627a9ede924026c7a7c391b04be05f098d713d35f7f38d939d52b794853b4f6db3ae125568710ab5a59640236b343f3e9fc0f735806b020cc675c02f80b08 WHIRLPOOL da58bc7d3b7d9cdf6d83d258717f22ba3552482a690311fa2c820e4ce125a5e6c6e498e0b63461ed6c9dc16dff77b2cb47377933845fb9397efa205183346e5b
DIST rng-tools-5.tar.gz 122182 SHA256 60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e SHA512 58047c37cad4f5f1210b696e4dba122878f78e57d05d9cb822f79234240ecce31efd2d39061fea1eb5b2e81d48d8c3bf6b92d06451f1ce5d5db7117704e89c50 WHIRLPOOL 073dbeb9d27189db44658a9f25657b93a320b125fbfc8230f7ce7849b8e7c1f7802b4c3a53de3417525b02739194fab8a6e5eb03d5db317a23deb275d72fbb21
EBUILD rng-tools-4-r7.ebuild 956 SHA256 00abc3affa477a0a0aa41cbaa306559d2572be3057da98075a865acd0cab74e3 SHA512 73ea16875d26b57a0650f125cbe25a930f06904a383c9af5bc5ec01e6e1eb22e7341c312a41505aac0fed3e8a6176286151401b4d0aa27d2eaaedf2490dd67c4 WHIRLPOOL 3a8a73cb5587acadfae50ef0f912e0fcaa78dd43c96bf7129330c5a1fef3fc21560aaca370569da0f4950584441fd13ffa9b04b51b40f98592e8429442177f04
EBUILD rng-tools-5.ebuild 1019 SHA256 8c4e1a5f5f07ccbf1ec8b235f672d3256dca7a034e1811f5a14ecf4d599be7bf SHA512 cce5c741e64cbdebc64fd11f0cde7c83a7d3aa679824e13df737192fcbc2792e855b8eb0f674beb4fb29b1ca8507acfba65212ff95dfedcfa5f785697bcf9a91 WHIRLPOOL 48731352dd258b8b203801f632c87e3e7cf22a170584963ffb084f70e991d0cc9a60383d7fe53fa4a988018cfaf65e6be4d2cbc63addce90c7e3f964b62ffd5c
MISC ChangeLog 9568 SHA256 796f5413c30ad7ddaae9b4b195b9e44baa8e9ebb4857645552697ac6be17e7d2 SHA512 5d0bf0d5f5adb31e7a13bf39486008b4dc63e6cdd1c1bd50a178d769a0bb818c23433e5c42fb3a9327dd2ce7b23daf0f29a8613f5c4f6d3866e07f3ce868d9d7 WHIRLPOOL 427612588c648f96f205c749d0bf26b995fe21e23f16cb2d92c8d46d697f67fb55d45536e43bcdc72a6e74ab80f90ea1e69b68f20708fc4b3c2ec22bcae770ed
MISC metadata.xml 165 SHA256 23a8851c12bd4cf7cf0528250ad5605be6b0780bbec0c51331d6d2c618c13f6a SHA512 3f1bee5d098a4e5874df3af56169397cc3ed526f9c56004b9ccaa4c5cf02d4affd894400b88f50f3c19bf5ba3ae06f3d4d2cfa5c15e97b7d4c33053e5f0f63c5 WHIRLPOOL 070ba3ff0b1ea000c90d8af13cdac14693dc5d9dcc8d8ba89cf9bdbe91196e3cf9e72bd2f01cd5efc1ddab63b83184159298d1ee891bc123107ea6891ad612d2
EBUILD rng-tools-4-r7.ebuild 851 SHA256 69b4f261276e764fac8d9b16b7dab7bf97acd99606075d3b30b57e57620adccc SHA512 e8a1c2d692c2d42fbac13f0782691ba07871d8c9f6bc62c3028198904168b646d4a6aa6ac9c1fbbdc4178aff9dd84c402cb038390e89abb83f8e7d037e6b4541 WHIRLPOOL 96baa221cabcd031a30d1aa04456d8c72ae5c3c961c680f0597c792db211a268db4b0cf2d48edb2422dd48c283a259dc5efb87a0d02c4a18ade457a184a2054a
EBUILD rng-tools-5-r1.ebuild 1048 SHA256 ca81ef0331484c107c98e3fca97f44464759eb01cb071cf9bbcfbfceded6d790 SHA512 dd0728aa509922a4eed0a6a710e840f58e50567e83d6efd1f18b97bab57a75e90745f4459e8177e1366beb22a154c30c9cc3065e59a23004d894232dbeb8eea4 WHIRLPOOL 3c73492146e1022b88de61bb8401a6f1925bfecdd8d16a2887410d40b68f0411ce50edcc9360cde03dcf4ce4bc07f835622df1c2aa017c8fdfc42b4bdfbaa62c
EBUILD rng-tools-5-r2.ebuild 1111 SHA256 fb2f8c04f3ae27cd1c9f9d4d1e3c0ed5fcd99bb9aff08b53a948fbdac304d5a8 SHA512 64156d154019006573ca0daccaa9df320a2b671b2938fedeebe1c0cb6f5480ccc718ba3646e4bd3b5e8b0fc51fb1f92c8f971fa4a59ed78e365ea342bdeed102 WHIRLPOOL 4a0d3bf4a083d83a3eac736d226d462da96e40edc57f3b3fae274200ac48bae57f56895813621bc6eb80fc61ab718ea60ca41ed3bb8da8816f3c62c85db3fe1a
EBUILD rng-tools-5.ebuild 917 SHA256 78a9d01859cb1255c03b0028c888f71b96fdc77572ada663a97b4fcaa1679e5d SHA512 c1a92923022d589d2772e0cc10e6f2a0184a8e4d4a8cca187b65f47ddb2c889a5a7a2c4526c19e637f473e4d1f94060e503407819080fc76a4411e43c48a1c10 WHIRLPOOL 1117d7aa4a88fed0fc61fdf313ee88afa5b061772beda4b98509227a6e5524c156ff799d44b0838107f365456d02b2b863b003a95416b2bcccf12014c2a93190
MISC ChangeLog 10419 SHA256 429b14666b303f77b8081e33cb4d2bc4da29c06af72895b37cf17ae3658381ce SHA512 9ef68cdfe956b4918d101ec0cfe3a69a9cf748b52326976edf234b58a48eb8c48fdb32b011fa8fe5e3d0cde8576b212b24d5b4003f87a4e4b327dc2cc0ff59ea WHIRLPOOL 525eb6a7d62820bda06d801c2721e2c38a9ca8af5d26d961c57a9d62c26a8dfec1ab08573f4237f3e6f4ee576de03d6d63a5514424011e773541f29c2b8e3915
MISC metadata.xml 528 SHA256 9d87479733e2a81e1309971aa6b84f97195991ae74df22582cb98bf446d9b23a SHA512 0759c399d6d1f34651e699cb8ed9c289ec28255ff7a70bec4224ca22a3adde55dc0facebc30c12d7f4fe71ab09ee652dfc7469fd5e5b8b818ea2fd7bacb08945 WHIRLPOOL 58008355fb798f51bd934f4a8bbedee2e924bfd77693a2fdafb0ff105a24f81eb90451ad89b8de9b4fb2f4644217d6f70616aba8fa3c92d73cad7aa2a8ef704f

View File

@ -0,0 +1,45 @@
From: Gokturk Yuksek <gokturk@binghamton.edu>
Subject: [PATCH] Fix rngd to open the entropy source with 'O_NOCTTY' flag
When start-stop-daemon starts a rngd instance configured to use a tty
device as its entropy source, the application crashes due to not being
able to read from the entropy device. This is caused by
start-stop-daemon calling setsid() before executing rngd, which
disassociates the controlling terminal. When rngd attempts to open a
hardware entropy source that's a tty device, per POSIX rules, the
device becomes the controlling terminal for the process. Then rngd
calls daemon(), which internally calls setsid(), and consequently
disassociates the controlling terminal for the child. Meanwhile the
parent rngd process exits. This results in tty device hanging up. By
looking at the strace logs attached to the bug, it can be observed
that although the parent rngd process is able to read() from the
entropy source successfully, further attempts to read() by the child
rngd process return 0. This complies with the POSIX, which states that
read() calls on a hung up terminal shall return 0.
Note that when rngd is started without start-stop-daemon, this problem
does not happen because at the time of opening the entropy source rngd
already has a controlling terminal.
Prevent the entropy source from becoming the controlling terminal by
passing 'O_NOCTTY' flag to open() when opening an entropy source. This
flag prevents a tty device from becoming the controlling terminal for
a process without a controlling terminal at the time of open().
Thanks to John Bowler <jbowler@acm.org> for debugging the problem and
pinpointing the issue as well as confirming the fix.
Gentoo-Bug-URL: https://bugs.gentoo.org/556456
Reported-By: John Bowler <jbowler@acm.org>
--- rngd_entsource.c
+++ rngd_entsource.c
@@ -175,7 +175,7 @@
*/
int init_entropy_source(struct rng *ent_src)
{
- ent_src->rng_fd = open(ent_src->rng_name, O_RDONLY);
+ ent_src->rng_fd = open(ent_src->rng_name, O_RDONLY | O_NOCTTY);
if (ent_src->rng_fd == -1) {
return 1;
}

View File

@ -0,0 +1,17 @@
https://bugs.gentoo.org/555094
patch by Gokturk Yuksek <gokturk@binghamton.edu>
--- rngd.8.in
+++ rngd.8.in
@@ -66,7 +66,9 @@
.TP
\fB\-W\fI n\fR, \fB\-\-fill\-watermark=\fInnn\fR
Once we start doing it, feed entropy to \fIrandom-device\fR until at least
-\fIfill-watermark\fR bits of entropy are available in its entropy pool (default: 2048).
+\fIfill-watermark\fR bits of entropy are available in its entropy pool.
+By default, this value is set to 75% of the entropy pool size or 2048 bits
+if the entropy pool size couldn't be determined.
Setting this too high will cause \fIrngd\fR to dominate the contents of the
entropy pool. Low values will hurt system performance during entropy
starves. Do not set \fIfill-watermark\fR above the size of the

View File

@ -0,0 +1,15 @@
https://bugs.gentoo.org/555106
patch by Gokturk Yuksek <gokturk@binghamton.edu>
--- rngd.8.in
+++ rngd.8.in
@@ -59,7 +59,7 @@
.TP
\fB\-r\fI file\fR, \fB\-\-rng-device=\fIfile\fR
Kernel device used for random number input
-(default: /dev/hwrandom)
+(default: /dev/hwrng)
.TP
\fB\-s\fI nnn\fR, \fB\-\-random-step=\fInnn\fR
Number of bytes written to random-device at a time (default: 64)

View File

@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/files/rngd-initd-4.1,v 1.7 2013/05/22 05:16:17 vapier Exp $
# $Id$
depend() {
need localmount

View File

@ -0,0 +1,17 @@
#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need localmount
after urandom
provide entropy
}
command=/usr/sbin/rngd
pidfile="/var/run/${SVCNAME}.pid"
command_args="--pid-file ${pidfile} --background --random-step ${STEP:-64} ${NO_TPM:+--no-tpm=1} \
${NO_DRNG:+--no-drng=1} --fill-watermark ${WATERMARK} ${DEVICE:+--rng-device ${DEVICE}}"
start_stop_daemon_args="--wait 1000"
retry="SIGKILL/5000"

View File

@ -2,4 +2,17 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>base-system</herd>
<herd>proxy-maintainers</herd>
<maintainer>
<email>idella4@gentoo.org</email>
<name>Ian Delaney</name>
</maintainer>
<maintainer>
<email>gokturk@binghamton.edu</email>
<name>Gokturk Yuksek</name>
<description>Proxy maintainer, CC him on bugs.</description>
</maintainer>
<upstream>
<remote-id type="sourceforge">gkernel</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/rng-tools-4-r7.ebuild,v 1.7 2014/11/11 10:46:06 ago Exp $
# $Id$
EAPI="5"

View File

@ -0,0 +1,40 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils autotools systemd toolchain-funcs
DESCRIPTION="Daemon to use hardware random number generators"
HOMEPAGE="http://gkernel.sourceforge.net/"
SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ppc ~x86"
IUSE="selinux"
DEPEND="dev-libs/libgcrypt:0
dev-libs/libgpg-error"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-rngd )"
src_prepare() {
echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am
epatch "${FILESDIR}"/test-for-argp.patch
epatch "${FILESDIR}"/${P}-fix-textrels-on-PIC-x86.patch #469962
epatch "${FILESDIR}"/${P}-man-fill-watermark.patch #555094
epatch "${FILESDIR}"/${P}-man-rng-device.patch #555106
eautoreconf
sed -i '/^AR /d' Makefile.in || die
tc-export AR
}
src_install() {
default
newinitd "${FILESDIR}"/rngd-initd-4.1 rngd
newconfd "${FILESDIR}"/rngd-confd-4.1 rngd
systemd_dounit "${FILESDIR}"/rngd.service
}

View File

@ -0,0 +1,41 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils autotools systemd toolchain-funcs
DESCRIPTION="Daemon to use hardware random number generators"
HOMEPAGE="http://gkernel.sourceforge.net/"
SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~x86"
IUSE="selinux"
DEPEND="dev-libs/libgcrypt:0
dev-libs/libgpg-error"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-rngd )"
src_prepare() {
echo 'bin_PROGRAMS = randstat' >> contrib/Makefile.am || die
epatch "${FILESDIR}"/test-for-argp.patch
epatch "${FILESDIR}"/${P}-fix-textrels-on-PIC-x86.patch #469962
epatch "${FILESDIR}"/${P}-man-fill-watermark.patch #555094
epatch "${FILESDIR}"/${P}-man-rng-device.patch #555106
epatch "${FILESDIR}"/${P}-fix-noctty.patch #556456
eautoreconf
sed -i '/^AR /d' Makefile.in || die
tc-export AR
}
src_install() {
default
newinitd "${FILESDIR}"/rngd-initd-r1-4.1 rngd
newconfd "${FILESDIR}"/rngd-confd-4.1 rngd
systemd_dounit "${FILESDIR}"/rngd.service
}

View File

@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/rng-tools-5.ebuild,v 1.1 2014/11/18 19:54:10 mrueg Exp $
# $Id$
EAPI=5
@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/gkernel/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86"
KEYWORDS="~alpha amd64 ~arm ~ia64 ppc x86"
IUSE="selinux"
DEPEND="dev-libs/libgcrypt:0