diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-05-05 23:47:35 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-05-06 23:16:52 +0300 |
commit | f55af580456599553ae60c4f51d4afcd2f352c58 (patch) | |
tree | 8bebabcea70be69960f013bfed735d6db1b390f7 | |
parent | 2423b0bb2df182f77aeb89dca9c44e99a0e7a2d2 (diff) | |
download | guix-f55af580456599553ae60c4f51d4afcd2f352c58.tar.gz |
gnu: strongswan: Remove pre-generated files.
* gnu/packages/vpn.scm (strongswan)[source]: Add snippet to remove some pre-generated files. [native-inputs]: Add bison, flex, perl. Change-Id: Ifc316a1c309f8687418455189457cee83b06bfa1
-rw-r--r-- | gnu/packages/vpn.scm | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 6a957638e3..88a82b6c00 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -59,12 +59,14 @@ #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages bison) #:use-module (gnu packages check) #:use-module (gnu packages dns) #:use-module (gnu packages autotools) #:use-module (gnu packages compression) #:use-module (gnu packages curl) #:use-module (gnu packages freedesktop) + #:use-module (gnu packages flex) #:use-module (gnu packages gettext) #:use-module (gnu packages gnome) #:use-module (gnu packages gl) @@ -399,7 +401,23 @@ networks bypassing intermediate firewalls.") (uri (string-append "https://download.strongswan.org/strongswan-" version ".tar.bz2")) (sha256 - (base32 "063mi0kdlpd7r7s3py35yf80hvrv3nrdfvxpyn7ns25gqajg3za5")))) + (base32 "063mi0kdlpd7r7s3py35yf80hvrv3nrdfvxpyn7ns25gqajg3za5")) + (snippet + #~(begin + (use-modules (guix build utils)) + (with-directory-excursion "src" + (for-each delete-file + '("starter/parser/lexer.c" + "libstrongswan/settings/settings_lexer.c" + "starter/parser/parser.c" + "starter/parser/parser.h" + "libstrongswan/settings/settings_parser.c" + "libstrongswan/settings/settings_parser.h" + "libstrongswan/plugins/bliss/bliss_huffman_code_1.c" + "libstrongswan/plugins/bliss/bliss_huffman_code_3.c" + "libstrongswan/plugins/bliss/bliss_huffman_code_4.c" + "libstrongswan/asn1/oid.c" + "libstrongswan/asn1/oid.h"))))))) (build-system gnu-build-system) (arguments `(#:phases @@ -489,7 +507,7 @@ networks bypassing intermediate firewalls.") linux-pam openssl)) (native-inputs - (list coreutils pkg-config tzdata-for-tests)) + (list bison coreutils flex perl pkg-config tzdata-for-tests)) (synopsis "IKEv1/v2 keying daemon") (description "StrongSwan is an IPsec implementation originally based upon the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6, |