From nobody Sat Aug 19 08:56:03 2023 X-Original-To: dev-commits-ports-main@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 4RSXdw0LVlz4qS15; Sat, 19 Aug 2023 08:56:04 +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 4RSXdv6vnYz3BmT; Sat, 19 Aug 2023 08:56:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692435364; 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=oNSwocT0wSbpSGU8WWC1IMDEeVdk7OwSaHqumbnyoYg=; b=b7yV2NNmAXBAPBQE8rnFSsx0MNrdDwjfwNJ2oz+Un+J5WDkXejxWY/QRbe5h9GGChwSgZP FJuZ5hOrOcyEPVxtwTS1JRcfhVuEhVCqHbfanPrs9+ICSOJJDR/H/Pwc5GXCB8R494bbtm 4slRDfa6RK3gGfrLQYudyS709plVC8IY8HxN2AHZNtZzcjlIViVEKlyaqe4gZN0gSTgmNg UTbBEx0Xbv2Vxv5GP/CSTC3ao9DXs6iT8t6qhKVkaP8KBqBpDuYcV4XLckbdDSsvWQ0kAD uRTCm+aWElCVb2i0pXiGfsZUoF4h2jP28CN8OpADobEgTMIQgU1eUGakbxIG8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692435364; 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=oNSwocT0wSbpSGU8WWC1IMDEeVdk7OwSaHqumbnyoYg=; b=fEuOEDPM6ot+kVvE7Xm4zP7Y34BQCfK5ZZzBMv7t9B+1xYNKM5PdrJpcJNrG5wdzOzHKWz pyeB7lSXWzfVyLjnrtkHL4kcjx1Q9zSTSEirWrFpSrEsmsjqorRja6gAmLato1scCm8XqM lManTqyqE2Q2iSXYtVN11L0PUjD0shmDEonCSPXq8YMrT3KC5YkRJjGthQuV9PvhBMFjKI fJzE+uctJdhHCsRCwnOWKOUEoKRnMBAHxt6H9+DAhwhuzFukWj4sle23hDaHURUKhc3lPd fzBlbShUdGtPYy0PSGy11u3yGUlRAF5dOiCmzVlyTVOlVoviw0ZyxF8Qjc4sFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692435364; a=rsa-sha256; cv=none; b=RrvG7tUwRGf9pQ8xfvxkiehvM4hg1x3kWgWDNfKuee9oqqOZdHfPHUiYis9hEqph00wuC7 g6ayrd1eZcGiHFsWqTZsv8byzGZFxFEDFJn9grdL87ADUVm7nV8QOFWVfpTXERMPcnqXmk t4Yvz9DucEmzQlpL8/6mJI5u+RacY8WQO6X2vvzETZlICHVdf+ny3hwICeYw95dje36oIy BzclWoQxav+a1Z5TiCyj+wb++qfjiqk+ulmK66BVjoPKmJPWSmX8a7ewELMHGkJmZcxHFV 5ZVUykXBV2Mc4Y+y6yfMya/DPLTvBdQLWmDUhNMPi4feVQQYPqucmurk4dmefA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RSXdv5zfXzrnZ; Sat, 19 Aug 2023 08:56:03 +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 37J8u3Ul085219; Sat, 19 Aug 2023 08:56:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37J8u3gQ085216; Sat, 19 Aug 2023 08:56:03 GMT (envelope-from git) Date: Sat, 19 Aug 2023 08:56:03 GMT Message-Id: <202308190856.37J8u3gQ085216@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emanuel Haupt Subject: git: c97e0a5de96f - main - www/pacparser: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ehaupt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c97e0a5de96f513a7dae3810e95915e3b90461af Auto-Submitted: auto-generated The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=c97e0a5de96f513a7dae3810e95915e3b90461af commit c97e0a5de96f513a7dae3810e95915e3b90461af Author: Emanuel Haupt AuthorDate: 2023-08-19 08:55:52 +0000 Commit: Emanuel Haupt CommitDate: 2023-08-19 08:55:52 +0000 www/pacparser: Add new port Pacparser is a library to parse proxy auto-config (PAC) files. Proxy auto-config files are a vastly used proxy configuration method these days. Web browsers can use a PAC file to determine which proxy server to use or whether to go direct for a given URL. PAC files are written in JavaScript and can be programmed to return different proxy methods depending upon URL, source IP address, protocol, time of the day etc. PAC files introduce a lot of possibilities. --- www/Makefile | 3 ++- www/pacparser/Makefile | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ www/pacparser/distinfo | 3 +++ www/pacparser/pkg-descr | 7 +++++++ www/pacparser/pkg-plist | 25 +++++++++++++++++++++++ 5 files changed, 91 insertions(+), 1 deletion(-) diff --git a/www/Makefile b/www/Makefile index d2d427b33d77..3a5281422b2f 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1326,6 +1326,7 @@ SUBDIR += p5-pQuery SUBDIR += p5-webservice-validator-css-w3c SUBDIR += p5-webservice-validator-html-w3c + SUBDIR += pacparser SUBDIR += payara SUBDIR += pear-HTML_AJAX SUBDIR += pear-HTML_TagCloud @@ -1855,8 +1856,8 @@ SUBDIR += qt6-httpserver SUBDIR += qt6-webchannel SUBDIR += qt6-webengine - SUBDIR += qt6-webview SUBDIR += qt6-websockets + SUBDIR += qt6-webview SUBDIR += quark SUBDIR += qutebrowser SUBDIR += radicale diff --git a/www/pacparser/Makefile b/www/pacparser/Makefile new file mode 100644 index 000000000000..aaacfc8feaa8 --- /dev/null +++ b/www/pacparser/Makefile @@ -0,0 +1,54 @@ +PORTNAME= pacparser +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.2.20230816 +CATEGORIES= www + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Library to parse proxy auto-config (PAC) files +WWW= https://github.com/manugarg/pacparser + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/../COPYING + +BUILD_DEPENDS= bash:shells/bash + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= manugarg +GH_TAGNAME= e29c1a3 +USE_LDCONFIG= yes + +MAKE_ENV+= NO_INTERNET=\# +MAKE_JOBS_UNSAFE= yes + +WRKSRC_SUBDIR= src + +PLIST_SUB= VER=${PORTVERSION} +PORTDOCS= * + +OPTIONS_DEFINE= DOCS PYTHON +OPTIONS_DEFAULT= PYTHON + +PYTHON_BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} +PYTHON_USES= python +PYTHON_MAKE_ENV+= PYTHON=${PYTHON_CMD} + +PYTHON_ALL_TARGET= all pymod +PYTHON_INSTALL_TARGET= install install-pymod + +PYTHON_PLIST_SUB= PYBIND="" +PYTHON_PLIST_SUB_OFF= PYBIND="@comment " + +post-patch-PYTHON-on: + @${REINPLACE_CMD} \ + -e "s|version=pacparser_version()|version=\"${DISTVERSION}\"|" \ + ${WRKSRC}/pymod/setup.py + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pactester + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpacparser.so.1 + +post-install-PYTHON-on: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pacparser/_pacparser.cpython-*.so + +.include diff --git a/www/pacparser/distinfo b/www/pacparser/distinfo new file mode 100644 index 000000000000..f26af5112a95 --- /dev/null +++ b/www/pacparser/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1692258769 +SHA256 (manugarg-pacparser-v1.4.2.20230816-e29c1a3_GH0.tar.gz) = 654bac4383cfbbacaa3a42e0d460e94e35ac90d7488b4fe6538d314d16e0f61d +SIZE (manugarg-pacparser-v1.4.2.20230816-e29c1a3_GH0.tar.gz) = 904050 diff --git a/www/pacparser/pkg-descr b/www/pacparser/pkg-descr new file mode 100644 index 000000000000..e1bf2d53abc2 --- /dev/null +++ b/www/pacparser/pkg-descr @@ -0,0 +1,7 @@ +Pacparser is a library to parse proxy auto-config (PAC) files. Proxy +auto-config files are a vastly used proxy configuration method these +days. Web browsers can use a PAC file to determine which proxy server to +use or whether to go direct for a given URL. PAC files are written in +JavaScript and can be programmed to return different proxy methods +depending upon URL, source IP address, protocol, time of the day etc. +PAC files introduce a lot of possibilities. diff --git a/www/pacparser/pkg-plist b/www/pacparser/pkg-plist new file mode 100644 index 000000000000..58905f53844e --- /dev/null +++ b/www/pacparser/pkg-plist @@ -0,0 +1,25 @@ +bin/pactester +include/pacparser.h +lib/libpacparser.so +lib/libpacparser.so.1 +share/man/man1/pactester.1.gz +share/man/man3/pacparser.3.gz +share/man/man3/pacparser_cleanup.3.gz +share/man/man3/pacparser_enable_microsoft_extensions.3.gz +share/man/man3/pacparser_error_printer.3.gz +share/man/man3/pacparser_find_proxy.3.gz +share/man/man3/pacparser_init.3.gz +share/man/man3/pacparser_just_find_proxy.3.gz +share/man/man3/pacparser_parse_pac.3.gz +share/man/man3/pacparser_parse_pac_file.3.gz +share/man/man3/pacparser_parse_pac_string.3.gz +share/man/man3/pacparser_set_error_printer.3.gz +share/man/man3/pacparser_setmyip.3.gz +share/man/man3/pacparser_version.3.gz +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser-%%VER%%-py%%PYTHON_VER%%.egg-info/PKG-INFO +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser-%%VER%%-py%%PYTHON_VER%%.egg-info/SOURCES.txt +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser-%%VER%%-py%%PYTHON_VER%%.egg-info/dependency_links.txt +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser-%%VER%%-py%%PYTHON_VER%%.egg-info/top_level.txt +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser/__init__.py +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYBIND%%%%PYTHON_SITELIBDIR%%/pacparser/_pacparser%%PYTHON_EXT_SUFFIX%%.so