From 67e8b7b4b1037cef7a007d5fa208099c7a6c1ffb Mon Sep 17 00:00:00 2001 From: bingulo Date: Tue, 2 Aug 2022 00:16:13 -0300 Subject: [PATCH] New package: civetweb-1.15 New package: civetweb-1.15 civetweb: adequated accordingly PR review civetweb: new libcivetweb subpackage. common/shlibs: libcivetweb civetweb: renamed civetweb-devel subpackage to libcivetweb-devel. --- common/shlibs | 1 + srcpkgs/civetweb/patches/install-fix.patch | 16 +++++++++ srcpkgs/civetweb/template | 39 ++++++++++++++++++++++ srcpkgs/libcivetweb | 1 + srcpkgs/libcivetweb-devel | 1 + 5 files changed, 58 insertions(+) create mode 100644 srcpkgs/civetweb/patches/install-fix.patch create mode 100644 srcpkgs/civetweb/template create mode 120000 srcpkgs/libcivetweb create mode 120000 srcpkgs/libcivetweb-devel diff --git a/common/shlibs b/common/shlibs index 651900c9edf8..8d0eaeeae9e4 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1 libqtspell-qt5.so.1 qtspell-1.0.1_1 libopensmtpd.so.0 libopensmtpd-0.7_1 libiio.so.0 libiio-0.23_1 +libcivetweb.so.1 libcivetweb-1.15_1 diff --git a/srcpkgs/civetweb/patches/install-fix.patch b/srcpkgs/civetweb/patches/install-fix.patch new file mode 100644 index 000000000000..be282dbf613c --- /dev/null +++ b/srcpkgs/civetweb/patches/install-fix.patch @@ -0,0 +1,16 @@ +--- a/Makefile ++++ b/Makefile +@@ -19,10 +19,10 @@ + # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html + PREFIX ?= /usr/local + EXEC_PREFIX = $(PREFIX) +-BINDIR = $(EXEC_PREFIX)/bin +-DATAROOTDIR = $(PREFIX)/share ++BINDIR = $(DESTDIR)$(EXEC_PREFIX)/bin ++DATAROOTDIR = $(DESTDIR)$(PREFIX)/share + DOCDIR = $(DATAROOTDIR)/doc/$(CPROG) +-SYSCONFDIR ?= $(PREFIX)/etc ++SYSCONFDIR ?= $(DESTDIR)/etc + HTMLDIR = $(DOCDIR) + INCLUDEDIR = $(DESTDIR)$(PREFIX)/include + LIBDIR = $(DESTDIR)$(EXEC_PREFIX)/lib diff --git a/srcpkgs/civetweb/template b/srcpkgs/civetweb/template new file mode 100644 index 000000000000..cbbb95c5c51c --- /dev/null +++ b/srcpkgs/civetweb/template @@ -0,0 +1,39 @@ +# Template file for 'civetweb' +pkgname=civetweb +version=1.15 +revision=1 +build_style=gnu-makefile +make_install_target="install install-headers install-lib install-slib" +make_use_env=yes +makedepends="openssl-devel" +short_desc="Embedded C/C++ web server" +maintainer="bingulo " +license="MIT" +homepage="https://civetweb.github.io/civetweb/" +distfiles="https://github.com/civetweb/civetweb/archive/refs/tags/v${version}.tar.gz" +checksum=90a533422944ab327a4fbb9969f0845d0dba05354f9cacce3a5005fa59f593b9 + +pre_install() { + vmkdir usr/include +} + +post_install() { + vlicense LICENSE.md +} + +libcivetweb-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=' - development files' + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} + +libcivetweb_package() { + short_desc+=' - library' + pkg_install() { + vmove "usr/lib/*.so.*" + } +} diff --git a/srcpkgs/libcivetweb b/srcpkgs/libcivetweb new file mode 120000 index 000000000000..f740b5313316 --- /dev/null +++ b/srcpkgs/libcivetweb @@ -0,0 +1 @@ +civetweb \ No newline at end of file diff --git a/srcpkgs/libcivetweb-devel b/srcpkgs/libcivetweb-devel new file mode 120000 index 000000000000..f740b5313316 --- /dev/null +++ b/srcpkgs/libcivetweb-devel @@ -0,0 +1 @@ +civetweb \ No newline at end of file