Source0: http://www.mindrot.org/files/flowd/%{name}-%{version}.tar.gz
# Source0-md5: a3d0512b5e6d9c7d9e749d9894376ea4
Patch0: %{name}-username.patch
+Patch1: format-error.patch
URL: http://www.mindrot.org/flowd.html
BuildRequires: byacc
BuildRequires: perl-devel >= 1:5.8.0
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure
--- /dev/null
+--- flowd-0.9.1/Flowd-perl/Flowd.xs~ 2005-08-21 13:17:02.000000000 +0200
++++ flowd-0.9.1/Flowd-perl/Flowd.xs 2013-06-09 20:10:09.721811208 +0200
+@@ -70,7 +70,7 @@
+ buf = (char *)SvPV(ST(0), len);
+ r = store_flow_deserialise(buf, len, &flow, ebuf, sizeof(ebuf));
+ if (r != STORE_ERR_OK)
+- croak(ebuf);
++ croak("%s", ebuf);
+
+ fields = ntohl(flow.hdr.fields);
+