From nobody Fri Apr 28 23:41:04 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 4Q7TdD3Ywlz488H4; Fri, 28 Apr 2023 23:41: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 4Q7TdD30dfz3sRG; Fri, 28 Apr 2023 23:41:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682725264; 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=/YFYI7a7Gcfb0XZmxW/oprxYjAmNG26/SWmjoXlB/uI=; b=WK7ZcBltGZQSMrFjHZKZ3chfDTIxqK5z/ZpolXmeTzhi/hsJRhLMZdKXj/TUp4gBv1P/rx EC1mOv2VhtbF/pqe2fxThyggjCJqBzCf8IVEwjlfV03hOGIlLg8AnwIv1V2XJ7tG3FS9Dr hyM73kP0uldlBucns2zMCeenqbb6wf1gj3Sy/f/oWv+Ynq5XFa/bJ+U1xYcZFTQXoE1YCV gIjOwyEKGioF6tyybfLMYofQXq3a8kQj25TXGFLLsTdaJgMMjKBjF/+jcw/DTua2kqU0UB sAvp5BTmxTS0TU3f+AaGDXmbLt2DsndsXPIKznmRN1HEo2KRwLHawDbvQ8MD8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682725264; 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=/YFYI7a7Gcfb0XZmxW/oprxYjAmNG26/SWmjoXlB/uI=; b=ieyAU7OD4RPwb37lhYtK9x/+klsgtqLCH85/jgcwXquz7RNfDHwj5AOC2PysnPkMSqGM6P FfK0+2WcD2XtUjwcW+Sy7oDcc2RPzM0kRgsMjdteotH4OtkfFt4ErOXHMGri+OvQQvCBBM cdE+jjZKreW0UqtcDGlmwHoLp6EV8WSsqwvDwoHrIgicCgzjgQU5MUM0eEQNPMRLkGUb4w 4f/1URIP3RFaNfXXA5FTitnKdY2Tprh0coxC1AkLTO7UWJlp5+WOqyCFy2g94qqOixMVDv IkJeYZ/sFlirZZmGTgLMsuPrqNgH+ZBFUe0HXsP7nx9E0I8r0XDK/Bv58pTAjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682725264; a=rsa-sha256; cv=none; b=l4uaezVKGFly39SaXJ7BJlHGMeaEVRDvujckDehuNOEJP/N0q79OBCj8cDqY97iDVazrRH ck5jkRZyQKEYWQFAoqn9rXP7x8lc3m3/trg+xUaiSN9cIQLko5gK6uwvC3ssauU44nyiGS HuWjQCM34LFIHnVeNFUnqSgC2uifA8bYrtAcKgtBu+HOmaMYbs0LcXO7XfU6l/N8D5VeMG /XRn8ntMrFgwAwDRBn8zy/BH0dqai4iGw14TL/EeXmhuAJunJ7hfagjZIcEbjROEIRiM6x xy5hMZcwevRE2rml1Uir8jxVuiTqACLouPTq4yKfK2JxmaeFB15cE9ozwFjBkQ== 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 4Q7TdD24LWzKBX; Fri, 28 Apr 2023 23:41:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33SNf4NT083326; Fri, 28 Apr 2023 23:41:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33SNf4Sg083325; Fri, 28 Apr 2023 23:41:04 GMT (envelope-from git) Date: Fri, 28 Apr 2023 23:41:04 GMT Message-Id: <202304282341.33SNf4Sg083325@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthew Seaman Subject: git: c73027b88862 - main - irc/py-sopel: 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: matthew X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c73027b88862fb51a350382b751173e9f63adc8e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by matthew: URL: https://cgit.FreeBSD.org/ports/commit/?id=c73027b88862fb51a350382b751173e9f63adc8e commit c73027b88862fb51a350382b751173e9f63adc8e Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2023-04-28 23:35:13 +0000 Commit: Matthew Seaman CommitDate: 2023-04-28 23:40:54 +0000 irc/py-sopel: New port Sopel is a simple, lightweight, open source, easy-to-use IRC Utility bot, written in Python. It's designed to be easy to use, run and extend. PR: 265807 Approved by: Jesús Daniel Colmenares Oviedo (maintainer) --- GIDs | 2 +- UIDs | 2 +- irc/Makefile | 1 + irc/py-sopel/Makefile | 50 ++++++++++ irc/py-sopel/distinfo | 3 + irc/py-sopel/files/patch-requirements.txt | 37 ++++++++ irc/py-sopel/files/pkg-message.in | 45 +++++++++ irc/py-sopel/files/sopel-default.cfg | 21 +++++ irc/py-sopel/files/sopel.in | 147 ++++++++++++++++++++++++++++++ irc/py-sopel/pkg-descr | 3 + irc/py-sopel/pkg-plist | 6 ++ 11 files changed, 315 insertions(+), 2 deletions(-) diff --git a/GIDs b/GIDs index 69267ee6f06d..e4b3e48d2200 100644 --- a/GIDs +++ b/GIDs @@ -698,7 +698,7 @@ c-lightning:*:735: # free: 754 # free: 755 # free: 756 -# free: 757 +sopel:*:757: # free: 758 # free: 759 # free: 760 diff --git a/UIDs b/UIDs index 6dcd18e18374..64639340d400 100644 --- a/UIDs +++ b/UIDs @@ -703,7 +703,7 @@ c-lightning:*:735:735::0:0:c-lightning Daemon:/var/db/c-lightning:/usr/sbin/nolo # free: 754 # free: 755 # free: 756 -# free: 757 +sopel:*:757:757::0:0:Sopel IRC Bot:/var/db/sopel:/usr/sbin/nologin # free: 758 # free: 759 # free: 760 diff --git a/irc/Makefile b/irc/Makefile index 96863d22a486..cb72ea758c88 100644 --- a/irc/Makefile +++ b/irc/Makefile @@ -84,6 +84,7 @@ SUBDIR += pounce SUBDIR += py-irc SUBDIR += py-limnoria + SUBDIR += py-sopel SUBDIR += quassel SUBDIR += quassel-core SUBDIR += quirc diff --git a/irc/py-sopel/Makefile b/irc/py-sopel/Makefile new file mode 100644 index 000000000000..a083e5d21d19 --- /dev/null +++ b/irc/py-sopel/Makefile @@ -0,0 +1,50 @@ +PORTNAME= sopel +DISTVERSION= 7.1.9 +CATEGORIES= irc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Easy-to-use and highly extensible IRC Bot framework +WWW= https://sopel.chat/ + +LICENSE= EFLv2 +LICENSE_GROUPS= FSF GPL OSI +LICENSE_NAME= Eiffel Forum License, version 2 +LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}GeoIP2>0:net/py-GeoIP2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}praw>0:www/py-praw@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlalchemy13>0:databases/py-sqlalchemy13@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xmltodict>=0.12:devel/py-xmltodict@${PY_FLAVOR} + +USES= python:3.8+ +USE_PYTHON= autoplist distutils + +USE_RC_SUBR= sopel +SUB_FILES+= pkg-message +SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} + +USERS= sopel +GROUPS= sopel + +PLIST_SUB= GROUP="${GROUPS:[0]}" \ + USER="${USERS:[0]}" + +post-install: + @${MKDIR} ${STAGEDIR}/${ETCDIR} + @${CP} ${FILESDIR}/sopel-default.cfg ${STAGEDIR}/${ETCDIR}/sopel-default.cfg.sample +.for dir in run log db + @${MKDIR} ${STAGEDIR}/var/${dir}/sopel +.endfor + @${MKDIR} ${STAGEDIR}/var/db/sopel/www + +.include diff --git a/irc/py-sopel/distinfo b/irc/py-sopel/distinfo new file mode 100644 index 000000000000..384a7f61a75c --- /dev/null +++ b/irc/py-sopel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660249423 +SHA256 (sopel-7.1.9.tar.gz) = 209fa8bcb42febf514d687a9994423cda5811b745d777c6fba2ec58caf3952bb +SIZE (sopel-7.1.9.tar.gz) = 263438 diff --git a/irc/py-sopel/files/patch-requirements.txt b/irc/py-sopel/files/patch-requirements.txt new file mode 100644 index 000000000000..b04c63825266 --- /dev/null +++ b/irc/py-sopel/files/patch-requirements.txt @@ -0,0 +1,37 @@ +--- requirements.txt.orig 2023-02-26 10:45:58 UTC ++++ requirements.txt +@@ -1,27 +1,8 @@ +-xmltodict<0.12.0; python_version == '3.3' +-xmltodict==0.12; python_version != '3.3' ++xmltodict + pytz +-praw>=4.0.0,<6.0.0 +-# transitive dependency of praw; v0.18 introduced f-string syntax +-update-checker<0.18; python_version < '3.6' +-geoip2<3.0; python_version <= '3.5' and python_version != '2.7' +-geoip2>=3.0,<4.0; python_version == '2.7' +-geoip2>=4.0,<5.0; python_version >= '3.6' +-# transitive dependency of geoip2; v2 dropped py2.7 & py3 < 3.6 +-maxminddb<2.0; python_version < '3.6' +-ipaddress<2.0; python_version < '3.3' +-requests>=2.24.0,<3.0.0; python_version != '3.3' and python_version != '3.4' +-# py3.3 doesn't work with the chardet/charset-normalizer detection added in 2.26 +-requests>=2.24.0,<2.26; python_version == '3.3' +-# py3.4 isn't supported after requests 2.21 +-requests==2.21.0; python_version == '3.4' +-# transitive dependency of requests +-# 2.0 will drop EOL Python 2.7 & 3.5, just like Sopel 8 plans to +-urllib3<1.27; python_version != '3.3' and python_version != '3.4' +-urllib3<1.23; python_version == '3.3' +-urllib3<1.25; python_version == '3.4' +-dnspython<2.0; python_version == '2.7' +-dnspython<1.16.0; python_version == '3.3' +-dnspython<3.0; python_version >= '3.4' +-sqlalchemy<1.3; python_version == '3.3' +-sqlalchemy<1.4; python_version != '3.3' ++praw ++geoip2 ++requests ++urllib3 ++dnspython ++sqlalchemy diff --git a/irc/py-sopel/files/pkg-message.in b/irc/py-sopel/files/pkg-message.in new file mode 100644 index 000000000000..119c74c283a3 --- /dev/null +++ b/irc/py-sopel/files/pkg-message.in @@ -0,0 +1,45 @@ +[ +{ + type: install + message: <