From patchwork Sun Apr 5 13:33:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Fischer X-Patchwork-Id: 2900 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 48wF4c3VTqz3wdp for ; Sun, 5 Apr 2020 13:33:52 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 48wF4b08Bfz1Sy; Sun, 5 Apr 2020 13:33:50 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 48wF4Y1wP7z2xm4; Sun, 5 Apr 2020 13:33:49 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 48wF4T27pcz2xm4 for ; Sun, 5 Apr 2020 13:33:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 48wF4S47Dgz1Sy for ; Sun, 5 Apr 2020 13:33:44 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1586093624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=LiZx0MHRbVHWcsL6Bo/QfVecEbkscuRXJORzsHRZGek=; b=a//W3turNn1rgOh1974Z90Yt8ISv+bDwJUUbhITYOqDN1lE/mMn8BwFrSjVRfTCVAgs9NQ 14gFDnyjkaD2rkAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1586093624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=LiZx0MHRbVHWcsL6Bo/QfVecEbkscuRXJORzsHRZGek=; b=peqor9F/WlBkPKoLPxvdcT3X8Fx80bsIQlWQMUVpVvks0386W/rX4wTR7xQUpC8yu9J5Hd 42HTSriE8CewjcFFAIp7DOFcOJLKJOOkD6I7xAGTyw6HROFy/Rfd1OP2TwcuGvgq8+Lnul WBYeIwd0/VyO5kUnpuI7e50TU6WVtqOJiZ3NkmZ0dy7x5UIux2krZInV3XqWd3SAWeUJeL Z6yXg5u0zFP7dSZ7zYP/kiwpImyGLi1ir7U7TW9eyYB9iIxWbCl/XaakiDBazTLf9uoHws cTW+Eddzn582BfG7k7PLCmyMD+9NJcuYK0OypRVPIUbg9415jsP7K5qwti6Mtg== From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] New package: 'libmicrohttpd', needed for 'motion' Date: Sun, 5 Apr 2020 15:33:36 +0200 Message-Id: <20200405133336.7768-1-matthias.fischer@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=matthias.fischer@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" For details see: https://www.gnu.org/software/libmicrohttpd/ "GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application." Changes: https://github.com/Karlson2k/libmicrohttpd/blob/master/ChangeLog Signed-off-by: Matthias Fischer --- config/rootfiles/packages/libmicrohttpd | 6 ++ lfs/libmicrohttpd | 96 +++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 103 insertions(+) create mode 100644 config/rootfiles/packages/libmicrohttpd create mode 100644 lfs/libmicrohttpd diff --git a/config/rootfiles/packages/libmicrohttpd b/config/rootfiles/packages/libmicrohttpd new file mode 100644 index 000000000..04e5b3cf4 --- /dev/null +++ b/config/rootfiles/packages/libmicrohttpd @@ -0,0 +1,6 @@ +#usr/include/microhttpd.h +#usr/lib/libmicrohttpd.la +#usr/lib/libmicrohttpd.so +usr/lib/libmicrohttpd.so.12 +usr/lib/libmicrohttpd.so.12.55.0 +#usr/lib/pkgconfig/libmicrohttpd.pc diff --git a/lfs/libmicrohttpd b/lfs/libmicrohttpd new file mode 100644 index 000000000..0819a2850 --- /dev/null +++ b/lfs/libmicrohttpd @@ -0,0 +1,96 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2020 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 0.9.70 + +THISAPP = libmicrohttpd-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = libmicrohttpd +PAK_VER = 1 + +DEPS = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = dcd6045ecb4ea18c120afedccbd1da74 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/lighthttpd \ + --enable-static=no \ + --disable-nls \ + --enable-gcc-hardening \ + --enable-linker-hardening \ + --disable-doc \ + --disable-examples \ + --disable-sendfile \ + --enable-https + + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 5b310e2e0..c65d946ce 100755 --- a/make.sh +++ b/make.sh @@ -1521,6 +1521,7 @@ buildipfire() { lfsmake2 perl-DBD-SQLite lfsmake2 perl-File-ReadBackwards lfsmake2 openvmtools + lfsmake2 libmicrohttpd lfsmake2 motion lfsmake2 joe lfsmake2 monit