public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] http-parser: New package.
@ 2019-09-02 12:25 Stefan Schantl
  0 siblings, 0 replies; only message in thread
From: Stefan Schantl @ 2019-09-02 12:25 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1958 bytes --]

This package is used to build libgit2.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 http-parser/http-parser.nm | 50 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 http-parser/http-parser.nm

diff --git a/http-parser/http-parser.nm b/http-parser/http-parser.nm
new file mode 100644
index 000000000..d22337873
--- /dev/null
+++ b/http-parser/http-parser.nm
@@ -0,0 +1,50 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info(a)ipfire.org>                   #
+###############################################################################
+
+name       = http-parser
+version    = 2.9.2
+release    = 1
+
+groups     = System/Libraries
+url        = https://github.com/nodejs/http-parser
+license    = MIT
+summary    = HTTP request/response parser for C
+
+description
+	This is a parser for HTTP messages written in C. It parses both requests and
+	responses. The parser is designed to be used in performance HTTP applications.
+	It does not make any syscalls nor allocations, it does not buffer data, it can
+	be interrupted at anytime. Depending on your architecture, it only requires
+	about 40 bytes of data per message stream (in a web server that is per
+	connection).
+end
+
+source_dl  = https://github.com/nodejs/%{name}/archive/v%{version}/
+
+build
+	prepare_cmds
+		# Remove Werror from Makefile.
+		sed -i 's/\-Werror//g' Makefile
+	end
+
+	# Testsuite will be launched automatically
+	# after compiling has finished.
+
+	make_install_targets += \
+		PREFIX=%{prefix} \
+		LIBDIR=%{libdir}
+end
+
+packages
+	package %{name}
+
+	package %{name}-devel
+		template DEVEL
+	end
+
+	package %{name}-debuginfo
+		template DEBUGINFO
+	end
+end
-- 
2.20.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-02 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-02 12:25 [PATCH] http-parser: New package Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox