From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 1/2] gnu: Add openvswitch. Date: Fri, 27 Jan 2017 19:23:19 +0100 Message-ID: <877f5g2wh4.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20170127135616.15017-1-iyzsong@member.fsf.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXBBI-0002CT-Fc for guix-devel@gnu.org; Fri, 27 Jan 2017 13:23:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXBBC-0003RM-Mq for guix-devel@gnu.org; Fri, 27 Jan 2017 13:23:28 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60896) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cXBBC-0003RA-Fw for guix-devel@gnu.org; Fri, 27 Jan 2017 13:23:22 -0500 In-Reply-To: <20170127135616.15017-1-iyzsong@member.fsf.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?B?5a6L5paH5q2m?= , guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > * gnu/packages/networking.scm (openvswitch): New variable. Cool, thanks a lot for this! I will be using this for sure. > diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm > index 87ee0a1d8..c6fb2cfda 100644 > --- a/gnu/packages/networking.scm > +++ b/gnu/packages/networking.scm > @@ -1060,3 +1060,57 @@ suddenly a lot of network traffic, you can fire up= NetHogs and immediately see > which PID is causing this. This makes it easy to identify programs that= have > gone wild and are suddenly taking up your bandwidth.") > (license license:gpl2+))) > + > +(define-public openvswitch > + (package > + (name "openvswitch") > + (version "2.6.1") > + (source (origin > + (method url-fetch) > + (uri (string-append > + "http://openvswitch.org/releases/openvswitch-" > + version ".tar.gz")) > + (sha256 > + (base32 > + "036gq741j9kqsjlp693nff838c9wjd1c56nswl9vyyd1lsmj0yrh"))= )) > + (build-system gnu-build-system) > + (arguments > + '(;; FIXME: many tests fail with: > + ;; [=E2=80=A6] > + ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid > + ;; ovs-appctl -t ovs-vswitchd exit > + ;; hard failure > + #:tests? #f Ah, this brings me back to https://github.com/NixOS/nixpkgs/commit/4561a649f41554f9c47c0405079a909a1b5= 1db2f I managed to get everything but bash completion tests working back then, but did not have the same luck now after about ten minutes of trying. I will give it a go at a later opportunity unless someone beats me to it ;) > + #:configure-flags > + '("--enable-shared" > + "--localstatedir=3D/var" > + "--with-dbdir=3D/var/lib/openvswitch") > + #:phases > + (modify-phases %standard-phases > + (replace 'install > + (lambda _ > + (zero? (system* "make" > + "RUNDIR=3D/tmp" > + "PKIDIR=3D/tmp" > + "LOGDIR=3D/tmp" > + "DBDIR=3D/tmp" > + "install"))))))) > + (native-inputs > + `(("perl" ,perl) > + ("pkg-config" ,pkg-config) > + ("python" ,python-2) > + ;; for testing > + ("util-linux" ,util-linux))) > + (propagated-inputs > + `(("python-six" ,python2-six))) > + (inputs > + `(("libcap-ng" ,libcap-ng) > + ("openssl" ,openssl))) > + (synopsis "Virtual network switch") > + (home-page "http://www.openvswitch.org/") > + (description > + "Open vSwitch is a multilayer virtual switch. It is designed to en= able > +massive network automation through programmatic extension, while still > +supporting standard management interfaces and protocols (e.g. NetFlow, s= Flow, > +IPFIX, RSPAN, CLI, LACP, 802.1ag).") > + (license license:asl2.0))) The source ships a handy "debian/copyright" file outlining the various licenses in use. They should be mentioned here. Could not find any third-party bundled software at a glance. Otherwise LGTM! Haven't tested the service, but the definition LGTM too. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAliLkBcACgkQoqBt8qM6 VPo3mAf+NGm5KYCDWFUDLIdzUflKceiZWR8QZQo0vIhxDYtP6lN0gwYVw30GT4Ih jwoB3VHORkttFTjm7tH11xRJG577IL0O9m9/zM8b5xqUCkWjkdhU/6MliGFqyKuQ G2YT/lH7/cS2/DctFA0QhTLAuLxprW6GB3rrzzjWKEJgvVoKex1B2dVTi69/PC7y bR+aPsSTriUkMs+qR2VQK2dXqw2m8xugZ+LQDXfs42/rsliwWW7We6TJD7SIcPji dfciIVekozyz8wxA5WxiC0qn7KrQCqhHIEK5L9LmXbFCdvVPBe8+c369EUKJb1WM J1Yl6RhHqIrmqeYg0u7wL7TvW9mg7A== =tHkS -----END PGP SIGNATURE----- --=-=-=--