mirror of
				https://codeberg.org/hako/Rosenthal.git
				synced 2025-11-04 03:34:37 +00:00 
			
		
		
		
	rosenthal: Add phantomsocks.
* rosenthal/packages/networking.scm (phantomsocks): New variable.
This commit is contained in:
		
							parent
							
								
									69ac40bc3e
								
							
						
					
					
						commit
						3227d2a0e3
					
				
							
								
								
									
										53
									
								
								rosenthal/packages/networking.scm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								rosenthal/packages/networking.scm
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,53 @@
 | 
				
			|||||||
 | 
					;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
 | 
				
			||||||
 | 
					;;
 | 
				
			||||||
 | 
					;; SPDX-License-Identifier: GPL-3.0-or-later
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(define-module (rosenthal packages networking)
 | 
				
			||||||
 | 
					  #:use-module ((guix licenses) #:prefix license:)
 | 
				
			||||||
 | 
					  #:use-module (guix build-system go)
 | 
				
			||||||
 | 
					  #:use-module (guix gexp)
 | 
				
			||||||
 | 
					  #:use-module (guix git-download)
 | 
				
			||||||
 | 
					  #:use-module (guix packages)
 | 
				
			||||||
 | 
					  #:use-module (guix utils)
 | 
				
			||||||
 | 
					  #:use-module (gnu packages admin)
 | 
				
			||||||
 | 
					  #:use-module (rosenthal packages golang))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60509
 | 
				
			||||||
 | 
					(define-public phantomsocks
 | 
				
			||||||
 | 
					  (package
 | 
				
			||||||
 | 
					    (name "phantomsocks")
 | 
				
			||||||
 | 
					    (version "0.0.0-20221222155609-14291e2c889e")
 | 
				
			||||||
 | 
					    (source (origin
 | 
				
			||||||
 | 
					              (method git-fetch)
 | 
				
			||||||
 | 
					              (uri (git-reference
 | 
				
			||||||
 | 
					                    (url "https://github.com/macronut/phantomsocks")
 | 
				
			||||||
 | 
					                    (commit (go-version->git-ref version))))
 | 
				
			||||||
 | 
					              (file-name (git-file-name name version))
 | 
				
			||||||
 | 
					              (sha256
 | 
				
			||||||
 | 
					               (base32
 | 
				
			||||||
 | 
					                "13lllmh46xwns5ksqqdkl2p7vvnbzkzb6va005nk37bx6c4x2ixp"))))
 | 
				
			||||||
 | 
					    (build-system go-build-system)
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     (list #:install-source? #f
 | 
				
			||||||
 | 
					           #:import-path "github.com/macronut/phantomsocks"
 | 
				
			||||||
 | 
					           #:build-flags #~'("-tags" #$(if (target-linux?)
 | 
				
			||||||
 | 
					                                           "rawsocket"
 | 
				
			||||||
 | 
					                                           "pcap"))))
 | 
				
			||||||
 | 
					    (propagated-inputs
 | 
				
			||||||
 | 
					     (list go-github-com-google-gopacket
 | 
				
			||||||
 | 
					           go-github-com-macronut-go-tproxy))
 | 
				
			||||||
 | 
					    (inputs
 | 
				
			||||||
 | 
					     (if (target-linux?)
 | 
				
			||||||
 | 
					         '()
 | 
				
			||||||
 | 
					         (list libpcap)))
 | 
				
			||||||
 | 
					    (home-page "https://github.com/macronut/phantomsocks")
 | 
				
			||||||
 | 
					    (synopsis "Internet censorship circumvention tool")
 | 
				
			||||||
 | 
					    (description
 | 
				
			||||||
 | 
					     "Phantomsocks is an Internet censorship circumvention tool based on the
 | 
				
			||||||
 | 
					desync technique, which was introduced in the 2017 paper
 | 
				
			||||||
 | 
					@url{https://doi.org/10.1145/3131365.3131374, @cite{Your State is Not Mine: A
 | 
				
			||||||
 | 
					Closer Look at Evading Stateful Internet Censorship}}.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Further information on the usage could be found on the Wikibooks page
 | 
				
			||||||
 | 
					@url{https://zh.wikibooks.org/wiki/Phantomsocks, @cite{Phantomsocks}}.")
 | 
				
			||||||
 | 
					    (license license:lgpl3)))
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user