Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-misc/iputils/files/, net-misc/iputils/
Date: Mon, 06 Nov 2017 19:43:09
Message-Id: 1509997043.5eef732c44fa788e4f898b7938c8b6834b75ed70.lluixhi@gentoo
1 commit: 5eef732c44fa788e4f898b7938c8b6834b75ed70
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 6 19:37:23 2017 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Mon Nov 6 19:37:23 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=5eef732c
7
8 net-misc/iputils: Sync with tree
9
10 remove all but 20151218
11
12 net-misc/iputils/Manifest | 16 +-
13 .../iputils/files/iputils-20100418-so_mark.patch | 22 --
14 .../files/iputils-20121221-crypto-build.patch | 35 ----
15 .../iputils/files/iputils-20121221-openssl.patch | 92 ---------
16 .../files/iputils-20121221-owl-pingsock.diff | 224 ---------------------
17 .../files/iputils-20121221-printf-size.patch | 64 ------
18 .../files/iputils-20150815-nonroot-floodping.patch | 11 -
19 ...0171016-missing-AI_IDN-AI_CANONIDN-NI_IDN.patch | 70 -------
20 .../files/iputils-99999999-tracepath46.patch | 30 ---
21 net-misc/iputils/iputils-20121221-r1.ebuild | 111 ----------
22 net-misc/iputils/iputils-20171016_pre.ebuild | 178 ----------------
23 net-misc/iputils/metadata.xml | 2 -
24 12 files changed, 1 insertion(+), 854 deletions(-)
25
26 diff --git a/net-misc/iputils/Manifest b/net-misc/iputils/Manifest
27 index 7ac688e..4453700 100644
28 --- a/net-misc/iputils/Manifest
29 +++ b/net-misc/iputils/Manifest
30 @@ -1,33 +1,19 @@
31 AUX 021109-uclibc-no-ether_ntohost.patch 635 SHA256 cf8135fd380918890a1da8de438d5283111f1e9ea0754b4f5c78bb703fcf617b SHA512 29ccbbf19bd40e9c929af403227f49586a4cb79d7ef948710b34b0813d116017530ef1bf0082b093b4179edff1daa275906cfb9a565f61dd5bed10f24b66fd38 WHIRLPOOL e5390a41b0764d78cda651dd6fff2ebd4f206dc6f5b34da370c19cee7d44f373035fc1efa2bf90924b5a06ca48f344f80a2c902abe04eb588d01e0a9d59bf79d
32 AUX iputils-20071127-nonroot-floodping.patch 497 SHA256 f0c7c2d4843873da96f795fb766a65ed39b6d8ab74ae4aa5a47444c9a3db0e52 SHA512 96ea32977cdb2e3c98341b75214a35e88296600d14bc929f7691951325be8e90e8ff6ccf83fb2419db3c910a8169fb2a4348000fab33679039ec5cf2d07a3ee8 WHIRLPOOL 1f880978cf70188d0d59e79396f8c5962655c00cbf7f7c7adb800316dea1b6748ddbc788681c9831edf0fbb1153e85b5ca35e0e3c131b0a5b4884fa511119c0c
33 -AUX iputils-20100418-so_mark.patch 597 SHA256 3c0c3e93d3b458a02f856be3681c2dd5bfb18933e4752e90dc277cdd353b3576 SHA512 453ef3f8c53e2c2cef54f19219b892e51a83a6109f73a4f10712aec729509f02e6b830ab7ca85843a70f3d9c9860f084b256290f638741d573a5205ba89fe469 WHIRLPOOL 502e9ee110555644fd7d19d64afba3d2777844faca6fe0111b4b7356e3262c011b8de13475db1e70dff9225e3883d7e3e27d1f96f240a80d4c5c9ab0a29c9560
34 AUX iputils-20121221-add-bits_types_h.patch 3092 SHA256 e198400f387fa4140c7c6a75089b570ea24d044cf6fd55b1f37f239bb018969e SHA512 666c1711c5a5c829246a0f9a3d9afbb0ceb43e172b907230b856dbc0a330814d0c562e1894ee3b6051c01b54469fafd429c4236954967691b12744cacc844dab WHIRLPOOL 0014a8394f4e7bc002d572d8eeec3cb49809a172eaf93b3f62d4b91b741c7b8bd36b4b8b830ed16b6972102e9a3c4c730b50039d6731c0abb6203aeab44d33ba
35 -AUX iputils-20121221-crypto-build.patch 1325 SHA256 cafc281c70d46f2964489b4c19c981bcf203b4c6266d4f49437c3fe67e2027b2 SHA512 922daa01f00c19f8237515b2d3ab73b87daa957cfc491382def2ce1c098ffed943ad4952c94134f3155570f64353abf5348523ea773ce7eb457578f975cc92d2 WHIRLPOOL a39c7dbb9b37849cc3560dc1f814a8c18a9ff9b55e19c3587a7c49286d55323f96d42d33c6f2723d3868506c252272e1d2d6bc3370eb935b479c89514f03c9c5
36 AUX iputils-20121221-fix-header-order.patch 568 SHA256 d1ccc1defcd02ee0d0cb92d440bc786a8f508db5ee75b6c6566374d4b2a4114d SHA512 530334d2e89c13e3a15f4098a1a9eff9bda9d60118fd6e6ceba30453513c5deb9e33f609206a220c7a4af52704bfe6d3be1baa7a218265b0b6c9b95475b5cc7d WHIRLPOOL 01a377c067aed7e4c3be96bab4d74e9bcde48d7b73d65aa2184d9416dbdf02962b87a5c77dc4966890798f698128c5bb81021051071ee41fe5386d0efebb08fd
37 AUX iputils-20121221-fix-init-elemnt.patch 677 SHA256 302b1118596befdad56d23769e36fc0960d807230bc5c6ad4ad59d00fb78560b SHA512 15cc4a96851eaa77f08e3914139925cecc50ff7161a693e86cb6f5ae09da5c2d232325f922c1cf4af20d639ed89071314092f31fa55e23bc5033bfb74eeda7a3 WHIRLPOOL 7bbd1d869275fe96b0377da3ea345bd5d60ff903f37a45967a146ab149f714aced59f66aa247bd0a028a62094823d7f46b8333dcb38a6366c978a88f38ff5ec3
38 AUX iputils-20121221-fix-musl-headers.patch 2610 SHA256 79103835008cc293f331bd00f14ae44f40847cddb73e981fff06b275960be2ad SHA512 d6dacbc271b75ed9125e2527118db7a97382bc1456ac6bb3f94b0307ea1e61011c977f3a51cbbb0b86eb9048c5d0f419abd1562499195ad3ca97c62a6039b7c7 WHIRLPOOL 89c7e9d322d974e15df3be4a851dcce06af238ff8bd0a75e08dfe7c5f3de45f2067518479bc19242c92da2531d82bd77158b045cb2009ebe73e4d0f6a7295994
39 AUX iputils-20121221-makefile.patch 1791 SHA256 779632822e3440f3b898a50955cb8fb72177f0d1623c9da7c0a8afa68313435f SHA512 5899942b73d4d13e0ff85f22a81e9107b2a04c82cac6b59559a521c5d0bf25007e34b61b2dfdb40c21b221a108f6ba72c1a51fa59359a400ad045c9394c176db WHIRLPOOL c0c13046265ad44d23bde66cf48f64803591b4577861fde0ad7873001cbd9284c8593ce277a39d077b5bab635d0f8aa53ad124ea724bbc4584db36570028f90f
40 AUX iputils-20121221-missing-AI_IDN-NI_IDN.patch 835 SHA256 cc5ed53cbc866541f23744ce3b690690af3869e4bc468443612dba1a8a185420 SHA512 4061c9fb2f1aa6a001cf711dd5f7d838d72c7e9b192bb2a4dc45c6c8f72d952a84e9d0e317eb0d765be8429ece8a49863eb5d6fd02f42e63a740d09e181715f0 WHIRLPOOL 97d9bda6d0495c689b64e2b86cd94d8250e29093a480cda2facb11130d62ba2dd4bb9e6c151686babb7bdbc05535bcd1b0359cec2cc267481e41a69fb129b97d
41 -AUX iputils-20121221-openssl.patch 2378 SHA256 cc1af5ccdd593b4fa43273cf7de8b9552f0a5d33a72a35fcc4f94cf2c6fc9a44 SHA512 05240c00d0a1f9f878a9826d54cbd0128c2ed5ce7cab4685907956156c3cf2131ccd563812b64490bf915a75f52851396966a590027fc4c1886b2d19f421718b WHIRLPOOL 66052233f933cf30fe1572578012faa380f53580307e880e9a94c001ea14e585b3e28693c8e3883ee6350bb6af04a6931732ebaa284c4e3851b64081e042d081
42 -AUX iputils-20121221-owl-pingsock.diff 6374 SHA256 915e18ee5a03f5636b408ff34a5576ad8899a3d93d5fe8182984c3565bd94375 SHA512 2f2577230d8bc864adc562c4c5bf33cde3bbabfde633406165b2b61df4e13e2dba74c8561f70d88c3932fc49a41a0276533b715ade208c8608348e4d065c8395 WHIRLPOOL 205179fa205e8bd88a9077cf628ec1a060189ee01d55c45dbe754f3bc36a496531cb9eab120507eff5d72140c934a7480d6a015fa6020f7dcecdfbc6ef590443
43 AUX iputils-20121221-parallel-doc.patch 2042 SHA256 151aed9018976387d4001050b41ad5e28630a6e8ab88a0f8501ceb5c9424620e SHA512 cc3a0416c1380d4b799412769270f8fa522a8f931706b318f33add4b02b82e76b177ae6c976408405a83a6c84036f918a41cb3008ee17bf39ea30e8d1f5dc46d WHIRLPOOL adf1b6f7351dd3a255403529268b0c805198905123d6663ef860c72c6bf848029158419b701be39ce144f575de76b76140836ae30259aef2662df9e1c2a57659
44 -AUX iputils-20121221-printf-size.patch 1671 SHA256 a1ed939d0e008bca06208ae34e3f17a0ddc66b50f1679f82a630b52cdfbd111a SHA512 ff5491ad5a0396bee41fcbfc1384699d396c24da093bd2209dead67f52efcec462dbfb4a43008083742d0139da7bd52e922499b5f7eae028384c74930453dd33 WHIRLPOOL 8582495e9c58a01c3aafe6d0c968df910e672af20d420980ba7503800ad75e308c62cd53f86b5aaa8ef9d232ee7a0a4ea7bb3d9cd9735045ae0f6a21f8e419ee
45 AUX iputils-20121221-remove-rdisc-glibc-assumption.patch 770 SHA256 0639fca129c3e2ca57a7e0f0d3392474665e11f139cfa9362a365b3fca9593b2 SHA512 2ed65a0c0188cf6e06bfb5e3795fa720f7e7040533adbc1ce0c5ded435b823792790890826fc4250a6b2fba16576dc024c50d1faf9598f2fe36aadda77db8a36 WHIRLPOOL a656ae24a99bc5ee6356375be963324eb7fae6aa533e3a572f95bb4695200f2f66d2fa36e037a3c55ce95dcc1643bde4f80326c3cd32ccd53754dde639a1cbd8
46 AUX iputils-20121221-strtod.patch 1133 SHA256 461a883439a09854b483bce02187aa78eb16cb88364a834257d52f00ca4941cc SHA512 2e4dc1bdc8192c7c028bacb7f82fc13de2529f1dfdba71bbb05f04b468a609b343f8e1798bf991a1326d03a701428256960b2c0b7601bc84b50076b64c5ee946 WHIRLPOOL c781f7cab0d0910a48f91eb24647c0fda29b986ed11d35b1f275fb9cc6c1c2e53c0ea062668fed2d560a6bac751d7fa7f50b907324a79bbe560cffc65078833a
47 -AUX iputils-20150815-nonroot-floodping.patch 406 SHA256 0a2409e1dd040620adc88720f1bb3955d2121762dc600865167332f9b90f3f57 SHA512 4f63d788d4aeccd66c410b6cc3352934a9b7d9b1222dedbcd7688c2b884b620a308b44e2dc777421cef20365a6ae371d59ad349f76bc5fcc751f90169a8f0d34 WHIRLPOOL 56d86953105832e589e2b75ea6a806c09ae21d8b9f82e6734cd0b5522b7dfb0291c6f65fdd4baffa120281dc176dd6a5d0bf6f730bd35147a6e654feb02eb5cf
48 -AUX iputils-20171016-missing-AI_IDN-AI_CANONIDN-NI_IDN.patch 2328 SHA256 54f8db1ec0327a05cb3316a8089f506a249d42dac8420dcde5ecf18acc04bef8 SHA512 d2b3c68a9297e22ab033b5126adabe397201f6a84d6f0105233c20746b0826e6ed7318bba30f637ad4f3a19e1812a2a5a02c2eaafcc824b445f58518b8b1d408 WHIRLPOOL 4f34a35c8918951aaf0916f724901d4f9afc98a10a28e28f72f76fd7686610007c8c216ed794f161962e4f9588bc52a15e094cab2c17b4c1decfa8210026e0b5
49 AUX iputils-99999999-openssl.patch 2532 SHA256 0ffcce81badea00e84bdaf49929bc657ab574e98824a65ea3cd9015421372644 SHA512 2f782d93466d2db7d01295c7ec7c24fdb529e28f76c703c112d5dc8b4600402a68d4caf3c1df4f8879149e6fa52bb208dd14879cb01741544ccd49552e017afb WHIRLPOOL f51c56cbf23076f3db504a008e1eb732c9f961c86f815af57dfde96627fd2f15cc9fccae26481bb39a4365d3333e9080984f46bbd9370b9cfbfaf52625b5dfe3
50 AUX iputils-99999999-tftpd-syslog.patch 1075 SHA256 8502f11dd440a9df42da52e3426fa93aa4e4d879093be723601a4adf52c62d2b SHA512 43fa506475f138e92d04bd6a4417511caa3ed1636f6dea5d3930b6dca164a809338ab1f24b4bf084581ff849189a8240929182fa24897e252994851a6aae5188 WHIRLPOOL b32d3eeb0dd48012e8e5ed6ad14d603c1280e7203ce5ba6f465bfc005bb44b5fcac23eced9a6b7353966749541ab75380b347c98e46805e3e542562474f024df
51 -AUX iputils-99999999-tracepath46.patch 824 SHA256 883504e64394506473e48943fdafa60c2d90e267ff61b89cf78a824f62b7084f SHA512 65638246a73334640b02a136aa55a4a709d7c4639c57b7634d5595ec40d4bc9c41068a1469a76d22d0a216e9a2c8a52f7840432c435f40ee7035981494d0a443 WHIRLPOOL dabc88ec500a54418b999697e21ca9d0b570c05df8f289b8f518af81e0c547588c406741e78f0a1a6d6384f01121d28d90b69413d5cae7d68361d551af1a641e
52 AUX rarpd.conf.d 250 SHA256 86e79f5a4be44f8b15a8743b4b3128f2bcc40a553f81ebfd902c590f82d12a60 SHA512 8ff4c38b4f51f92ec6d66a446272e0cd9d958c3075162c5a4aa47eb54bb69f27045b888f8a547394ab3de51bdb69f14b8df528785a8c967fa33ab0c4db329338 WHIRLPOOL bf9e8b6d15dfaa4e76e0af91781cfa675b6db547e9293ea67f0ced50ed2e7ccd880bcbdffac12a197f85f1d643148cb806a10ce9d586c89be1f26248c1fc6aaf
53 AUX rarpd.init.d 583 SHA256 4b3efb6723a0c0b9ef7988ed9d3100ece49180483aa51fb69cf055e5d1565391 SHA512 926feed1792799ba63afd9a67111c7c3bf8157b758190a5f1587c25b016aa82cdeb4fbffa41ffa5012f2c3dae05fb8f4c0f0bf0ae2b3048c1299d9489ce1bada WHIRLPOOL aa25eb5ca849825842d9968ff0928552bb6070b1e8435e74b1af579c6382332941ae4f99c02c3a3eedd34474814e74733d9f15e4c88583aeb06003d508338e48
54 -DIST iputils-20171016_pre.tar.gz 195254 SHA256 2f1870633baeb999fe214a8958353f291caf3cedac242862930d41c760bf1748 SHA512 570896fc58d945e08032134701ab6ea02bbf6fff420437bc5f89687cdcce6f3c1c64418a4c5ff54ca3cdc582bae2c95e196b2c8368eba2b163ebf88490aabf99 WHIRLPOOL 76600ed31bfa10535c7aa6e33ab5019db8814c55ca9941a3857300bccb89650cdc8edea9d654103151bc5f54643f5618c9261d7ba5fa5c14e8f6293bca340db7
55 -DIST iputils-manpages-20171016_pre.tar.xz 29764 SHA256 f23e5bee1d59c5b8cabc47faab5d175de1c5b663379108ec70e75d2a74888883 SHA512 31b4b0b4e46d7c98530577392c636e4397917cbe415762145a119e68e3223bc85b9d5afcfe61ae01584a35f6a1a772adffc52deeedc722c474179fa1d208d8d9 WHIRLPOOL a80cfa73dd326dedff76de06b3939f631ff017e3bd5cbeb0f988eb27ad997c62c2be1dc645f3e415b7081942a0cbf9139729c998c77b47c989ccd61ad272cf6e
56 -DIST iputils-s20121221-manpages.tar.bz2 23778 SHA256 6fc7ed7d281b7a2ee00e4f75e5465c90498c685bcc988afdff74db4eaa736d1c SHA512 006be62e61bf1555c99dbd5aac270cbd8d1074a3016fdde3aeed47e5c9b1acd326aa30a596c532d6688827f7f61966a6e3141eaa3b6f4f943eb21ac227282d8c WHIRLPOOL da0ccb577c4b2189553419df2c093404752fb2865eb3e0bfececfc242d930ceb44f96b32d945cfdd0c9ca060359651b2ec8479db5cc9220cda412dfeee5e910d
57 -DIST iputils-s20121221.tar.bz2 155344 SHA256 450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f SHA512 693d240becd766c345c3af2053fc0699b9358e54d667d40738c21d731b70e779112d81476a220d8300ca54250120385414a13610d445996f95a90571047389f4 WHIRLPOOL 64529180eb4b8e2f7a60c18df7cac49e10a4b7702514252d418b16dcdc10a85ccb0a7f8beb51274cc9d708be2026c4c136e720986795fd39d314e4f9d5590ec9
58 DIST iputils-s20151218-manpages.tar.xz 22336 SHA256 ae60dcf7a5a83d02008c03888935fd2dcff56c9f86734d4656b6284a7631a28d SHA512 964b9e22b18b67215ea48e046c45768cd86076b53db2131b00ac721be9e7de4edadefb74855d81861f12b4e10dcecd90d29f0098c2c4568d7601d97e756be0a3 WHIRLPOOL 82e3c9930861ed2df00c3b40488212dc36d5d65d62e1e7245d778ff77c6660a93bdd1dd8931cdddba4a631a9321741c0c2246d0cf48b22fc562ee7a066ac75fd
59 DIST iputils-s20151218.tar.bz2 157187 SHA256 549f58d71951e52b46595829134d4e330642f522f50026917fadc349a54825a1 SHA512 4bf0eed0ae5603e872afb0e09be039df3822a7723e8cbb8cbe578d69d8c457ffac9bdbe2eb17b32c95968e5e4ad6204af955617482c5701671f0f476b560b65c WHIRLPOOL e5b1d89eeaf64c2be97217eff37ef9aea33f69925683067c5366eb8db30a0b8cd8e96c2c18eedb573c965a6508efcb9e67effa66da1ad8bd606a1c1ffff9adf7
60 -EBUILD iputils-20121221-r1.ebuild 3200 SHA256 c8366b5fd040eb4224264cb0fca20d17bf89a27658d8196ed5e461c31fc48ce8 SHA512 545f22070d3d9fab6e284247046e3eb65d3a80f19ca35f6ef55a1839149893ebd7a5c04ec5f63ef28e150d52f9a8ec227e43417e2bd595bd6fec9545ebe15a36 WHIRLPOOL cd71680060b158c67a32846d8911b7d348ab04eb6235ce3d752c8a4c3bccfaee113f2926cfdecc4374779e934e66f6dc17a13fa9c79ce20ab5dd5d0469eaf22b
61 EBUILD iputils-20151218.ebuild 4329 SHA256 fd5dcdbd604f900d2829a8c4ce508825a7f429359459506cf9f7a5aae8a466ad SHA512 a270c3377db404b44bb5b38b220f6ba2c05f51e0807cf998741ef7fa60a929d566121e09fa0a8b6b835ae58f84f322b990268525ee230a254d14792f1c8edafa WHIRLPOOL c2a22e6dfe5bc9beb91efcd97061e08ab83e7356a5a2f8f8e0579925110396afd98ad4ed045296eef4b87cd45104a7d6ea9d06bcbb04c6388bcd92f93acf859a
62 -EBUILD iputils-20171016_pre.ebuild 4118 SHA256 e55991be28d97bf98255fb503b98048d084ab43898657366f70657411dc0b4d8 SHA512 2cfa3ea5aec85473217d73f03d0e8899269b119cff04c0d5088f2167442b5a59723f62ef3b1454cffa6a8018c58989643bd0001c8622f171174ead30ebe476d6 WHIRLPOOL 7e951416c9e681acd2edd66549eb11cd181b6234c29aa5ed1fe3d2cf7ce33d37281f7b1687efa4516fa9c3c203aea8229db54757e79f7e4a3a8837fa9967ee31
63 -MISC metadata.xml 1698 SHA256 f42c67ff65e69eecd35829e42ad6f7ecddc6a92c79996557146f1c2099eaedf4 SHA512 f1d211dbe4212072614039c5aea1996270560a24dfa3734af86c4f1f4254cc3abf8440c03d8894b925b71b970e70fb60e79682753655a68b82203cdc401f6ebc WHIRLPOOL 745fa143c468727485be53de43f4748f170588a9d2f36a2d5aff4681c1e1a484866b7e59e91db724fb5948d383f61ff232791966fe112bd6a2e34d4d671d521e
64 +MISC metadata.xml 1540 SHA256 fdbee938f89b4f304e289907c17fc980782f8587c45d71eb2dd66f3dad9527cc SHA512 2843d252dc4378895ca5e3e31c1f04d1f2906cd1fd8ecb28deea031c2ba7fcc99d17b5474b78a1ae30ec8929cecd44afa1aa7582b37913e28ad419a95137d74f WHIRLPOOL 16d666eaff68f7e5c216069d1578ee29c2801848f0e87cbd9ebf446dc16a5466d30b510c024f590f0c7a65b56bbe7098e56e0ab8c6e12a002977708ba6015031
65
66 diff --git a/net-misc/iputils/files/iputils-20100418-so_mark.patch b/net-misc/iputils/files/iputils-20100418-so_mark.patch
67 deleted file mode 100644
68 index ad92254..0000000
69 --- a/net-misc/iputils/files/iputils-20100418-so_mark.patch
70 +++ /dev/null
71 @@ -1,22 +0,0 @@
72 -https://bugs.gentoo.org/335347
73 -
74 -fix building with older linux headers that don't define SO_MARK
75 -
76 ---- ping_common.c
77 -+++ ping_common.c
78 -@@ -485,6 +485,7 @@
79 - fprintf(stderr, "Warning: no SO_TIMESTAMP support, falling back to SIOCGSTAMP\n");
80 - }
81 - #endif
82 -+#ifdef SO_MARK
83 - if (options & F_MARK) {
84 - if (setsockopt(icmp_sock, SOL_SOCKET, SO_MARK,
85 - &mark, sizeof(mark)) == -1) {
86 -@@ -494,6 +495,7 @@
87 - fprintf(stderr, "Warning: Failed to set mark %d\n", mark);
88 - }
89 - }
90 -+#endif
91 -
92 - /* Set some SNDTIMEO to prevent blocking forever
93 - * on sends, when device is too slow or stalls. Just put limit
94
95 diff --git a/net-misc/iputils/files/iputils-20121221-crypto-build.patch b/net-misc/iputils/files/iputils-20121221-crypto-build.patch
96 deleted file mode 100644
97 index 1ec3c10..0000000
98 --- a/net-misc/iputils/files/iputils-20121221-crypto-build.patch
99 +++ /dev/null
100 @@ -1,35 +0,0 @@
101 -From 568e990d30fc7e9416e0a6f8c74ea5013921eaec Mon Sep 17 00:00:00 2001
102 -From: Arjan van de Ven <arjanvandeven@×××××.com>
103 -Date: Wed, 16 Jan 2013 03:12:15 +0900
104 -Subject: [PATCH [iputils]] ping6: Fix build command line argument with gnutls.
105 -
106 -The ping6 command can use either openssl or gnutls...
107 -and the Makefile has a bunch of setup for defining which of the two to use.
108 -
109 -Unfortunately, the final -D define on the commandline to enable gnutls
110 -inside the ping6.c file didn't actually make it onto the gcc
111 -commandline.
112 -This patch adds the $(DEF_CRYPTO) Makefile variable to fix this gap.
113 -
114 -Signed-off-by: Arjan van de Ven <arjanvandeven@×××××.com>
115 -Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@××××××××××.org>
116 ----
117 - Makefile | 2 +-
118 - 1 file changed, 1 insertion(+), 1 deletion(-)
119 -
120 -diff --git a/Makefile b/Makefile
121 -index c62d9df..89249f5 100644
122 ---- a/Makefile
123 -+++ b/Makefile
124 -@@ -149,7 +149,7 @@ LIB_clockdiff = $(LIB_CAP)
125 - DEF_ping_common = $(DEF_CAP) $(DEF_IDN)
126 - DEF_ping = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS)
127 - LIB_ping = $(LIB_CAP) $(LIB_IDN)
128 --DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR)
129 -+DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR) $(DEF_CRYPTO)
130 - LIB_ping6 = $(LIB_CAP) $(LIB_IDN) $(LIB_RESOLV) $(LIB_CRYPTO)
131 -
132 - ping: ping_common.o
133 ---
134 -1.8.0.2
135 -
136
137 diff --git a/net-misc/iputils/files/iputils-20121221-openssl.patch b/net-misc/iputils/files/iputils-20121221-openssl.patch
138 deleted file mode 100644
139 index 1c6ba81..0000000
140 --- a/net-misc/iputils/files/iputils-20121221-openssl.patch
141 +++ /dev/null
142 @@ -1,92 +0,0 @@
143 -From b57d77dcfa5cb363b7eba5b331324669a8505ac4 Mon Sep 17 00:00:00 2001
144 -From: Mike Frysinger <vapier@g.o>
145 -Date: Thu, 24 Jan 2013 23:32:39 -0500
146 -Subject: [PATCH [iputils]] ping6: allow disabling of openssl support
147 -
148 -Signed-off-by: Mike Frysinger <vapier@g.o>
149 ----
150 - Makefile | 5 ++++-
151 - ping6.c | 14 +++++++++++++-
152 - 2 files changed, 17 insertions(+), 2 deletions(-)
153 -
154 -diff --git a/Makefile b/Makefile
155 -index 89249f5..2c49940 100644
156 ---- a/Makefile
157 -+++ b/Makefile
158 -@@ -36,7 +36,7 @@ ARPING_DEFAULT_DEVICE=
159 -
160 - # GNU TLS library for ping6 [yes|no|static]
161 - USE_GNUTLS=yes
162 --# Crypto library for ping6 [shared|static]
163 -+# Crypto library for ping6 [shared|static|no]
164 - USE_CRYPTO=shared
165 - # Resolv library for ping6 [yes|static]
166 - USE_RESOLV=yes
167 -@@ -63,7 +63,10 @@ ifneq ($(USE_GNUTLS),no)
168 - LIB_CRYPTO = $(call FUNC_LIB,$(USE_GNUTLS),$(LDFLAG_GNUTLS))
169 - DEF_CRYPTO = -DUSE_GNUTLS
170 - else
171 -+ifneq ($(USE_CRYPTO),no)
172 - LIB_CRYPTO = $(call FUNC_LIB,$(USE_CRYPTO),$(LDFLAG_CRYPTO))
173 -+ DEF_CRYPTO = -DUSE_OPENSSL
174 -+endif
175 - endif
176 -
177 - # USE_RESOLV: LIB_RESOLV
178 -diff --git a/ping6.c b/ping6.c
179 -index c39864d..f2f90af 100644
180 ---- a/ping6.c
181 -+++ b/ping6.c
182 -@@ -168,8 +168,10 @@ static int icmp_sock;
183 -
184 - #ifdef USE_GNUTLS
185 - # include <gnutls/openssl.h>
186 --#else
187 -+# define USE_CRYPTO
188 -+#elif defined USE_OPENSSL
189 - # include <openssl/md5.h>
190 -+# define USE_CRYPTO
191 - #endif
192 -
193 - /* Node Information query */
194 -@@ -326,6 +328,7 @@ static void niquery_init_nonce(void)
195 - #if !PING6_NONCE_MEMORY
196 - static int niquery_nonce(__u8 *nonce, int fill)
197 - {
198 -+# ifdef USE_CRYPTO
199 - static __u8 digest[MD5_DIGEST_LENGTH];
200 - static int seq = -1;
201 -
202 -@@ -348,6 +351,10 @@ static int niquery_nonce(__u8 *nonce, int fill)
203 - return -1;
204 - return ntohsp((__u16 *)nonce);
205 - }
206 -+# else
207 -+ fprintf(stderr, "ping6: function not available; crypto disabled\n");
208 -+ exit(3);
209 -+# endif
210 - }
211 - #endif
212 -
213 -@@ -502,6 +509,7 @@ static int niquery_option_subject_addr_handler(int index, const char *arg)
214 -
215 - static int niquery_option_subject_name_handler(int index, const char *arg)
216 - {
217 -+#ifdef USE_CRYPTO
218 - static char nigroup_buf[INET6_ADDRSTRLEN + 1 + IFNAMSIZ];
219 - unsigned char *dnptrs[2], **dpp, **lastdnptr;
220 - int n;
221 -@@ -627,6 +635,10 @@ errexit:
222 - free(idn);
223 - free(name);
224 - exit(1);
225 -+#else
226 -+ fprintf(stderr, "ping6: function not available; crypto disabled\n");
227 -+ exit(3);
228 -+#endif
229 - }
230 -
231 - int niquery_option_help_handler(int index, const char *arg)
232 ---
233 -1.8.0.2
234 -
235
236 diff --git a/net-misc/iputils/files/iputils-20121221-owl-pingsock.diff b/net-misc/iputils/files/iputils-20121221-owl-pingsock.diff
237 deleted file mode 100644
238 index 283aa98..0000000
239 --- a/net-misc/iputils/files/iputils-20121221-owl-pingsock.diff
240 +++ /dev/null
241 @@ -1,224 +0,0 @@
242 -http://openwall.info/wiki/people/segoon/ping
243 -
244 ---- iputils-s20101006/ping.c
245 -+++ iputils-s20101006/ping.c
246 -@@ -88,6 +88,7 @@ struct sockaddr_in whereto; /* who to pi
247 - int optlen = 0;
248 - int settos = 0; /* Set TOS, Precendence or other QOS options */
249 - int icmp_sock; /* socket file descriptor */
250 -+int using_ping_socket = 0;
251 - u_char outpack[0x10000];
252 - int maxpacket = sizeof(outpack);
253 -
254 -@@ -123,7 +124,11 @@ main(int argc, char **argv)
255 - char *target, hnamebuf[MAX_HOSTNAMELEN];
256 - char rspace[3 + 4 * NROUTES + 1]; /* record route space */
257 -
258 -- icmp_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
259 -+ icmp_sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
260 -+ if (icmp_sock != -1)
261 -+ using_ping_socket = 1;
262 -+ else
263 -+ icmp_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
264 - socket_errno = errno;
265 -
266 - uid = getuid();
267 -@@ -377,13 +382,35 @@ main(int argc, char **argv)
268 - }
269 - }
270 -
271 -- if ((options&F_STRICTSOURCE) &&
272 -- bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
273 -- perror("bind");
274 -- exit(2);
275 -+ if (!using_ping_socket) {
276 -+ if ((options&F_STRICTSOURCE) &&
277 -+ bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
278 -+ perror("bind");
279 -+ exit(2);
280 -+ }
281 -+ } else {
282 -+ struct sockaddr_in sa;
283 -+ socklen_t sl;
284 -+
285 -+ sa.sin_family = AF_INET;
286 -+ sa.sin_port = 0;
287 -+ sa.sin_addr.s_addr = (options&F_STRICTSOURCE) ?
288 -+ source.sin_addr.s_addr : 0;
289 -+ sl = sizeof(sa);
290 -+
291 -+ if (bind(icmp_sock, (struct sockaddr *) &sa, sl) == -1) {
292 -+ perror("bind");
293 -+ exit(2);
294 -+ }
295 -+
296 -+ if (getsockname(icmp_sock, (struct sockaddr *) &sa, &sl) == -1) {
297 -+ perror("getsockname");
298 -+ exit(2);
299 -+ }
300 -+ ident = sa.sin_port;
301 - }
302 -
303 -- if (1) {
304 -+ if (!using_ping_socket) {
305 - struct icmp_filter filt;
306 - filt.data = ~((1<<ICMP_SOURCE_QUENCH)|
307 - (1<<ICMP_DEST_UNREACH)|
308 -@@ -398,6 +425,12 @@ main(int argc, char **argv)
309 - hold = 1;
310 - if (setsockopt(icmp_sock, SOL_IP, IP_RECVERR, (char *)&hold, sizeof(hold)))
311 - fprintf(stderr, "WARNING: your kernel is veeery old. No problems.\n");
312 -+ if (using_ping_socket) {
313 -+ if (setsockopt(icmp_sock, SOL_IP, IP_RECVTTL, (char *)&hold, sizeof(hold)))
314 -+ perror("WARNING: setsockopt(IP_RECVTTL)");
315 -+ if (setsockopt(icmp_sock, SOL_IP, IP_RETOPTS, (char *)&hold, sizeof(hold)))
316 -+ perror("WARNING: setsockopt(IP_RETOPTS)");
317 -+ }
318 -
319 - /* record route option */
320 - if (options & F_RROUTE) {
321 -@@ -566,6 +599,7 @@ int receive_error_msg()
322 - nerrors++;
323 - } else if (e->ee_origin == SO_EE_ORIGIN_ICMP) {
324 - struct sockaddr_in *sin = (struct sockaddr_in*)(e+1);
325 -+ int error_pkt;
326 -
327 - if (res < sizeof(icmph) ||
328 - target.sin_addr.s_addr != whereto.sin_addr.s_addr ||
329 -@@ -576,9 +610,18 @@ int receive_error_msg()
330 - goto out;
331 - }
332 -
333 -- acknowledge(ntohs(icmph.un.echo.sequence));
334 -+ error_pkt = (e->ee_type != ICMP_REDIRECT &&
335 -+ e->ee_type != ICMP_SOURCE_QUENCH);
336 -+ if (error_pkt) {
337 -+ acknowledge(ntohs(icmph.un.echo.sequence));
338 -+ net_errors++;
339 -+ nerrors++;
340 -+ }
341 -+ else {
342 -+ saved_errno = 0;
343 -+ }
344 -
345 -- if (!working_recverr) {
346 -+ if (!using_ping_socket && !working_recverr) {
347 - struct icmp_filter filt;
348 - working_recverr = 1;
349 - /* OK, it works. Add stronger filter. */
350 -@@ -589,15 +632,14 @@ int receive_error_msg()
351 - perror("\rWARNING: setsockopt(ICMP_FILTER)");
352 - }
353 -
354 -- net_errors++;
355 -- nerrors++;
356 - if (options & F_QUIET)
357 - goto out;
358 - if (options & F_FLOOD) {
359 -- write_stdout("\bE", 2);
360 -+ if (error_pkt)
361 -+ write_stdout("\bE", 2);
362 - } else {
363 - print_timestamp();
364 -- printf("From %s icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence));
365 -+ printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence));
366 - pr_icmph(e->ee_type, e->ee_code, e->ee_info, NULL);
367 - fflush(stdout);
368 - }
369 -@@ -695,15 +737,41 @@ parse_reply(struct msghdr *msg, int cc,
370 - struct iphdr *ip;
371 - int hlen;
372 - int csfailed;
373 -+ struct cmsghdr *cmsg;
374 -+ int ttl;
375 -+ __u8 *opts;
376 -+ int optlen;
377 -
378 - /* Check the IP header */
379 - ip = (struct iphdr *)buf;
380 -- hlen = ip->ihl*4;
381 -- if (cc < hlen + 8 || ip->ihl < 5) {
382 -- if (options & F_VERBOSE)
383 -- fprintf(stderr, "ping: packet too short (%d bytes) from %s\n", cc,
384 -- pr_addr(from->sin_addr.s_addr));
385 -- return 1;
386 -+ if (!using_ping_socket) {
387 -+ hlen = ip->ihl*4;
388 -+ if (cc < hlen + 8 || ip->ihl < 5) {
389 -+ if (options & F_VERBOSE)
390 -+ fprintf(stderr, "ping: packet too short (%d bytes) from %s\n", cc,
391 -+ pr_addr(from->sin_addr.s_addr));
392 -+ return 1;
393 -+ }
394 -+ ttl = ip->ttl;
395 -+ opts = buf + sizeof(struct iphdr);
396 -+ optlen = hlen - sizeof(struct iphdr);
397 -+ } else {
398 -+ hlen = 0;
399 -+ ttl = 0;
400 -+ opts = buf;
401 -+ optlen = 0;
402 -+ for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) {
403 -+ if (cmsg->cmsg_level != SOL_IP)
404 -+ continue;
405 -+ if (cmsg->cmsg_type == IP_TTL) {
406 -+ if (cmsg->cmsg_len < sizeof(int))
407 -+ continue;
408 -+ ttl = *(int *) CMSG_DATA(cmsg);
409 -+ } else if (cmsg->cmsg_type == IP_RETOPTS) {
410 -+ opts = (__u8 *) CMSG_DATA(cmsg);
411 -+ optlen = cmsg->cmsg_len;
412 -+ }
413 -+ }
414 - }
415 -
416 - /* Now the ICMP part */
417 -@@ -716,7 +784,7 @@ parse_reply(struct msghdr *msg, int cc,
418 - return 1; /* 'Twas not our ECHO */
419 - if (gather_statistics((__u8*)icp, sizeof(*icp), cc,
420 - ntohs(icp->un.echo.sequence),
421 -- ip->ttl, 0, tv, pr_addr(from->sin_addr.s_addr),
422 -+ ttl, 0, tv, pr_addr(from->sin_addr.s_addr),
423 - pr_echo_reply))
424 - return 0;
425 - } else {
426 -@@ -807,7 +875,7 @@ parse_reply(struct msghdr *msg, int cc,
427 - }
428 -
429 - if (!(options & F_FLOOD)) {
430 -- pr_options(buf + sizeof(struct iphdr), hlen);
431 -+ pr_options(opts, optlen + sizeof(struct iphdr));
432 -
433 - if (options & F_AUDIBLE)
434 - putchar('\a');
435 -@@ -916,8 +984,7 @@ void pr_icmph(__u8 type, __u8 code, __u3
436 - printf("Redirect, Bad Code: %d", code);
437 - break;
438 - }
439 -- if (icp)
440 -- printf("(New nexthop: %s)\n", pr_addr(icp->un.gateway));
441 -+ printf("(New nexthop: %s)\n", pr_addr(icp ? icp->un.gateway : info));
442 - if (icp && (options & F_VERBOSE))
443 - pr_iph((struct iphdr*)(icp + 1));
444 - break;
445 -@@ -1217,7 +1284,7 @@ void install_filter(void)
446 - insns
447 - };
448 -
449 -- if (once)
450 -+ if (once || using_ping_socket)
451 - return;
452 - once = 1;
453 -
454 ---- iputils-s20101006/ping_common.c
455 -+++ iputils-s20101006/ping_common.c
456 -@@ -515,7 +515,8 @@ void setup(int icmp_sock)
457 - *p++ = i;
458 - }
459 -
460 -- ident = htons(getpid() & 0xFFFF);
461 -+ if (!ident)
462 -+ ident = htons(getpid() & 0xFFFF);
463 -
464 - set_signal(SIGINT, sigexit);
465 - set_signal(SIGALRM, sigexit);
466
467 diff --git a/net-misc/iputils/files/iputils-20121221-printf-size.patch b/net-misc/iputils/files/iputils-20121221-printf-size.patch
468 deleted file mode 100644
469 index 6d6c3b7..0000000
470 --- a/net-misc/iputils/files/iputils-20121221-printf-size.patch
471 +++ /dev/null
472 @@ -1,64 +0,0 @@
473 -From 23fcb10ae15a96aa9e5a823cfe0b612d9522691c Mon Sep 17 00:00:00 2001
474 -From: Mike Frysinger <vapier@g.o>
475 -Date: Sat, 14 Aug 2010 01:16:42 -0400
476 -Subject: [PATCH [iputils]] tracepath: re-use printf return in print_host
477 -
478 -Since the printf funcs already return the length of chars displayed,
479 -use that value instead of re-calculating the length with strlen.
480 -
481 -This also fixes the handling of the strlen return -- it's a size_t,
482 -not an int.
483 -
484 -Signed-off-by: Mike Frysinger <vapier@g.o>
485 ----
486 - tracepath.c | 11 ++++-------
487 - tracepath6.c | 11 ++++-------
488 - 2 files changed, 8 insertions(+), 14 deletions(-)
489 -
490 -diff --git a/tracepath.c b/tracepath.c
491 -index 8a08f1d..f155816 100644
492 ---- a/tracepath.c
493 -+++ b/tracepath.c
494 -@@ -73,13 +73,10 @@ void data_wait(int fd)
495 -
496 - void print_host(const char *a, const char *b, int both)
497 - {
498 -- int plen = 0;
499 -- printf("%s", a);
500 -- plen = strlen(a);
501 -- if (both) {
502 -- printf(" (%s)", b);
503 -- plen += strlen(b) + 3;
504 -- }
505 -+ int plen;
506 -+ plen = printf("%s", a);
507 -+ if (both)
508 -+ plen += printf(" (%s)", b);
509 - if (plen >= HOST_COLUMN_SIZE)
510 - plen = HOST_COLUMN_SIZE - 1;
511 - printf("%*s", HOST_COLUMN_SIZE - plen, "");
512 -diff --git a/tracepath6.c b/tracepath6.c
513 -index 126fadf..bee95c3 100644
514 ---- a/tracepath6.c
515 -+++ b/tracepath6.c
516 -@@ -86,13 +86,10 @@ void data_wait(int fd)
517 -
518 - void print_host(const char *a, const char *b, int both)
519 - {
520 -- int plen = 0;
521 -- printf("%s", a);
522 -- plen = strlen(a);
523 -- if (both) {
524 -- printf(" (%s)", b);
525 -- plen += strlen(b) + 3;
526 -- }
527 -+ int plen;
528 -+ plen = printf("%s", a);
529 -+ if (both)
530 -+ plen += printf(" (%s)", b);
531 - if (plen >= HOST_COLUMN_SIZE)
532 - plen = HOST_COLUMN_SIZE - 1;
533 - printf("%*s", HOST_COLUMN_SIZE - plen, "");
534 ---
535 -1.8.0.2
536 -
537
538 diff --git a/net-misc/iputils/files/iputils-20150815-nonroot-floodping.patch b/net-misc/iputils/files/iputils-20150815-nonroot-floodping.patch
539 deleted file mode 100644
540 index 50e108b..0000000
541 --- a/net-misc/iputils/files/iputils-20150815-nonroot-floodping.patch
542 +++ /dev/null
543 @@ -1,11 +0,0 @@
544 ---- iputils-s20150815/ping.h
545 -+++ iputils-s20150815/ping.h
546 -@@ -61,7 +61,7 @@
547 -
548 - #define MAXWAIT 10 /* max seconds to wait for response */
549 - #define MININTERVAL 10 /* Minimal interpacket gap */
550 --#define MINUSERINTERVAL 200 /* Minimal allowed interval for non-root */
551 -+#define MINUSERINTERVAL 0 /* Minimal allowed interval for non-root */
552 -
553 - #define SCHINT(a) (((a) <= MININTERVAL) ? MININTERVAL : (a))
554 -
555
556 diff --git a/net-misc/iputils/files/iputils-20171016-missing-AI_IDN-AI_CANONIDN-NI_IDN.patch b/net-misc/iputils/files/iputils-20171016-missing-AI_IDN-AI_CANONIDN-NI_IDN.patch
557 deleted file mode 100644
558 index 94338cc..0000000
559 --- a/net-misc/iputils/files/iputils-20171016-missing-AI_IDN-AI_CANONIDN-NI_IDN.patch
560 +++ /dev/null
561 @@ -1,70 +0,0 @@
562 -diff -Naur iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/arping.c iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/arping.c
563 ---- iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/arping.c 2017-10-16 01:44:15.000000000 -0700
564 -+++ iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/arping.c 2017-10-28 11:50:51.803318287 -0700
565 -@@ -45,6 +45,13 @@
566 - #ifdef USE_IDN
567 - #include <idna.h>
568 - #include <locale.h>
569 -+
570 -+#ifndef AI_IDN
571 -+#define AI_IDN 0x0040
572 -+#endif
573 -+#ifndef AI_CANONIDN
574 -+#define AI_CANONIDN 0x0080
575 -+#endif
576 - #endif
577 -
578 - #include "SNAPSHOT.h"
579 -diff -Naur iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/ping.h iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/ping.h
580 ---- iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/ping.h 2017-10-16 01:44:15.000000000 -0700
581 -+++ iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/ping.h 2017-10-28 11:51:15.378317864 -0700
582 -@@ -38,6 +38,17 @@
583 - #include <locale.h>
584 - #include <idna.h>
585 - #include <stringprep.h>
586 -+
587 -+#ifndef AI_IDN
588 -+#define AI_IDN 0x0040
589 -+#endif
590 -+#ifndef AI_CANONIDN
591 -+#define AI_CANONIDN 0x0080
592 -+#endif
593 -+#ifndef NI_IDN
594 -+#define NI_IDN 32
595 -+#endif
596 -+
597 - #define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN)
598 - #define getnameinfo_flags NI_IDN
599 - #else
600 -diff -Naur iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/tracepath.c iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/tracepath.c
601 ---- iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/tracepath.c 2017-10-16 01:44:15.000000000 -0700
602 -+++ iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/tracepath.c 2017-10-28 11:53:11.880315778 -0700
603 -@@ -30,6 +30,14 @@
604 - #ifdef USE_IDN
605 - #include <idna.h>
606 - #include <locale.h>
607 -+
608 -+#ifndef AI_IDN
609 -+#define AI_IDN 0x0040
610 -+#endif
611 -+#ifndef NI_IDN
612 -+#define NI_IDN 32
613 -+#endif
614 -+
615 - #define getnameinfo_flags NI_IDN
616 - #else
617 - #define getnameinfo_flags 0
618 -diff -Naur iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/traceroute6.c iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/traceroute6.c
619 ---- iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf.orig/traceroute6.c 2017-10-16 01:44:15.000000000 -0700
620 -+++ iputils-67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf/traceroute6.c 2017-10-28 11:53:39.517315283 -0700
621 -@@ -247,6 +247,10 @@
622 - #include <idna.h>
623 - #include <locale.h>
624 -
625 -+#ifndef NI_IDN
626 -+#define NI_IDN 32
627 -+#endif
628 -+
629 - #define getnameinfo_flags NI_IDN
630 - #else
631 - #define getnameinfo_flags 0
632
633 diff --git a/net-misc/iputils/files/iputils-99999999-tracepath46.patch b/net-misc/iputils/files/iputils-99999999-tracepath46.patch
634 deleted file mode 100644
635 index 20d017b..0000000
636 --- a/net-misc/iputils/files/iputils-99999999-tracepath46.patch
637 +++ /dev/null
638 @@ -1,30 +0,0 @@
639 -From 2c4d0838dda90515d4971881d86e8b969baebe01 Mon Sep 17 00:00:00 2001
640 -From: Thomas Deutschmann <whissi@g.o>
641 -Date: Thu, 19 Oct 2017 17:38:20 +0200
642 -Subject: [PATCH] tracepath: Support calling `tracepath` as `tracepath4` or
643 - `tracepath6`
644 -
645 ----
646 - tracepath.c | 6 ++++++
647 - 1 file changed, 6 insertions(+)
648 -
649 -diff --git a/tracepath.c b/tracepath.c
650 -index b0eb911..d2a6edf 100644
651 ---- a/tracepath.c
652 -+++ b/tracepath.c
653 -@@ -394,6 +394,12 @@ int main(int argc, char **argv)
654 - setlocale(LC_ALL, "");
655 - #endif
656 -
657 -+ /* Support being called using `tracepath4` or `tracepath6` symlinks */
658 -+ if (argv[0][strlen(argv[0])-1] == '4')
659 -+ hints.ai_family = AF_INET;
660 -+ else if (argv[0][strlen(argv[0])-1] == '6')
661 -+ hints.ai_family = AF_INET6;
662 -+
663 - while ((ch = getopt(argc, argv, "46nbh?l:m:p:")) != EOF) {
664 - switch(ch) {
665 - case '4':
666 ---
667 -2.14.3
668 -
669
670 diff --git a/net-misc/iputils/iputils-20121221-r1.ebuild b/net-misc/iputils/iputils-20121221-r1.ebuild
671 deleted file mode 100644
672 index 9bcdd13..0000000
673 --- a/net-misc/iputils/iputils-20121221-r1.ebuild
674 +++ /dev/null
675 @@ -1,111 +0,0 @@
676 -# Copyright 1999-2017 Gentoo Foundation
677 -# Distributed under the terms of the GNU General Public License v2
678 -
679 -# For released versions, we precompile the man/html pages and store
680 -# them in a tarball on our mirrors. This avoids ugly issues while
681 -# building stages, and when the jade/sgml packages are broken (which
682 -# seems to be more common than would be nice).
683 -
684 -EAPI="4"
685 -
686 -inherit flag-o-matic eutils toolchain-funcs fcaps
687 -if [[ ${PV} == "99999999" ]] ; then
688 - EGIT_REPO_URI="git://www.linux-ipv6.org/gitroot/iputils"
689 - inherit git-2
690 -else
691 - SRC_URI="http://www.skbuff.net/iputils/iputils-s${PV}.tar.bz2
692 - mirror://gentoo/iputils-s${PV}-manpages.tar.bz2"
693 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-linux ~x86-linux"
694 -fi
695 -
696 -DESCRIPTION="Network monitoring tools including ping and ping6"
697 -HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils"
698 -
699 -LICENSE="BSD GPL-2+ rdisc"
700 -SLOT="0"
701 -IUSE="caps doc gnutls idn ipv6 SECURITY_HAZARD ssl static"
702 -
703 -LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
704 - idn? ( net-dns/libidn[static-libs(+)] )
705 - ipv6? ( ssl? (
706 - gnutls? (
707 - net-libs/gnutls[openssl(+)]
708 - net-libs/gnutls[static-libs(+)]
709 - )
710 - !gnutls? ( dev-libs/openssl:0[static-libs(+)] )
711 - ) )"
712 -RDEPEND="!net-misc/rarpd
713 - !static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
714 -DEPEND="${RDEPEND}
715 - static? ( ${LIB_DEPEND} )
716 - virtual/os-headers"
717 -if [[ ${PV} == "99999999" ]] ; then
718 - DEPEND+="
719 - app-text/openjade
720 - dev-perl/SGMLSpm
721 - app-text/docbook-sgml-dtd
722 - app-text/docbook-sgml-utils
723 - "
724 -fi
725 -
726 -S=${WORKDIR}/${PN}-s${PV}
727 -
728 -src_prepare() {
729 - # musl patches
730 - epatch "${FILESDIR}"/${PN}-20121221-fix-musl-headers.patch
731 - epatch "${FILESDIR}"/${PN}-20121221-add-bits_types_h.patch
732 - epatch "${FILESDIR}"/${PN}-20121221-remove-rdisc-glibc-assumption.patch
733 - epatch "${FILESDIR}"/${PN}-20121221-fix-init-elemnt.patch
734 - epatch "${FILESDIR}"/${PN}-20121221-fix-header-order.patch
735 - epatch "${FILESDIR}"/${PN}-20121221-missing-AI_IDN-NI_IDN.patch
736 -
737 - epatch "${FILESDIR}"/021109-uclibc-no-ether_ntohost.patch
738 - epatch "${FILESDIR}"/${PN}-20121221-openssl.patch #335436
739 - epatch "${FILESDIR}"/${PN}-20121221-crypto-build.patch
740 - epatch "${FILESDIR}"/${PN}-20100418-so_mark.patch #335347
741 - epatch "${FILESDIR}"/${PN}-20121221-makefile.patch
742 - epatch "${FILESDIR}"/${PN}-20121221-printf-size.patch
743 - epatch "${FILESDIR}"/${PN}-20121221-owl-pingsock.diff
744 - use SECURITY_HAZARD && epatch "${FILESDIR}"/${PN}-20071127-nonroot-floodping.patch
745 - use static && append-ldflags -static
746 -}
747 -
748 -src_compile() {
749 - tc-export CC
750 - emake \
751 - USE_CAP=$(usex caps) \
752 - USE_IDN=$(usex idn) \
753 - USE_GNUTLS=$(usex gnutls) \
754 - USE_CRYPTO=$(usex ssl) \
755 - $(use ipv6 || echo IPV6_TARGETS=)
756 -
757 - if [[ ${PV} == "99999999" ]] ; then
758 - emake -j1 html man
759 - fi
760 -}
761 -
762 -ipv6() { usex ipv6 "$*" '' ; }
763 -
764 -src_install() {
765 - into /
766 - dobin arping ping $(ipv6 ping6)
767 - into /usr
768 - dobin clockdiff
769 - dosbin rarpd rdisc ipg tftpd tracepath $(ipv6 tracepath6)
770 -
771 - dodoc INSTALL RELNOTES
772 - use ipv6 \
773 - && dosym ping.8 /usr/share/man/man8/ping6.8 \
774 - || rm -f doc/*6.8
775 - rm -f doc/{setkey,traceroute6}.8
776 - doman doc/*.8
777 -
778 - use doc && dohtml doc/*.html
779 -}
780 -
781 -pkg_postinst() {
782 - fcaps cap_net_raw \
783 - bin/{ar,}ping \
784 - $(ipv6 bin/ping6) \
785 - usr/bin/clockdiff
786 -}
787
788 diff --git a/net-misc/iputils/iputils-20171016_pre.ebuild b/net-misc/iputils/iputils-20171016_pre.ebuild
789 deleted file mode 100644
790 index d6bbffd..0000000
791 --- a/net-misc/iputils/iputils-20171016_pre.ebuild
792 +++ /dev/null
793 @@ -1,178 +0,0 @@
794 -# Copyright 1999-2017 Gentoo Foundation
795 -# Distributed under the terms of the GNU General Public License v2
796 -
797 -# For released versions, we precompile the man/html pages and store
798 -# them in a tarball on our mirrors. This avoids ugly issues while
799 -# building stages, and reduces depedencies.
800 -# To regenerate man/html pages emerge iputils-99999999[doc] with
801 -# EGIT_COMMIT set to release tag and tar ${S}/doc folder.
802 -
803 -EAPI="6"
804 -
805 -inherit flag-o-matic toolchain-funcs fcaps
806 -
807 -MY_COMMIT="67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf"
808 -
809 -if [[ ${PV} == "99999999" ]] ; then
810 - EGIT_REPO_URI="https://github.com/iputils/iputils.git"
811 - inherit git-r3
812 -else
813 - SRC_URI="https://github.com/iputils/iputils/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz
814 - https://dev.gentoo.org/~whissi/dist/iputils/${PN}-manpages-${PV}.tar.xz"
815 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux"
816 -fi
817 -
818 -DESCRIPTION="Network monitoring tools including ping and ping6"
819 -HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils"
820 -
821 -LICENSE="BSD GPL-2+ rdisc"
822 -SLOT="0"
823 -IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle +openssl rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute"
824 -
825 -LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
826 - idn? ( net-dns/libidn[static-libs(+)] )
827 - ipv6? ( ssl? (
828 - gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] )
829 - nettle? ( dev-libs/nettle[static-libs(+)] )
830 - openssl? (
831 - !libressl? ( dev-libs/openssl:0[static-libs(+)] )
832 - libressl? ( dev-libs/libressl[static-libs(+)] )
833 - )
834 - ) )"
835 -RDEPEND="arping? ( !net-misc/arping )
836 - rarpd? ( !net-misc/rarpd )
837 - traceroute? ( !net-analyzer/traceroute )
838 - !static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
839 -DEPEND="${RDEPEND}
840 - static? ( ${LIB_DEPEND} )
841 - virtual/os-headers
842 -"
843 -if [[ ${PV} == "99999999" ]] ; then
844 - DEPEND+="app-text/docbook-xml-dtd:4.2
845 - app-text/docbook-xml-dtd:4.5
846 - app-text/docbook-xsl-stylesheets
847 - dev-libs/libxslt:0
848 - "
849 -fi
850 -
851 -REQUIRED_USE="ipv6? ( ssl? ( ^^ ( gcrypt nettle openssl ) ) )"
852 -
853 -[ "${PV}" = "99999999" ] || S="${WORKDIR}/${PN}-s${PV}"
854 -
855 -S="${WORKDIR}/${PN}-${MY_COMMIT}"
856 -
857 -PATCHES=(
858 - "${FILESDIR}"/${PN}-99999999-tracepath46.patch
859 - "${FILESDIR}"/${PN}-20171016-missing-AI_IDN-AI_CANONIDN-NI_IDN.patch
860 -)
861 -
862 -src_prepare() {
863 - use SECURITY_HAZARD && PATCHES+=( "${FILESDIR}"/${PN}-20150815-nonroot-floodping.patch )
864 -
865 - default
866 -}
867 -
868 -src_configure() {
869 - use static && append-ldflags -static
870 -
871 - TARGETS=(
872 - ping
873 - $(for v in arping clockdiff rarpd rdisc tftpd tracepath ; do usev ${v} ; done)
874 - )
875 - if use ipv6 ; then
876 - TARGETS+=(
877 - $(usex traceroute 'traceroute6' '')
878 - )
879 - fi
880 -
881 - myconf=(
882 - USE_CRYPTO=no
883 - USE_GCRYPT=no
884 - USE_NETTLE=no
885 - )
886 -
887 - if use ipv6 && use ssl ; then
888 - myconf=(
889 - USE_CRYPTO=$(usex openssl)
890 - USE_GCRYPT=$(usex gcrypt)
891 - USE_NETTLE=$(usex nettle)
892 - )
893 - fi
894 -}
895 -
896 -src_compile() {
897 - tc-export CC
898 - emake \
899 - USE_CAP=$(usex caps) \
900 - USE_IDN=$(usex idn) \
901 - IPV4_DEFAULT=$(usex ipv6 'no' 'yes') \
902 - TARGETS="${TARGETS[*]}" \
903 - ${myconf[@]}
904 -
905 - if [[ ${PV} == "99999999" ]] ; then
906 - emake man
907 -
908 - use doc && emake html
909 - fi
910 -}
911 -
912 -src_install() {
913 - into /
914 - dobin ping
915 - dosym ping /bin/ping4
916 - if use ipv6 ; then
917 - dosym ping /bin/ping6
918 - dosym ping.8 /usr/share/man/man8/ping6.8
919 - fi
920 - doman doc/ping.8
921 -
922 - if use arping ; then
923 - dobin arping
924 - doman doc/arping.8
925 - fi
926 -
927 - into /usr
928 -
929 - if use tracepath ; then
930 - dosbin tracepath
931 - doman doc/tracepath.8
932 - dosym tracepath /usr/sbin/tracepath4
933 - fi
934 -
935 - local u
936 - for u in clockdiff rarpd rdisc tftpd ; do
937 - if use ${u} ; then
938 - case ${u} in
939 - clockdiff) dobin ${u};;
940 - *) dosbin ${u};;
941 - esac
942 - doman doc/${u}.8
943 - fi
944 - done
945 -
946 - if use tracepath && use ipv6 ; then
947 - dosym tracepath /usr/sbin/tracepath6
948 - dosym tracepath.8 /usr/share/man/man8/tracepath6.8
949 - fi
950 -
951 - if use traceroute && use ipv6 ; then
952 - dosbin traceroute6
953 - doman doc/traceroute6.8
954 - fi
955 -
956 - if use rarpd ; then
957 - newinitd "${FILESDIR}"/rarpd.init.d rarpd
958 - newconfd "${FILESDIR}"/rarpd.conf.d rarpd
959 - fi
960 -
961 - dodoc INSTALL.md
962 -
963 - use doc && dodoc doc/*.html
964 -}
965 -
966 -pkg_postinst() {
967 - fcaps cap_net_raw \
968 - bin/ping \
969 - $(usex arping 'bin/arping' '') \
970 - $(usex clockdiff 'usr/bin/clockdiff' '')
971 -}
972
973 diff --git a/net-misc/iputils/metadata.xml b/net-misc/iputils/metadata.xml
974 index 8fb0527..36b0ace 100644
975 --- a/net-misc/iputils/metadata.xml
976 +++ b/net-misc/iputils/metadata.xml
977 @@ -9,8 +9,6 @@
978 <flag name="arping">Build and install arping -- tool for sending ARP requests to peers (see also <pkg>net-analyzer/arping</pkg>)</flag>
979 <flag name="clockdiff">Build and install clockdiff -- tool for comparing clocks via ICMP packets</flag>
980 <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> for md5 support</flag>
981 - <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for md5 support</flag>
982 - <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> for md5 support</flag>
983 <flag name="rarpd">Build and install rarpd -- server for handling RARP (reverse ARP) requests; generally only used by old systems</flag>
984 <flag name="rdisc">Build and install rdisc -- server for the client side of the ICMP router discover protocol</flag>
985 <flag name="tftpd">Build and install tftpd -- server for the Trivial File Transfer Protocol (see also <pkg>net-ftp/tftp-hpa</pkg>)</flag>