Permalink
Browse files

nettle-openflow initial layout

  • Loading branch information...
1 parent 058f030 commit 0d7819e5010fe470ccb77b58a045d0ac4df7d429 @qnikst qnikst committed Mar 20, 2013
@@ -0,0 +1 @@
+DIST nettle-openflow-0.2.0.tar.gz 44972 SHA256 f3b562757db4db5386a7ddc28cfa480e473f513cbeb75667ddd168f4f56d89c9 SHA512 b00ddc4631172ad17d8fa4fb86cc6b3da577b640b828700b6449623f9669af082fca54eec46ddb003f91c67feeb7c46d8b84760a0fe497d37316b0920491ec18 WHIRLPOOL d3f8494a2a822179641050aedb2c7aa8b324cc613efbcf1c89c142f9a7fa9fdfd794bf924cdd2630b060461371c9676c07830d969a20834cc4a4588b73862aed
@@ -0,0 +1,20 @@
+diff --git a/src/Nettle/Servers/Server.hs b/src/Nettle/Servers/Server.hs
+index e315e36..229657d 100755
+--- a/src/Nettle/Servers/Server.hs
++++ b/src/Nettle/Servers/Server.hs
+@@ -48,7 +48,7 @@ import Text.Printf
+
+
+ type ServerPortNumber = Word16
+-deriving instance Ord SockAddr
++-- deriving instance Ord SockAddr
+
+ -- | Abstract type containing the state of the OpenFlow server.
+ newtype OpenFlowServer = OpenFlowServer (Socket, IORef (Map SwitchID SwitchHandle))
+@@ -246,4 +246,4 @@ untilNothing sense act = go
+ case ma of
+ Nothing -> return ()
+ Just a -> act a >> go
+-
+\ No newline at end of file
++
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ This package provides data types that model the messages of the OpenFlow protocol,
+ functions that implement serialization and deserialization between these data
+ types and their binary representations in the protocol, and an efficient OpenFlow server.
+ The library is under active development.
+ </longdescription>
+</pkgmetadata>
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.2.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="OpenFlow protocol messages, binary formats, and servers."
+HOMEPAGE="http://hackage.haskell.org/package/nettle-openflow"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/bimap:=[profile?]
+ dev-haskell/binary:=[profile?]
+ dev-haskell/binary-strict:=[profile?]
+ dev-haskell/hlist:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/network-2.3:=[profile?]
+ >=dev-haskell/parsec-3.1:=[profile?]
+ dev-haskell/syb:=[profile?]
+ >=dev-lang/ghc-7.4.1:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.2"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-instance.patch
+}

0 comments on commit 0d7819e

Please sign in to comment.