all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 513a5affc0a1006db406e316b07a25af1ee46fa7 5149 bytes (raw)
name: gnu/packages/antivirus.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages antivirus)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages check)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages curl)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages pcre)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages tls)
  #:use-module (gnu packages web)
  #:use-module (gnu packages xml))

(define-public clamav
  (package
    (name "clamav")
    (version "0.100.2")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://github.com/Cisco-Talos/clamav-devel/archive/clamav-"
                    version ".tar.gz"))
              (sha256
               (base32
                "0wpamsp3lhlj9dhj5s9nzbyvhrbbnyifm8cjvnssh80sdmkd0dqf"))
              (modules '((guix build utils)))
              (snippet
               '(begin
                  (delete-file-recursively "win32")
                  (delete-file-recursively "libclamav/c++/llvm")
                  #t))))
    (build-system gnu-build-system)
    (arguments
     '(;; TODO Tests seem to fail, not sure why yet.
       #:tests? #f
       #:make-flags '("VERBOSE=1")
       #:configure-flags (list "--enable-check"
                               "--with-dbdir=/var/lib/clamav"
                               "--sysconfdir=/etc/clamav"
                               "--with-system-libmspack"
                               "--without-included-ltdl"
                               (string-append "--with-zlib="
                                              (assoc-ref %build-inputs
                                                         "zlib"))
                               (string-append "--with-libjson="
                                              (assoc-ref %build-inputs
                                                         "json-c"))
                               (string-append "--with-xml="
                                              (assoc-ref %build-inputs
                                                         "libxml2"))
                               (string-append "--with-libcurl="
                                              (assoc-ref %build-inputs
                                                         "curl"))
                               (string-append "--with-openssl="
                                              (assoc-ref %build-inputs
                                                         "openssl")))
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'patch-source
           (lambda _
             (substitute* "Makefile.in"
               ;; Prevent writing to /etc upon install, instead the sample
               ;; files are copied in to the output in the 'install-etc phase
               ((" etc ") " "))))
         (add-after 'install 'install-etc
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
                    (etc (string-append out "/etc")))
               (for-each (lambda (file)
                           (install-file file etc))
                         (find-files "etc" ".*\\.sample"))))))))
    (native-inputs
     `(("check" ,check)))
    (inputs
     `(("openssl" ,openssl)
       ("libmspack" ,libmspack)
       ("libltdl", libltdl)
       ("json-c" ,json-c)
       ("ncurses" ,ncurses)
       ("perl" ,perl)
       ("pcre2" ,pcre2)
       ("libxml2" ,libxml2)
       ("curl" ,curl)
       ("zlib" ,zlib)))
    (synopsis "Antivirus engine for viruses and other malicious software")
    (description
     "Clam AntiVirus is an anti-virus toolkit, for detecting trojans, viruses,
malware and other malicious software.  This package provides a flexible and
scalable multi-threaded daemon, a command-line scanner and a tool to fetch
up-to-date virus definitions.")
    (home-page "https://www.clamav.net/")
    (license
     (list license:gpl2 ;; clamav-milter, clambc, clamconf, clamd, clamdscan,
                        ;; libclamav, libfreshclam
           license:gpl2+ ;; many files
           ;; some files in libclamav
           bsd-2 zlib asl2.0))))

debug log:

solving 513a5affc0 ...
found 513a5affc0 in https://yhetil.org/guix/20181006190855.3537-1-mail@cbaines.net/

applying [1/1] https://yhetil.org/guix/20181006190855.3537-1-mail@cbaines.net/
diff --git a/gnu/packages/antivirus.scm b/gnu/packages/antivirus.scm
new file mode 100644
index 0000000000..513a5affc0

Checking patch gnu/packages/antivirus.scm...
Applied patch gnu/packages/antivirus.scm cleanly.

index at:
100644 513a5affc0a1006db406e316b07a25af1ee46fa7	gnu/packages/antivirus.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.