diff options
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/Manifest.gz | bin | 24120 -> 24120 bytes | |||
-rw-r--r-- | app-crypt/acme/Manifest | 6 | ||||
-rw-r--r-- | app-crypt/acme/acme-2.1.0.ebuild | 2 | ||||
-rw-r--r-- | app-crypt/acme/acme-2.2.0.ebuild | 2 | ||||
-rw-r--r-- | app-crypt/acme/acme-9999.ebuild | 2 | ||||
-rw-r--r-- | app-crypt/certbot-dns-dnsimple/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/certbot-dns-dnsimple/certbot-dns-dnsimple-1.31.0.ebuild | 2 | ||||
-rw-r--r-- | app-crypt/certbot-dns-nsone/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/certbot-dns-nsone/certbot-dns-nsone-1.18.0.ebuild | 2 | ||||
-rw-r--r-- | app-crypt/tpm-tools/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/tpm-tools/tpm-tools-1.3.9.2-r1.ebuild | 52 | ||||
-rw-r--r-- | app-crypt/trousers/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/trousers/files/trousers-0.3.15-tspi-drop-the-use-of-getpwent_r.patch | 69 | ||||
-rw-r--r-- | app-crypt/trousers/trousers-0.3.15-r1.ebuild | 73 |
14 files changed, 207 insertions, 10 deletions
diff --git a/app-crypt/Manifest.gz b/app-crypt/Manifest.gz Binary files differindex d78fd704b216..67c47231a4e7 100644 --- a/app-crypt/Manifest.gz +++ b/app-crypt/Manifest.gz diff --git a/app-crypt/acme/Manifest b/app-crypt/acme/Manifest index 71bf1be21043..c7beab68f4c0 100644 --- a/app-crypt/acme/Manifest +++ b/app-crypt/acme/Manifest @@ -1,6 +1,6 @@ DIST certbot-2.1.0.tar.gz 1327451 BLAKE2B c4694622648427146574aa7c056d5d76dc3c4f6b8487a506d1c4996239f979d89ca26980b2ffbaab975458d0691acaa07a46a75098b6146e6e3c51e6eaa64be0 SHA512 83c3a6abeffb135cebd0d0f4561f3814039962e3b895aaf7bef6570641fccda2da04f1a6110c5e90d6ed3346402cbb3ff543b0a096e8e18f6345edd22da643cc DIST certbot-2.2.0.tar.gz 1331053 BLAKE2B 4a3e6d8b0b3b7f8537bd6b24234bad7657842ee64865bcef2701e572501640b7a2d49cf4dc62db25cda1039be2d20fb77ac6415cdcb4756fce0f96b5cb7410c6 SHA512 242bfa8e5b60c28b49457403b41421ef782b9f98f325cc423b58283fef410b33691c3ce126188b191c80fcd488fe5d51acfc5ca575c8e7c5b6b08198844bffb7 -EBUILD acme-2.1.0.ebuild 1140 BLAKE2B 8cde6e535929e67e1da4ff17ce6ef93e91d4397116f07dec27f2c1bae47b300b04455132d9b8fb361fa72f8cd898999e434e71fbc7720550ead73b6307925edc SHA512 8036eed31f2051e018d033ec8a8d09c4c4d03b45a3caeb83b9eb472f16a2a7d45808e6087b40dea64c51985f1ef63fceb0cf17bbac29c6e838ab09588e2a53db -EBUILD acme-2.2.0.ebuild 1140 BLAKE2B 8cde6e535929e67e1da4ff17ce6ef93e91d4397116f07dec27f2c1bae47b300b04455132d9b8fb361fa72f8cd898999e434e71fbc7720550ead73b6307925edc SHA512 8036eed31f2051e018d033ec8a8d09c4c4d03b45a3caeb83b9eb472f16a2a7d45808e6087b40dea64c51985f1ef63fceb0cf17bbac29c6e838ab09588e2a53db -EBUILD acme-9999.ebuild 1142 BLAKE2B 430df828ddf8de34909ae16140e4f175adb2a5eaf2141fc878dbf575a31f3d9e03825084dff78e1ff6fdf0ba69e7a96a3502b4bc53af170ba1cf58b784214710 SHA512 2ac0cbca15410906c9982582d80f3e902686c389828b4fde05222cd1a3868bd5fbebfa5aebdf81451d05925ac5647c0567da21fbeec383e44c427c014f7eac10 +EBUILD acme-2.1.0.ebuild 1140 BLAKE2B 4f646f46a985e09549e659f696b781eb69e2b2773bdddbcc3a7f1f71ea4e2b77b56ef1df933ced67bc351208066d4695351fb8ffc19cc8f6333b96fdfeacd5e0 SHA512 da095bc1131b61c20638116953cd267bb63c47cc321039cde25cd69ef7c9090009a2f0f236029c4871bb7112f0db02bf5645516f5f812accb5498b53fe2b757c +EBUILD acme-2.2.0.ebuild 1140 BLAKE2B 4f646f46a985e09549e659f696b781eb69e2b2773bdddbcc3a7f1f71ea4e2b77b56ef1df933ced67bc351208066d4695351fb8ffc19cc8f6333b96fdfeacd5e0 SHA512 da095bc1131b61c20638116953cd267bb63c47cc321039cde25cd69ef7c9090009a2f0f236029c4871bb7112f0db02bf5645516f5f812accb5498b53fe2b757c +EBUILD acme-9999.ebuild 1142 BLAKE2B 05a872a349c4de0d24143753f15e3c715f8ad7910560176aebc850e2ecb84b46e2985b656615f81cc7161cdddcafa61529624646a58a56d3252c28d11b8678d7 SHA512 a74dd190c1257303f504a2532d83c9b6113cccadcfde58414b0fcfde0dc6bc009ac54bb1a8004e3d38ef23df88d29d753f9226c3faf6bb8a7fdc61765f192923 MISC metadata.xml 401 BLAKE2B 30a2ac1f03749a8e3bb98723c57f47ab6bcf7bfa58c2b6e21c309fae279feca0d3612df6c2a1dafaf27b4f0781c583a140322feac1a1cf2c13e50861cad129ea SHA512 d8e725b71ca81ce4ca6565ed58271b283c25394448f0f48f726f232122577c33d5b2d726e117419b2fae99f9dae29a8080bb9564eccbca13368c83988cf3da01 diff --git a/app-crypt/acme/acme-2.1.0.ebuild b/app-crypt/acme/acme-2.1.0.ebuild index e8f4b85a9901..b73b5d16b584 100644 --- a/app-crypt/acme/acme-2.1.0.ebuild +++ b/app-crypt/acme/acme-2.1.0.ebuild @@ -35,5 +35,5 @@ RDEPEND=" >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] " -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme distutils_enable_tests pytest diff --git a/app-crypt/acme/acme-2.2.0.ebuild b/app-crypt/acme/acme-2.2.0.ebuild index e8f4b85a9901..b73b5d16b584 100644 --- a/app-crypt/acme/acme-2.2.0.ebuild +++ b/app-crypt/acme/acme-2.2.0.ebuild @@ -35,5 +35,5 @@ RDEPEND=" >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] " -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme distutils_enable_tests pytest diff --git a/app-crypt/acme/acme-9999.ebuild b/app-crypt/acme/acme-9999.ebuild index 64472c2d2ee3..3c6be147f57c 100644 --- a/app-crypt/acme/acme-9999.ebuild +++ b/app-crypt/acme/acme-9999.ebuild @@ -35,5 +35,5 @@ RDEPEND=" >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] " -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme distutils_enable_tests pytest diff --git a/app-crypt/certbot-dns-dnsimple/Manifest b/app-crypt/certbot-dns-dnsimple/Manifest index 0d2bdf4528ee..29284de2af63 100644 --- a/app-crypt/certbot-dns-dnsimple/Manifest +++ b/app-crypt/certbot-dns-dnsimple/Manifest @@ -1,3 +1,3 @@ DIST certbot-dns-dnsimple-1.31.0.gh.tar.gz 1371459 BLAKE2B 95fc9f29b1e91f5bc12a9b7146d00f4f3b4647eeda8e866c46c17d8d8a2443bd46cfa04758e8571e84b2bbf70bd68943c47ceaf6d830d3e5121e41d9548da051 SHA512 a2f6d7714bfc8e2c400e69be038404da138b53f0dc09e071048d560ba9e9527cc0b786b8d210b62c3d07c3aeadaee12dc0d060d144af4b5c3178576fde65b052 -EBUILD certbot-dns-dnsimple-1.31.0.ebuild 805 BLAKE2B a429a5ebdeb07f15fdad77f6a41178f7fffe11c1439a6d3492254d0cf36a1b5b7c18f54106186ce2d1311c012762b52560e1cc5cc54e14b2ee77bee027e1245b SHA512 1c37e9a1e5a9dda4a7ce9f9970c570094de365ad75e2208d0f160a79ba8bfb355617b156cc72c60a42e3ea5bf1c098c2a5cd86a233ffdedaca0f276ec8fda19b +EBUILD certbot-dns-dnsimple-1.31.0.ebuild 805 BLAKE2B af56de95f189f6060684427371884b56e84ae5c08a912844b4dc318f14911c745b9915b8bb24a03f49e89335da4dffa336f81b4640c0e1c91afeb3d36423597d SHA512 a7926dfa5a4f62c49e64bbd6d7d3faafa63d9f008f26f18aa22c421b9b0b43551c354a8a32d6815d029f03524be4af64e2fd8a24117823e5e6c2f7d032bf7244 MISC metadata.xml 410 BLAKE2B 74259387ce551527251326d68bef6d9d15b9f17b19ba43a7091216144d346fb10fc8bd4d55797b844fde18de71c40f787588be722a56ac0a605532f298f3b5c4 SHA512 083e6a0d7b24c77f448804ac39d4ceab6bdf3168d3f88c89457cfbb2bd4b821e281f3488a29be3fce48493c2da9e7e294476c696fcb0f35f3e288126f90bcbc1 diff --git a/app-crypt/certbot-dns-dnsimple/certbot-dns-dnsimple-1.31.0.ebuild b/app-crypt/certbot-dns-dnsimple/certbot-dns-dnsimple-1.31.0.ebuild index f1c048dd8e33..51cc80c71ab7 100644 --- a/app-crypt/certbot-dns-dnsimple/certbot-dns-dnsimple-1.31.0.ebuild +++ b/app-crypt/certbot-dns-dnsimple/certbot-dns-dnsimple-1.31.0.ebuild @@ -25,5 +25,5 @@ RDEPEND=" >=dev-python/dns-lexicon-3.2.1[${PYTHON_USEDEP}] " -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme distutils_enable_tests pytest diff --git a/app-crypt/certbot-dns-nsone/Manifest b/app-crypt/certbot-dns-nsone/Manifest index 6fcaa4f673f8..81ac7bc758d9 100644 --- a/app-crypt/certbot-dns-nsone/Manifest +++ b/app-crypt/certbot-dns-nsone/Manifest @@ -1,3 +1,3 @@ DIST certbot-dns-nsone-1.18.0.tar.gz 1332615 BLAKE2B eb086710b943893025d6e1091470ca02de074232372f4c9fa21fa83a347fe54df988b9553c8cf6afd6e166b8c464d595171984c984008a872e16c0179bb774b2 SHA512 94b16ba0586e0f5d3036280c68f9976c25889ca48fbbe7aded41f0d9feba2300a3f0ff8fe321b39d8642bcdd874c7332cf2acb3187b5869fe415831f58a75a7b -EBUILD certbot-dns-nsone-1.18.0.ebuild 801 BLAKE2B c5d9c84a41b8cf7d1bc8d2516d9fc29d481e3f37578d7ac002eb3810207ea578af31a1a64630bedd74ab92282334adabee0dda9ac3c0eb74f9153fa3c4e8cf3d SHA512 45e3f77fc0b7fe0048ea1f10eb75c38b8e07ff651496891922c046d392399c6ca1d5a7022f03a1412cefdbaab9beab7a34b7448c78352291bc02e76edd27be2f +EBUILD certbot-dns-nsone-1.18.0.ebuild 801 BLAKE2B 79003cfd8adc8b0b59771a7529667eee0c7703ddf983174583bd4d6c24e4fee744864604ae857f1147c79afc1ddd1e1fb195734e71d16b6a5a5643b403475335 SHA512 90265df0cfd07ed5bb225e08ff656e48c829410f654ab211244d6500bad64302e68004aecd9def00f3d217c2f620875d777b792c631facd2974ccf821b72bfd4 MISC metadata.xml 352 BLAKE2B fff177a8e865dea86a30ffb113f4067927eaa65df22b42ab729d20ba72192c162fc98f2fed49f81f0c2d7b93a01b36f9ea1910df2c6f1602ac44d5708a710a8c SHA512 dead6eeb70cd0b2f18fb856088d4443619f47e351e56c5a32f36d8eff9bab943ff4d6b7b8d67513fa6cb3d43dc72053cf38f19070d5f1bebe735ebc480bdb335 diff --git a/app-crypt/certbot-dns-nsone/certbot-dns-nsone-1.18.0.ebuild b/app-crypt/certbot-dns-nsone/certbot-dns-nsone-1.18.0.ebuild index 6c37e4f72b87..8691a783350c 100644 --- a/app-crypt/certbot-dns-nsone/certbot-dns-nsone-1.18.0.ebuild +++ b/app-crypt/certbot-dns-nsone/certbot-dns-nsone-1.18.0.ebuild @@ -26,5 +26,5 @@ RDEPEND=" >=dev-python/dns-lexicon-3.2.1[${PYTHON_USEDEP}] " -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme distutils_enable_tests pytest diff --git a/app-crypt/tpm-tools/Manifest b/app-crypt/tpm-tools/Manifest index bd4a5eb0cc3a..191c1cd8bc48 100644 --- a/app-crypt/tpm-tools/Manifest +++ b/app-crypt/tpm-tools/Manifest @@ -2,5 +2,6 @@ AUX tpm-tools-1.3.9.1-openssl-1.1.patch 5937 BLAKE2B b8ca021f3b1cd91656a0b0f43df DIST tpm-tools-1.3.9.1.tar.gz 482859 BLAKE2B ee915679e23bead04672bf719ce59bb6f20b550be39855b5304caeff554bf54d3cfe9104d464af7762388995e51d2bed0f9bedad83e42146cb7457382d09f4b2 SHA512 63a9c0e761cd890cc0a218de79a9c0169e151aba7824c19bf6b7ec894cf41c4950de1f63bd849aa93a4bdff36cf0fe557bc17113912b6d77f57f2bf1190b6a08 DIST tpm-tools-1.3.9.2.tar.gz 431930 BLAKE2B bbea3848765d9907c6faa1b5f4a60002e94243040985ce503f392bc8d7392bea41b54317b15fd227b5d73d589cf2c330729532448751d4375484375725310dfa SHA512 b684716c71702140591d89eb03d3724ed5b448e7ba2881bc44de9d44ffc23a9f7dfcf4351eec24e5438cc883f49a7dafee82bb19f90800610cf764ce74e60ccb EBUILD tpm-tools-1.3.9.1-r1.ebuild 954 BLAKE2B f53bed313b12de4bd985c76d168a110a5f2e66448afb39636f8ccbef173810ec2ce60d0a01a39fb289cdc82b723237e58091b4f561668b77e28144d141592969 SHA512 045475346c2c8778ce588cf8fe893c24eca0c9d6ecf27161a2807f35d47737ba75f16d44d7b3c244b5ce35dc382a24c52ba3bd9c72e48bff9dfd8d488465a40e +EBUILD tpm-tools-1.3.9.2-r1.ebuild 1101 BLAKE2B 67423e414641a9467e533011fd20293ff19cf199c54062221b14e1bf62489c61d088aec566e7a81248b7cb45f9590fb382ea17f128c3b82029160d4cb6113d58 SHA512 4966ad5f4dc0eaa4847546c3beabbbc442a4a70711e9c2271d16ef8562b5c9ff373438276d91f1b2c434cca8aab002f8b69b6305e2b4f53be40882878f3d044d EBUILD tpm-tools-1.3.9.2.ebuild 1094 BLAKE2B f635866f67a93e3d4aac3d5435ff39399753978a8d2a67e404d0416e7dace32135aa54a80146a0b44de7d65391d977d038b7d0fa34a8923740ef34605eeed2de SHA512 310612239dc290c2b013c69a968c09013a1215a6cb6607ed1b49ebd4fb60e6afafbd413450f975f3fe8f258dc4e939294218408a05999ef1d025009e4f3f45f2 MISC metadata.xml 655 BLAKE2B 32c7f70c902ebfbc7f182b4ff474b97163112e4418597f12e2c4f10e082f7803a27948e1cbf17bfea491564a26a1c968fa5d7ec51878eaa79eb3e9598ee51ad9 SHA512 57f1c5a445c98a90025ab2b19fa00b55071bec42e3b130dae8dae203e1a81544cbcf723f8b4d4bfcc47771060e350663bb1c0ea976595c6c044809ed358f7ad0 diff --git a/app-crypt/tpm-tools/tpm-tools-1.3.9.2-r1.ebuild b/app-crypt/tpm-tools/tpm-tools-1.3.9.2-r1.ebuild new file mode 100644 index 000000000000..68163a060786 --- /dev/null +++ b/app-crypt/tpm-tools/tpm-tools-1.3.9.2-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic + +DESCRIPTION="TrouSerS' support tools for the Trusted Platform Modules" +HOMEPAGE="http://trousers.sourceforge.net" +SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz" + +LICENSE="CPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~s390 ~x86" +IUSE="nls pkcs11 debug" + +DEPEND=">=app-crypt/trousers-0.3.15-r1 + dev-libs/openssl:0= + pkcs11? ( dev-libs/opencryptoki )" +RDEPEND="${DEPEND}" +BDEPEND="nls? ( sys-devel/gettext )" + +src_prepare() { + default + +# upstream didn't generate the tarball correctly so we must bootstrap +# ouselves + mkdir -p po || die + mkdir -p m4 || die + cp -R po_/* po/ || die + touch po/Makefile.in.in || die + touch m4/Makefile.am || die + + sed -i -r \ + -e '/CFLAGS/s/ -m64//' \ + configure.ac || die + + eautoreconf +} + +src_configure() { + append-cppflags $(usex debug -DDEBUG -DNDEBUG) + + econf \ + $(use_enable nls) \ + $(use pkcs11 || echo --disable-pkcs11-support) +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} diff --git a/app-crypt/trousers/Manifest b/app-crypt/trousers/Manifest index 25e4ace3b903..c505362d2c16 100644 --- a/app-crypt/trousers/Manifest +++ b/app-crypt/trousers/Manifest @@ -3,6 +3,8 @@ AUX tcsd.initd 363 BLAKE2B c8142c8939fe92ce902cd225910af4098cae15d7a47f858c9384e AUX tcsd.service 131 BLAKE2B db7995ca078c6008daba2bee50b892d5ae0fceb184c966f67578185dbdd81b8a3a55000029215d28d99e8e3ccd73f64b85b66cc4f4a337f28ee9d9ade4222067 SHA512 e516bde8ce45fe4ad687aaaabae475da9c20a9fbd8ebee736d09ceb6efa597efb6f3bb99840a4c0d2c9eb77c2824df6ee45985b46dc8cf924b4eed67eeec1468 AUX trousers-0.3.13-nouseradd.patch 606 BLAKE2B 7e4a479fe1bdc75f743263c1321f2d99cfe99d04d8196b57a158bd2ce75335526b2001c2af8aa0f8b17ddfefa304685e237385be0bc4113d5ca366dd464fa85d SHA512 a6c9074e535429f09ce5e850d943378348b54bed479b7fef0fff7bb18ab2547421407900aa35533749a764275a241ddbd083c4e2f3d6a9ad6f9b1d40d090f783 AUX trousers-0.3.14-Makefile.am-Mark-tddl.a-nodist.patch 746 BLAKE2B 91dec77a329a4931487cdff54ab8c77ae302af6bc741da3db61bc34b416d29615808799c8a4c5b39a293021dc1cc16642461037fcb367507ceadcc4456565715 SHA512 704a87fd4b5e50356ac6a0ad68aec04eebb2030d9818c9e23a40f2e621d6e2d5e5660b81997b459e67a8059a0d88a254a41baa833806ce99268ee24b1190ae0b +AUX trousers-0.3.15-tspi-drop-the-use-of-getpwent_r.patch 2114 BLAKE2B a24415a49a81376303d96654eb5147db5843865a139f2f8f226f3f6d647b4a78c1314ee17384809020fca514117b6aaa43f057fad3e3ba0008133db56109b0e3 SHA512 5402a8c3b41fe5f53d8da29a58e5052990ba254b05c4b2455e5068c0d0ca52513e3b29c6f344abd59c0cefd2192077c194628955154d7474e4f6b3c8464dd59b DIST trousers-0.3.15.tar.gz 4699936 BLAKE2B 53c60498ed6a9d3d87295b00676e5d0d82452918c35af6b98c7979ffa2dc04dd817e7cd3f4a33ca17c30b90eab53d80b2bb25306fe9db7bda2125019edfed280 SHA512 769c7d891c6306c1b3252448f86e3043ee837e566c9431f5b4353512113e2907f6ce29c91e8044c420025b79c5f3ff2396ddce93f73b1eb2a15ea1de89ac0fdb +EBUILD trousers-0.3.15-r1.ebuild 1600 BLAKE2B 0b47918d58b924d5d8cb80c4b16abfaccab6952bbb47566a12647c7c16c924b2a532d720aec2be92a3b7e959e2819d057d6dfe70c4fbc6198394625dc9d59776 SHA512 3d3bea454af9f36fd68df36e923b2999d99ad43f3d23b7774d6fb39fcdaf57e299700859b10b71e3f347f0a4f973c1cd18056140f61c2f4e74a92f55dba465fe EBUILD trousers-0.3.15.ebuild 1537 BLAKE2B d25c6df85b82c68da044c52b46cb551b8071b10ade85f868fb526d6763ae721d8d582c059814f2bd9f66099ec034fe37db4b6d9b095a936acf49509450f6d64b SHA512 9d06c08b97b57cbef371c10d46cdb389848fe15514d5750257f0cd6def5c0924f761978e157448d4720a546b9cb0e2b780a6292347d92a9370c40c6afe1c7c08 MISC metadata.xml 542 BLAKE2B 07459ff82ec6f21116e860820a212a751bd07fcad1b175417d8d3b12709c870c523776e228c19aa7f824ac13d304afb533c697c22551ef977b3b9c687d2f6b00 SHA512 c980dfc26aaf0c6718fb9088d91296760db245807f0293a6c7abe412774e9bc297c401153df71ebeeddbc28e92441e3e1e78a5e16c5fca8d3445fe0558faadb1 diff --git a/app-crypt/trousers/files/trousers-0.3.15-tspi-drop-the-use-of-getpwent_r.patch b/app-crypt/trousers/files/trousers-0.3.15-tspi-drop-the-use-of-getpwent_r.patch new file mode 100644 index 000000000000..ab6ef762bce1 --- /dev/null +++ b/app-crypt/trousers/files/trousers-0.3.15-tspi-drop-the-use-of-getpwent_r.patch @@ -0,0 +1,69 @@ +https://bugs.gentoo.org/713444 + +From 2299eadf77ae7a7ec52148b6a8f4ea37e217eafa Mon Sep 17 00:00:00 2001 +From: Stijn Tintel <stijn@linux-ipv6.be> +Date: Thu, 2 Feb 2023 01:06:15 +0200 +Subject: [PATCH] tspi: drop the use of getpwent_r + +On systems with musl libc, libtspi.so is unusable due to the lack of +getpwent_r. As there are multiple historical functions named getpwent_r +that all behave differently, let's just play it safe and stop using it +altogether. + +Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> +--- + src/tspi/ps/tspps.c | 16 ---------------- + 1 file changed, 16 deletions(-) + +diff --git a/src/tspi/ps/tspps.c b/src/tspi/ps/tspps.c +index b5e83d0..ae7b3df 100644 +--- a/src/tspi/ps/tspps.c ++++ b/src/tspi/ps/tspps.c +@@ -51,9 +51,7 @@ + + static int user_ps_fd = -1; + static MUTEX_DECLARE_INIT(user_ps_lock); +-#if (defined (__FreeBSD__) || defined (__OpenBSD__)) + static MUTEX_DECLARE_INIT(user_ps_path); +-#endif + static struct flock fl; + + +@@ -66,9 +64,6 @@ get_user_ps_path(char **file) + TSS_RESULT result; + char *file_name = NULL, *home_dir = NULL; + struct passwd *pwp; +-#if (defined (__linux) || defined (linux) || defined(__GLIBC__)) +- struct passwd pw; +-#endif + struct stat stat_buf; + char buf[PASSWD_BUFSIZE]; + uid_t euid; +@@ -96,16 +91,6 @@ get_user_ps_path(char **file) + #else + setpwent(); + while (1) { +-#if (defined (__linux) || defined (linux) || defined(__GLIBC__)) +- rc = getpwent_r(&pw, buf, PASSWD_BUFSIZE, &pwp); +- if (rc) { +- LogDebugFn("USER PS: Error getting path to home directory: getpwent_r: %s", +- strerror(rc)); +- endpwent(); +- return TSPERR(TSS_E_INTERNAL_ERROR); +- } +- +-#elif (defined (__FreeBSD__) || defined (__OpenBSD__)) + if ((pwp = getpwent()) == NULL) { + LogDebugFn("USER PS: Error getting path to home directory: getpwent: %s", + strerror(rc)); +@@ -113,7 +98,6 @@ get_user_ps_path(char **file) + MUTEX_UNLOCK(user_ps_path); + return TSPERR(TSS_E_INTERNAL_ERROR); + } +-#endif + if (euid == pwp->pw_uid) { + home_dir = strdup(pwp->pw_dir); + break; +-- +2.39.1 + diff --git a/app-crypt/trousers/trousers-0.3.15-r1.ebuild b/app-crypt/trousers/trousers-0.3.15-r1.ebuild new file mode 100644 index 000000000000..fd92b70007d2 --- /dev/null +++ b/app-crypt/trousers/trousers-0.3.15-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools linux-info readme.gentoo-r1 systemd udev + +DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation" +HOMEPAGE="http://trousers.sf.net" +SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz" + +LICENSE="CPL-1.0 GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~x86" +IUSE="doc selinux" # gtk + +# gtk support presently does NOT compile. +# gtk? ( >=x11-libs/gtk+-2 ) + +DEPEND="acct-group/tss + acct-user/tss + >=dev-libs/glib-2 + >=dev-libs/openssl-0.9.7:0= + " +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-tcsd )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-0.3.13-nouseradd.patch" + "${FILESDIR}/${PN}-0.3.14-Makefile.am-Mark-tddl.a-nodist.patch" + "${FILESDIR}/${P}-tspi-drop-the-use-of-getpwent_r.patch" +) + +DOCS="AUTHORS ChangeLog NICETOHAVES README TODO" + +DOC_CONTENTS=" + If you have problems starting tcsd, please check permissions and + ownership on /dev/tpm* and ~tss/system.data +" + +CONFIG_CHECK="~TCG_TPM" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # econf --with-gui=$(usex gtk gtk openssl) + econf --with-gui=openssl +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + + keepdir /var/lib/tpm + use doc && dodoc doc/* + newinitd "${FILESDIR}"/tcsd.initd tcsd + systemd_dounit "${FILESDIR}"/tcsd.service + udev_dorules "${FILESDIR}"/61-trousers.rules + fowners tss:tss /var/lib/tpm + readme.gentoo_create_doc +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} |