mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
gnu: iptables: Update to 1.8.5.
* gnu/packages/linux.scm (iptables): Update to 1.8.5. [source]: Add URL. [arguments]: Add an ‘install-missing-script’ phase.
This commit is contained in:
parent
2d63cca146
commit
0cafb90d15
1 changed files with 24 additions and 10 deletions
|
@ -2073,15 +2073,17 @@ (define-public alsa-plugins
|
||||||
(define-public iptables
|
(define-public iptables
|
||||||
(package
|
(package
|
||||||
(name "iptables")
|
(name "iptables")
|
||||||
(version "1.8.4")
|
;; XXX When updating, remove the ‘install-missing-script’ phase.
|
||||||
(source (origin
|
(version "1.8.5")
|
||||||
(method url-fetch)
|
(source
|
||||||
(uri (string-append
|
(origin
|
||||||
"mirror://netfilter.org/iptables/iptables-"
|
(method url-fetch)
|
||||||
version ".tar.bz2"))
|
(uri (list (string-append "mirror://netfilter.org/iptables/iptables-"
|
||||||
(sha256
|
version ".tar.bz2")
|
||||||
(base32
|
(string-append "https://www.netfilter.org/projects/iptables/"
|
||||||
"0z0mgs1ghvn3slc868mgbf2g26njgrzcy5ggyb5w4i55j1a3lflr"))))
|
"files/iptables-" version ".tar.bz2")))
|
||||||
|
(sha256
|
||||||
|
(base32 "02a3575ypdpg6a2x752mhk3f7h1381ymkq1n0gss6fp6292xfmyl"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
|
@ -2093,7 +2095,19 @@ (define-public iptables
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ; no test suite
|
'(#:tests? #f ; no test suite
|
||||||
#:configure-flags ; add $libdir to the RUNPATH of executables
|
#:configure-flags ; add $libdir to the RUNPATH of executables
|
||||||
(list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
|
(list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-missing-script
|
||||||
|
;; A typo prevents installation of /sbin/iptables-apply. It's been
|
||||||
|
;; fixed upstream (d4ed0c741fc789bb09d977d74d30875fdd50d08b), but
|
||||||
|
;; a patch would require bootstrapping and more inputs. Simply copy
|
||||||
|
;; the file ourselves.
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(sbin (string-append out "/sbin")))
|
||||||
|
(install-file "iptables/iptables-apply" sbin)
|
||||||
|
#t))))))
|
||||||
(home-page "https://www.netfilter.org/projects/iptables/index.html")
|
(home-page "https://www.netfilter.org/projects/iptables/index.html")
|
||||||
(synopsis "Programs to configure Linux IP packet filtering rules")
|
(synopsis "Programs to configure Linux IP packet filtering rules")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue