Paste number 324254: Firejail.scm

Paste number 324254: Firejail.scm
Pasted by: antelopeal
When:3 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+6Y72
Channel:None
Paste contents:
Raw Source | XML | Display As
;; There are several problems with this package.
;; While it does indeed build, the binary does not work. Firejail looks for /bin/cp
;; so the way I got around this was by symlinking /gnu/store/../cp to /bin/cp
;; Second problem I had is that I had to make a /var/run/utmp file.
;; The third and the most hard problem was that it would just exit, and I was not able to do a --output=log.txt due to execvp saying it cant find the directory.
;; I hope someone who is better than packaging than I can fix this!

(use-modules (guix)
               (guix build-system gnu)
	       (gnu packages base)
               (guix licenses))
 (package
  (name "firejail")
  (version "0.9.42-rc1")
  (source
    (origin
      (method url-fetch)
      (uri (string-append "https://sourceforge.net/projects/firejail/files/firejail/firejail-" version "tar.bz2/download"))
      (sha256
        (base32
          "11br6xp86bxs1ic2x683hbvg1hk8v2wp8cw6blj0zz3cdl0pcjqf"))))
  (build-system gnu-build-system)
  (arguments
   `(#:tests? #f 
     #:phases
   (modify-phases %standard-phases
         (add-before 'build 'setup-environment
           (lambda* (#:key outputs #:allow-other-keys)
             (setenv "CC" "gcc")
	     (setenv "prefix" (assoc-ref outputs "out"))
             #t)))
   #:make-flags (list "--environment-overrides")))
  (inputs `(("which" ,which)))
  (home-page
    "http://l3net.wordpress.com/projects/firejail/")
  (synopsis
    "Namespace-based sandboxing tool for Linux")
  (description #f)
  (license gpl2+))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.