networking.scm 163 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2014, 2017, 2018, 2021 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2015, 2016, 2017, 2018, 2020 Ricardo Wurmus <rekado@elephly.net>
  4. ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
  5. ;;; Copyright © 2015, 2016, 2017, 2021 Stefan Reichör <stefan@xsteve.at>
  6. ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
  7. ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
  8. ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
  9. ;;; Copyright © 2016-2022 Nicolas Goaziou <mail@nicolasgoaziou.fr>
  10. ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
  11. ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
  12. ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
  13. ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
  14. ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
  15. ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
  16. ;;; Copyright © 2017, 2020, 2021 Leo Famulari <leo@famulari.name>
  17. ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
  18. ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
  19. ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
  20. ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
  21. ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
  22. ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
  23. ;;; Copyright © 2018, 2019 Tonton <tonton@riseup.net>
  24. ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
  25. ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
  26. ;;; Copyright © 2018, 2020-2022 Marius Bakke <marius@gnu.org>
  27. ;;; Copyright © 2018, 2020, 2021 Oleg Pykhalov <go.wigust@gmail.com>
  28. ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
  29. ;;; Copyright © 2019, 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
  30. ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
  31. ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
  32. ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
  33. ;;; Copyright © 2019, 2020, 2021 Brice Waegeneire <brice@waegenei.re>
  34. ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
  35. ;;; Copyright © 2019, 2020 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
  36. ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
  37. ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
  38. ;;; Copyright © 2020, 2021 Vincent Legoll <vincent.legoll@gmail.com>
  39. ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
  40. ;;; Copyright © 2020 Jesse Dowell <jessedowell@gmail.com>
  41. ;;; Copyright © 2020 Hamzeh Nasajpour <h.nasajpour@pantherx.org>
  42. ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
  43. ;;; Copyright © 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
  44. ;;; Copyright © 2021 Justin Veilleux <terramorpha@cock.li>
  45. ;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
  46. ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
  47. ;;; Copyright © 2021 Milkey Mouse <milkeymouse@meme.institute>
  48. ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
  49. ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
  50. ;;; Copyright © 2022 Simon South <simon@simonsouth.net>
  51. ;;;
  52. ;;; This file is part of GNU Guix.
  53. ;;;
  54. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  55. ;;; under the terms of the GNU General Public License as published by
  56. ;;; the Free Software Foundation; either version 3 of the License, or (at
  57. ;;; your option) any later version.
  58. ;;;
  59. ;;; GNU Guix is distributed in the hope that it will be useful, but
  60. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  61. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  62. ;;; GNU General Public License for more details.
  63. ;;;
  64. ;;; You should have received a copy of the GNU General Public License
  65. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  66. (define-module (gnu packages networking)
  67. #:use-module ((guix licenses) #:prefix license:)
  68. #:use-module (guix packages)
  69. #:use-module (guix download)
  70. #:use-module (guix gexp)
  71. #:use-module (guix git-download)
  72. #:use-module (guix build-system cmake)
  73. #:use-module (guix build-system glib-or-gtk)
  74. #:use-module (guix build-system gnu)
  75. #:use-module (guix build-system go)
  76. #:use-module (guix build-system meson)
  77. #:use-module (guix build-system perl)
  78. #:use-module (guix build-system python)
  79. #:use-module (guix build-system trivial)
  80. #:use-module (guix utils)
  81. #:use-module (gnu packages)
  82. #:use-module (gnu packages admin)
  83. #:use-module (gnu packages adns)
  84. #:use-module (gnu packages algebra)
  85. #:use-module (gnu packages audio)
  86. #:use-module (gnu packages autogen)
  87. #:use-module (gnu packages autotools)
  88. #:use-module (gnu packages base)
  89. #:use-module (gnu packages bash)
  90. #:use-module (gnu packages bison)
  91. #:use-module (gnu packages boost)
  92. #:use-module (gnu packages check)
  93. #:use-module (gnu packages code)
  94. #:use-module (gnu packages compression)
  95. #:use-module (gnu packages cpp)
  96. #:use-module (gnu packages crypto)
  97. #:use-module (gnu packages curl)
  98. #:use-module (gnu packages cyrus-sasl)
  99. #:use-module (gnu packages dejagnu)
  100. #:use-module (gnu packages docbook)
  101. #:use-module (gnu packages documentation)
  102. #:use-module (gnu packages flex)
  103. #:use-module (gnu packages freedesktop)
  104. #:use-module (gnu packages gettext)
  105. #:use-module (gnu packages glib)
  106. #:use-module (gnu packages gnome)
  107. #:use-module (gnu packages gnupg)
  108. #:use-module (gnu packages golang)
  109. #:use-module (gnu packages graphviz)
  110. #:use-module (gnu packages gstreamer)
  111. #:use-module (gnu packages gtk)
  112. #:use-module (gnu packages image)
  113. #:use-module (gnu packages libevent)
  114. #:use-module (gnu packages libidn)
  115. #:use-module (gnu packages linux)
  116. #:use-module (gnu packages lua)
  117. #:use-module (gnu packages kerberos)
  118. #:use-module (gnu packages ncurses)
  119. #:use-module (gnu packages nettle)
  120. #:use-module (gnu packages openldap)
  121. #:use-module (gnu packages onc-rpc)
  122. #:use-module (gnu packages password-utils)
  123. #:use-module (gnu packages pcre)
  124. #:use-module (gnu packages perl)
  125. #:use-module (gnu packages perl-check)
  126. #:use-module (gnu packages pkg-config)
  127. #:use-module (gnu packages polkit)
  128. #:use-module (gnu packages pretty-print)
  129. #:use-module (gnu packages pulseaudio)
  130. #:use-module (gnu packages python)
  131. #:use-module (gnu packages python-crypto)
  132. #:use-module (gnu packages python-web)
  133. #:use-module (gnu packages python-xyz)
  134. #:use-module (gnu packages qt)
  135. #:use-module (gnu packages readline)
  136. #:use-module (gnu packages ruby)
  137. #:use-module (gnu packages samba)
  138. #:use-module (gnu packages serialization)
  139. #:use-module (gnu packages shells)
  140. #:use-module (gnu packages sphinx)
  141. #:use-module (gnu packages sqlite)
  142. #:use-module (gnu packages ssh)
  143. #:use-module (gnu packages tcl)
  144. #:use-module (gnu packages textutils)
  145. #:use-module (gnu packages tls)
  146. #:use-module (gnu packages valgrind)
  147. #:use-module (gnu packages web)
  148. #:use-module (gnu packages wxwidgets)
  149. #:use-module (gnu packages xml)
  150. #:use-module (ice-9 match))
  151. (define-public usrsctp
  152. (package
  153. (name "usrsctp")
  154. (version "0.9.5.0")
  155. (source
  156. (origin
  157. (method git-fetch)
  158. (uri
  159. (git-reference
  160. (url "https://github.com/sctplab/usrsctp")
  161. (commit version)))
  162. (file-name (git-file-name name version))
  163. (sha256
  164. (base32 "10ndzkip8blgkw572n3dicl6mgjaa7kygwn3vls80liq92vf1sa9"))))
  165. (build-system gnu-build-system)
  166. (native-inputs
  167. (list autoconf
  168. automake
  169. libtool
  170. pkg-config
  171. python-wrapper
  172. which))
  173. (home-page "https://github.com/sctplab/usrsctp/")
  174. (synopsis "SCTP user-land implementation")
  175. (description "UsrSCTP is a portable SCTP userland stack. SCTP is a message
  176. oriented, reliable transport protocol with direct support for multihoming that
  177. runs on top of IP or UDP, and supports both v4 and v6 versions.")
  178. (license license:bsd-3)))
  179. (define-public axel
  180. (package
  181. (name "axel")
  182. (version "2.17.11")
  183. (source
  184. (origin
  185. (method url-fetch)
  186. (uri (string-append "https://github.com/axel-download-accelerator/axel/"
  187. "releases/download/v" version "/"
  188. "axel-" version ".tar.xz"))
  189. (sha256
  190. (base32 "1yfcsi0zv07bvhj8klgna3y1ycc4jhaija1b3rzzv0i4d4c2q2sq"))))
  191. (build-system gnu-build-system)
  192. (native-inputs
  193. (list gettext-minimal pkg-config))
  194. (inputs
  195. (list libressl))
  196. (home-page "https://github.com/axel-download-accelerator/axel")
  197. (synopsis "Light command line download accelerator")
  198. (description
  199. "Axel tries to accelerate the download process by using multiple
  200. connections per file, and can also balance the load between different
  201. servers. It tries to be as light as possible, so it might be useful
  202. on byte-critical systems. It supports HTTP, HTTPS, FTP and FTPS
  203. protocols.")
  204. (license license:gpl2+)))
  205. ;; This package does not have a release yet.
  206. ;; But this is required to provide a feature in PipeWire.
  207. (define-public libcamera
  208. (package
  209. (name "libcamera")
  210. (version "0.0.0")
  211. (source
  212. (origin
  213. (method git-fetch)
  214. (uri
  215. (git-reference
  216. (url "git://linuxtv.org/libcamera.git")
  217. (commit "74c8b508338ccdd0780aa1e067a1e8fcb9ee326b")))
  218. (file-name
  219. (git-file-name name version))
  220. (sha256
  221. (base32 "0d9lp8b9gyxh4jwfh55kp8zl1xyyg32z684v3y29378zpksncss1"))))
  222. (build-system meson-build-system)
  223. (outputs '("out" "doc"))
  224. (arguments
  225. `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
  226. #:configure-flags
  227. (list
  228. "-Dv4l2=true")
  229. #:phases
  230. (modify-phases %standard-phases
  231. (add-after 'unpack 'disable-failing-tests
  232. (lambda _
  233. (substitute* "test/meson.build"
  234. (("\\['list-cameras', 'list-cameras.cpp'\\],")
  235. ""))
  236. #t))
  237. (add-after 'install 'move-doc
  238. (lambda* (#:key outputs #:allow-other-keys)
  239. (let* ((out (assoc-ref outputs "out"))
  240. (doc (assoc-ref outputs "doc")))
  241. (mkdir-p (string-append doc "/share"))
  242. (rename-file
  243. (string-append out "/share/doc")
  244. (string-append doc "/share/doc"))
  245. #t))))))
  246. (native-inputs
  247. `(("dot" ,graphviz)
  248. ("doxygen" ,doxygen)
  249. ("pkg-config" ,pkg-config)
  250. ("python" ,python-wrapper)
  251. ("sphinx" ,python-sphinx)
  252. ("yaml" ,python-pyyaml)))
  253. (inputs
  254. `(("boost" ,boost)
  255. ("glib" ,glib)
  256. ("gstreamer" ,gst-plugins-base)
  257. ("gnutls" ,gnutls)
  258. ("libtiff" ,libtiff)
  259. ("openssl" ,openssl)
  260. ("qt5" ,qtbase-5)
  261. ("udev" ,eudev)))
  262. (synopsis "Camera stack and framework")
  263. (description "LibCamera is a complex camera support library for GNU+Linux,
  264. Android, and ChromeOS.")
  265. (home-page "https://libcamera.org/")
  266. (license license:lgpl2.1+)))
  267. (define-public libnice
  268. ;; The latest release is old and randomly fails tests with GStreamer 1.18.5,
  269. ;; such as: "test-bind: ../libnice-0.1.18/stun/tests/test-bind.c:234:
  270. ;; bad_responses: Assertion `len >= 20' failed"
  271. (let ((revision "0")
  272. (commit "47a96334448838c43d7e72f4ef51b317befbfae1"))
  273. (package
  274. (name "libnice")
  275. (version (git-version "0.1.18" revision commit))
  276. (source
  277. (origin
  278. (method git-fetch)
  279. (uri (git-reference
  280. (url "https://gitlab.freedesktop.org/libnice/libnice")
  281. (commit commit)))
  282. (file-name (git-file-name name version))
  283. (sha256
  284. (base32
  285. "19ypjazslmsb9vqs2wyyzvi72h5jbn16dbng7pxh485djdrmgcg4"))))
  286. (build-system meson-build-system)
  287. (outputs '("out" "doc"))
  288. (arguments
  289. `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
  290. #:configure-flags
  291. (list
  292. "-Dgtk_doc=enabled")
  293. #:phases
  294. (modify-phases %standard-phases
  295. (add-after 'unpack 'disable-failing-tests
  296. (lambda _
  297. (substitute* "tests/meson.build"
  298. ;; ‘test-set-port-range.c:66:main: assertion failed:
  299. ;; (nice_agent_gather_candidates (agent, stream1))’
  300. (("'test-set-port-range'" all)
  301. (string-append "# " all))
  302. ;; The following test is disabled as it fails in a
  303. ;; nondeterministic fashion (see:
  304. ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/151).
  305. (("'test-bsd'" all)
  306. (string-append "# " all)))
  307. (substitute* "stun/tests/meson.build"
  308. ;; test-bind.c:234: bad_responses: Assertion `len >= 20'
  309. ;; failed (see:
  310. ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/150).
  311. (("'bind', ")
  312. ""))))
  313. (add-after 'install 'move-docs
  314. (lambda* (#:key outputs #:allow-other-keys)
  315. (let* ((out (assoc-ref outputs "out"))
  316. (doc (assoc-ref outputs "doc")))
  317. (mkdir-p (string-append doc "/share"))
  318. (rename-file
  319. (string-append out "/share/gtk-doc")
  320. (string-append doc "/share/gtk-doc"))))))))
  321. (native-inputs
  322. `(("glib:bin" ,glib "bin")
  323. ("gobject-introspection" ,gobject-introspection)
  324. ("graphviz" ,graphviz)
  325. ("gtk-doc" ,gtk-doc/stable)
  326. ("pkg-config" ,pkg-config)))
  327. (inputs
  328. (list gstreamer gst-plugins-base libnsl))
  329. (propagated-inputs
  330. (list glib glib-networking gnutls))
  331. (synopsis "GLib ICE implementation")
  332. (description "LibNice is a library that implements the Interactive
  333. Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
  334. GLib-based library, libnice, as well as GStreamer elements to use it.")
  335. (home-page "https://libnice.freedesktop.org/")
  336. (license
  337. ;; This project is dual-licensed.
  338. (list
  339. license:lgpl2.1+
  340. license:mpl1.1)))))
  341. (define-public rtmpdump
  342. ;; There are no tags in the repository, and the project is unlikely to
  343. ;; make new releases. Take a recent commit for multiple security fixes
  344. ;; as well as GnuTLS compatibility.
  345. (let ((commit "c5f04a58fc2aeea6296ca7c44ee4734c18401aa3")
  346. (revision "0")
  347. (version "2.4")) ;as mentioned in README and man pages
  348. (package
  349. (name "rtmpdump")
  350. (version (git-version version revision commit))
  351. (source
  352. (origin
  353. (method git-fetch)
  354. (uri (git-reference
  355. (url "https://git.ffmpeg.org/rtmpdump")
  356. (commit commit)))
  357. (file-name (git-file-name name version))
  358. (sha256
  359. (base32 "07ias612jgmxpam9h418kvlag32da914jsnjsfyafklpnh8gdzjb"))))
  360. (build-system gnu-build-system)
  361. (arguments
  362. `(#:tests? #f ; no tests
  363. #:make-flags
  364. (list
  365. ;; The ‘validate-runpath’ phase fails to find librtmp.so.0.
  366. (string-append "LDFLAGS=-Wl,-rpath="
  367. (assoc-ref %outputs "out") "/lib")
  368. (string-append "prefix=" (assoc-ref %outputs "out")))
  369. #:phases
  370. (modify-phases %standard-phases
  371. (add-after 'unpack 'omit-static-library
  372. (lambda _
  373. (substitute* "librtmp/Makefile"
  374. (("cp librtmp\\.a .*") ; don't install it
  375. "")
  376. (("librtmp\\.a ") ; don't build it
  377. ""))
  378. #t))
  379. (add-after 'unpack 'prefer-gnutls
  380. (lambda _
  381. (substitute* '("Makefile" "librtmp/Makefile")
  382. (("CRYPTO=OPENSSL")
  383. "#CRYPTO=OPENSSL")
  384. (("#CRYPTO=GNUTLS")
  385. "CRYPTO=GNUTLS"))))
  386. (delete 'configure))))
  387. (inputs
  388. (list gnutls zlib))
  389. (synopsis "Tools and library for handling RTMP streams")
  390. (description "RTMPdump is a toolkit for RTMP streams. All forms of RTMP are
  391. supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.")
  392. (home-page "https://rtmpdump.mplayerhq.hu/")
  393. (license
  394. (list
  395. ;; Library.
  396. license:lgpl2.1+
  397. ;; Others.
  398. license:gpl2+)))))
  399. (define-public slurm-monitor
  400. (package
  401. (name "slurm-monitor")
  402. (version "0.4.3")
  403. (source
  404. (origin
  405. (method git-fetch)
  406. (uri
  407. (git-reference
  408. (url "https://github.com/mattthias/slurm")
  409. (commit (string-append "upstream/" version))))
  410. (file-name (git-file-name name version))
  411. (sha256
  412. (base32 "1n6pgrcs8gwrcq5fch1q3yk3jipjwrf21s9a13fbjrl903g5zzv9"))))
  413. (build-system cmake-build-system)
  414. (arguments `(#:tests? #f)) ;no tests
  415. (inputs (list ncurses))
  416. (synopsis "Network load monitor")
  417. (description
  418. "Slurm is a network load monitor. It shows real-time traffic statistics
  419. from any network device in any of three ASCII graph formats.")
  420. (home-page "https://github.com/mattthias/slurm")
  421. (license license:gpl2)))
  422. (define-public srt
  423. (package
  424. (name "srt")
  425. (version "1.4.3")
  426. (source
  427. (origin
  428. (method git-fetch)
  429. (uri
  430. (git-reference
  431. (url "https://github.com/Haivision/srt")
  432. (commit (string-append "v" version))))
  433. (file-name (git-file-name name version))
  434. (sha256
  435. (base32 "1f60vlfxhh9bhafws82c3301whjlz5gy92jz9a9ymwfg5h53bv1j"))))
  436. (build-system cmake-build-system)
  437. (arguments
  438. `(#:configure-flags
  439. (list
  440. (string-append "-DCMAKE_INSTALL_BINDIR="
  441. (assoc-ref %outputs "out") "/bin")
  442. "-DCMAKE_INSTALL_INCLUDEDIR=include"
  443. "-DENABLE_STATIC=OFF"
  444. "-DENABLE_UNITTESTS=ON")))
  445. (native-inputs
  446. `(("gtest" ,googletest)
  447. ("pkg-config" ,pkg-config)
  448. ("tclsh" ,tcl)))
  449. (propagated-inputs
  450. (list openssl))
  451. (synopsis "Secure Reliable Transport")
  452. (description "SRT is a transport technology that optimizes streaming
  453. performance across unpredictable networks, such as the Internet.")
  454. (home-page "https://www.srtalliance.org/")
  455. (license license:mpl2.0)))
  456. ;; FFmpeg, GStreamer, and VLC don't support SRT 1.4.2 yet.
  457. (define-public srt-1.4.1
  458. (package
  459. (inherit srt)
  460. (name "srt")
  461. (version "1.4.1")
  462. (source
  463. (origin
  464. (method git-fetch)
  465. (uri
  466. (git-reference
  467. (url "https://github.com/Haivision/srt")
  468. (commit (string-append "v" version))))
  469. (file-name (git-file-name name version))
  470. (sha256
  471. (base32
  472. "01xaq44j95kbgqfl41pnybvqy0yq6wd4wdw88ckylzf0nzp977xz"))))))
  473. (define-public lksctp-tools
  474. (package
  475. (name "lksctp-tools")
  476. (version "1.0.19")
  477. (source
  478. (origin
  479. (method git-fetch)
  480. (uri
  481. (git-reference
  482. (url "https://github.com/sctp/lksctp-tools")
  483. (commit (string-append "v" version))))
  484. (file-name (git-file-name name version))
  485. (sha256
  486. (base32 "1jfq58j365mlgssavyw5wcal42n0xjkr40vmj9b8w265wgs28j20"))))
  487. (build-system gnu-build-system)
  488. (native-inputs
  489. (list autoconf automake libtool pkg-config))
  490. (synopsis
  491. "@acronym{SCTP, Stream Control Transmission Protocol} helpers for Linux")
  492. (description
  493. "The lksctp-tools project provides a user-space library for @acronym{SCTP,
  494. the Stream Control Transmission Protocol} (@file{libsctp}) and C language header
  495. files (@file{netinet/sctp.h}) for accessing SCTP-specific @acronym{APIs,
  496. application programming interfaces} not provided by the standard sockets.
  497. It also includes some SCTP-related helper utilities.")
  498. (home-page "http://lksctp.sourceforge.net/")
  499. (license
  500. (list
  501. ;; Library.
  502. license:lgpl2.1+
  503. ;; Others.
  504. license:gpl2+))))
  505. (define-public python-pysctp
  506. (package
  507. (name "python-pysctp")
  508. (version "0.6.1")
  509. (source
  510. (origin
  511. (method url-fetch)
  512. (uri (pypi-uri "pysctp" version))
  513. (sha256
  514. (base32 "14h2qlmfi24bizhvvqkfqfa78pzm3911ibrzy9k94i97xy1978dy"))))
  515. (build-system python-build-system)
  516. (inputs
  517. (list lksctp-tools))
  518. (arguments
  519. `(#:tests? #f ;; tests require network
  520. #:phases
  521. (modify-phases %standard-phases
  522. (add-after 'unpack 'patch-setup.py
  523. (lambda _
  524. (substitute* "setup.py"
  525. (("include_dirs\\s*=.*")
  526. (string-append "include_dirs = ['.'] + '"
  527. (getenv "C_INCLUDE_PATH") "'.split(':'),"))
  528. (("library_dirs\\s*=.*")
  529. (string-append "library_dirs = '"
  530. (getenv "LIBRARY_PATH") "'.split(':'),"))))))))
  531. (home-page "https://github.com/p1sec/pysctp")
  532. (synopsis "Python module for the SCTP protocol stack and library")
  533. (description "@code{pysctp} implements the SCTP socket API. You need a
  534. SCTP-aware kernel (most are).")
  535. (license license:lgpl2.1+)))
  536. (define-public knockd
  537. (package
  538. (name "knockd")
  539. (version "0.8")
  540. (source (origin
  541. (method url-fetch)
  542. (uri (string-append "https://www.zeroflux.org/proj/knock/files/knock-"
  543. version ".tar.gz"))
  544. (sha256
  545. (base32
  546. "1iv9h7a9l81ilbld3pi0dmzkizjss1755x1x3v5jxsi4asb8r3b9"))))
  547. (build-system gnu-build-system)
  548. (arguments
  549. `(#:configure-flags
  550. (list (string-append "--docdir=" (assoc-ref %outputs "out")
  551. "/share/doc/" ,name "-" ,version))))
  552. (inputs
  553. (list libpcap))
  554. (home-page "https://www.zeroflux.org/projects/knock")
  555. (synopsis "Small port-knock daemon")
  556. (description "@command{knockd} is a port-knock daemon. It listens to all traffic on
  557. an ethernet or PPP interface, looking for special \"knock\" sequences of @dfn{port-hits}
  558. (UDP/TCP packets sent to a server port). This port need not be open, since knockd listens
  559. at the link-layer level.")
  560. (license license:gpl2+)))
  561. (define-public nng
  562. (package
  563. (name "nng")
  564. (version "1.3.2")
  565. (source
  566. (origin
  567. (method git-fetch)
  568. (uri (git-reference
  569. (url "https://github.com/nanomsg/nng")
  570. (commit (string-append "v" version))))
  571. (file-name (git-file-name name version))
  572. (sha256
  573. (base32 "0a4jg8alh2h0rw6fb4dqpvk4hgl2a7h76mq7g34fy89qh9sgg1a4"))))
  574. (build-system cmake-build-system)
  575. (arguments
  576. `(#:configure-flags
  577. (list "-DNNG_ENABLE_COVERAGE=ON"
  578. "-DNNG_ENABLE_TLS=ON"
  579. "-DBUILD_SHARED_LIBS=ON")
  580. #:phases
  581. (modify-phases %standard-phases
  582. (add-after 'unpack 'disable-failing-tests
  583. (lambda _
  584. ;; These tests require network access.
  585. (substitute* "tests/CMakeLists.txt"
  586. (("add_nng_test1\\(httpclient 60 NNG_SUPP_HTTP\\)") "")
  587. (("add_nng_test1\\(resolv 10 NNG_STATIC_LIB\\)") "")
  588. (("add_nng_test\\(tls 60\\)") ""))
  589. #t)))))
  590. (native-inputs
  591. `(("ksh" ,oksh)))
  592. (inputs
  593. `(("mbedtls" ,mbedtls-apache)))
  594. (synopsis "Lightweight messaging library")
  595. (description "NNG project is a rewrite of the scalability protocols library
  596. known as libnanomsg, and adds significant new capabilities, while retaining
  597. compatibility with the original. It is a lightweight, broker-less library,
  598. offering a simple API to solve common recurring messaging problems, such as
  599. publish/subscribe, RPC-style request/reply, or service discovery.")
  600. (home-page "https://nng.nanomsg.org/")
  601. (license license:expat)))
  602. (define-public nanomsg
  603. (package
  604. (name "nanomsg")
  605. (version "1.1.5")
  606. (source
  607. (origin
  608. (method git-fetch)
  609. (uri
  610. (git-reference
  611. (url "https://github.com/nanomsg/nanomsg")
  612. (commit version)))
  613. (file-name (git-file-name name version))
  614. (sha256
  615. (base32 "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64"))))
  616. (build-system cmake-build-system)
  617. (outputs '("out" "doc"))
  618. (arguments
  619. `(#:configure-flags
  620. (list
  621. "-DNN_ENABLE_COVERAGE=ON")
  622. #:phases
  623. (modify-phases %standard-phases
  624. (add-after 'install 'move-docs
  625. (lambda* (#:key outputs #:allow-other-keys)
  626. (let* ((out (assoc-ref outputs "out"))
  627. (doc (assoc-ref outputs "doc")))
  628. (mkdir-p (string-append doc "/share/doc"))
  629. (rename-file
  630. (string-append out "/share/doc/nanomsg")
  631. (string-append doc "/share/doc/nanomsg"))
  632. #t))))))
  633. (native-inputs
  634. `(("asciidoctor" ,ruby-asciidoctor)
  635. ("pkg-config" ,pkg-config)))
  636. (synopsis "Scalable socket library")
  637. (description "Nanomsg is a socket library that provides several common
  638. communication patterns. It aims to make the networking layer fast, scalable,
  639. and easy to use. Implemented in C, it works on a wide range of operating
  640. systems with no further dependencies.")
  641. (home-page "https://nanomsg.org/")
  642. (license (license:non-copyleft "file:///COPYING"))))
  643. (define-public blueman
  644. (package
  645. (name "blueman")
  646. (version "2.2.3")
  647. (source
  648. (origin
  649. (method url-fetch)
  650. (uri (string-append "https://github.com/blueman-project/blueman/releases"
  651. "/download/" version "/blueman-" version ".tar.xz"))
  652. (sha256
  653. (base32 "1s86w4mklzr8hvbgl3nkg8jycl6grww533dhzw8gdn5glqfpkpbf"))))
  654. (build-system glib-or-gtk-build-system)
  655. (arguments
  656. `(#:configure-flags (list "--enable-polkit"
  657. "--without-systemdsystemunitdir" ; Not required
  658. "--without-systemduserunitdir") ; Not required
  659. #:phases
  660. (modify-phases %standard-phases
  661. ;; Python references are not being patched in patch-phase of build,
  662. ;; despite using python-wrapper as input. So we patch them manually.
  663. (add-after 'unpack 'patch-python-references
  664. (lambda* (#:key inputs #:allow-other-keys)
  665. (with-directory-excursion "apps"
  666. (substitute* '("blueman-adapters.in" "blueman-applet.in"
  667. "blueman-manager.in" "blueman-mechanism.in"
  668. "blueman-rfcomm-watcher.in" "blueman-sendto.in"
  669. "blueman-services.in" "blueman-tray.in")
  670. (("@PYTHON@")
  671. (search-input-file inputs
  672. (string-append
  673. "/bin/python"
  674. ,(version-major+minor
  675. (package-version python)))))))))
  676. ;; Fix loading of external programs.
  677. (add-after 'unpack 'patch-external-programs
  678. (lambda* (#:key inputs #:allow-other-keys)
  679. (substitute* '("blueman/main/NetConf.py"
  680. "blueman/main/PPPConnection.py")
  681. (("/usr/sbin/bluetoothd")
  682. (search-input-directory inputs
  683. "/libexec/bluetooth/bluetoothd"))
  684. (("/sbin/iptables")
  685. (search-input-file inputs "/sbin/iptables"))
  686. (("/usr/sbin/pppd")
  687. (search-input-file inputs "/sbin/pppd")))))
  688. ;; Fix loading of pulseaudio libraries.
  689. (add-after 'unpack 'patch-pulseaudio-libraries
  690. (lambda* (#:key inputs #:allow-other-keys)
  691. (let* ((pulseaudio (assoc-ref inputs "pulseaudio"))
  692. (pulse (string-append pulseaudio "/lib/libpulse.so.0"))
  693. (pulse-glib (string-append pulseaudio
  694. "/lib/libpulse-mainloop-glib.so.0")))
  695. (with-directory-excursion "blueman/main"
  696. (substitute* "PulseAudioUtils.py"
  697. (("libpulse.so.0") pulse)
  698. (("libpulse-mainloop-glib.so.0") pulse-glib))))))
  699. ;; Fix running of blueman programs.
  700. (add-after 'glib-or-gtk-wrap 'wrap-blueman-progs
  701. (lambda* (#:key outputs #:allow-other-keys)
  702. (let* ((out (assoc-ref outputs "out"))
  703. (bin (string-append out "/bin/blueman-"))
  704. (libexec (string-append out "/libexec/blueman-"))
  705. (lib (string-append out "/lib/python"
  706. ,(version-major+minor
  707. (package-version python))
  708. "/site-packages")))
  709. (for-each
  710. (lambda (program)
  711. (wrap-program program
  712. `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") ,lib))
  713. `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
  714. (append
  715. (map (lambda (prog) (string-append bin prog))
  716. '("adapters" "applet" "manager"
  717. "sendto" "services" "tray"))
  718. (map (lambda (prog) (string-append libexec prog))
  719. '("mechanism" "rfcomm-watcher"))))))))))
  720. (native-inputs
  721. `(("cython" ,python-cython)
  722. ("glib:bin" ,glib "bin")
  723. ("gobject-introspection" ,gobject-introspection)
  724. ("gtk+:bin" ,gtk+ "bin")
  725. ("intltool" ,intltool)
  726. ("pkg-config" ,pkg-config)))
  727. (inputs
  728. `(("bluez" ,bluez)
  729. ("dbus" ,dbus)
  730. ("librsvg" ,librsvg)
  731. ("glib" ,glib)
  732. ("gtk+" ,gtk+)
  733. ("iproute2" ,iproute)
  734. ("iptables" ,iptables)
  735. ("net-tools" ,net-tools)
  736. ("pango" ,pango)
  737. ("polkit" ,polkit)
  738. ("ppp" ,ppp)
  739. ("pulseaudio" ,pulseaudio)
  740. ("pycairo" ,python-pycairo)
  741. ("pygobject" ,python-pygobject)
  742. ("python" ,python-wrapper)
  743. ("libappindicator" ,libappindicator)
  744. ("libnm" ,network-manager)))
  745. (synopsis "GTK+ Bluetooth manager")
  746. (description "Blueman is a Bluetooth management utility using the Bluez
  747. D-Bus backend. It is designed to be easy to use for most common Bluetooth
  748. tasks.")
  749. (home-page "https://github.com/blueman-project/blueman")
  750. (license license:gpl3+)))
  751. ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
  752. ;; the latest version. The author's git repository, mentioned in the 1.6.0
  753. ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
  754. ;; with many OUI updates. Use it, even though it's also several years old now.
  755. (define-public macchanger
  756. (package
  757. (name "macchanger")
  758. (version "1.7.0")
  759. (source
  760. (origin
  761. (method url-fetch)
  762. (uri (string-append "https://github.com/alobbs/macchanger/"
  763. "releases/download/" version "/"
  764. name "-" version ".tar.gz"))
  765. (sha256
  766. (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
  767. (build-system gnu-build-system)
  768. (home-page "https://www.gnu.org/software/macchanger/")
  769. (synopsis "Viewing and manipulating MAC addresses of network interfaces")
  770. (description "GNU MAC Changer is a utility for viewing and changing MAC
  771. addresses of networking devices. New addresses may be set explicitly or
  772. randomly. They can include MAC addresses of the same or other hardware vendors
  773. or, more generally, MAC addresses of the same category of hardware.")
  774. (license license:gpl2+)))
  775. (define-public miredo
  776. (package
  777. (name "miredo")
  778. (version "1.2.6")
  779. (source (origin
  780. (method url-fetch)
  781. (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
  782. version ".tar.xz"))
  783. (sha256
  784. (base32
  785. "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
  786. (build-system gnu-build-system)
  787. (arguments
  788. '(#:configure-flags
  789. (list "--localstatedir=/var")
  790. #:phases
  791. (modify-phases %standard-phases
  792. (add-after 'unpack 'do-not-create-/run
  793. (lambda _
  794. (substitute* (find-files "src" "Makefile.*")
  795. (("^.+install_sh.+/run.+$")
  796. "\ttrue"))
  797. #t))
  798. (add-after 'unpack 'patch-iproute2
  799. (lambda* (#:key inputs #:allow-other-keys)
  800. (let* ((iproute (assoc-ref inputs "iproute"))
  801. (ip (string-append iproute "/sbin/ip")))
  802. (substitute* "misc/client-hook.iproute"
  803. (("/sbin/ip") ip))
  804. #t)))
  805. ;; The checkconf test in src/ requires network access.
  806. (add-before
  807. 'check 'disable-checkconf-test
  808. (lambda _
  809. (substitute* "src/Makefile"
  810. (("^TESTS = .*") "TESTS = \n"))
  811. #t)))))
  812. (inputs
  813. `(("iproute" ,iproute)))
  814. (home-page "https://www.remlab.net/miredo/")
  815. (synopsis "Teredo IPv6 tunneling software")
  816. (description
  817. "Miredo is an implementation (client, relay, server) of the Teredo
  818. specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
  819. residing in IPv4-only networks, even when they are behind a NAT device.")
  820. (license license:gpl2+)))
  821. (define-public ndisc6
  822. (package
  823. (name "ndisc6")
  824. (version "1.0.5")
  825. (source (origin
  826. (method url-fetch)
  827. (uri (string-append "https://www.remlab.net/files/ndisc6/ndisc6-"
  828. version ".tar.bz2"))
  829. (sha256
  830. (base32
  831. "0lgkbnnll8nrr7h63ywd42sg8fiv6jhhymd7rnml8a3yqjgjz4rn"))))
  832. (build-system gnu-build-system)
  833. (home-page "https://www.remlab.net/ndisc6/")
  834. (synopsis "IPv6 diagnostic tools")
  835. (description
  836. "NDisc6 is a collection of tools for IPv6 networking diagnostics.
  837. It includes the following programs:
  838. @itemize
  839. @item @command{ndisc6}: ICMPv6 Neighbor Discovery tool.
  840. @item @command{rdisc6}: ICMPv6 Router Discovery tool.
  841. @item @command{tcptraceroute6}: IPv6 traceroute over TCP.
  842. @item @command{traceroute6}: IPv6 traceroute over UDP.
  843. @item @command{rdnssd}: Recursive DNS Servers discovery daemon.
  844. @end itemize")
  845. ;; The user can choose version 2 or 3 of the GPL, not later versions.
  846. (license (list license:gpl2 license:gpl3))))
  847. (define-public parprouted
  848. (package
  849. (name "parprouted")
  850. (version "0.7")
  851. (source (origin
  852. (method url-fetch)
  853. (uri (string-append "https://www.hazard.maks.net/parprouted/"
  854. "parprouted-" version ".tar.gz"))
  855. (sha256
  856. (base32
  857. "1z6yg28i0pv20jivyy82pxb38hsryj95inhj27bs6ja1bp4l6dnn"))))
  858. (build-system gnu-build-system)
  859. (arguments
  860. `(#:tests? #f ;no tests
  861. #:phases (modify-phases %standard-phases
  862. (add-after 'unpack 'insert-absolute-iproute-reference
  863. (lambda* (#:key inputs #:allow-other-keys)
  864. (let* ((iproute (assoc-ref inputs "iproute"))
  865. (ip (string-append iproute "/sbin/ip")))
  866. (substitute* "parprouted.c"
  867. (("/sbin/ip") ip))
  868. #t)))
  869. (replace 'configure
  870. (lambda* (#:key outputs #:allow-other-keys)
  871. (let* ((out (assoc-ref outputs "out"))
  872. (sbin (string-append out "/sbin"))
  873. (man8 (string-append out "/share/man/man8")))
  874. ;; No configure script; hijack the phase to make
  875. ;; the necessary arrangements.
  876. (setenv "CC" ,(cc-for-target))
  877. (for-each mkdir-p (list sbin man8))
  878. (substitute* "Makefile"
  879. (("/usr/local/sbin") sbin)
  880. (("/usr/local/man/man8") man8))
  881. #t))))))
  882. (inputs
  883. `(("iproute" ,iproute)))
  884. (home-page "https://www.hazard.maks.net/parprouted/")
  885. (synopsis "Proxy ARP requests to other interfaces")
  886. (description
  887. "@command{parprouted} is a daemon for transparent IP (Layer@tie{}3)
  888. proxy ARP bridging. Unlike standard bridging, proxy ARP bridging can bridge
  889. Ethernet networks behind wireless nodes. Normal layer@tie{}2 bridging does
  890. not work between wireless nodes because wireless does not know about MAC
  891. addresses used in the wired Ethernet networks. This daemon can also be
  892. useful for making transparent firewalls.")
  893. (license license:gpl2)))
  894. (define-public pproxy
  895. (package
  896. (name "pproxy")
  897. (version "2.7.8")
  898. (source (origin
  899. (method url-fetch)
  900. (uri (pypi-uri "pproxy" version))
  901. (sha256
  902. (base32
  903. "1j4nv72i77i2j5nl9ymzpk4m98qih3naihfrqjghrc9b7g0krdzs"))))
  904. (build-system python-build-system)
  905. (arguments
  906. (list #:phases
  907. #~(modify-phases %standard-phases
  908. (replace 'check
  909. (lambda* (#:key tests? #:allow-other-keys)
  910. (when tests?
  911. (with-directory-excursion "tests"
  912. (for-each (lambda (file)
  913. (invoke "python" file))
  914. ;; XXX: The api_ tests require network access
  915. ;; so we only run the cipher tests for now.
  916. (find-files "." "^cipher_.*\\.py$")))))))))
  917. (inputs
  918. (list python-asyncssh
  919. python-daemon
  920. python-pycryptodome
  921. python-uvloop))
  922. (home-page "https://github.com/qwj/python-proxy")
  923. (synopsis "Multi-protocol network proxy")
  924. (description
  925. "@command{pproxy} is an asynchronuous proxy server implemented with
  926. Python 3 @code{asyncio}. Among the supported protocols are HTTP, SOCKS
  927. and SSH, and it can use both TCP and UDP as transport mechanisms.")
  928. (license license:expat)))
  929. (define-public socat
  930. (package
  931. (name "socat")
  932. (version "1.7.4.1")
  933. (source (origin
  934. (method url-fetch)
  935. (uri (string-append
  936. "http://www.dest-unreach.org/socat/download/socat-"
  937. version ".tar.bz2"))
  938. (sha256
  939. (base32
  940. "1sbmqqvni3ss9wyay6ik5v81kxffkra80mh4ypgj74g82iba5b1z"))))
  941. (build-system gnu-build-system)
  942. (arguments '(#:tests? #f)) ; no test suite
  943. (inputs (list openssl))
  944. (home-page "http://www.dest-unreach.org/socat/")
  945. (synopsis
  946. "Open bidirectional communication channels from the command line")
  947. (description
  948. "socat is a relay for bidirectional data transfer between two independent
  949. data channels---files, pipes, devices, sockets, etc. It can create
  950. \"listening\" sockets, named pipes, and pseudo terminals.
  951. socat can be used, for instance, as TCP port forwarder, as a shell interface
  952. to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
  953. line, to logically connect serial lines on different computers, or to
  954. establish a relatively secure environment (su and chroot) for running client
  955. or server shell scripts with network connections.")
  956. (license license:gpl2)))
  957. (define-public mbuffer
  958. (package
  959. (name "mbuffer")
  960. (version "20211018")
  961. (source (origin
  962. (method url-fetch)
  963. (uri (string-append
  964. "http://www.maier-komor.de/software/mbuffer/mbuffer-"
  965. version ".tgz"))
  966. (sha256
  967. (base32
  968. "1qxnbpyly00kml3sjan9iqg6pqacsi3yqq66x25w455cwkjc2h72"))))
  969. (build-system gnu-build-system)
  970. (native-inputs
  971. (list which))
  972. (inputs (list openssl))
  973. (home-page "http://www.maier-komor.de/mbuffer.html")
  974. (synopsis
  975. "Swiss army knife for data stream buffering (network aware)")
  976. (description
  977. "mbuffer is a tool for buffering data streams with a large set of features:
  978. @itemize
  979. @item direct support for TCP based network targets (IPv4 and IPv6)
  980. @item ability to send to multiple targets in parallel (distribution mode)
  981. @item support for multiple volumes
  982. @item I/O rate limitation
  983. @item high/low watermark based restart criteria
  984. @item configurable buffer size
  985. @item on the fly MD5 hash calculation
  986. @item highly efficient, multi-threaded implementation
  987. @end itemize")
  988. (license license:gpl3+)))
  989. (define-public tcp-wrappers
  990. (package
  991. (name "tcp-wrappers")
  992. (version "7.6")
  993. (source (origin
  994. (method url-fetch)
  995. (uri (string-append
  996. "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
  997. version ".tar.gz"))
  998. (sha256
  999. (base32
  1000. "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))
  1001. (modules '((guix build utils)))
  1002. (snippet
  1003. ;; 'sys_errlist' & co. are gone in glibc 2.33; work around it.
  1004. '(substitute* "percent_m.c"
  1005. (("sys_errlist\\[errno\\]")
  1006. "strerror (errno)")
  1007. (("errno < sys_nerr")
  1008. "(1)")
  1009. (("errno >= sys_nerr")
  1010. "(0)")))))
  1011. (build-system gnu-build-system)
  1012. (arguments
  1013. `(#:phases
  1014. (modify-phases %standard-phases
  1015. (delete 'configure) ; there is no configure script
  1016. (delete 'check) ; there are no tests
  1017. (replace 'build
  1018. (lambda _
  1019. (chmod "." #o755)
  1020. ;; Upstream doesn't generate a shared library. So we have to do it.
  1021. (setenv "CC" "gcc -fno-builtin -fPIC")
  1022. (substitute* "Makefile"
  1023. (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
  1024. libwrap.so: $(LIB_OBJ)\n
  1025. \tgcc -shared $^ -o $@\n")))
  1026. ;; Deal with some gcc breakage.
  1027. (substitute* "percent_m.c"
  1028. (("extern char .sys_errlist.*;") ""))
  1029. (substitute* "scaffold.c"
  1030. (("extern char .malloc.*;") ""))
  1031. ;; This, believe it or not, is the recommended way to build!
  1032. (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
  1033. ;; There is no make install stage, so we have to do it ourselves.
  1034. (replace 'install
  1035. (lambda _
  1036. (let ((out (assoc-ref %outputs "out"))
  1037. (man-pages `("hosts_access.3"
  1038. "hosts_access.5"
  1039. "hosts_options.5"
  1040. "tcpd.8"
  1041. "tcpdchk.8"
  1042. "tcpdmatch.8"))
  1043. (libs `("libwrap.a"
  1044. "libwrap.so"))
  1045. (headers `("tcpd.h"))
  1046. (bins `("safe_finger"
  1047. "tcpd"
  1048. "tcpdchk"
  1049. "tcpdmatch"
  1050. "try-from")))
  1051. (for-each
  1052. (lambda (x)
  1053. (install-file x (string-append out "/include")))
  1054. headers)
  1055. (for-each
  1056. (lambda (x)
  1057. (install-file x (string-append out "/share/man/man"
  1058. (string-take-right x 1))))
  1059. man-pages)
  1060. (for-each
  1061. (lambda (x)
  1062. (install-file x (string-append out "/lib/")))
  1063. libs)
  1064. (for-each
  1065. (lambda (x)
  1066. (install-file x (string-append out "/bin/")))
  1067. bins))
  1068. #t)))))
  1069. (home-page "http://www.porcupine.org")
  1070. (synopsis "Monitor and filter incoming requests for network services")
  1071. (description "With this package you can monitor and filter incoming requests for
  1072. network services. It includes a library which may be used by daemons to
  1073. transparently check connection attempts against an access control list.")
  1074. (license (license:non-copyleft "file://DISCLAIMER"
  1075. "See the file DISCLAIMER in the distribution."))))
  1076. (define-public zeromq
  1077. (package
  1078. (name "zeromq")
  1079. (version "4.3.4")
  1080. (source
  1081. (origin
  1082. (method url-fetch)
  1083. (uri (string-append "https://github.com/zeromq/libzmq/releases"
  1084. "/download/v" version "/zeromq-" version ".tar.gz"))
  1085. (sha256
  1086. (base32 "1rf3jmi36ms8jh2g5cvi253h43l6xdfq0r7mvp95va7mi4d014y5"))))
  1087. (build-system gnu-build-system)
  1088. (arguments '(#:configure-flags '("--disable-static"
  1089. "--enable-drafts")))
  1090. (home-page "https://zeromq.org")
  1091. (synopsis "Library for message-based applications")
  1092. (description
  1093. "The 0MQ lightweight messaging kernel is a library which extends the
  1094. standard socket interfaces with features traditionally provided by specialized
  1095. messaging middle-ware products. 0MQ sockets provide an abstraction of
  1096. asynchronous message queues, multiple messaging patterns, message
  1097. filtering (subscriptions), seamless access to multiple transport protocols and
  1098. more.")
  1099. (license license:lgpl3+)))
  1100. (define-public czmq
  1101. (package
  1102. (name "czmq")
  1103. (version "4.2.1")
  1104. (source (origin
  1105. (method url-fetch)
  1106. (uri (string-append
  1107. "https://github.com/zeromq/" name
  1108. "/releases/download/v" version
  1109. "/" name "-" version ".tar.gz"))
  1110. (sha256
  1111. (base32
  1112. "0fdclvd7fcwixp0k57ccv7d159v3slasyhvndxfn8n1a9hh0lwjx"))))
  1113. (build-system gnu-build-system)
  1114. (arguments
  1115. '(#:configure-flags '("--enable-drafts")))
  1116. (inputs
  1117. (list zeromq))
  1118. (home-page "https://zeromq.org")
  1119. (synopsis "High-level C bindings for ØMQ")
  1120. (description
  1121. "czmq provides bindings for the ØMQ core API that hides the differences
  1122. between different versions of ØMQ.")
  1123. (license license:mpl2.0)))
  1124. (define-public cppzmq
  1125. (package
  1126. (name "cppzmq")
  1127. (version "4.8.1")
  1128. (source (origin
  1129. (method git-fetch)
  1130. (uri (git-reference
  1131. (url "https://github.com/zeromq/cppzmq")
  1132. (commit (string-append "v" version))))
  1133. (sha256
  1134. (base32
  1135. "0zzq20wzk5grshxfqhqgqqfwb38w3k83r821isvyaxghsglpwks3"))
  1136. (file-name (git-file-name name version))))
  1137. (build-system cmake-build-system)
  1138. (arguments
  1139. `(#:tests? ,(not (%current-target-system)))) ; run unless cross-compiling
  1140. (native-inputs
  1141. (list pkg-config))
  1142. (inputs
  1143. (list catch-framework2 zeromq))
  1144. (home-page "https://zeromq.org")
  1145. (synopsis "C++ bindings for the ØMQ messaging library")
  1146. (description
  1147. "This package provides header-only C++ bindings for ØMQ. The header
  1148. files contain direct mappings of the abstractions provided by the ØMQ C API.")
  1149. (license license:expat)))
  1150. (define-public libnatpmp
  1151. (package
  1152. (name "libnatpmp")
  1153. (version "20150609")
  1154. (source (origin
  1155. (method url-fetch)
  1156. (uri (string-append
  1157. "http://miniupnp.free.fr/files/"
  1158. name "-" version ".tar.gz"))
  1159. (sha256
  1160. (base32
  1161. "1c1n8n7mp0amsd6vkz32n8zj3vnsckv308bb7na0dg0r8969rap1"))))
  1162. (build-system gnu-build-system)
  1163. (arguments
  1164. `(#:phases
  1165. (modify-phases %standard-phases
  1166. (delete 'configure)
  1167. (delete 'check)) ; no tests
  1168. #:make-flags
  1169. (let* ((target ,(%current-target-system))
  1170. (gcc (if target
  1171. (string-append target "-gcc")
  1172. "gcc")))
  1173. (list
  1174. (string-append "CC=" gcc)
  1175. (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
  1176. (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))))
  1177. (home-page "http://miniupnp.free.fr/libnatpmp.html")
  1178. (synopsis "C library implementing NAT-PMP")
  1179. (description
  1180. "@code{libnatpmp} is a portable and asynchronous implementation of
  1181. the Network Address Translation - Port Mapping Protocol (NAT-PMP)
  1182. written in the C programming language.")
  1183. (license license:bsd-3)))
  1184. (define-public librdkafka
  1185. (package
  1186. (name "librdkafka")
  1187. (version "1.4.2")
  1188. (source (origin
  1189. (method git-fetch)
  1190. (uri (git-reference
  1191. (url "https://github.com/edenhill/librdkafka")
  1192. (commit (string-append "v" version))))
  1193. (file-name (git-file-name name version))
  1194. (sha256
  1195. (base32
  1196. "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly"))))
  1197. (build-system gnu-build-system)
  1198. (arguments
  1199. '(#:phases
  1200. (modify-phases %standard-phases
  1201. (replace 'configure
  1202. ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
  1203. (lambda* (#:key outputs #:allow-other-keys)
  1204. (let ((out (assoc-ref outputs "out")))
  1205. ;; librdkafka++.so lacks RUNPATH for librdkafka.so
  1206. (setenv "LDFLAGS"
  1207. (string-append "-Wl,-rpath=" out "/lib"))
  1208. (invoke "./configure"
  1209. (string-append "--prefix=" out))))))))
  1210. (native-inputs
  1211. `(("python" ,python-wrapper)))
  1212. (propagated-inputs
  1213. (list zlib)) ; in the Libs.private field of rdkafka.pc
  1214. (home-page "https://github.com/edenhill/librdkafka")
  1215. (synopsis "Apache Kafka C/C++ client library")
  1216. (description
  1217. "librdkafka is a C library implementation of the Apache Kafka protocol,
  1218. containing both Producer and Consumer support.")
  1219. (license license:bsd-2)))
  1220. (define-public libndp
  1221. (package
  1222. (name "libndp")
  1223. (version "1.8")
  1224. (source (origin
  1225. (method url-fetch)
  1226. (uri (string-append "https://libndp.org/files/"
  1227. "libndp-" version ".tar.gz"))
  1228. (sha256
  1229. (base32
  1230. "0ay0n0d85254zdmv8znmn399gfiqpk6ga0jwdwa7ylpbw9pbdzw8"))))
  1231. (build-system gnu-build-system)
  1232. (home-page "https://libndp.org/")
  1233. (synopsis "Library for Neighbor Discovery Protocol")
  1234. (description
  1235. "libndp contains a library which provides a wrapper for IPv6 Neighbor
  1236. Discovery Protocol. It also provides a tool named ndptool for sending and
  1237. receiving NDP messages.")
  1238. (license license:lgpl2.1+)))
  1239. (define-public ethtool
  1240. (package
  1241. (name "ethtool")
  1242. (version "5.15")
  1243. (source (origin
  1244. (method url-fetch)
  1245. (uri (string-append "mirror://kernel.org/software/network/"
  1246. "ethtool/ethtool-" version ".tar.xz"))
  1247. (sha256
  1248. (base32
  1249. "0v8i592vwjypf111w0lfvaxdwhzybp6w600g28m9rm490c8xcvv8"))))
  1250. (build-system gnu-build-system)
  1251. (native-inputs
  1252. (list pkg-config))
  1253. (inputs
  1254. (list libmnl))
  1255. (home-page "https://www.kernel.org/pub/software/network/ethtool/")
  1256. (synopsis "Display or change Ethernet device settings")
  1257. (description
  1258. "ethtool can be used to query and change settings such as speed,
  1259. auto-negotiation and checksum offload on many network devices, especially
  1260. Ethernet devices.")
  1261. (license license:gpl2)))
  1262. (define-public ifstatus
  1263. (package
  1264. (name "ifstatus")
  1265. (version "1.1.0")
  1266. (source (origin
  1267. (method url-fetch)
  1268. (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
  1269. "ifstatus%20v" version "/ifstatus-v"
  1270. version ".tar.gz"))
  1271. (sha256
  1272. (base32
  1273. "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
  1274. (modules '((guix build utils)))
  1275. (snippet
  1276. '(begin
  1277. (substitute* "Main.h"
  1278. (("#include <stdio.h>")
  1279. "#include <stdio.h>\n#include <stdlib.h>"))
  1280. #t))))
  1281. (build-system gnu-build-system)
  1282. (arguments
  1283. '(#:tests? #f ; no "check" target
  1284. #:phases
  1285. (modify-phases %standard-phases
  1286. (delete 'configure) ; no configure script
  1287. (replace 'install
  1288. (lambda* (#:key outputs #:allow-other-keys)
  1289. (let* ((out (assoc-ref outputs "out"))
  1290. (bin (string-append out "/bin")))
  1291. (mkdir-p bin)
  1292. (copy-file "ifstatus"
  1293. (string-append bin "/ifstatus")))
  1294. #t)))))
  1295. (inputs (list ncurses))
  1296. (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
  1297. (synopsis "Text based network interface status monitor")
  1298. (description
  1299. "IFStatus is a simple, easy-to-use program for displaying commonly
  1300. needed/wanted real-time traffic statistics of multiple network
  1301. interfaces, with a simple and efficient view on the command line. It is
  1302. intended as a substitute for the PPPStatus and EthStatus projects.")
  1303. (license license:gpl2+)))
  1304. (define-public iputils
  1305. (package
  1306. (name "iputils")
  1307. (version "20190709")
  1308. (home-page "https://github.com/iputils/iputils")
  1309. (source (origin
  1310. (method git-fetch)
  1311. (uri (git-reference (url home-page)
  1312. (commit (string-append "s" version))))
  1313. (file-name (git-file-name name version))
  1314. (patches (search-patches "iputils-libcap-compat.patch"))
  1315. (sha256
  1316. (base32
  1317. "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693"))))
  1318. (build-system meson-build-system)
  1319. (arguments
  1320. `(#:configure-flags '("-DBUILD_RARPD=true")
  1321. #:phases
  1322. (modify-phases %standard-phases
  1323. (add-after 'unpack 'fix-docbook-url
  1324. (lambda* (#:key inputs #:allow-other-keys)
  1325. (let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
  1326. (uri (string-append docbook-xsl "/xml/xsl/docbook-xsl-"
  1327. ,(package-version docbook-xsl))))
  1328. (for-each
  1329. (lambda (file)
  1330. (substitute* file
  1331. (("http://docbook\\.sourceforge\\.net/release/xsl-ns/current")
  1332. uri)))
  1333. (cons "doc/meson.build"
  1334. (find-files "doc" "\\.xsl$")))
  1335. #t))))))
  1336. (native-inputs
  1337. `(("gettext" ,gettext-minimal)
  1338. ("pkg-config" ,pkg-config)
  1339. ("docbook-xsl" ,docbook-xsl)
  1340. ("docbook-xml" ,docbook-xml-5)
  1341. ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
  1342. ("xsltproc" ,libxslt)))
  1343. (inputs
  1344. (list libcap libidn2 openssl))
  1345. (synopsis "Collection of network utilities")
  1346. (description
  1347. "This package contains a variety of tools for dealing with network
  1348. configuration, troubleshooting, or servers. Utilities included are:
  1349. @itemize @bullet
  1350. @item @command{arping}: Ping hosts using the @dfn{Address Resolution Protocol}.
  1351. @item @command{clockdiff}: Compute time difference between network hosts
  1352. using ICMP TSTAMP messages.
  1353. @item @command{ninfod}: Daemon that responds to IPv6 Node Information Queries.
  1354. @item @command{ping}: Use ICMP ECHO messages to measure round-trip delays
  1355. and packet loss across network paths.
  1356. @item @command{rarpd}: Answer RARP requests from clients.
  1357. @item @command{rdisc}: Populate network routing tables with information from
  1358. the ICMP router discovery protocol.
  1359. @item @command{tftpd}: Trivial file transfer protocol server.
  1360. @item @command{tracepath}: Trace network path to an IPv4 or IPv6 address and
  1361. discover MTU along the way.
  1362. @end itemize")
  1363. ;; The various utilities are covered by different licenses, see LICENSE
  1364. ;; for details.
  1365. (license (list license:gpl2+ ;arping, rarpd, tracepath
  1366. license:bsd-3 ;clockdiff, ninfod, ping, tftpd
  1367. (license:non-copyleft
  1368. "https://spdx.org/licenses/Rdisc.html"
  1369. "Sun Microsystems license, see rdisc.c for details")))))
  1370. (define-public nload
  1371. (package
  1372. (name "nload")
  1373. (version "0.7.4")
  1374. (source (origin
  1375. (method url-fetch)
  1376. (uri (string-append "mirror://sourceforge/nload/nload/" version
  1377. "/nload-" version ".tar.gz"))
  1378. (sha256
  1379. (base32
  1380. "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
  1381. (build-system gnu-build-system)
  1382. (inputs (list ncurses))
  1383. (home-page "http://www.roland-riegel.de/nload/")
  1384. (synopsis "Realtime console network usage monitor")
  1385. (description
  1386. "Nload is a console application which monitors network traffic and
  1387. bandwidth usage in real time. It visualizes the in- and outgoing traffic using
  1388. two graphs, and provides additional info like total amount of transferred data
  1389. and min/max network usage.")
  1390. (license license:gpl2+)))
  1391. (define-public iodine
  1392. (package
  1393. (name "iodine")
  1394. (version "0.7.0")
  1395. (source (origin
  1396. (method url-fetch)
  1397. (uri (string-append "http://code.kryo.se/" name "/"
  1398. name "-" version ".tar.gz"))
  1399. (sha256
  1400. (base32
  1401. "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
  1402. (build-system gnu-build-system)
  1403. (arguments
  1404. `(#:phases
  1405. (modify-phases %standard-phases
  1406. (delete 'configure)
  1407. (add-before 'build 'fix-ifconfig-path
  1408. ;; This package works only with the net-tools version of ifconfig.
  1409. (lambda* (#:key inputs #:allow-other-keys)
  1410. (substitute* "src/tun.c"
  1411. (("PATH=[^ ]* ")
  1412. (string-append (assoc-ref inputs "net-tools") "/bin/")))
  1413. #t))
  1414. (add-before 'check 'delete-failing-tests
  1415. ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
  1416. (lambda _
  1417. (substitute* "tests/common.c"
  1418. (("tcase_add_test\\(tc, \
  1419. test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
  1420. ""))
  1421. #t)))
  1422. #:make-flags (list ,(string-append "CC=" (cc-for-target))
  1423. (string-append "prefix=" (assoc-ref %outputs "out")))
  1424. #:test-target "test"))
  1425. (inputs (list net-tools zlib))
  1426. (native-inputs (list check-0.14 pkg-config))
  1427. (home-page "https://code.kryo.se/iodine/")
  1428. (synopsis "Tunnel IPv4 data through a DNS server")
  1429. (description "Iodine tunnels IPv4 data through a DNS server. This
  1430. can be useful in different situations where internet access is firewalled, but
  1431. DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
  1432. and up to 1 Mbit/s downstream.")
  1433. ;; src/md5.[ch] is released under the zlib license
  1434. (license (list license:isc license:zlib))))
  1435. (define-public whois
  1436. (package
  1437. (name "whois")
  1438. (version "5.5.11")
  1439. (source
  1440. (origin
  1441. (method git-fetch)
  1442. (uri (git-reference
  1443. (url "https://github.com/rfc1036/whois")
  1444. (commit (string-append "v" version))))
  1445. (file-name (git-file-name name version))
  1446. (sha256
  1447. (base32 "0wys0aixzq6mzvg7p6jb0d5rkkg23pjcgcsx86p7hjidxdvnbwzr"))))
  1448. (build-system gnu-build-system)
  1449. (arguments
  1450. `(#:tests? #f ; no test suite
  1451. #:make-flags (list (string-append "CC=" ,(cc-for-target))
  1452. (string-append "PKG_CONFIG=" ,(pkg-config-for-target))
  1453. (string-append "prefix=" (assoc-ref %outputs "out")))
  1454. #:phases
  1455. (modify-phases %standard-phases
  1456. (delete 'configure) ; no configure script
  1457. (add-before 'build 'setenv
  1458. (lambda _
  1459. (setenv "HAVE_ICONV" "1")
  1460. #t)))))
  1461. (inputs
  1462. (list libidn2))
  1463. (native-inputs
  1464. `(("gettext" ,gettext-minimal)
  1465. ("perl" ,perl)
  1466. ("pkg-config" ,pkg-config)))
  1467. (synopsis "Intelligent client for the WHOIS directory service")
  1468. (description
  1469. "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
  1470. It is commonly used to look up the registered users or assignees of an Internet
  1471. resource, such as a domain name, an IP address block, or an autonomous system.
  1472. It can automatically select the appropriate server for most queries.
  1473. For historical reasons, this package also includes @command{mkpasswd}, which
  1474. encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
  1475. of the same name.")
  1476. (home-page "https://github.com/rfc1036/whois")
  1477. (license license:gpl2+)))
  1478. (define-public wireshark
  1479. (package
  1480. (name "wireshark")
  1481. (version "3.6.2")
  1482. (source
  1483. (origin
  1484. (method url-fetch)
  1485. (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
  1486. version ".tar.xz"))
  1487. (sha256
  1488. (base32 "03n34jh4318y3q14jclxfxi4r7b9l393w9fw9bq57ydff9aim42x"))))
  1489. (build-system cmake-build-system)
  1490. (arguments
  1491. `(#:phases
  1492. (modify-phases %standard-phases
  1493. (add-after 'unpack 'remove-failing-test
  1494. ;; Skip test suite failing with "Program reassemble_test is not
  1495. ;; available" and alike errors. Also skip test suite failing with
  1496. ;; "AssertionError: Program extcap/sdjournal is not available"
  1497. ;; error.'
  1498. (lambda _
  1499. (substitute* "CMakeLists.txt"
  1500. (("suite_unittests" all) (string-append "# " all))
  1501. (("suite_extcaps" all) (string-append "# " all))))))
  1502. ;; Build process chokes during `validate-runpath' phase.
  1503. ;;
  1504. ;; Errors are like the following:
  1505. ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
  1506. ;; error: depends on 'libwireshark.so.12', which cannot be found in
  1507. ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
  1508. ;; belong to RUNPATH.
  1509. ;;
  1510. ;; That’s not a problem in practice because "ethercat.so" is a plugin,
  1511. ;; so it’s dlopen’d by a process that already provides "libwireshark".
  1512. ;; For now, we disable this phase.
  1513. #:validate-runpath? #f))
  1514. (inputs
  1515. (list c-ares
  1516. glib
  1517. gnutls
  1518. brotli
  1519. libcap
  1520. libgcrypt
  1521. libnl
  1522. libpcap
  1523. libssh
  1524. libxml2
  1525. lz4
  1526. lua-5.2 ;Lua 5.3 unsupported
  1527. mit-krb5
  1528. `(,nghttp2 "lib")
  1529. minizip
  1530. qtbase-5
  1531. qtmultimedia
  1532. qtsvg
  1533. sbc
  1534. snappy
  1535. zlib
  1536. `(,zstd "lib")))
  1537. (native-inputs
  1538. (list bison
  1539. doxygen
  1540. flex
  1541. gettext-minimal
  1542. perl
  1543. pkg-config
  1544. python-wrapper
  1545. qttools))
  1546. (synopsis "Network traffic analyzer")
  1547. (description "Wireshark is a network protocol analyzer, or @dfn{packet
  1548. sniffer}, that lets you capture and interactively browse the contents of
  1549. network frames.")
  1550. (home-page "https://www.wireshark.org/")
  1551. (license license:gpl2+)))
  1552. (define-public fping
  1553. (package
  1554. (name "fping")
  1555. (version "5.1")
  1556. (source
  1557. (origin
  1558. (method url-fetch)
  1559. (uri (string-append "https://fping.org/dist/fping-"
  1560. version ".tar.gz"))
  1561. (sha256
  1562. (base32 "1zh9fkyn0bixgn77v9z6ayv446nqwx960hmly9m68xix0s62dr8y"))))
  1563. (build-system gnu-build-system)
  1564. (arguments '(#:configure-flags '("--enable-ipv6")))
  1565. (home-page "https://fping.org/")
  1566. (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
  1567. (description
  1568. "fping is a ping-like program which uses @acronym{ICMP, Internet Control
  1569. Message Protocol} echo requests to determine if a target host is responding.
  1570. @command{fping} differs from @command{ping} in that you can specify any number
  1571. of targets on the command line, or specify a file containing the lists of
  1572. targets to ping. Instead of sending to one target until it times out or
  1573. replies, fping will send out a ping packet and move on to the next target in a
  1574. round-robin fashion.")
  1575. (license license:expat)))
  1576. (define-public gandi.cli
  1577. (package
  1578. (name "gandi.cli")
  1579. (version "1.6")
  1580. (source
  1581. (origin
  1582. (method url-fetch)
  1583. (uri (pypi-uri name version))
  1584. (sha256
  1585. (base32 "1h36jahbp7273wn3yd747kbiwjc0bm3sja67bcxdsd54ln0vyndg"))))
  1586. (build-system python-build-system)
  1587. (arguments
  1588. `(#:phases
  1589. (modify-phases %standard-phases
  1590. (add-after 'unpack 'embed-store-file-names
  1591. (lambda _
  1592. (substitute* (list "gandi/cli/modules/cert.py"
  1593. "gandi/cli/tests/commands/test_certificate.py")
  1594. (("openssl") (which "openssl")))
  1595. #t))
  1596. (add-after 'install 'install-documentation
  1597. ;; The included man page may be outdated but we install it anyway,
  1598. ;; since it's mentioned in 'gandi --help' and better than nothing.
  1599. (lambda* (#:key outputs #:allow-other-keys)
  1600. (let* ((out (assoc-ref outputs "out"))
  1601. (man1 (string-append out "/share/man/man1")))
  1602. (mkdir-p man1)
  1603. (with-output-to-file (string-append man1 "/gandi.1")
  1604. (lambda _
  1605. (invoke "rst2man.py" "gandicli.man.rst")))
  1606. #t))))))
  1607. (native-inputs
  1608. (list python-docutils ; for rst2man.py
  1609. python-pytest python-pytest-cov python-tox))
  1610. (propagated-inputs
  1611. (list openssh)) ; used by gandi/cli/modules/iass.py
  1612. (inputs
  1613. (list openssl python-click python-ipy python-pyyaml python-requests))
  1614. (home-page "https://cli.gandi.net")
  1615. (synopsis "Command-line interface to the Gandi.net Web API")
  1616. (description
  1617. "This package provides a command-line client (@command{gandi}) to buy,
  1618. manage, and delete Internet resources from Gandi.net such as domain names,
  1619. virtual machines, and certificates.")
  1620. (license license:gpl3+)))
  1621. (define-public go-netns
  1622. (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
  1623. (revision "1"))
  1624. (package
  1625. (name "go-netns")
  1626. (version (git-version "0.0.0" revision commit))
  1627. (source (origin
  1628. (method git-fetch)
  1629. (uri (git-reference
  1630. (url "https://github.com/vishvananda/netns")
  1631. (commit commit)))
  1632. (file-name (git-file-name name version))
  1633. (sha256
  1634. (base32
  1635. "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
  1636. (build-system go-build-system)
  1637. (arguments
  1638. `(#:import-path "github.com/vishvananda/netns"
  1639. #:tests? #f)) ;tests require root privileges
  1640. (home-page "https://github.com/vishvananda/netns")
  1641. (synopsis "Simple network namespace handling for Go")
  1642. (description "The netns package provides a simple interface for
  1643. handling network namespaces in Go.")
  1644. (license license:asl2.0))))
  1645. (define-public go-sctp
  1646. ;; docker-libnetwork-cmd-proxy requires this exact commit.
  1647. ;; This commit is mentioned in docker-libnetwork-cmd-proxy's vendor.conf.
  1648. (let ((commit "6e2cb1366111dcf547c13531e3a263a067715847")
  1649. (revision "2"))
  1650. (package
  1651. (name "go-sctp")
  1652. (version (git-version "0.0.0" revision commit))
  1653. (source (origin
  1654. (method git-fetch)
  1655. (uri (git-reference
  1656. (url "https://github.com/ishidawataru/sctp")
  1657. (commit commit)))
  1658. (file-name (git-file-name name version))
  1659. (sha256
  1660. (base32
  1661. "1ba90fmpdwxa1ba4hrsjhi3gfy3pwmz7x8amw1p5dc9p5a7nnqrb"))))
  1662. (build-system go-build-system)
  1663. (arguments
  1664. `(#:tests? #f ; Test suite is flakey.
  1665. #:import-path "github.com/ishidawataru/sctp"))
  1666. (home-page "https://github.com/ishidawataru/sctp")
  1667. (synopsis "SCTP library for the Go programming language")
  1668. (description "This library provides methods for using the stream control
  1669. transmission protocol (SCTP) in a Go application.")
  1670. (license license:asl2.0))))
  1671. (define-public httping
  1672. (package
  1673. (name "httping")
  1674. (version "2.5")
  1675. (source
  1676. (origin
  1677. (method url-fetch)
  1678. (uri (string-append "https://www.vanheusden.com/httping/httping-"
  1679. version ".tgz"))
  1680. (sha256
  1681. (base32
  1682. "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
  1683. (build-system gnu-build-system)
  1684. (native-inputs
  1685. `(("gettext" ,gettext-minimal)))
  1686. (inputs
  1687. (list fftw ncurses openssl))
  1688. (arguments
  1689. `(#:make-flags (list ,(string-append "CC=" (cc-for-target))
  1690. (string-append "DESTDIR=" (assoc-ref %outputs "out"))
  1691. "PREFIX=")
  1692. #:tests? #f)) ; no tests
  1693. (home-page "https://www.vanheusden.com/httping/")
  1694. (synopsis "Web server latency and throughput monitor")
  1695. (description
  1696. "httping measures how long it takes to connect to a web server, send an
  1697. HTTP(S) request, and receive the reply headers. It is somewhat similar to
  1698. @command{ping}, but can be used even in cases where ICMP traffic is blocked
  1699. by firewalls or when you want to monitor the response time of the actual web
  1700. application stack itself.")
  1701. (license license:gpl2))) ; with permission to link with OpenSSL
  1702. (define-public httpstat
  1703. (package
  1704. (name "httpstat")
  1705. (version "1.3.1")
  1706. (source
  1707. (origin
  1708. (method git-fetch)
  1709. (uri (git-reference
  1710. (url "https://github.com/reorx/httpstat")
  1711. (commit version)))
  1712. (file-name (git-file-name name version))
  1713. (sha256
  1714. (base32 "0cw8299a080m42slsimz31xs0gjnh833gpbj2dsr4hkcinrn4iyd"))))
  1715. (build-system python-build-system)
  1716. (inputs (list curl))
  1717. (arguments
  1718. '(#:phases
  1719. (modify-phases %standard-phases
  1720. (add-before 'build 'fix-curl-path
  1721. (lambda* (#:key inputs #:allow-other-keys)
  1722. (substitute* "httpstat.py"
  1723. (("ENV_CURL_BIN.get\\('curl'\\)")
  1724. (string-append "ENV_CURL_BIN.get('"
  1725. (assoc-ref inputs "curl")
  1726. "/bin/curl')"))
  1727. ;; "curl -w time_*" units seems to have
  1728. ;; changed from seconds to nanoseconds.
  1729. (("d\\[k\\] \\* 1000") "d[k] / 1000"))
  1730. #t)))))
  1731. (home-page "https://github.com/reorx/httpstat")
  1732. (synopsis "Visualize curl statistics")
  1733. (description
  1734. "@command{httpstat} is a tool to visualize statistics from the
  1735. @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
  1736. prints timing information for each step of the HTTP request (DNS lookup,
  1737. TCP connection, TLS handshake and so on) in the terminal.")
  1738. (license license:expat)))
  1739. (define-public squid
  1740. (package
  1741. (name "squid")
  1742. (version "4.17")
  1743. (source
  1744. (origin
  1745. (method url-fetch)
  1746. (uri (string-append "http://www.squid-cache.org/Versions/v4/squid-"
  1747. version ".tar.xz"))
  1748. (sha256
  1749. (base32 "060lwghn6q982bay11ia38c86kd8w6mjgy68n58v31kwik08m4nb"))))
  1750. (build-system gnu-build-system)
  1751. (arguments
  1752. '(#:configure-flags
  1753. ;; disable -march=native in build for reproducibility; see
  1754. ;; https://wiki.squid-cache.org/KnowledgeBase/IllegalInstructionError
  1755. (list "--disable-arch-native")
  1756. #:phases
  1757. (modify-phases %standard-phases
  1758. (add-before 'build 'fix-true-path
  1759. (lambda* (#:key inputs #:allow-other-keys)
  1760. (substitute* "test-suite/testheaders.sh"
  1761. (("/bin/true")
  1762. (search-input-file inputs "/bin/true"))))))))
  1763. (inputs
  1764. (list perl
  1765. openldap
  1766. linux-pam
  1767. libcap
  1768. cyrus-sasl
  1769. expat
  1770. libxml2
  1771. openssl))
  1772. (native-inputs
  1773. (list cppunit pkg-config))
  1774. (synopsis "Web caching proxy")
  1775. (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS,
  1776. FTP, and more. It reduces bandwidth and improves response times by caching and
  1777. reusing frequently-requested web pages.")
  1778. (home-page "http://www.squid-cache.org/")
  1779. (license license:gpl2+)))
  1780. (define-public bwm-ng
  1781. (package
  1782. (name "bwm-ng")
  1783. (version "0.6.3")
  1784. (source
  1785. (origin
  1786. (method git-fetch)
  1787. (uri (git-reference
  1788. (url "https://github.com/vgropp/bwm-ng")
  1789. (commit (string-append "v" version))))
  1790. (file-name (git-file-name name version))
  1791. (sha256
  1792. (base32 "1gpp2l3w479h1w5skjra5xy0gxd24kvmk6i4psbkafnv2399la4k"))))
  1793. (build-system gnu-build-system)
  1794. (arguments
  1795. `(#:phases
  1796. (modify-phases %standard-phases
  1797. (add-after 'unpack 'disable-premature-./configure
  1798. (lambda _
  1799. (substitute* "autogen.sh"
  1800. (("\\$srcdir/configure")
  1801. "true"))
  1802. #t)))))
  1803. (native-inputs
  1804. (list autoconf automake))
  1805. (inputs
  1806. (list ncurses))
  1807. (synopsis "Console based live network and disk I/O bandwidth monitor")
  1808. (description "Bandwidth Monitor NG is a small and simple console based
  1809. live network and disk I/O bandwidth monitor.")
  1810. (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
  1811. (license license:gpl2)))
  1812. (define-public aircrack-ng
  1813. (package
  1814. (name "aircrack-ng")
  1815. (version "1.6")
  1816. (source
  1817. (origin
  1818. (method url-fetch)
  1819. (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
  1820. version ".tar.gz"))
  1821. (sha256
  1822. (base32 "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg"))))
  1823. (build-system gnu-build-system)
  1824. (native-inputs
  1825. (list autoconf automake libtool pkg-config which))
  1826. (inputs
  1827. (list libgcrypt
  1828. libnl
  1829. libpcap
  1830. ethtool
  1831. pcre
  1832. sqlite
  1833. zlib))
  1834. (arguments
  1835. `(#:configure-flags
  1836. (list "CFLAGS=-fcommon"
  1837. "--with-experimental=yes" ; build wesside-ng, etc.
  1838. "--with-gcrypt") ; openssl's the default
  1839. #:phases (modify-phases %standard-phases
  1840. (add-before 'bootstrap 'patch-evalrev
  1841. (lambda _
  1842. ;; Called by ./autogen.sh below, before the default
  1843. ;; ‘patch-shebangs’ phase has had a chance to run.
  1844. (substitute* "evalrev"
  1845. (("/bin/sh")
  1846. (which "sh")))
  1847. #t))
  1848. (add-after 'build 'absolutize-tools
  1849. (lambda* (#:key inputs #:allow-other-keys)
  1850. (let ((ethtool (search-input-file inputs
  1851. "/sbin/ethtool")))
  1852. (substitute* "scripts/airmon-ng"
  1853. (("ethtool ")
  1854. (string-append ethtool " ")))
  1855. #t))))))
  1856. (home-page "https://www.aircrack-ng.org")
  1857. (synopsis "Assess WiFi network security")
  1858. (description
  1859. "Aircrack-ng is a complete suite of tools to assess WiFi network
  1860. security. It focuses on different areas of WiFi security: monitoring,
  1861. attacking, testing, and cracking. All tools are command-line driven, which
  1862. allows for heavy scripting.")
  1863. (license (list license:gpl2+ license:bsd-3))))
  1864. (define-public pixiewps
  1865. (package
  1866. (name "pixiewps")
  1867. (version "1.4.2")
  1868. (source (origin
  1869. (method url-fetch)
  1870. (uri (string-append
  1871. "https://github.com/wiire-a/pixiewps/releases/"
  1872. "download/v" version "/" name "-" version ".tar.xz"))
  1873. (sha256
  1874. (base32
  1875. "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
  1876. (build-system gnu-build-system)
  1877. (arguments
  1878. `(#:make-flags
  1879. (list ,(string-append "CC=" (cc-for-target))
  1880. (string-append "PREFIX=" (assoc-ref %outputs "out")))
  1881. #:phases
  1882. (modify-phases %standard-phases
  1883. (delete 'configure)) ; no configure script
  1884. #:tests? #f)) ; there are no tests
  1885. (home-page "https://github.com/wiire-a/pixiewps/")
  1886. (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
  1887. (description "Pixiewps implements the pixie-dust attack to brute
  1888. force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
  1889. non-existing entropy of some access points.")
  1890. (license license:gpl3+)))
  1891. (define-public reaver
  1892. (package
  1893. (name "reaver")
  1894. (version "1.6.6")
  1895. (source (origin
  1896. (method url-fetch)
  1897. (uri (string-append
  1898. "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
  1899. "download/v" version "/reaver-" version ".tar.xz"))
  1900. (sha256
  1901. (base32
  1902. "00k7mc81ifv0wma7k4v18mj498badbw5yls6c28qin3d1gda0ag3"))))
  1903. (build-system gnu-build-system)
  1904. (arguments
  1905. `(#:configure-flags
  1906. ;; Save session files to current directory instead of /var.
  1907. (list "--enable-savetocurrent"
  1908. "--localstatedir=/tmp/dummy") ; prevent creating /var during install
  1909. #:phases
  1910. (modify-phases %standard-phases
  1911. (add-before 'configure 'change-directory
  1912. (lambda _
  1913. (chdir "src")
  1914. #t))
  1915. (add-after 'install 'install-doc
  1916. (lambda* (#:key outputs #:allow-other-keys)
  1917. (chdir "../docs")
  1918. (let* ((out (assoc-ref outputs "out"))
  1919. (doc (string-append out "/share/doc/" ,name "-" ,version))
  1920. (man1 (string-append out "/share/man/man1")))
  1921. (for-each (lambda (file) (install-file file doc))
  1922. (find-files "." "README.*"))
  1923. (install-file "reaver.1" man1)
  1924. #t))))
  1925. #:tests? #f)) ; there are no tests
  1926. (inputs
  1927. (list libpcap))
  1928. (propagated-inputs
  1929. (list aircrack-ng pixiewps))
  1930. (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
  1931. (synopsis "Attack tool for Wi-Fi Protected Setup")
  1932. (description "Reaver performs a brute force attack against an access
  1933. point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
  1934. passphrase can be recovered and the AP's wireless settings can be
  1935. reconfigured.")
  1936. (license license:gpl2+)))
  1937. (define-public perl-danga-socket
  1938. (package
  1939. (name "perl-danga-socket")
  1940. (version "1.62")
  1941. (source
  1942. (origin
  1943. (method url-fetch)
  1944. (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
  1945. "Danga-Socket-" version ".tar.gz"))
  1946. (sha256
  1947. (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
  1948. (build-system perl-build-system)
  1949. (native-inputs
  1950. (list perl-test-tcp))
  1951. (propagated-inputs
  1952. (list perl-sys-syscall))
  1953. (home-page "https://metacpan.org/release/Danga-Socket")
  1954. (synopsis "Event loop and event-driven async socket base class")
  1955. (description
  1956. "Danga::Socket is an abstract base class for objects backed by a socket
  1957. which provides the basic framework for event-driven asynchronous IO, designed
  1958. to be fast. Danga::Socket is both a base class for objects, and an event
  1959. loop.")
  1960. (license license:perl-license)))
  1961. (define-public perl-data-validate-ip
  1962. (package
  1963. (name "perl-data-validate-ip")
  1964. (version "0.30")
  1965. (source
  1966. (origin
  1967. (method url-fetch)
  1968. (uri (string-append
  1969. "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
  1970. version ".tar.gz"))
  1971. (sha256
  1972. (base32 "074adrlvkiahj1fdc9nvb95dpfyjzm2jzhi90m8xaw4bw5ipcbzy"))))
  1973. (build-system perl-build-system)
  1974. (native-inputs
  1975. (list perl-test-requires))
  1976. (propagated-inputs
  1977. (list perl-netaddr-ip))
  1978. (home-page "https://metacpan.org/release/Data-Validate-IP")
  1979. (synopsis "IPv4 and IPv6 validation methods")
  1980. (description
  1981. "This module provides several IP address validation subroutines that both
  1982. validate and untaint their input. This includes both basic validation
  1983. (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
  1984. an address belongs to a specific network or whether an address is public or
  1985. private (reserved).")
  1986. (license license:perl-license)))
  1987. (define-public perl-net-dns
  1988. (package
  1989. (name "perl-net-dns")
  1990. (version "1.31")
  1991. (source
  1992. (origin
  1993. (method url-fetch)
  1994. (uri
  1995. (list
  1996. (string-append "https://www.net-dns.org/download/Net-DNS-"
  1997. version ".tar.gz")
  1998. (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
  1999. version ".tar.gz")))
  2000. (sha256
  2001. (base32 "05f6rzvvmm6xd0p100k5y9kczdzqgala09ra8bccc18n6y74l0h0"))))
  2002. (build-system perl-build-system)
  2003. (inputs
  2004. (list perl-digest-hmac))
  2005. (home-page "https://www.net-dns.org/")
  2006. (synopsis
  2007. "Perl Interface to the Domain Name System")
  2008. (description "Net::DNS is the Perl Interface to the Domain Name System.")
  2009. (license license:x11)))
  2010. (define-public perl-socket6
  2011. (package
  2012. (name "perl-socket6")
  2013. (version "0.29")
  2014. (source
  2015. (origin
  2016. (method url-fetch)
  2017. (uri (string-append
  2018. "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
  2019. version
  2020. ".tar.gz"))
  2021. (sha256
  2022. (base32
  2023. "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
  2024. (build-system perl-build-system)
  2025. (arguments
  2026. `(#:phases
  2027. (modify-phases %standard-phases
  2028. (replace 'configure
  2029. (lambda* (#:key outputs #:allow-other-keys)
  2030. (let* ((out (assoc-ref outputs "out"))
  2031. (args `("Makefile.PL"
  2032. ,(string-append "PREFIX=" out)
  2033. "INSTALLDIRS=site")))
  2034. (setenv "CONFIG_SHELL" (which "sh"))
  2035. (apply invoke "perl" args)))))))
  2036. (home-page "https://metacpan.org/release/Socket6")
  2037. (synopsis
  2038. "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
  2039. (description "Socket6 binds the IPv6 related part of the C socket header
  2040. definitions and structure manipulators for Perl.")
  2041. (license license:bsd-3)))
  2042. (define-public perl-net-dns-resolver-programmable
  2043. (package
  2044. (name "perl-net-dns-resolver-programmable")
  2045. (version "0.003")
  2046. (source
  2047. (origin
  2048. (method url-fetch)
  2049. (uri (string-append
  2050. "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
  2051. "Net-DNS-Resolver-Programmable-v" version ".tar.gz"))
  2052. (sha256
  2053. (base32
  2054. "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
  2055. (patches
  2056. (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
  2057. (build-system perl-build-system)
  2058. (native-inputs
  2059. (list perl-module-build))
  2060. (inputs (list perl-net-dns))
  2061. (home-page
  2062. "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
  2063. (synopsis
  2064. "Programmable DNS resolver class for offline emulation of DNS")
  2065. (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
  2066. offline emulation of DNS.")
  2067. (license license:perl-license)))
  2068. (define-public perl-net-dns-resolver-mock
  2069. (package
  2070. (name "perl-net-dns-resolver-mock")
  2071. (version "1.20171219")
  2072. (source (origin
  2073. (method url-fetch)
  2074. (uri (string-append
  2075. "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
  2076. "Net-DNS-Resolver-Mock-" version ".tar.gz"))
  2077. (sha256
  2078. (base32
  2079. "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
  2080. (build-system perl-build-system)
  2081. (inputs
  2082. (list perl-net-dns))
  2083. (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
  2084. (synopsis "Mock DNS Resolver object for testing")
  2085. (description
  2086. "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
  2087. static data from any provided DNS zone file instead of querying the network.
  2088. It is intended primarily for use in testing.")
  2089. (license license:perl-license)))
  2090. (define-public perl-netaddr-ip
  2091. (package
  2092. (name "perl-netaddr-ip")
  2093. (version "4.079")
  2094. (source
  2095. (origin
  2096. (method url-fetch)
  2097. (uri (string-append
  2098. "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
  2099. version
  2100. ".tar.gz"))
  2101. (sha256
  2102. (base32
  2103. "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
  2104. (build-system perl-build-system)
  2105. (arguments
  2106. `(#:phases
  2107. (modify-phases %standard-phases
  2108. (replace 'configure
  2109. (lambda* (#:key outputs #:allow-other-keys)
  2110. (let* ((out (assoc-ref outputs "out"))
  2111. (args `("Makefile.PL"
  2112. ,(string-append "PREFIX=" out)
  2113. "INSTALLDIRS=site")))
  2114. (setenv "CONFIG_SHELL" (which "sh"))
  2115. (apply invoke "perl" args)))))))
  2116. (home-page
  2117. "https://metacpan.org/release/NetAddr-IP")
  2118. (synopsis
  2119. "Manages IPv4 and IPv6 addresses and subnets")
  2120. (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
  2121. (license license:perl-license)))
  2122. (define-public perl-net-patricia
  2123. (package
  2124. (name "perl-net-patricia")
  2125. (version "1.22")
  2126. (source
  2127. (origin
  2128. (method url-fetch)
  2129. (uri (string-append
  2130. "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
  2131. version
  2132. ".tar.gz"))
  2133. (sha256
  2134. (base32
  2135. "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
  2136. (build-system perl-build-system)
  2137. (arguments
  2138. '(#:phases
  2139. (modify-phases %standard-phases
  2140. (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
  2141. (lambda _
  2142. (substitute* "Makefile.PL"
  2143. (("-lnsl") ""))
  2144. #t)))))
  2145. (inputs
  2146. (list perl-net-cidr-lite perl-socket6))
  2147. (home-page
  2148. "https://metacpan.org/release/Net-Patricia")
  2149. (synopsis
  2150. "Patricia Trie Perl module for fast IP address lookups")
  2151. (description
  2152. "Net::Patricia does IP address lookups quickly in Perl.")
  2153. ;; The bindings are licensed under GPL2 or later.
  2154. ;; libpatricia is licensed under 2-clause BSD.
  2155. (license (list license:gpl2+ license:bsd-2))))
  2156. (define-public perl-net-cidr-lite
  2157. (package
  2158. (name "perl-net-cidr-lite")
  2159. (version "0.22")
  2160. (source
  2161. (origin
  2162. (method url-fetch)
  2163. (uri (string-append
  2164. "mirror://cpan/authors/id/S/ST/STIGTSP/Net-CIDR-Lite-"
  2165. version
  2166. ".tar.gz"))
  2167. (sha256
  2168. (base32 "05w57db2lx4djb4vixzdr6qgrzyzkk047nl812g7nq8s6k5xh5s3"))))
  2169. (build-system perl-build-system)
  2170. (home-page "https://metacpan.org/release/Net-CIDR-Lite")
  2171. (synopsis "Perl extension for merging IPv4 or IPv6 CIDR addresses")
  2172. (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
  2173. (license license:gpl1+)))
  2174. (define-public perl-io-socket-inet6
  2175. (package
  2176. (name "perl-io-socket-inet6")
  2177. (version "2.72")
  2178. (source
  2179. (origin
  2180. (method url-fetch)
  2181. (uri (string-append
  2182. "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
  2183. version
  2184. ".tar.gz"))
  2185. (sha256
  2186. (base32
  2187. "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
  2188. (build-system perl-build-system)
  2189. (native-inputs
  2190. (list perl-module-build perl-test-pod perl-test-pod-coverage))
  2191. (propagated-inputs (list perl-socket6))
  2192. (arguments `(;; Need network socket API
  2193. #:tests? #f))
  2194. (home-page
  2195. "https://metacpan.org/release/IO-Socket-INET6")
  2196. (synopsis
  2197. "Perl object interface for AF_INET/AF_INET6 domain sockets")
  2198. (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
  2199. sockets in Perl.")
  2200. (license license:perl-license)))
  2201. (define-public libproxy
  2202. (package
  2203. (name "libproxy")
  2204. (version "0.4.17")
  2205. (source (origin
  2206. (method url-fetch)
  2207. (uri (string-append "https://github.com/libproxy/libproxy/"
  2208. "releases/download/" version "/libproxy-"
  2209. version ".tar.xz"))
  2210. (sha256
  2211. (base32
  2212. "01cbgz6lc3v59sldqk96l1281kp2qxnsa2qwlf2ikvjlyr1gi2dw"))))
  2213. (build-system cmake-build-system)
  2214. (native-inputs
  2215. (list pkg-config))
  2216. (inputs
  2217. (list dbus zlib))
  2218. (arguments
  2219. `(#:phases
  2220. (modify-phases %standard-phases
  2221. (replace 'check
  2222. (lambda* (#:key tests? #:allow-other-keys)
  2223. (when tests?
  2224. (invoke "ctest" "-E" "url-test")))))))
  2225. (synopsis "Library providing automatic proxy configuration management")
  2226. (description "Libproxy handles the details of HTTP/HTTPS proxy
  2227. configuration for applications across all scenarios. Applications using
  2228. libproxy only have to specify which proxy to use.")
  2229. (home-page "https://libproxy.github.io/libproxy")
  2230. (license license:lgpl2.1+)))
  2231. (define-public proxychains-ng
  2232. (package
  2233. (name "proxychains-ng")
  2234. (version "4.15")
  2235. (source
  2236. (origin
  2237. (method url-fetch)
  2238. (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
  2239. "proxychains-ng-" version ".tar.xz"))
  2240. (sha256
  2241. (base32 "10ch6rmbw2lwrq1bc9w4glxkws7hvsy5ihasvzf3yg053xzsn1rj"))))
  2242. (build-system gnu-build-system)
  2243. (arguments
  2244. `(#:tests? #f ; there are no tests
  2245. #:phases
  2246. (modify-phases %standard-phases
  2247. (add-after 'unpack 'fix-configure-script
  2248. (lambda _
  2249. ;; The configure script is very intolerant to unknown arguments,
  2250. ;; such as "CONFIG_SHELL".
  2251. (substitute* "configure"
  2252. (("\\*\\) break ;;" line)
  2253. (string-append "[A-Z]*) shift ;;\n"
  2254. line)))))
  2255. (add-before 'configure 'set-up-environment
  2256. (lambda _
  2257. (setenv "CC" ,(cc-for-target)))))))
  2258. (synopsis "Redirect any TCP connection through a proxy or proxy chain")
  2259. (description "Proxychains-ng is a preloader which hooks calls to sockets
  2260. in dynamically linked programs and redirects them through one or more SOCKS or
  2261. HTTP proxies.")
  2262. (home-page "https://github.com/rofl0r/proxychains-ng")
  2263. (license license:gpl2+)))
  2264. (define-public enet
  2265. (package
  2266. (name "enet")
  2267. (version "1.3.17")
  2268. (source
  2269. (origin
  2270. (method url-fetch)
  2271. (uri (string-append "http://enet.bespin.org/download/"
  2272. "enet-" version ".tar.gz"))
  2273. (sha256
  2274. (base32 "1p6f9mby86af6cs7pv6h48032ip9g32c05cb7d9mimam8lchz3x3"))))
  2275. (build-system gnu-build-system)
  2276. (native-inputs
  2277. (list pkg-config))
  2278. (synopsis "Network communication layer on top of UDP")
  2279. (description
  2280. "ENet's purpose is to provide a relatively thin, simple and robust network
  2281. communication layer on top of UDP. The primary feature it provides is optional
  2282. reliable, in-order delivery of packets. ENet omits certain higher level
  2283. networking features such as authentication, server discovery, encryption, or
  2284. other similar tasks that are particularly application specific so that the
  2285. library remains flexible, portable, and easily embeddable.")
  2286. (home-page "http://enet.bespin.org")
  2287. (license license:expat)))
  2288. (define-public sslh
  2289. (package
  2290. (name "sslh")
  2291. (version "1.21c")
  2292. (source
  2293. (origin
  2294. (method git-fetch)
  2295. (uri (git-reference
  2296. (url "https://github.com/yrutschle/sslh")
  2297. (commit (string-append "v" version))))
  2298. (file-name (git-file-name name version))
  2299. (sha256
  2300. (base32 "19h32dn0076p3s7dn35qi5yp2xvnxw9sqphppmn72vyb8caxvw1z"))))
  2301. (build-system gnu-build-system)
  2302. (native-inputs
  2303. (list ;; Test dependencies.
  2304. lcov
  2305. perl
  2306. perl-conf-libconfig
  2307. perl-io-socket-inet6
  2308. perl-socket6
  2309. psmisc)) ; for ‘killall’
  2310. (inputs
  2311. (list libcap libconfig pcre tcp-wrappers))
  2312. (arguments
  2313. `(#:phases
  2314. (modify-phases %standard-phases
  2315. (delete 'configure) ; no configure script
  2316. (add-before 'check 'fix-tests
  2317. (lambda _
  2318. (substitute* "./t"
  2319. (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
  2320. ;; The Guix build environment lacks ‘ip6-localhost’.
  2321. (("ip6-localhost") "localhost"))
  2322. #t))
  2323. ;; Many of these files are mentioned in the man page. Install them.
  2324. (add-after 'install 'install-documentation
  2325. (lambda* (#:key outputs #:allow-other-keys)
  2326. (let* ((out (assoc-ref outputs "out"))
  2327. (doc (string-append out "/share/doc/sslh")))
  2328. (install-file "README.md" doc)
  2329. (for-each
  2330. (lambda (file)
  2331. (install-file file (string-append doc "/examples")))
  2332. (append (find-files "." "\\.cfg")
  2333. (find-files "scripts"))))
  2334. #t)))
  2335. #:make-flags (list ,(string-append "CC=" (cc-for-target))
  2336. "USELIBCAP=1"
  2337. "USELIBWRAP=1"
  2338. (string-append "PREFIX=" (assoc-ref %outputs "out")))
  2339. #:test-target "test"))
  2340. (home-page "https://www.rutschle.net/tech/sslh/README.html")
  2341. (synopsis "Applicative network protocol demultiplexer")
  2342. (description
  2343. "sslh is a network protocol demultiplexer. It acts like a switchboard,
  2344. accepting connections from clients on one port and forwarding them to different
  2345. servers based on the contents of the first received data packet. Detection of
  2346. common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
  2347. implemented, but any other protocol that matches a regular expression can be
  2348. added. sslh's name comes from its original application of serving both SSH and
  2349. HTTPS on port 443, allowing SSH connections from inside corporate firewalls
  2350. that block port 22.")
  2351. (license (list license:bsd-2 ; tls.[ch]
  2352. license:gpl2+)))) ; everything else
  2353. (define-public iperf
  2354. (package
  2355. (name "iperf")
  2356. (version "3.11")
  2357. (source
  2358. (origin
  2359. (method git-fetch)
  2360. (uri (git-reference
  2361. (url "https://github.com/esnet/iperf")
  2362. (commit version)))
  2363. (file-name (git-file-name name version))
  2364. (sha256
  2365. (base32 "064sb8f9jxi5ii43swd73c0mm50lvk51v7awhgbj6p129c1a4nn5"))))
  2366. (build-system gnu-build-system)
  2367. (arguments
  2368. `(#:configure-flags
  2369. (list "--disable-static")))
  2370. (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
  2371. (description
  2372. "iPerf is a tool to measure achievable bandwidth on IP networks. It
  2373. supports tuning of various parameters related to timing, buffers and
  2374. protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
  2375. the bandwidth, loss, and other parameters.")
  2376. (home-page "https://software.es.net/iperf/")
  2377. (license (list license:bsd-3 ; Main distribution.
  2378. license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
  2379. license:expat ; src/{cjson,net}.[ch]
  2380. license:public-domain)))) ; src/portable_endian.h
  2381. (define-public nethogs
  2382. (package
  2383. (name "nethogs")
  2384. (version "0.8.6")
  2385. (source
  2386. (origin
  2387. (method git-fetch)
  2388. (uri (git-reference
  2389. (url "https://github.com/raboof/nethogs")
  2390. (commit (string-append "v" version))))
  2391. (hash
  2392. (content-hash
  2393. (base32 "0sn1sdp86akwlm4r1vmkxjjl50c0xaisk91bbz57z7kcsaphxna9")
  2394. sha256))
  2395. (file-name (git-file-name name version))))
  2396. (build-system gnu-build-system)
  2397. (inputs
  2398. (list libpcap ncurses))
  2399. (arguments
  2400. `(#:make-flags `(,,(string-append "CC=" (cc-for-target))
  2401. ,(string-append "PREFIX=" %output)
  2402. ,(string-append "VERSION=" ,version))
  2403. #:phases
  2404. (modify-phases %standard-phases
  2405. (delete 'configure)))) ; no ./configure script.
  2406. (home-page "https://github.com/raboof/nethogs")
  2407. (synopsis "Per-process bandwidth monitor")
  2408. (description "NetHogs is a small 'net top' tool for Linux. Instead of
  2409. breaking the traffic down per protocol or per subnet, like most tools do, it
  2410. groups bandwidth by process.
  2411. NetHogs does not rely on a special kernel module to be loaded. If there's
  2412. suddenly a lot of network traffic, you can fire up NetHogs and immediately see
  2413. which PID is causing this. This makes it easy to identify programs that have
  2414. gone wild and are suddenly taking up your bandwidth.")
  2415. (license license:gpl2+)))
  2416. (define-public nzbget
  2417. (package
  2418. (name "nzbget")
  2419. (version "21.1")
  2420. (source
  2421. (origin
  2422. (method url-fetch)
  2423. (uri (string-append "https://github.com/nzbget/nzbget/releases"
  2424. "/download/v" version
  2425. "/nzbget-" version "-src.tar.gz"))
  2426. (sha256
  2427. (base32 "09900x1k0yf4yi2cc0k093advvadyhrkm8rnd8nszhhdp2zc33sf"))))
  2428. (arguments
  2429. `(#:configure-flags
  2430. (list
  2431. (string-append "--with-libcurses-includes="
  2432. (assoc-ref %build-inputs "ncurses") "/include")
  2433. (string-append "--with-libcurses-libraries="
  2434. (assoc-ref %build-inputs "ncurses") "/lib")
  2435. (string-append "--with-tlslib=GnuTLS"))))
  2436. (build-system gnu-build-system)
  2437. (inputs (list gnutls libxml2 ncurses zlib))
  2438. (native-inputs (list pkg-config))
  2439. (home-page "https://github.com/nzbget/nzbget")
  2440. (synopsis "Usenet binary file downloader")
  2441. (description
  2442. "NZBGet is a binary newsgrabber, which downloads files from Usenet based
  2443. on information given in @code{nzb} files. NZBGet can be used in standalone
  2444. and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
  2445. files as command-line parameters and it downloads them and exits. NZBGet also
  2446. contains a Web interface. Its server can be controlled through remote
  2447. procedure calls (RPCs).")
  2448. (license license:gpl2+)))
  2449. (define-public openvswitch
  2450. (package
  2451. (name "openvswitch")
  2452. (version "2.16.1")
  2453. (source (origin
  2454. (method url-fetch)
  2455. (uri (string-append
  2456. "https://www.openvswitch.org/releases/openvswitch-"
  2457. version ".tar.gz"))
  2458. (sha256
  2459. (base32
  2460. "1x0k0pw6jykrfgb8rq56bp2ghxd433d55pmr8mxy9gbzw1nc1vbi"))))
  2461. (build-system gnu-build-system)
  2462. (arguments
  2463. '(#:configure-flags
  2464. '("--enable-shared"
  2465. "--disable-static" ; XXX still installs libopenvswitchavx512.a
  2466. "--localstatedir=/var"
  2467. "--with-dbdir=/var/lib/openvswitch")
  2468. #:phases
  2469. (modify-phases %standard-phases
  2470. (add-after 'unpack 'use-absolute-/bin/sh
  2471. (lambda* (#:key inputs #:allow-other-keys)
  2472. (let* ((bash (assoc-ref inputs "bash-minimal")))
  2473. (substitute* "ovsdb/ovsdb-server.c"
  2474. (("/bin/sh") (string-append bash "/bin/sh"))))))
  2475. (add-before 'check 'adjust-tests
  2476. (lambda* (#:key inputs #:allow-other-keys)
  2477. (let* ((bash (assoc-ref inputs "bash-minimal"))
  2478. (/bin/sh (string-append bash "/bin/sh")))
  2479. (with-fluids ((%default-port-encoding "ISO-8859-1"))
  2480. (substitute* (find-files "tests" ".*(run|testsuite)$")
  2481. (("#! /bin/sh")
  2482. (string-append "#! " /bin/sh))
  2483. ;; The tests use 'kill -0' to check whether a test has
  2484. ;; completed, but it does not work in the build container
  2485. ;; because zombies are not reaped automatically (PID 1 is
  2486. ;; the builder script). Change to something that handles
  2487. ;; undead processes.
  2488. (("kill -0")
  2489. "kill-0")))
  2490. (mkdir "/tmp/bin")
  2491. (call-with-output-file "/tmp/bin/kill-0"
  2492. (lambda (port)
  2493. (format port "#!~a
  2494. ps --no-header -p $1 -o state= | grep -qv '^Z$'"
  2495. /bin/sh)))
  2496. (chmod "/tmp/bin/kill-0" #o755)
  2497. (setenv "PATH"
  2498. (string-append "/tmp/bin:" (getenv "PATH"))))))
  2499. (replace 'install
  2500. (lambda _
  2501. (invoke "make"
  2502. ;; Don't try to create directories under /var.
  2503. "RUNDIR=/tmp"
  2504. "PKIDIR=/tmp"
  2505. "LOGDIR=/tmp"
  2506. "DBDIR=/tmp"
  2507. "install"))))))
  2508. (native-inputs
  2509. `(("perl" ,perl)
  2510. ("pkg-config" ,pkg-config)
  2511. ("python" ,python-wrapper)
  2512. ;; for testing
  2513. ("bash" ,bash) ;for 'compgen'
  2514. ("procps" ,procps)
  2515. ("util-linux" ,util-linux)))
  2516. (inputs
  2517. (list bash-minimal libcap-ng openssl))
  2518. (synopsis "Virtual network switch")
  2519. (home-page "https://www.openvswitch.org/")
  2520. (description
  2521. "Open vSwitch is a multilayer virtual switch. It is designed to enable
  2522. massive network automation through programmatic extension, while still
  2523. supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
  2524. IPFIX, RSPAN, CLI, LACP, 802.1ag).")
  2525. (license ; see debian/copyright for detail
  2526. (list license:lgpl2.1 ; xenserver and utilities/bugtool
  2527. license:gpl2 ; datapath
  2528. license:bsd-2 license:bsd-3
  2529. license:asl2.0)))) ; all other
  2530. (define-public python-ipy
  2531. (package
  2532. (name "python-ipy")
  2533. (version "1.00")
  2534. (source (origin
  2535. (method url-fetch)
  2536. (uri (pypi-uri "IPy" version))
  2537. (sha256
  2538. (base32
  2539. "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
  2540. (build-system python-build-system)
  2541. (home-page "https://github.com/autocracy/python-ipy/")
  2542. (synopsis "Python class and tools for handling IP addresses and networks")
  2543. (description "The @code{IP} class allows a comfortable parsing and
  2544. handling for most notations in use for IPv4 and IPv6 addresses and
  2545. networks.")
  2546. (license license:bsd-3)))
  2547. (define-public python2-ipy
  2548. (package-with-python2 python-ipy))
  2549. (define-public speedtest-cli
  2550. (package
  2551. (name "speedtest-cli")
  2552. (version "2.1.3")
  2553. (source
  2554. (origin
  2555. (method git-fetch)
  2556. (uri (git-reference
  2557. (url "https://github.com/sivel/speedtest-cli")
  2558. (commit (string-append "v" version))))
  2559. (file-name (git-file-name name version))
  2560. (sha256
  2561. (base32 "10fazl4kwf41mk7pnwpfms16n0ii0kg9pf8r3mz9xwnl9y04mv9x"))))
  2562. (build-system python-build-system)
  2563. (home-page "https://github.com/sivel/speedtest-cli")
  2564. (synopsis "Internet bandwidth tester")
  2565. (description
  2566. "Command line interface for testing internet bandwidth using
  2567. speedtest.net.")
  2568. (license license:asl2.0)))
  2569. (define-public tftp-hpa
  2570. (package
  2571. (name "tftp-hpa")
  2572. (version "5.2")
  2573. (source (origin
  2574. (method url-fetch)
  2575. (uri (string-append "mirror://kernel.org/software/"
  2576. "network/tftp/tftp-hpa/tftp-hpa-" version
  2577. ".tar.xz"))
  2578. (sha256
  2579. (base32
  2580. "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
  2581. (build-system gnu-build-system)
  2582. (arguments
  2583. (list #:tests? #f ; no test target
  2584. #:configure-flags
  2585. #~(list "CFLAGS=-fcommon"))) ; XXX fix 5.2 build with GCC 10
  2586. (synopsis "HPA's tftp client")
  2587. (description
  2588. "This is a tftp client derived from OpenBSD tftp with some extra options
  2589. added and bugs fixed. The source includes readline support but it is not
  2590. enabled due to license conflicts between the BSD advertising clause and the GPL.")
  2591. (home-page "https://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
  2592. ;; Some source files are distributed under a 3-clause BSD license, and
  2593. ;; others under a 4-clause BSD license. Refer to the files in the source
  2594. ;; distribution for clarification.
  2595. (license (list license:bsd-3 license:bsd-4))))
  2596. (define-public spiped
  2597. (package
  2598. (name "spiped")
  2599. (version "1.6.1")
  2600. (source (origin
  2601. (method url-fetch)
  2602. (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
  2603. version ".tgz"))
  2604. (sha256
  2605. (base32
  2606. "04rpnc53whfky7pp2m9h35gwzwn6788pnl6c1qd576mpknbqjw4d"))))
  2607. (build-system gnu-build-system)
  2608. (arguments
  2609. `(#:test-target "test"
  2610. #:make-flags (let* ((out (assoc-ref %outputs "out"))
  2611. (bindir (string-append out "/bin"))
  2612. (man1dir (string-append out "/share/man/man1")))
  2613. (list ,(string-append "CC=" (cc-for-target)) ; It tries to invoke `c99`.
  2614. (string-append "BINDIR=" bindir)
  2615. (string-append "MAN1DIR=" man1dir)))
  2616. #:phases
  2617. (modify-phases %standard-phases
  2618. (add-after 'unpack 'patch-command-invocations
  2619. (lambda _
  2620. (substitute* '("Makefile"
  2621. "libcperciva/cpusupport/Build/cpusupport.sh"
  2622. "libcperciva/POSIX/posix-cflags.sh"
  2623. "libcperciva/POSIX/posix-l.sh")
  2624. (("command -p") ""))
  2625. #t))
  2626. (delete 'configure) ; No ./configure script.
  2627. (add-after 'install 'install-more-docs
  2628. (lambda* (#:key outputs #:allow-other-keys)
  2629. (let* ((out (assoc-ref %outputs "out"))
  2630. (misc (string-append out "/share/doc/spiped")))
  2631. (install-file "DESIGN.md" misc)
  2632. #t))))))
  2633. (native-inputs
  2634. (list procps)) ; `ps` is used by the test suite.
  2635. (inputs
  2636. (list openssl))
  2637. (home-page "https://www.tarsnap.com/spiped.html")
  2638. (synopsis "Create secure pipes between sockets")
  2639. (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
  2640. symmetrically encrypted and authenticated pipes between socket addresses, so
  2641. that one may connect to one address (e.g., a UNIX socket on localhost) and
  2642. transparently have a connection established to another address (e.g., a UNIX
  2643. socket on a different system). This is similar to 'ssh -L' functionality, but
  2644. does not use SSH and requires a pre-shared symmetric key.")
  2645. (license license:bsd-2)))
  2646. (define-public quagga
  2647. (package
  2648. (name "quagga")
  2649. (version "1.2.4")
  2650. (source (origin
  2651. (method url-fetch)
  2652. ;; Use archived sources; see <http://issues.guix.gnu.org/47123>.
  2653. (uri (string-append "https://fossies.org/linux/misc/"
  2654. "quagga-" version ".tar.gz"))
  2655. (sha256
  2656. (base32
  2657. "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
  2658. (patches
  2659. (search-patches "quagga-reproducible-build.patch"))))
  2660. (build-system gnu-build-system)
  2661. (native-inputs (list pkg-config perl dejagnu))
  2662. (inputs (list readline c-ares))
  2663. (synopsis "Routing Software Suite")
  2664. (description "Quagga is a routing software suite, providing implementations
  2665. of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
  2666. The Quagga architecture consists of a core daemon, @command{zebra}, which
  2667. acts as an abstraction layer to the underlying Unix kernel and presents the
  2668. Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
  2669. clients which typically implement a routing protocol and communicate routing
  2670. updates to the zebra daemon.")
  2671. (home-page "https://www.nongnu.org/quagga/")
  2672. (license license:gpl2+)))
  2673. (define-public thc-ipv6
  2674. (let ((revision "0")
  2675. (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
  2676. (package
  2677. (name "thc-ipv6")
  2678. (version (git-version "3.4" revision commit))
  2679. (source (origin
  2680. (method git-fetch)
  2681. (uri (git-reference
  2682. (url "https://github.com/vanhauser-thc/thc-ipv6")
  2683. (commit commit)))
  2684. (file-name (git-file-name name version))
  2685. (sha256
  2686. (base32
  2687. "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
  2688. (build-system gnu-build-system)
  2689. (arguments
  2690. `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
  2691. #:tests? #f ; No test suite.
  2692. #:phases
  2693. (modify-phases %standard-phases
  2694. (delete 'configure) ; No ./configure script.
  2695. (add-before 'build 'patch-paths
  2696. (lambda _
  2697. (substitute* "Makefile"
  2698. (("/bin/echo") "echo"))
  2699. #t))
  2700. (add-after 'install 'install-more-docs
  2701. (lambda* (#:key outputs #:allow-other-keys)
  2702. (let* ((out (assoc-ref outputs "out"))
  2703. (doc (string-append out "/share/thc-ipv6/doc")))
  2704. (install-file "README" doc)
  2705. (install-file "HOWTO-INJECT" doc)
  2706. #t))))))
  2707. ;; TODO Add libnetfilter-queue once packaged.
  2708. (inputs
  2709. (list libpcap openssl perl))
  2710. (home-page "https://github.com/vanhauser-thc/thc-ipv6")
  2711. (synopsis "IPv6 security research toolkit")
  2712. (description "The THC IPv6 Toolkit provides command-line tools and a library
  2713. for researching IPv6 implementations and deployments. It requires Linux 2.6 or
  2714. newer and only works on Ethernet network interfaces.")
  2715. ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
  2716. ;; the source distribution for more information.
  2717. (license license:agpl3))))
  2718. (define-public bmon
  2719. (package
  2720. (name "bmon")
  2721. (version "4.0")
  2722. (source
  2723. (origin
  2724. (method url-fetch)
  2725. (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
  2726. version "/bmon-" version ".tar.gz"))
  2727. (sha256
  2728. (base32
  2729. "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
  2730. (build-system gnu-build-system)
  2731. (inputs
  2732. (list libconfuse libnl ncurses))
  2733. (native-inputs
  2734. (list pkg-config))
  2735. (synopsis "Bandwidth monitor")
  2736. (description "bmon is a monitoring and debugging tool to capture
  2737. networking-related statistics and prepare them visually in a human-friendly
  2738. way. It features various output methods including an interactive curses user
  2739. interface and a programmable text output for scripting.")
  2740. (home-page "https://github.com/tgraf/bmon")
  2741. ;; README.md mentions both the 2-clause BSD and expat licenses, but all
  2742. ;; the source files only have expat license headers. Upstream has been
  2743. ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
  2744. ;; Update the license field when upstream responds.
  2745. (license (list license:bsd-2
  2746. license:expat))))
  2747. (define-public libnet
  2748. (package
  2749. (name "libnet")
  2750. (version "1.2")
  2751. (source
  2752. (origin
  2753. (method url-fetch)
  2754. (uri (string-append "https://github.com/libnet/libnet/releases/download"
  2755. "/v" version "/libnet-" version ".tar.gz"))
  2756. (sha256
  2757. (base32
  2758. "19ys9vxk6fg70yzzdxsphfr0rwzgxxhr9b3ykhpg7rfray0qd96a"))))
  2759. (build-system gnu-build-system)
  2760. (arguments
  2761. `(#:phases
  2762. (modify-phases %standard-phases
  2763. (add-before 'build 'build-doc
  2764. (lambda* (#:key make-flags #:allow-other-keys)
  2765. (apply invoke "make" "-C" "doc" "doc"
  2766. make-flags))))))
  2767. (native-inputs
  2768. (list ;; To build the documentation, Doxygen and Perl is required.
  2769. doxygen perl))
  2770. (home-page "https://github.com/libnet/libnet")
  2771. (synopsis "Framework for low-level network packet construction")
  2772. (description
  2773. "Libnet provides a fairly portable framework for network packet
  2774. construction and injection. It features portable packet creation interfaces
  2775. at the IP layer and link layer, as well as a host of supplementary
  2776. functionality. Using libnet, quick and simple packet assembly applications
  2777. can be whipped up with little effort.")
  2778. (license license:bsd-2)))
  2779. (define-public mtr
  2780. (package
  2781. (name "mtr")
  2782. (version "0.95")
  2783. (source
  2784. (origin
  2785. (method url-fetch)
  2786. (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
  2787. "mtr-" version ".tar.gz"))
  2788. (sha256
  2789. (base32 "0haanralbvd12pvkyihgkmx9ld74dnzm1s7mzparfandl416ibff"))))
  2790. (build-system gnu-build-system)
  2791. (inputs
  2792. (list libcap ncurses))
  2793. (arguments
  2794. `(#:tests? #f)) ; tests require network access
  2795. (home-page "https://www.bitwizard.nl/mtr/")
  2796. (synopsis "Network diagnostic tool")
  2797. (description
  2798. "@acronym{mtr, My TraceRoute} combines the functionality of the
  2799. @command{traceroute} and @command{ping} programs in a single network diagnostic
  2800. tool. @command{mtr} can use several network protocols to detect intermediate
  2801. routers (or @dfn{hops}) between the local host and a user-specified destination.
  2802. It then continually measures the response time and packet loss at each hop, and
  2803. displays the results in real time.")
  2804. (license license:gpl2+)))
  2805. (define-public amule
  2806. (package
  2807. (name "amule")
  2808. (version "2.3.3")
  2809. (source (origin
  2810. (method git-fetch)
  2811. (uri (git-reference
  2812. (url "https://github.com/amule-project/amule")
  2813. (commit version)))
  2814. (file-name (git-file-name name version))
  2815. (sha256
  2816. (base32
  2817. "1nm4vxgmisn1b6l3drmz0q04x067j2i8lw5rnf0acaapwlp8qwvi"))))
  2818. (build-system gnu-build-system)
  2819. (arguments
  2820. `(#:phases
  2821. (modify-phases %standard-phases
  2822. (delete 'bootstrap) ; bootstrap phase runs too early.
  2823. (add-after 'patch-source-shebangs 'autogen
  2824. (lambda _
  2825. (invoke "sh" "autogen.sh")
  2826. #t)))
  2827. #:configure-flags
  2828. '("--disable-rpath"
  2829. "--enable-wxcas"
  2830. "--enable-cas"
  2831. "--enable-alc"
  2832. "--enable-alcc"
  2833. "--enable-xas"
  2834. "--enable-amulecmd"
  2835. "--enable-geoip"
  2836. "--enable-ccache"
  2837. "--enable-nls"
  2838. "--enable-optimize"
  2839. "--enable-amule-gui"
  2840. "--enable-amule-daemon"
  2841. "--enable-webserver"
  2842. "--with-denoise-level=0")))
  2843. (native-inputs
  2844. (list autoconf automake gettext-minimal perl))
  2845. (inputs
  2846. (list zlib crypto++ libpng wxwidgets-gtk2))
  2847. (home-page "https://amule.org/")
  2848. (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
  2849. (description
  2850. "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
  2851. file sharing networks. It includes a graphical user interface (GUI), a daemon
  2852. allowing you to run a client with no graphical interface, and a Web GUI for
  2853. remote access. The @command{amulecmd} command allows you to control aMule
  2854. remotely.")
  2855. (license license:gpl2+)))
  2856. (define-public zyre
  2857. (package
  2858. (name "zyre")
  2859. (version "2.0.1")
  2860. (source (origin
  2861. (method url-fetch)
  2862. (uri
  2863. (string-append "https://github.com/zeromq/zyre/releases/download/v"
  2864. version "/" name "-" version ".tar.gz"))
  2865. (sha256
  2866. (base32
  2867. "13596507ma1474cjqzxym5jlvcshvw7sjhw80rdz788gyz6kz90b"))))
  2868. (build-system gnu-build-system)
  2869. (inputs (list zeromq czmq libsodium))
  2870. (synopsis "Framework for proximity-based peer-to-peer applications")
  2871. (description "Zyre provides reliable group messaging over local area
  2872. networks using zeromq. It has these key characteristics:
  2873. @itemize
  2874. @item Zyre needs no administration or configuration.
  2875. @item Peers may join and leave the network at any time.
  2876. @item Peers talk to each other without any central brokers or servers.
  2877. @item Peers can talk directly to each other.
  2878. @item Peers can join groups, and then talk to groups.
  2879. @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
  2880. @item Zyre is fast and has low latency, requiring no consensus protocols.
  2881. @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
  2882. @end itemize")
  2883. (home-page "https://github.com/zeromq/zyre")
  2884. (license license:mpl2.0)))
  2885. (define-public libsocketcan
  2886. (package
  2887. (name "libsocketcan")
  2888. (version "0.0.11")
  2889. (source (origin
  2890. (method git-fetch)
  2891. (uri (git-reference
  2892. (url "https://git.pengutronix.de/cgit/tools/libsocketcan")
  2893. (commit (string-append "v" version))))
  2894. (file-name (git-file-name name version))
  2895. (sha256
  2896. (base32
  2897. "17z2y2r9xkixhr9bxr50m77fh710afl30s7jdhbxrvf56vmal2jr"))))
  2898. (build-system gnu-build-system)
  2899. (native-inputs
  2900. (list autoconf automake libtool))
  2901. (home-page "https://git.pengutronix.de/cgit/tools/libsocketcan")
  2902. (synopsis "SocketCAN user-space library")
  2903. (description "This library allows controlling basic functions in SocketCAN
  2904. from user-space. It requires a kernel built with SocketCAN support.")
  2905. (license license:lgpl2.1+)))
  2906. (define-public can-utils
  2907. (package
  2908. (name "can-utils")
  2909. (version "2020.02.04")
  2910. (source (origin
  2911. (method git-fetch)
  2912. (uri (git-reference
  2913. (url "https://github.com/linux-can/can-utils")
  2914. (commit (string-append "v" version))))
  2915. (file-name (git-file-name name version))
  2916. (sha256
  2917. (base32
  2918. "1a3j1mmnb7pvgc8r7zzp6sdp7903in2hna6bmpraxln7cwlzn4l6"))))
  2919. (build-system gnu-build-system)
  2920. (arguments
  2921. `(#:tests? #f ; No tests exist.
  2922. #:make-flags (list ,(string-append "CC=" (cc-for-target))
  2923. (string-append "PREFIX="
  2924. (assoc-ref %outputs "out")))
  2925. #:phases
  2926. (modify-phases %standard-phases
  2927. (delete 'bootstrap)
  2928. (delete 'configure))))
  2929. (home-page "https://github.com/linux-can/can-utils")
  2930. (synopsis "CAN utilities")
  2931. (description "This package provides CAN utilities in the following areas:
  2932. @itemize
  2933. @item Basic tools to display, record, generate and replay CAN traffic
  2934. @item CAN access via IP sockets
  2935. @item CAN in-kernel gateway configuration
  2936. @item CAN bus measurement and testing
  2937. @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
  2938. eight bytes) tools
  2939. @item Log file converters
  2940. @item Serial Line Discipline configuration for slcan driver
  2941. @end itemize")
  2942. ;; Either BSD-3 or GPL-2 can be used.
  2943. (license (list license:bsd-3 license:gpl2))))
  2944. (define-public asio
  2945. (package
  2946. (name "asio")
  2947. (version "1.20.0")
  2948. (source
  2949. (origin
  2950. (method url-fetch)
  2951. (uri (string-append "mirror://sourceforge/asio/asio/"
  2952. version " (Stable)/asio-" version ".tar.bz2"))
  2953. (sha256
  2954. (base32 "0335kyxdnwnp96sh9p3jq1s87qnfmp5l7hzlcdxbbwfzrb9p8hr0"))))
  2955. (build-system gnu-build-system)
  2956. (inputs
  2957. (list boost openssl))
  2958. (arguments
  2959. `(#:configure-flags
  2960. (list
  2961. (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
  2962. (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
  2963. (home-page "https://think-async.com/Asio")
  2964. (synopsis "C++ library for ASynchronous network I/O")
  2965. (description "Asio is a cross-platform C++ library for network and
  2966. low-level I/O programming that provides developers with a consistent
  2967. asynchronous model using a modern C++ approach.")
  2968. (license license:boost1.0)))
  2969. (define-public shadowsocks
  2970. (package
  2971. (name "shadowsocks")
  2972. (version "2.9.1")
  2973. (source
  2974. (origin
  2975. (method git-fetch)
  2976. (uri (git-reference
  2977. (url "https://github.com/shadowsocks/shadowsocks")
  2978. (commit version)))
  2979. (sha256
  2980. (base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25"))
  2981. (file-name (git-file-name name version))))
  2982. (inputs
  2983. (list openssl))
  2984. (arguments
  2985. '(#:phases
  2986. (modify-phases %standard-phases
  2987. (add-after 'unpack 'patch-crypto-paths
  2988. (lambda* (#:key inputs #:allow-other-keys)
  2989. (substitute* "shadowsocks/shell.py"
  2990. (("config\\.get\\('libopenssl', None\\)")
  2991. (format #f "config.get('libopenssl', ~s)"
  2992. (string-append
  2993. (assoc-ref inputs "openssl")
  2994. "/lib/libssl.so")))))))))
  2995. (build-system python-build-system)
  2996. (home-page "https://github.com/shadowsocks/shadowsocks")
  2997. (synopsis "Fast tunnel proxy that helps you bypass firewalls")
  2998. (description
  2999. "This package is a fast tunnel proxy that helps you bypass firewalls.
  3000. Features:
  3001. @itemize
  3002. @item TCP & UDP support
  3003. @item User management API
  3004. @item TCP Fast Open
  3005. @item Workers and graceful restart
  3006. @item Destination IP blacklist
  3007. @end itemize")
  3008. (license license:asl2.0)))
  3009. (define-public net-snmp
  3010. (package
  3011. (name "net-snmp")
  3012. (version "5.9.1")
  3013. (source (origin
  3014. (method url-fetch)
  3015. (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
  3016. version "/net-snmp-" version ".tar.gz"))
  3017. (sha256
  3018. (base32
  3019. "0gwcyi9qk707jgfsgmdr9w2w3r892fnqaam9v7zxpkg69njd8zzb"))
  3020. (modules '((guix build utils)))
  3021. (snippet
  3022. '(begin
  3023. ;; Drop bundled libraries.
  3024. (delete-file-recursively "snmplib/openssl")
  3025. #t))))
  3026. (build-system gnu-build-system)
  3027. (arguments
  3028. `(#:test-target "test"
  3029. ;; XXX: With parallel build enabled, Perl modules may not get linked with
  3030. ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
  3031. #:parallel-build? #f
  3032. #:configure-flags
  3033. (list (string-append "LDFLAGS=-Wl,-rpath="
  3034. (assoc-ref %outputs "out")
  3035. "/lib")
  3036. "--disable-static"
  3037. "--with-logfile=/var/log/snmpd.log"
  3038. (string-append "--with-openssl="
  3039. (assoc-ref %build-inputs "openssl")))
  3040. #:phases
  3041. (modify-phases %standard-phases
  3042. (add-after 'unpack 'patch-tests
  3043. (lambda* (#:key inputs #:allow-other-keys)
  3044. (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
  3045. (("NETSTAT=\"\"")
  3046. (string-append "NETSTAT=\"" (which "netstat") "\"")))
  3047. (substitute* '("testing/fulltests/default/T065agentextend_simple"
  3048. "testing/fulltests/default/T115agentxperl_simple")
  3049. (("/usr/bin/env") (which "env")))
  3050. (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
  3051. (("/bin/sh") (which "sh")))
  3052. ;; These tests require network access.
  3053. (for-each delete-file
  3054. '("testing/fulltests/default/T070com2sec_simple"
  3055. "testing/fulltests/default/T071com2sec6_simple"))
  3056. #t))
  3057. (add-after 'unpack 'patch-Makefile.PL
  3058. (lambda* (#:key outputs #:allow-other-keys)
  3059. (substitute* "Makefile.in"
  3060. (("Makefile.PL -NET")
  3061. (string-append "Makefile.PL PREFIX="
  3062. (assoc-ref outputs "out")
  3063. " INSTALLDIRS=site" " NO_PERLLOCAL=1"
  3064. " -NET")))
  3065. #t)))))
  3066. (inputs
  3067. (list libnl ncurses ; for the ‘apps’
  3068. openssl perl))
  3069. (native-inputs
  3070. (list pkg-config
  3071. ;; For tests only.
  3072. net-tools coreutils grep))
  3073. (home-page "http://www.net-snmp.org/")
  3074. (synopsis "Simple Network Management Protocol library and tools")
  3075. (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
  3076. widely used protocol for monitoring the health and welfare of network
  3077. equipment (e.g. routers), computer equipment and even devices like UPSs.
  3078. Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
  3079. SNMP v3 using both IPv4 and IPv6.")
  3080. ;; This only affects OpenBSD
  3081. ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
  3082. (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
  3083. (license (list license:bsd-3
  3084. (license:non-copyleft
  3085. "http://www.net-snmp.org/about/license.html"
  3086. "CMU/UCD copyright notice")))))
  3087. (define-public ubridge
  3088. (package
  3089. (name "ubridge")
  3090. (version "0.9.18")
  3091. (source
  3092. (origin
  3093. (method git-fetch)
  3094. (uri (git-reference
  3095. (url "https://github.com/GNS3/ubridge")
  3096. (commit (string-append "v" version))))
  3097. (file-name (git-file-name name version))
  3098. (sha256
  3099. (base32 "0jg66jhhpv4c9340fsdp64hf9h253i8r81fknxa0gq241ripp3jn"))))
  3100. (build-system gnu-build-system)
  3101. (arguments
  3102. `(#:tests? #f ; no tests
  3103. #:make-flags
  3104. (list ,(string-append "CC=" (cc-for-target)))
  3105. #:phases
  3106. (modify-phases %standard-phases
  3107. (delete 'configure) ; no configure script
  3108. (add-before 'install 'set-bindir
  3109. (lambda* (#:key inputs outputs #:allow-other-keys)
  3110. (let ((bin (string-append (assoc-ref outputs "out")
  3111. "/bin")))
  3112. (mkdir-p bin)
  3113. (substitute* "Makefile"
  3114. (("\\$\\(BINDIR\\)") bin)
  3115. (("\tsetcap cap_net.*$") "")))
  3116. #t)))))
  3117. (inputs
  3118. (list libpcap))
  3119. (home-page "https://github.com/GNS3/ubridge/")
  3120. (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
  3121. (description "uBridge is a simple program to create user-land bridges
  3122. between various technologies. Currently, bridging between UDP tunnels,
  3123. Ethernet and TAP interfaces is supported. Packet capture is also supported.")
  3124. (license license:gpl3+)))
  3125. (define-public hcxtools
  3126. (package
  3127. (name "hcxtools")
  3128. (version "5.2.0")
  3129. (source
  3130. (origin
  3131. (method git-fetch)
  3132. (uri (git-reference
  3133. (url "https://github.com/ZerBea/hcxtools")
  3134. (commit version)))
  3135. (sha256
  3136. (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
  3137. (file-name (git-file-name name version))))
  3138. (build-system gnu-build-system)
  3139. (inputs
  3140. (list curl libpcap openssl zlib))
  3141. (arguments
  3142. `(#:make-flags
  3143. (list ,(string-append "CC=" (cc-for-target))
  3144. (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
  3145. #:tests? #f ; no test suite
  3146. #:phases
  3147. (modify-phases %standard-phases
  3148. (delete 'configure))))
  3149. (home-page "https://github.com/ZerBea/hcxtools")
  3150. (synopsis "Capture wlan traffic to hashcat and John the Ripper")
  3151. (description
  3152. "This package contains a small set of tools to capture and convert
  3153. packets from wireless devices for use with hashcat or John the Ripper.")
  3154. (license license:expat)))
  3155. (define-public hcxdumptool
  3156. (package
  3157. (name "hcxdumptool")
  3158. (version "6.0.6")
  3159. (source
  3160. (origin
  3161. (method git-fetch)
  3162. (uri (git-reference
  3163. (url "https://github.com/ZerBea/hcxdumptool")
  3164. (commit version)))
  3165. (sha256
  3166. (base32 "1b4d543y64ib92w9gcmiyjn5hz2vyjqmxk3f3yr1zk04fhw16gmf"))
  3167. (file-name (git-file-name name version))))
  3168. (build-system gnu-build-system)
  3169. (arguments
  3170. `(#:make-flags
  3171. (list ,(string-append "CC=" (cc-for-target))
  3172. (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
  3173. #:tests? #f ; no test suite
  3174. #:phases
  3175. (modify-phases %standard-phases
  3176. (delete 'configure))))
  3177. (inputs
  3178. (list openssl))
  3179. (home-page "https://github.com/ZerBea/hcxdumptool")
  3180. (synopsis "Small tool to capture packets from wlan devices")
  3181. (description
  3182. "Small tool to capture packets from WLAN devices. After capturing,
  3183. upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
  3184. see if the access point or the client is vulnerable to a dictionary attack.
  3185. Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
  3186. hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
  3187. and check if the WLAN key or the master key was transmitted unencrypted.")
  3188. (license license:expat)))
  3189. (define-public dante
  3190. (package
  3191. (name "dante")
  3192. (version "1.4.3")
  3193. (source
  3194. (origin
  3195. (method url-fetch)
  3196. (uri (string-append "https://www.inet.no/dante/files/dante-"
  3197. version ".tar.gz"))
  3198. (sha256
  3199. (base32 "0pbahkj43rx7rmv2x40mf5p3g3x9d6i2sz7pzglarf54w5ghd2j1"))))
  3200. (build-system gnu-build-system)
  3201. (arguments
  3202. ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
  3203. ;; script). When preloading is enabled, 'sockd' failed with:
  3204. ;; … Failed to open library "libc.so": …: invalid ELF header
  3205. '(#:configure-flags '("--disable-preload")))
  3206. (home-page "https://www.inet.no/dante/")
  3207. (synopsis "SOCKS server and client")
  3208. (description "Dante is a SOCKS client and server implementation. It can
  3209. be installed on a machine with access to an external TCP/IP network and will
  3210. allow all other machines, without direct access to that network, to be relayed
  3211. through the machine the Dante server is running on. The external network will
  3212. never see any machines other than the one Dante is running on.")
  3213. (license (license:non-copyleft "file://LICENSE"))))
  3214. (define-public restbed
  3215. (package
  3216. (name "restbed")
  3217. (version "4.8")
  3218. (source
  3219. (origin
  3220. (method git-fetch)
  3221. (uri (git-reference
  3222. (url "https://github.com/Corvusoft/restbed/")
  3223. (commit version)))
  3224. (file-name (git-file-name name version))
  3225. (sha256
  3226. (base32 "15j09x36i6zj6innl0w1mfzlc56qmjwrs82my8dsagqa2ikd08ya"))))
  3227. (build-system cmake-build-system)
  3228. (inputs
  3229. (list asio catch-framework openssl))
  3230. (arguments
  3231. `(#:configure-flags
  3232. '("-DBUILD_SSL=NO")
  3233. #:phases
  3234. (modify-phases %standard-phases
  3235. (add-after 'unpack 'apply-patches-and-fix-paths
  3236. (lambda* (#:key inputs #:allow-other-keys)
  3237. (let ((asio (assoc-ref inputs "asio"))
  3238. (catch (assoc-ref inputs "catch"))
  3239. (openssl (assoc-ref inputs "openssl")))
  3240. (substitute* "cmake/Findasio.cmake"
  3241. (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
  3242. (string-append begin " \"" asio "/include\" )")))
  3243. (substitute* "cmake/Findcatch.cmake"
  3244. (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
  3245. (string-append begin " \"" catch "/include\" )")))
  3246. (substitute* "cmake/Findopenssl.cmake"
  3247. (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
  3248. (string-append begin " \"" openssl "/lib\" )"))
  3249. (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
  3250. (string-append begin " \"" openssl "/lib\" )"))
  3251. (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
  3252. (string-append begin " \"" openssl "/include\" )")))))))))
  3253. (synopsis "Asynchronous RESTful functionality to C++11 applications")
  3254. (description "Restbed is a comprehensive and consistent programming
  3255. model for building applications that require seamless and secure
  3256. communication over HTTP.")
  3257. (home-page "https://github.com/Corvusoft/restbed")
  3258. (license license:agpl3+)))
  3259. (define-public restinio
  3260. (package
  3261. (name "restinio")
  3262. (version "0.6.14")
  3263. (source (origin
  3264. (method git-fetch)
  3265. (uri (git-reference
  3266. (url "https://github.com/Stiffstream/restinio")
  3267. (commit (string-append "v." version))))
  3268. (file-name (git-file-name name version))
  3269. (sha256
  3270. (base32
  3271. "0j44mglsljwkw49583hcsrl5ck2g56n9srnm10kpbsz2dx5apx98"))))
  3272. (build-system cmake-build-system)
  3273. (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
  3274. (list zlib
  3275. catch-framework2
  3276. openssl
  3277. boost
  3278. pcre
  3279. pcre2
  3280. sobjectizer))
  3281. (propagated-inputs
  3282. (list asio fmt http-parser))
  3283. (arguments
  3284. `(#:configure-flags '("-DRESTINIO_INSTALL=on")
  3285. #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
  3286. #:phases
  3287. (modify-phases %standard-phases
  3288. (add-after 'unpack 'change-directory
  3289. (lambda _
  3290. (chdir "dev/restinio"))))))
  3291. (home-page "https://stiffstream.com/en/products/restinio.html")
  3292. (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
  3293. (description "RESTinio is a header-only C++14 library that gives you an embedded
  3294. HTTP/Websocket server. It is based on standalone version of ASIO
  3295. and targeted primarily for asynchronous processing of HTTP-requests.")
  3296. (license license:bsd-3)))
  3297. (define-public opendht
  3298. (package
  3299. (name "opendht")
  3300. (version "2.3.4")
  3301. (source (origin
  3302. (method git-fetch)
  3303. (uri (git-reference
  3304. (url "https://github.com/savoirfairelinux/opendht")
  3305. (commit version)))
  3306. (file-name (git-file-name name version))
  3307. (sha256
  3308. (base32
  3309. "0gp1wdpk50y0pcvlhqfw9vpms8lsrjvv63x4dh40axsvf2ix9lkj"))))
  3310. (outputs '("out" "tools" "debug"))
  3311. (build-system gnu-build-system)
  3312. (arguments
  3313. (list
  3314. #:imported-modules `((guix build python-build-system) ;for site-packages
  3315. ,@%gnu-build-system-modules)
  3316. #:modules '(((guix build python-build-system) #:prefix python:)
  3317. (guix build gnu-build-system)
  3318. (guix build utils))
  3319. #:tests? #f ;tests require networking
  3320. #:configure-flags
  3321. #~(list "--enable-tests"
  3322. "--enable-proxy-server"
  3323. "--enable-push-notifications"
  3324. "--enable-proxy-server-identity"
  3325. "--enable-proxy-client")
  3326. #:phases
  3327. #~(modify-phases %standard-phases
  3328. (add-after 'unpack 'fix-python-installation-prefix
  3329. ;; Specify the installation prefix for the compiled Python module
  3330. ;; that would otherwise attempt to installs itself to Python's own
  3331. ;; site-packages directory.
  3332. (lambda _
  3333. (substitute* "python/Makefile.am"
  3334. (("--root=\\$\\(DESTDIR)/")
  3335. (string-append "--root=/ --single-version-externally-managed "
  3336. "--prefix=" #$output)))))
  3337. (add-after 'unpack 'specify-runpath-for-python-module
  3338. (lambda _
  3339. (substitute* "python/setup.py.in"
  3340. (("extra_link_args=\\[(.*)\\]" _ args)
  3341. (string-append "extra_link_args=[" args
  3342. ", '-Wl,-rpath=" #$output "/lib']")))))
  3343. (add-after 'install 'move-and-wrap-tools
  3344. (lambda* (#:key inputs outputs #:allow-other-keys)
  3345. (let* ((tools (assoc-ref outputs "tools"))
  3346. (dhtcluster (string-append tools "/bin/dhtcluster"))
  3347. (site-packages (python:site-packages inputs outputs)))
  3348. (mkdir tools)
  3349. (rename-file (string-append #$output "/bin")
  3350. (string-append tools "/bin"))
  3351. ;; TODO: Contribute a patch to python/Makefile.am to
  3352. ;; automate this.
  3353. (copy-file "python/tools/dhtcluster.py" dhtcluster)
  3354. (chmod dhtcluster #o555)
  3355. (wrap-program dhtcluster
  3356. `("GUIX_PYTHONPATH" prefix (,site-packages)))))))))
  3357. (inputs (list bash-minimal fmt readline))
  3358. (propagated-inputs
  3359. (list msgpack ;included in several installed headers
  3360. restinio ;included in opendht/http.h
  3361. ;; The following are listed in the 'Requires.private' field of
  3362. ;; opendht.pc:
  3363. argon2
  3364. gnutls
  3365. jsoncpp
  3366. nettle
  3367. openssl)) ;required for the DHT proxy
  3368. (native-inputs
  3369. (list autoconf
  3370. automake
  3371. pkg-config
  3372. python
  3373. python-cython
  3374. libtool
  3375. cppunit))
  3376. (home-page "https://github.com/savoirfairelinux/opendht/")
  3377. (synopsis "Lightweight Distributed Hash Table (DHT) library")
  3378. (description "OpenDHT provides an easy to use distributed in-memory data
  3379. store. Every node in the network can read and write values to the store.
  3380. Values are distributed over the network, with redundancy. It includes the
  3381. following features:
  3382. @itemize
  3383. @item Lightweight and scalable, designed for large networks and small devices;
  3384. @item High resilience to network disruption;
  3385. @item Public key cryptography layer providing optional data signature and
  3386. encryption (using GnuTLS);
  3387. @item IPv4 and IPv6 support;
  3388. @item Clean and powerful C++14 map API;
  3389. @item Bindings for C, Rust & Python 3;
  3390. @item REST API with an optional HTTP client and server with push notification
  3391. support.
  3392. @end itemize
  3393. The following tools are also included:
  3394. @table @command
  3395. @item dhtnode
  3396. A command line tool to run a DHT node and perform operations supported by the
  3397. library (get, put, etc.) with text values.
  3398. @item dhtchat
  3399. A very simple IM client working over the DHT.
  3400. @end table")
  3401. (license license:gpl3+)))
  3402. (define-public frrouting
  3403. (package
  3404. (name "frrouting")
  3405. (version "7.5.1")
  3406. (source (origin
  3407. (method url-fetch)
  3408. (uri (string-append "https://github.com/FRRouting/frr/releases/"
  3409. "download/frr-" version "/frr-" version
  3410. ".tar.xz"))
  3411. (sha256
  3412. (base32
  3413. "1r7gh5h27ii7d1d0z0x48wx7hs8vvympv3gqvy3cwzg05q5vk9xs"))))
  3414. (build-system gnu-build-system)
  3415. (inputs
  3416. (list c-ares json-c libcap libyang readline))
  3417. (native-inputs
  3418. (list perl pkg-config python-wrapper python-pytest))
  3419. (home-page "https://frrouting.org/")
  3420. (synopsis "IP routing protocol suite")
  3421. (description "FRRouting (FRR) is an IP routing protocol suite which includes
  3422. protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP.")
  3423. (license license:gpl2+)))
  3424. (define-public bird
  3425. (package
  3426. (name "bird")
  3427. (version "2.0.8")
  3428. (source (origin
  3429. (method url-fetch)
  3430. (uri (string-append "ftp://bird.network.cz/pub/bird/bird-"
  3431. version ".tar.gz"))
  3432. (sha256
  3433. (base32
  3434. "1xp7f0im1v8pqqx3xqyfkd1nsxk8vnbqgrdrwnwhg8r5xs1xxlhr"))))
  3435. (inputs
  3436. (list libssh readline))
  3437. (native-inputs
  3438. (list bison flex))
  3439. (arguments
  3440. `(#:configure-flags '("--localstatedir=/var" "--enable-ipv6")
  3441. #:phases
  3442. (modify-phases %standard-phases
  3443. (add-before 'configure 'dont-create-sysconfdir
  3444. (lambda* (#:key outputs #:allow-other-keys)
  3445. (substitute* "Makefile.in"
  3446. ((" \\$\\(DESTDIR)/\\$\\(runstatedir)") "")))))))
  3447. (build-system gnu-build-system)
  3448. (home-page "http://bird.network.cz")
  3449. (synopsis "Internet Routing Daemon")
  3450. (description "BIRD is an Internet routing daemon with full support for all
  3451. the major routing protocols. It allows redistribution between protocols with a
  3452. powerful route filtering syntax and an easy-to-use configuration interface.")
  3453. (license license:gpl2+)))
  3454. (define-public iwd
  3455. (package
  3456. (name "iwd")
  3457. (version "1.24")
  3458. (source (origin
  3459. (method git-fetch)
  3460. (uri (git-reference
  3461. (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
  3462. (commit version)))
  3463. (file-name (git-file-name name version))
  3464. (sha256
  3465. (base32
  3466. "1sdi7008j5jhlg2rqpczh1pzb8zay6mc9dpnjjsmdnsmrcr3v7wi"))))
  3467. (build-system gnu-build-system)
  3468. (inputs
  3469. (list dbus ell (package-source ell) readline))
  3470. (native-inputs
  3471. (list autoconf
  3472. automake
  3473. libtool
  3474. pkg-config
  3475. python
  3476. python-docutils
  3477. openssl))
  3478. (arguments
  3479. `(#:configure-flags
  3480. ,#~(list "--disable-systemd-service"
  3481. "--enable-external-ell"
  3482. "--enable-hwsim"
  3483. "--enable-tools"
  3484. "--enable-wired"
  3485. "--localstatedir=/var"
  3486. (string-append "--with-dbus-datadir=" #$output "/share/")
  3487. (string-append "--with-dbus-busdir="
  3488. #$output "/share/dbus-1/system-services"))
  3489. #:phases
  3490. (modify-phases %standard-phases
  3491. (add-after 'unpack 'copy-ell-header-files
  3492. ;; Copy into the source tree two of ell's private header files that
  3493. ;; it shares with iwd, as is required to build with the
  3494. ;; "--enable-external-ell" configure option.
  3495. ;; See the definition of "ell_shared" in iwd's Makefile.am.
  3496. (lambda* (#:key inputs #:allow-other-keys)
  3497. (let ((ell-header-dir (search-input-directory inputs "/ell"))
  3498. (target-dir "ell"))
  3499. (mkdir target-dir)
  3500. (for-each
  3501. (lambda (file-name)
  3502. (copy-file (string-append ell-header-dir "/" file-name)
  3503. (string-append target-dir "/" file-name)))
  3504. '("asn1-private.h" "useful.h")))))
  3505. (add-after 'configure 'patch-Makefile
  3506. (lambda _
  3507. (substitute* "Makefile"
  3508. ;; Don't try to 'mkdir /var'.
  3509. (("\\$\\(MKDIR_P\\) -m 700") "true")))))))
  3510. (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
  3511. (synopsis "Internet Wireless Daemon")
  3512. (description "iwd is a wireless daemon for Linux that aims to replace WPA
  3513. Supplicant. It optimizes resource utilization by not depending on any external
  3514. libraries and instead utilizing features provided by the Linux kernel to the
  3515. maximum extent possible.")
  3516. (license license:lgpl2.1+)))
  3517. (define-public libyang
  3518. (package
  3519. (name "libyang")
  3520. (version "1.0.215")
  3521. (source (origin
  3522. (method git-fetch)
  3523. (uri (git-reference
  3524. (url "https://github.com/CESNET/libyang")
  3525. (commit (string-append "v" version))))
  3526. (file-name (git-file-name name version))
  3527. (sha256
  3528. (base32
  3529. "0mrs2ppmq77z8sbqgm2w0rl9bfgybd6bcxanakfww4chih6cy0dw"))))
  3530. (build-system cmake-build-system)
  3531. (arguments
  3532. `(#:configure-flags
  3533. (list "-DENABLE_BUILD_TESTS=ON" "-DENABLE_LYD_PRIV=ON")))
  3534. (propagated-inputs (list pcre))
  3535. (native-inputs (list cmocka pkg-config))
  3536. (home-page "https://github.com/CESNET/libyang")
  3537. (synopsis "YANG data modelling language library")
  3538. (description "libyang is a YANG data modelling language parser and toolkit
  3539. written (and providing API) in C. Current implementation covers YANG 1.0 (RFC
  3540. 6020) as well as YANG 1.1 (RFC 7950).")
  3541. (license license:bsd-3)))
  3542. (define-public batctl
  3543. (package
  3544. (name "batctl")
  3545. (version "2021.4")
  3546. (source
  3547. (origin
  3548. (method url-fetch)
  3549. (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
  3550. version "/batctl-" version ".tar.gz"))
  3551. (sha256
  3552. (base32 "1ryqz90av2p5pgmmpi1afmycd18zhpwz1i4f7r0s359jis86xndn"))))
  3553. (inputs
  3554. (list libnl))
  3555. (native-inputs
  3556. (list pkg-config))
  3557. (build-system gnu-build-system)
  3558. (arguments
  3559. `(#:tests? #f
  3560. ;; Batctl only has a makefile. Thus we disable tests and
  3561. ;; configuration, passing in a few make-flags.
  3562. #:phases (modify-phases %standard-phases (delete 'configure))
  3563. #:make-flags
  3564. (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
  3565. (string-append "PKG_CONFIG="
  3566. (search-input-file %build-inputs
  3567. "/bin/pkg-config"))
  3568. ,(string-append "CC=" (cc-for-target)))))
  3569. (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
  3570. (synopsis "Management tool for the mesh networking BATMAN protocol")
  3571. (description "This package provides a control tool for the
  3572. B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
  3573. module @code{batman-adv}, for Layer 2.")
  3574. (license license:gpl2+)))
  3575. (define-public pagekite
  3576. (package
  3577. (name "pagekite")
  3578. (version "1.5.2.200725")
  3579. (source
  3580. (origin
  3581. (method git-fetch)
  3582. (uri (git-reference
  3583. (url "https://github.com/pagekite/PyPagekite")
  3584. (commit (string-append "v" version))))
  3585. (file-name (git-file-name name version))
  3586. (sha256
  3587. (base32 "0lig1i42bn9isw848vnml5qhcaa04x1dr2hb075bm0a3439kv3rr"))))
  3588. (build-system python-build-system)
  3589. (arguments
  3590. `(#:phases
  3591. (modify-phases %standard-phases
  3592. (add-after 'install 'install-man-page
  3593. (lambda* (#:key inputs outputs #:allow-other-keys)
  3594. (let* ((out (assoc-ref outputs "out"))
  3595. (man (string-append out "/share/man")))
  3596. (invoke "make" "doc/pagekite.1")
  3597. (install-file "doc/pagekite.1" (string-append man "/man1"))))))))
  3598. (inputs
  3599. (list python-six python-socksipychain))
  3600. (home-page "https://pagekite.net/")
  3601. (synopsis "Make localhost servers publicly visible")
  3602. (description
  3603. "PageKite implements a tunneled reverse proxy which makes it easy to make
  3604. a service (such as an HTTP or SSH server) on localhost visible to the wider
  3605. Internet, even behind NAT or restrictive firewalls. A managed front-end relay
  3606. service is available at @url{https://pagekite.net/}, or you can run your own.")
  3607. (license license:agpl3+)))
  3608. (define-public ipcalc
  3609. (package
  3610. (name "ipcalc")
  3611. (version "0.41")
  3612. (source (origin
  3613. (method url-fetch)
  3614. (uri (string-append "http://jodies.de/ipcalc-archive/"
  3615. name "-" version ".tar.gz"))
  3616. (sha256
  3617. (base32
  3618. "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
  3619. (inputs `(("perl" ,perl)
  3620. ("tar" ,tar)
  3621. ("gzip" ,gzip)
  3622. ("tarball" ,source)))
  3623. (build-system trivial-build-system) ;no Makefile.PL
  3624. (arguments
  3625. `(#:modules ((guix build utils))
  3626. #:builder
  3627. (begin
  3628. (use-modules (guix build utils))
  3629. (use-modules (srfi srfi-1))
  3630. (let* ((source (assoc-ref %build-inputs "source"))
  3631. (perl (string-append (assoc-ref %build-inputs "perl")
  3632. "/bin"))
  3633. (tar (assoc-ref %build-inputs "tar"))
  3634. (gz (assoc-ref %build-inputs "gzip"))
  3635. (out (assoc-ref %outputs "out"))
  3636. (bin (string-append out "/bin"))
  3637. (doc (string-append out "/share/doc/ipcalc")))
  3638. (setenv "PATH" (string-append gz "/bin"))
  3639. (invoke (string-append tar "/bin/tar") "xvf" source)
  3640. (chdir (string-append ,name "-" ,version))
  3641. (install-file "ipcalc" bin)
  3642. (patch-shebang (string-append bin "/ipcalc") (list perl))
  3643. #t))))
  3644. (synopsis "Simple IP network calculator")
  3645. (description "ipcalc takes an IP address and netmask and calculates the
  3646. resulting broadcast, network, Cisco wildcard mask, and host range. By giving
  3647. a second netmask, you can design subnets and supernets. It is also intended
  3648. to be a teaching tool and presents the subnetting results as
  3649. easy-to-understand binary values.")
  3650. (home-page "http://jodies.de/ipcalc")
  3651. (license license:gpl2+)))
  3652. (define-public tunctl
  3653. (package
  3654. (name "tunctl")
  3655. (version "1.5")
  3656. (source
  3657. (origin
  3658. (method url-fetch)
  3659. (uri (string-append "mirror://sourceforge/tunctl/tunctl/" version "/"
  3660. "tunctl-" version ".tar.gz"))
  3661. (sha256
  3662. (base32 "1zsgn7w6l2zh2q0j6qaw8wsx981qcr536qlz1lgb3b5zqr66qama"))))
  3663. (build-system gnu-build-system)
  3664. (arguments
  3665. `(#:phases
  3666. (modify-phases %standard-phases
  3667. (delete 'bootstrap) ;there is no configure.ac file
  3668. (delete 'configure) ;there is no configure script
  3669. (delete 'check) ;there are no tests
  3670. (replace 'build
  3671. (lambda _
  3672. (setenv "CC" "gcc")
  3673. (invoke "make" "tunctl")))
  3674. ;; TODO: Requires docbook2x to generate man page from SGML.
  3675. (replace 'install
  3676. (lambda* (#:key outputs #:allow-other-keys)
  3677. (let* ((out (assoc-ref outputs "out"))
  3678. (bin (string-append out "/bin")))
  3679. (install-file "tunctl" bin))
  3680. #t)))))
  3681. (home-page "http://tunctl.sourceforge.net")
  3682. (synopsis "Utility to set up and maintain TUN/TAP network interfaces")
  3683. (description "Tunctl is used to set up and maintain persistent TUN/TAP
  3684. network interfaces, enabling user applications to simulate network traffic.
  3685. Such interfaces are useful for VPN software, virtualization, emulation,
  3686. simulation, and a number of other applications.")
  3687. (license license:gpl2)))
  3688. (define-public wol
  3689. (package
  3690. (name "wol")
  3691. (version "0.7.1")
  3692. (source
  3693. (origin
  3694. (method url-fetch)
  3695. (uri (string-append "mirror://sourceforge/wake-on-lan/wol/"
  3696. version "/wol-" version ".tar.gz"))
  3697. (sha256
  3698. (base32 "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270"))))
  3699. (build-system gnu-build-system)
  3700. (home-page "https://sourceforge.net/projects/wake-on-lan/")
  3701. (synopsis "Implements Wake On LAN functionality in a small program")
  3702. (description "Tool to send a magic packet to wake another host on the
  3703. network. This must be enabled on the target host, usually in the BIOS.")
  3704. (license license:gpl2)))
  3705. (define-public traceroute
  3706. (package
  3707. (name "traceroute")
  3708. (version "2.1.0")
  3709. (source
  3710. (origin
  3711. (method url-fetch)
  3712. (uri (string-append "mirror://sourceforge/traceroute/traceroute/"
  3713. "traceroute-" version "/traceroute-"
  3714. version ".tar.gz"))
  3715. (sha256
  3716. (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n"))))
  3717. (build-system gnu-build-system)
  3718. (arguments
  3719. `(#:tests? #f ;no test suite
  3720. #:make-flags
  3721. (list (string-append "LIBRARY_PATH="
  3722. (assoc-ref %build-inputs "libc") "/lib")
  3723. (string-append "CFLAGS=-I"
  3724. (assoc-ref %build-inputs "kernel-headers")
  3725. "/include")
  3726. "LDFLAGS=-lm -L../libsupp"
  3727. (string-append "prefix=" (assoc-ref %outputs "out")))
  3728. #:phases
  3729. (modify-phases %standard-phases
  3730. (add-after 'unpack 'patch-make
  3731. (lambda _
  3732. (substitute* "default.rules"
  3733. ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))"))))
  3734. (delete 'bootstrap) ;no configure.ac file
  3735. (delete 'configure)))) ;no configure script
  3736. (home-page "http://traceroute.sourceforge.net/")
  3737. (synopsis "Tracks the route taken by packets over an IP network")
  3738. (description "This package provides a modern, but Linux-specific
  3739. implementation of the @command{traceroute} command that can be used to follow
  3740. the route taken by packets on an IP network on their way to a given host. It
  3741. utilizes the IP protocol's time to live (TTL) field and attempts to elicit an
  3742. ICMP TIME_EXCEEDED response from each gateway along the path to the host.
  3743. Compared to other implementations, this @command{traceroute} command allows
  3744. some traces for unprivileged users.")
  3745. (license (list license:gpl2+
  3746. license:lgpl2.1+)))) ;for the libsupp subdirectory
  3747. (define-public vde2
  3748. (let ((commit "8c65ebc464b2f986d5f1f4e6ae829ef4480c9d5a")
  3749. (revision "0"))
  3750. (package
  3751. (name "vde2")
  3752. (version (git-version "2.3.2" revision commit))
  3753. (source
  3754. (origin
  3755. (method git-fetch)
  3756. (uri (git-reference
  3757. (url "https://github.com/virtualsquare/vde-2")
  3758. (commit commit)))
  3759. (file-name (git-file-name name version))
  3760. (sha256
  3761. (base32 "0l5xf71sv9zm5zw0wg8xgip58c0wh8zck2bazyc2a8gb67gc3s8y"))))
  3762. (build-system gnu-build-system)
  3763. (arguments
  3764. `(#:parallel-build? #f)) ; Build fails if #t.
  3765. (native-inputs
  3766. (list autoconf automake libtool))
  3767. (inputs
  3768. (list python libpcap wolfssl))
  3769. (home-page "https://github.com/virtualsquare/vde-2")
  3770. (synopsis "Virtual Distributed Ethernet")
  3771. (description "VDE is a set of programs to provide virtual software-defined
  3772. Ethernet network interface controllers across multiple virtual or
  3773. physical, local or remote devices. The VDE architecture provides
  3774. virtual counterparts to hardware components such as switches and
  3775. cables.")
  3776. (license (list license:gpl2
  3777. license:lgpl2.1 ; libvdeplug
  3778. (license:non-copyleft ; slirpvde
  3779. "file://COPYING.slirpvde"
  3780. "See COPYING.slirpvde in the distribution."))))))
  3781. (define-public haproxy
  3782. (package
  3783. (name "haproxy")
  3784. (version "2.1.7")
  3785. (source (origin
  3786. (method url-fetch)
  3787. (uri (string-append "https://www.haproxy.org/download/"
  3788. (version-major+minor version)
  3789. "/src/haproxy-" version ".tar.gz"))
  3790. (sha256
  3791. (base32
  3792. "0fd3c1znid5a9w3gcf77b85hm2a2558w9s02c4b7xzkmivqnqbir"))))
  3793. (build-system gnu-build-system)
  3794. (arguments
  3795. `(#:make-flags
  3796. (let* ((out (assoc-ref %outputs "out")))
  3797. (list (string-append "PREFIX=" out)
  3798. (string-append "DOCDIR=" out "/share/" ,name)
  3799. "TARGET=linux-glibc"
  3800. "USE_LUA=1"
  3801. "USE_OPENSSL=1"
  3802. "USE_ZLIB=1"
  3803. "USE_PCRE_2=1"))
  3804. #:tests? #f ; there are only regression tests, using varnishtest
  3805. #:phases
  3806. (modify-phases %standard-phases
  3807. (delete 'configure))))
  3808. (inputs
  3809. (list lua openssl pcre2 zlib))
  3810. (home-page "https://www.haproxy.org/")
  3811. (synopsis "Reliable, high performance TCP/HTTP load balancer")
  3812. (description "HAProxy is a free, very fast and reliable solution offering
  3813. high availability, load balancing, and proxying for TCP and HTTP-based
  3814. applications. It is particularly suited for web sites crawling under very
  3815. high loads while needing persistence or Layer7 processing. Supporting tens of
  3816. thousands of connections is clearly realistic with today's hardware.")
  3817. (license (list license:gpl2+
  3818. license:lgpl2.1
  3819. license:lgpl2.1+))))
  3820. (define-public lldpd
  3821. (package
  3822. (name "lldpd")
  3823. (version "1.0.13")
  3824. (source
  3825. (origin
  3826. (method url-fetch)
  3827. (uri (string-append "https://media.luffy.cx/files/lldpd/lldpd-"
  3828. version ".tar.gz"))
  3829. (sha256
  3830. (base32 "00a7v24qhxw80yk2v79wrkfn7br4r8pcajyrpz8j0xx2v1zq4ffn"))
  3831. (modules '((guix build utils)))
  3832. (snippet
  3833. '(begin
  3834. ;; Drop bundled library.
  3835. (delete-file-recursively "libevent")
  3836. #t))))
  3837. (arguments
  3838. `(#:configure-flags
  3839. (list
  3840. "--with-privsep-user=nobody"
  3841. "--with-privsep-group=nogroup"
  3842. "--localstatedir=/var"
  3843. "--enable-pie"
  3844. "--disable-static"
  3845. "--without-embedded-libevent"
  3846. (string-append "--with-systemdsystemunitdir="
  3847. (assoc-ref %outputs "out")
  3848. "/lib/systemd/system"))))
  3849. (build-system gnu-build-system)
  3850. (inputs
  3851. (list libevent libxml2 openssl readline))
  3852. (native-inputs
  3853. (list pkg-config))
  3854. (home-page "https://vincentbernat.github.io/lldpd/")
  3855. (synopsis "Locate neighbors of your network equipment")
  3856. (description
  3857. "The @dfn{Link Layer Discovery Protocol} (LLDP) is an industry standard
  3858. protocol designed to supplant proprietary Link-Layer protocols such as EDP or
  3859. CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
  3860. deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
  3861. an implementation of LLDP. It also supports some proprietary protocols.")
  3862. (license license:isc)))
  3863. (define-public hashcash
  3864. (package
  3865. (name "hashcash")
  3866. (version "1.22")
  3867. (source
  3868. (origin
  3869. (method url-fetch)
  3870. (uri (string-append "http://www.hashcash.org/source/hashcash-"
  3871. version ".tgz"))
  3872. (sha256
  3873. (base32
  3874. "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
  3875. (build-system gnu-build-system)
  3876. (arguments
  3877. `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
  3878. #:phases
  3879. (modify-phases %standard-phases
  3880. (delete 'configure)
  3881. ;; No tests available.
  3882. (delete 'check)
  3883. (replace 'install
  3884. (lambda* (#:key outputs #:allow-other-keys)
  3885. (let* ((outdir (assoc-ref outputs "out"))
  3886. (bindir (string-append outdir "/bin"))
  3887. (mandir (string-append outdir "/share/man/man1"))
  3888. (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
  3889. ;; Install manually, as we don't need the `sha1' binary
  3890. (install-file "hashcash" bindir)
  3891. (install-file "hashcash.1" mandir)
  3892. (install-file "README" docdir)
  3893. (install-file "LICENSE" docdir)
  3894. (install-file "CHANGELOG" docdir)
  3895. #t))))))
  3896. (home-page "https://www.hashcash.org/")
  3897. (synopsis "Denial-of-service countermeasure")
  3898. (description "Hashcash is a proof-of-work algorithm, which has been used
  3899. as a denial-of-service countermeasure technique in a number of systems.
  3900. A hashcash stamp constitutes a proof-of-work which takes a parametrizable
  3901. amount of work to compute for the sender. The recipient can verify received
  3902. hashcash stamps efficiently.
  3903. This package contains a command-line tool for computing and verifying hashcash
  3904. stamps.")
  3905. (license license:public-domain)))
  3906. (define-public nbd
  3907. (package
  3908. (name "nbd")
  3909. (version "3.23")
  3910. (source
  3911. (origin
  3912. (method url-fetch)
  3913. (uri (string-append "mirror://sourceforge/nbd/nbd/" version
  3914. "/nbd-" version ".tar.xz"))
  3915. (sha256
  3916. (base32 "1d2phi0m9x32p9zddv9fpkhj1rbhlvq93wsn9niy7i3aavn71x6y"))))
  3917. (build-system gnu-build-system)
  3918. (inputs
  3919. (list glib))
  3920. (native-inputs
  3921. (list bison pkg-config which))
  3922. (home-page "https://nbd.sourceforge.io/")
  3923. (synopsis "NBD client and server")
  3924. (description "This package provides the NBD (Network Block Devices)
  3925. client and server. It allows you to use remote block devices over a TCP/IP
  3926. network.")
  3927. (license license:gpl2)))
  3928. (define-public yggdrasil
  3929. (package
  3930. (name "yggdrasil")
  3931. (version "0.4.3")
  3932. (source
  3933. (origin
  3934. (method git-fetch)
  3935. (uri
  3936. (git-reference
  3937. (url "https://github.com/yggdrasil-network/yggdrasil-go")
  3938. (commit (string-append "v" version))
  3939. (recursive? #t)))
  3940. (file-name (git-file-name name version))
  3941. (sha256
  3942. (base32 "0jp6998a45xi8pbi8p84chvpm1mhhcvcxm1avi1c1gjjp4jqm3vl"))
  3943. (patches (search-patches "yggdrasil-extra-config.patch"))))
  3944. (build-system go-build-system)
  3945. (arguments
  3946. '(#:import-path "github.com/yggdrasil-network/yggdrasil-go"
  3947. ;; TODO: figure out how tests are run
  3948. #:tests? #f
  3949. #:install-source? #f
  3950. #:phases
  3951. (modify-phases %standard-phases
  3952. (replace 'build
  3953. (lambda* (#:key import-path build-flags #:allow-other-keys)
  3954. (for-each
  3955. (lambda (directory)
  3956. ((assoc-ref %standard-phases 'build)
  3957. #:build-flags build-flags
  3958. #:import-path directory))
  3959. (list "github.com/yggdrasil-network/yggdrasil-go/cmd/yggdrasil"
  3960. "github.com/yggdrasil-network/yggdrasil-go/cmd/yggdrasilctl"
  3961. "github.com/yggdrasil-network/yggdrasil-go/cmd/genkeys"))
  3962. #t)))))
  3963. ;; https://github.com/kardianos/minwinsvc is windows only
  3964. (propagated-inputs
  3965. (list ;;("go-golang-zx2c4-com-wireguard-windows"
  3966. ;; ,go-golang-zx2c4-com-wireguard-windows)
  3967. go-golang-zx2c4-com-wireguard
  3968. go-golang-org-x-text
  3969. go-golang-org-x-sys
  3970. go-golang-org-x-net
  3971. go-golang-org-x-crypto
  3972. go-netns
  3973. go-netlink
  3974. go-github-com-mitchellh-mapstructure
  3975. go-github-com-mattn-go-runewidth
  3976. go-github-com-mattn-go-isatty
  3977. go-github-com-kardianos-minwinsvc
  3978. go-github-com-hjson-hjson-go
  3979. go-github-com-hashicorp-go-syslog
  3980. go-github-com-gologme-log
  3981. go-github-com-fatih-color
  3982. go-github-com-cheggaaa-pb-v3
  3983. go-github-com-vividcortex-ewma
  3984. go-github-com-arceliar-phony
  3985. go-github-com-arceliar-ironwood))
  3986. (home-page "https://yggdrasil-network.github.io/blog.html")
  3987. (synopsis
  3988. "Experiment in scalable routing as an encrypted IPv6 overlay network")
  3989. (description
  3990. "Yggdrasil is an early-stage implementation of a fully end-to-end encrypted
  3991. IPv6 network. It is lightweight, self-arranging, supported on multiple
  3992. platforms and allows pretty much any IPv6-capable application to communicate
  3993. securely with other Yggdrasil nodes. Yggdrasil does not require you to have
  3994. IPv6 Internet connectivity - it also works over IPv4.")
  3995. (license
  3996. ;; As a special exception to the GNU Lesser General Public License
  3997. ;; version 3 ("LGPL3"), the copyright holders of this Library give you
  3998. ;; permission to convey to a third party a Combined Work that links
  3999. ;; statically or dynamically to this Library without providing any Minimal
  4000. ;; Corresponding Source or Minimal Application Code as set out in 4d or
  4001. ;; providing the installation information set out in section 4e, provided
  4002. ;; that you comply with the other provisions of LGPL3 and provided that you
  4003. ;; meet, for the Application the terms and conditions of the license(s)
  4004. ;; which apply to the Application. Except as stated in this special
  4005. ;; exception, the provisions of LGPL3 will continue to comply in full to
  4006. ;; this Library. If you modify this Library, you may apply this exception
  4007. ;; to your version of this Library, but you are not obliged to do so. If
  4008. ;; you do not wish to do so, delete this exception statement from your
  4009. ;; version. This exception does not (and cannot) modify any license terms
  4010. ;; which apply to the Application, with which you must still comply
  4011. license:lgpl3)))
  4012. (define-public netdiscover
  4013. (package
  4014. (name "netdiscover")
  4015. (version "0.7")
  4016. (source
  4017. (origin
  4018. (method git-fetch)
  4019. (uri (git-reference
  4020. (url "https://github.com/netdiscover-scanner/netdiscover")
  4021. (commit version)))
  4022. (sha256
  4023. (base32 "0g8w8rlg16dsibxi4dnyn7v7r8wwi5ypd51c4w59j0ps2id0w8yj"))
  4024. (file-name (string-append "netdiscover-" version))))
  4025. (arguments
  4026. `(#:tests? #f)) ;; no tests
  4027. (build-system gnu-build-system)
  4028. (inputs
  4029. (list libnet libpcap))
  4030. (native-inputs
  4031. (list autoconf automake))
  4032. (synopsis "Network address discovery tool")
  4033. (description "Netdiscover is a network address discovery tool developed
  4034. mainly for wireless networks without a @acronym{DHCP} server. It also works
  4035. on hub/switched networks. It is based on @acronym{ARP} packets, it will send
  4036. @acronym{ARP} requests and sniff for replies.")
  4037. (home-page "https://github.com/netdiscover-scanner/netdiscover")
  4038. (license license:gpl3+)))
  4039. (define-public putty
  4040. (package
  4041. (name "putty")
  4042. (version "0.76")
  4043. (source
  4044. (origin
  4045. (method url-fetch)
  4046. (uri (list (string-append "https://the.earth.li/~sgtatham/putty/"
  4047. version "/putty-" version ".tar.gz")
  4048. (string-append "http://www.putty.be/" version
  4049. "/putty-" version ".tar.gz")))
  4050. (sha256
  4051. (base32 "0gvi8phabszqksj2by5jrjmshm7bpirhgavz0dqyz1xaimxdjz2l"))))
  4052. (build-system gnu-build-system)
  4053. (arguments
  4054. `(#:phases
  4055. (modify-phases %standard-phases
  4056. (add-before 'configure 'chdir
  4057. (lambda _
  4058. (chdir "unix"))))))
  4059. (inputs
  4060. (list gtk+))
  4061. (native-inputs
  4062. (list pkg-config python)) ; for tests
  4063. (synopsis "Graphical @acronym{SSH, Secure SHell} and telnet client")
  4064. (description "PuTTY is a graphical text terminal client. It supports
  4065. @acronym{SSH, Secure SHell}, telnet, and raw socket connections with good
  4066. terminal emulation. It can authenticate with public keys and Kerberos
  4067. single-sign-on. It also includes command-line @acronym{SFTP, Secure File
  4068. Transfer Protocol} and older @acronym{SCP, Secure Copy Protocol}
  4069. implementations.")
  4070. (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/")
  4071. (license license:expat)))