Merge branch 'qby-master-patch-76331' into 'master'

cLight

See merge request nonguix/nonguix!430
This commit is contained in:
qby 2025-02-12 14:14:45 +00:00
commit 2322c35c05
2 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,29 @@
(define-module (my-packages anonsurf)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public anonsurf
(package
(name "anonsurf")
(version version) ;; Insert the appropriate version number
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ParrotSec/anonsurf")
(commit version)))
(file-name (string-append name "-" version))
(sha256
(base32
hash)))) ;; Update SHA256 hash
(build-system gnu-build-system)
(arguments `(#:phases
(modify-phases %standard-phases
(add-before 'configure 'pre-configure
(lambda _
(invoke "make")
#t)))))
(home-page "https://github.com/ParrotSec/anonsurf")
(synopsis "Parrot AnonSurf Module")
(description "AnonSurf is a script designed to start TOR and set the iptables properly to prevent traffic from passing outside the TOR network.")
(license license:license))) ;; Update the license if different

View File

@ -0,0 +1,60 @@
(define-module (clight)
#:use-module (guix build-system cmake)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages version-control)
#:use-module (gnu packages admin)
#:use-module (gnu packages statistics)
#:use-module (gnu packages manipulation)
#:use-module (gnu packages base))
(define-public clight
(package
(name "clight")
(version "4.9")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/FedeDP/Clight.git")
(commit version)))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)
("gcc" ,gcc)
("libsystemd" ,libsystemd)
("libpopt" ,popt)
("gsl" ,gsl)
("libconfig" ,libconfig)
("libmodule" ,libmodule)
("cmake" ,cmake)
("bash-completion" ,bash-completion)
("fish" ,fish)
("systemd" ,systemd)))
(inputs
`(("bash-completion" ,bash-completion)
("fish" ,fish)))
(arguments
`(#:configure-flags
`("-DCMAKE_INSTALL_PREFIX=/usr"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_BUILD_TYPE=Release")
#:phases
(modify-phases %standard-phases
(add-before 'configure 'setup-env
(lambda _
(setenv "CC" (which "gcc"))
(setenv "CXX" (which "g++"))
(setenv "LD" (which "ld"))
(setenv "AR" (which "ar"))
(setenv "RANLIB" (which "ranlib"))
(setenv "LDFLAGS" "-lgcc -lgcc_s -lc")
(setenv "CMAKE_SKIP_INSTALL_RPATH" "TRUE")
(setenv "CMAKE_SKIP_BUILD_RPATH" "TRUE")
(setenv "CMAKE_SKIP_RPATH" "TRUE"))))))
(synopsis "Daemon that adjusts screen brightness according to your surroundings.")
(description "...")
(home-page "https://github.com/FedeDP/Clight")
(license license:mit)))