emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#33464: closed ([PATCH] gnu: Add lynis.)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#33464: closed ([PATCH] gnu: Add lynis.)
Date: Fri, 30 Nov 2018 07:06:02 +0000

Your message dated Fri, 30 Nov 2018 12:35:33 +0530
with message-id <address@hidden>
and subject line Re: [bug#33464] [PATCH] gnu: Add lynis.
has caused the debbugs.gnu.org bug report #33464,
regarding [PATCH] gnu: Add lynis.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
33464: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33464
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add lynis. Date: Thu, 22 Nov 2018 19:04:28 +0530
* gnu/packages/admin.scm (lynis): New variable.
---
 gnu/packages/admin.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 28961ecf8..513d7a26b 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2837,3 +2837,59 @@ support forum.  It runs with the @code{/exec} command in 
most IRC clients.")
     (description "This package provides tools to manage clients of the
 Logitech Unifying Receiver.")
     (license license:gpl2)))
+
+(define-public lynis
+  (package
+    (name "lynis")
+    (version "2.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/CISOfy/lynis/archive/";
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "13np0bbkcz7k8336wdcq69b93wmc2vm1ryz988cr0kan11mxsr3k"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Remove proprietary plugins
+           (with-directory-excursion "plugins"
+             (for-each delete-file (list "plugin_pam_phase1"
+                                         "plugin_systemd_phase1")))
+           #t))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ; no tests
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "lynis"
+               (("/usr/share/lynis")
+                (string-append (assoc-ref outputs "out") "/share/lynis")))
+             (substitute* "include/functions"
+               (("/usr/local/etc/lynis")
+                (string-append (assoc-ref outputs "out") "/etc/lynis")))
+             #t))
+         (delete 'build)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (install-file "lynis" (string-append out "/bin/"))
+               (install-file "default.prf" (string-append out "/etc/lynis"))
+               (for-each
+                (lambda (dir)
+                  (copy-recursively dir (string-append out "/share/lynis/" 
dir)))
+                (list "db" "include" "plugins"))
+               (install-file "lynis.8" (string-append out "/share/man/man8"))
+               #t))))))
+    (home-page "https://cisofy.com/lynis/";)
+    (synopsis "Security auditing tool")
+    (description "Lynis is a security auditing tool.  It performs an in-depth
+security scan and runs on the system itself.  The primary goal is to test
+security defenses and provide tips for further system hardening.  It will also
+scan for general system information, vulnerable software packages, and
+possible configuration issues.")
+    (license license:gpl3)))
-- 
2.19.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#33464] [PATCH] gnu: Add lynis. Date: Fri, 30 Nov 2018 12:35:33 +0530
Pushed to master! Thanks for the review! :-)


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]