From nobody Thu Nov 23 12:34:33 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sbcxj5qH3z52Bcm; Thu, 23 Nov 2023 12:34:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sbcxj4Yyhz3MqK; Thu, 23 Nov 2023 12:34:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700742873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nlRvrr5gR8EU7//kiM3sAUoO4gqnEcUYUXEBDU53rEA=; b=korJaqw7KWrD0Twhq3PCX/TIp4jGJgYZYpqrWA2b2exP41CiIwCCrubwcUxmEiXmSgbBmh dUKnyJNiw88DptQXKgaslVRAYv86yAaiG2dsaWY/wbUuly9mMRApiEyD2e/Udv/Q1m1G4e nH0ajU/jmiZ720uV3QTTN8RFp2o9vwySLQ7Kz0tdlaaPI8ixga1OdFM09tA95kWwCGYG9e tGw+39QTLYeJonle2Zx5j2o3kB7gIkjSe0pqQp/UIimVstV2N9DjlF9oM6YwSC8lxSrEaz Ql0/105ttV50CufsWxcysLiD+gU0c3d2febyCUPOI4ye09h1ACuHkvsYrbjekA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700742873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nlRvrr5gR8EU7//kiM3sAUoO4gqnEcUYUXEBDU53rEA=; b=HU+NLSiOtj2Z3Clj/aUzZFgmMvV38HiEoyULiJBUbORllh6MALXCJ9mUbe1ow4xauWaZKP UARw4ydefxzS+PKVEdxtB63LM4T48j2X1QSsGXYibwgZ6MPM1wxnCXwuaVvUCy6yH83FdW +VbCUx5mz1DUI2b2rP3LcZmovRudzYMwIGThIt6fabPwC8QHNgB6axUz8DvCTE3PrrIhX2 cJtzY4VBaZuviwqpeQvkSowhuW1wi8xAov6UsUBPSD3fGdWAhsJAqv2VqysaB9J5xHUcLl vmjffuXGAlhkf2vYj1Bp4FncAqRUKtz2ms5tLhFlpxBDlbqpOsYachdLlfPDxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700742873; a=rsa-sha256; cv=none; b=YDWrobVit1PiKDnHWCCUqF97BW2068JnyyvQPSVLboycZ49niS2IV0v4jqbolTW6orrHAO iEz4UaM2tAC/pfHFuSmhJaj9LXJCbIdMv9trv9j9SugXIXhcMNnPlZiopaU+BeQV8QY0K+ pcaRiaxhtOJQxpOV3Vj8KMXyRnIOldjRlEFLQpxm1UK+PhsUIicfrTcsS8xBfdcyFFYk3y P+cezIfy7DCuRfTinT2ctyGIhmS3MSyUkagU4bTa1iDuvpu1Tp+bNyDzFjUwREVUX/+QFf 90Hrkm/t5sbKTBVh7s6dglS8wEn2IdHQANNagC3XAiXwOnErRXNw6meAgkHq1g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Sbcxj3dwnz121M; Thu, 23 Nov 2023 12:34:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3ANCYXQt055616; Thu, 23 Nov 2023 12:34:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ANCYX3G055613; Thu, 23 Nov 2023 12:34:33 GMT (envelope-from git) Date: Thu, 23 Nov 2023 12:34:33 GMT Message-Id: <202311231234.3ANCYX3G055613@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Olivier Cochard Subject: git: f9faa4a89b57 - main - www/deforaos-surfer: Add back latest version 0.3.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olivier X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f9faa4a89b5788a6f323c00a5fba5d419bfe433e Auto-Submitted: auto-generated The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/ports/commit/?id=f9faa4a89b5788a6f323c00a5fba5d419bfe433e commit f9faa4a89b5788a6f323c00a5fba5d419bfe433e Author: Pierre Pronchery AuthorDate: 2023-11-23 00:20:54 +0000 Commit: Olivier Cochard CommitDate: 2023-11-23 12:30:51 +0000 www/deforaos-surfer: Add back latest version 0.3.1 DeforaOS desktop web browser WWW: https://www.defora.org/ --- MOVED | 1 - www/Makefile | 1 + www/deforaos-surfer/Makefile | 40 +++++++++++ www/deforaos-surfer/distinfo | 3 + www/deforaos-surfer/files/patch-doc_Makefile | 23 +++++++ www/deforaos-surfer/files/patch-src_Makefile | 80 ++++++++++++++++++++++ www/deforaos-surfer/files/patch-src_download.c | 12 ++++ www/deforaos-surfer/files/patch-src_ghtml-webkit.c | 21 ++++++ www/deforaos-surfer/files/patch-tools_Makefile | 17 +++++ www/deforaos-surfer/pkg-descr | 1 + www/deforaos-surfer/pkg-plist | 17 +++++ 11 files changed, 215 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index 20f0b2c5982f..8f335b3c5a8e 100644 --- a/MOVED +++ b/MOVED @@ -1472,7 +1472,6 @@ mail/claws-mail-fancy||2019-03-24|Has expired: webkit-gtk* last release in 2016 multimedia/miro||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issues net/libproxy-webkit||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issues net-im/hotot||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issues -www/deforaos-surfer||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issues www/gnome-web-photo||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issue www/hs-webkit||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issues www/p5-Gtk2-WebKit||2019-03-24|Has expired: webkit-gtk* last release in 2016 and security issues diff --git a/www/Makefile b/www/Makefile index 7363c1f0c891..851729548418 100644 --- a/www/Makefile +++ b/www/Makefile @@ -132,6 +132,7 @@ SUBDIR += davix SUBDIR += dddbl SUBDIR += ddgr + SUBDIR += deforaos-surfer SUBDIR += deno SUBDIR += devd SUBDIR += dezoomify-rs diff --git a/www/deforaos-surfer/Makefile b/www/deforaos-surfer/Makefile new file mode 100644 index 000000000000..0a1a0151b33a --- /dev/null +++ b/www/deforaos-surfer/Makefile @@ -0,0 +1,40 @@ +PORTNAME= surfer +PORTVERSION= 0.3.1 +CATEGORIES= www +MASTER_SITES= https://ftp.defora.org/pub/DeforaOS/Apps/Desktop/src/Surfer/ +PKGNAMEPREFIX= deforaos- +DISTNAME= Surfer-${PORTVERSION} + +MAINTAINER= olivier@FreeBSD.org +COMMENT= DeforaOS desktop web browser +WWW= https://www.defora.org/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libSystem.so:devel/deforaos-libsystem \ + libDesktop.so:x11/deforaos-libdesktop \ + libwebkit2gtk-4.0.so:www/webkit2-gtk3 \ + libharfbuzz.so:print/harfbuzz \ + libsoup-2.4.so:devel/libsoup + +USES= gnome desktop-file-utils pkgconfig gettext +USE_XORG= x11 +USE_GNOME= gtk30 cairo gdkpixbuf2 + +MAKE_ARGS= PREFIX=${PREFIX} +MAKE_ENV+= MANDIR=${STAGEDIR}${MANPREFIX}/man + +OPTIONS_DEFINE= DOCS +OPTIONS_SUB= yes +DOCS_BUILD_DEPENDS= xsltproc:textproc/libxslt \ + ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl + +post-patch-DOCS-off: + ${REINPLACE_CMD} 's|= data doc|= data|' \ + ${WRKSRC}/Makefile + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* + +.include diff --git a/www/deforaos-surfer/distinfo b/www/deforaos-surfer/distinfo new file mode 100644 index 000000000000..1ae939c7f5d6 --- /dev/null +++ b/www/deforaos-surfer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1700695138 +SHA256 (Surfer-0.3.1.tar.gz) = 792c8c7e62226aa099e3f40597a91871eff7b094fce49e67602019a877a3ac22 +SIZE (Surfer-0.3.1.tar.gz) = 105578 diff --git a/www/deforaos-surfer/files/patch-doc_Makefile b/www/deforaos-surfer/files/patch-doc_Makefile new file mode 100644 index 000000000000..46762cb6d693 --- /dev/null +++ b/www/deforaos-surfer/files/patch-doc_Makefile @@ -0,0 +1,23 @@ +--- doc/Makefile.orig 2023-11-23 00:09:28 UTC ++++ doc/Makefile +@@ -1,4 +1,4 @@ +-TARGETS = $(OBJDIR)download.1 $(OBJDIR)download.html $(OBJDIR)download.xml $(OBJDIR)helper.1 $(OBJDIR)helper.html $(OBJDIR)helper.xml $(OBJDIR)htmlapp.1 $(OBJDIR)htmlapp.html $(OBJDIR)htmlapp.xml $(OBJDIR)surfer.1 $(OBJDIR)surfer.html $(OBJDIR)surfer.xml ++TARGETS = $(OBJDIR)helper.1 $(OBJDIR)helper.xml $(OBJDIR)htmlapp.1 $(OBJDIR)htmlapp.xml $(OBJDIR)surfer.1 $(OBJDIR)surfer.xml + OBJDIR = + PREFIX = /usr/local + DESTDIR = +@@ -64,14 +64,9 @@ install: all + $(RM) -- $(TARGETS) + + install: all +- ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)download.1" +- ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)download.html" + ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)helper.1" +- ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)helper.html" + ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)htmlapp.1" +- ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)htmlapp.html" + ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)surfer.1" +- ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -i -- "$(OBJDIR)surfer.html" + + uninstall: + ./docbook.sh -P "$(DESTDIR)$(PREFIX)" -u -- "download.1" diff --git a/www/deforaos-surfer/files/patch-src_Makefile b/www/deforaos-surfer/files/patch-src_Makefile new file mode 100644 index 000000000000..03efe8125098 --- /dev/null +++ b/www/deforaos-surfer/files/patch-src_Makefile @@ -0,0 +1,80 @@ +--- src/Makefile.orig 2022-11-15 01:17:05 UTC ++++ src/Makefile +@@ -1,15 +1,16 @@ SUBDIRS = common + SUBDIRS = common +-TARGETS = $(OBJDIR)download$(EXEEXT) $(OBJDIR)surfer$(EXEEXT) ++TARGETS = $(OBJDIR)surfer$(EXEEXT) + OBJDIR = + PREFIX = /usr/local + DESTDIR = + BINDIR = $(PREFIX)/bin + SBINDIR = $(PREFIX)/sbin + CC = cc +-CPPFLAGSF= ++CPPFLAGSF= -D WITH_WEBKIT2 + CPPFLAGS= +-CFLAGSF = ++CFLAGSF = `pkg-config --cflags libDesktop gtk+-x11-3.0 webkit2gtk-4.0` + CFLAGS = -W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector ++LDFLAGSF= `pkg-config --libs libDesktop gtk+-x11-3.0 webkit2gtk-4.0` -lintl + LDFLAGS = -pie -Wl,-z,relro -Wl,-z,now + EXEEXT = + RM = rm -f +@@ -27,13 +28,6 @@ subdirs: + $(MAKE) OBJDIR="$(OBJDIR)$$i/"; \ + else $(MAKE); fi) || exit; done + +-download_OBJS = $(OBJDIR)download.o +-download_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) +-download_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) +- +-$(OBJDIR)download$(EXEEXT): $(download_OBJS) +- $(CC) -o $(OBJDIR)download$(EXEEXT) $(download_OBJS) $(download_LDFLAGS) +- + surfer_OBJS = $(OBJDIR)surfer.o $(OBJDIR)ghtml.o $(OBJDIR)callbacks.o $(OBJDIR)main.o + surfer_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) + surfer_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) +@@ -41,9 +35,6 @@ $(OBJDIR)surfer$(EXEEXT): $(surfer_OBJS) + $(OBJDIR)surfer$(EXEEXT): $(surfer_OBJS) + $(CC) -o $(OBJDIR)surfer$(EXEEXT) $(surfer_OBJS) $(surfer_LDFLAGS) + +-$(OBJDIR)download.o: download.c download.h ../config.h +- $(CC) -D WITH_MAIN $(download_CFLAGS) -o $(OBJDIR)download.o -c download.c +- + $(OBJDIR)surfer.o: surfer.c callbacks.h common/find.c download.c download.h surfer.h ../config.h + $(CC) $(surfer_CFLAGS) -o $(OBJDIR)surfer.o -c surfer.c + +@@ -61,14 +52,14 @@ clean: + if [ -n "$(OBJDIR)" ]; then \ + $(MAKE) OBJDIR="$(OBJDIR)$$i/" clean; \ + else $(MAKE) clean; fi) || exit; done +- $(RM) -- $(download_OBJS) $(surfer_OBJS) ++ $(RM) -- $(surfer_OBJS) + + distclean: + @for i in $(SUBDIRS); do (cd "$$i" && \ + if [ -n "$(OBJDIR)" ]; then \ + $(MAKE) OBJDIR="$(OBJDIR)$$i/" distclean; \ + else $(MAKE) distclean; fi) || exit; done +- $(RM) -- $(download_OBJS) $(surfer_OBJS) ++ $(RM) -- $(surfer_OBJS) + $(RM) -- $(TARGETS) + + install: all +@@ -77,8 +68,6 @@ install: all + $(MAKE) OBJDIR="$(OBJDIR)$$i/" install; \ + else $(MAKE) install; fi) || exit; done + $(MKDIR) $(DESTDIR)$(BINDIR) +- $(INSTALL) -m 0755 $(OBJDIR)download$(EXEEXT) $(DESTDIR)$(BINDIR)/download$(EXEEXT) +- $(MKDIR) $(DESTDIR)$(BINDIR) + $(INSTALL) -m 0755 $(OBJDIR)surfer$(EXEEXT) $(DESTDIR)$(BINDIR)/surfer$(EXEEXT) + + uninstall: +@@ -86,7 +75,6 @@ uninstall: + if [ -n "$(OBJDIR)" ]; then \ + $(MAKE) OBJDIR="$(OBJDIR)$$i/" uninstall; \ + else $(MAKE) uninstall; fi) || exit; done +- $(RM) -- $(DESTDIR)$(BINDIR)/download$(EXEEXT) + $(RM) -- $(DESTDIR)$(BINDIR)/surfer$(EXEEXT) + + .PHONY: all subdirs clean distclean install uninstall diff --git a/www/deforaos-surfer/files/patch-src_download.c b/www/deforaos-surfer/files/patch-src_download.c new file mode 100644 index 000000000000..d647fb0dff0d --- /dev/null +++ b/www/deforaos-surfer/files/patch-src_download.c @@ -0,0 +1,12 @@ +--- src/download.c.orig 2022-11-15 01:17:05 UTC ++++ src/download.c +@@ -39,6 +39,9 @@ + # include + # include + # include ++# include ++# include ++# include + # include + # include + #elif defined(WITH_WEBKIT2) diff --git a/www/deforaos-surfer/files/patch-src_ghtml-webkit.c b/www/deforaos-surfer/files/patch-src_ghtml-webkit.c new file mode 100644 index 000000000000..69b9d2695a8c --- /dev/null +++ b/www/deforaos-surfer/files/patch-src_ghtml-webkit.c @@ -0,0 +1,21 @@ +--- src/ghtml-webkit.c.orig 2022-11-15 01:17:05 UTC ++++ src/ghtml-webkit.c +@@ -22,6 +22,9 @@ + #include + #include + #include ++#include ++#include ++#include + #include + #include + #include +@@ -207,7 +210,7 @@ static void _new_init(GHtml * ghtml) + { + "/etc/pki/tls/certs/ca-bundle.crt", + "/etc/ssl/certs/ca-certificates.crt", +- "/etc/openssl/certs/ca-certificates.crt", ++ "/etc/ssl/cert.pem", + PREFIX "/etc/ssl/certs/ca-certificates.crt", + PREFIX "/etc/openssl/certs/ca-certificates.crt" + }; diff --git a/www/deforaos-surfer/files/patch-tools_Makefile b/www/deforaos-surfer/files/patch-tools_Makefile new file mode 100644 index 000000000000..6accaa92ee26 --- /dev/null +++ b/www/deforaos-surfer/files/patch-tools_Makefile @@ -0,0 +1,17 @@ +--- tools/Makefile.orig 2023-11-22 23:50:08 UTC ++++ tools/Makefile +@@ -6,11 +6,11 @@ CC = cc + BINDIR = $(PREFIX)/bin + SBINDIR = $(PREFIX)/sbin + CC = cc +-CPPFLAGSF= -I ../src ++CPPFLAGSF= -D WITH_WEBKIT2 -I ../src + CPPFLAGS= +-CFLAGSF = `pkg-config --cflags libDesktop` ++CFLAGSF = `pkg-config --cflags libDesktop gtk+-x11-3.0 webkit2gtk-4.0` + CFLAGS = -W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector +-LDFLAGSF= `pkg-config --libs libDesktop` ++LDFLAGSF= `pkg-config --libs libDesktop gtk+-x11-3.0 webkit2gtk-4.0` -lintl + LDFLAGS = -pie -Wl,-z,relro -Wl,-z,now + EXEEXT = + RM = rm -f diff --git a/www/deforaos-surfer/pkg-descr b/www/deforaos-surfer/pkg-descr new file mode 100644 index 000000000000..0aa581d112cc --- /dev/null +++ b/www/deforaos-surfer/pkg-descr @@ -0,0 +1 @@ +DeforaOS desktop web browser diff --git a/www/deforaos-surfer/pkg-plist b/www/deforaos-surfer/pkg-plist new file mode 100644 index 000000000000..1432920e237e --- /dev/null +++ b/www/deforaos-surfer/pkg-plist @@ -0,0 +1,17 @@ +bin/helper +bin/htmlapp +bin/surfer +%%PORTDOCS%%man/man1/helper.1.gz +%%PORTDOCS%%man/man1/htmlapp.1.gz +%%PORTDOCS%%man/man1/surfer.1.gz +share/applications/org.defora.helper.desktop +share/applications/org.defora.htmlapp.desktop +share/applications/org.defora.surfer.desktop +share/icons/hicolor/16x16/apps/surfer-view-html-source.png +share/icons/hicolor/24x24/apps/surfer-view-html-source.png +share/doc/Surfer/COPYING +share/doc/Surfer/README.md +share/locale/de/LC_MESSAGES/Surfer.mo +share/locale/es/LC_MESSAGES/Surfer.mo +share/locale/fr/LC_MESSAGES/Surfer.mo +share/locale/it/LC_MESSAGES/Surfer.mo