From nobody Mon Apr 24 08:37:16 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 4Q4dmG0rl5z46W2D; Mon, 24 Apr 2023 08:37:18 +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 4Q4dmD2dyvz3ppr; Mon, 24 Apr 2023 08:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682325436; 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=Jba5dcU/rHz9VboU+NgS2i9s2NTw05g1Iy86eTGbdSg=; b=H31oX71YkpFquqKtkD+WPk/PmMq5LiTnCoedis3sRLujtPlA+ijn51aHS6IrvnV7zWuFHy dubbjjkxXEWTzUs0hwIsoaNybGpuvu5Yn6labdnaBP+0TTcWMvToJzCnsyed4AtV2EVTtr vzy6zIq4i+JydXEbhUFgNobsU4mPQt0l7MEdTvIKBWP20ey3VKaIilxpU3GChhim/t9JF8 6prhSmEufcpCkHTsevUSlaUkGdIKhp0xj1aRRe0O5ae8dzuFijLMrkKIueQFf52rYAf+vz H22KZKV20Of7B/+C1liTVLklpYBToPJ+txo61EIaaJ+ltLZGrmhNA1++lHWdDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682325436; 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=Jba5dcU/rHz9VboU+NgS2i9s2NTw05g1Iy86eTGbdSg=; b=NuBajmDlkQ6dbg1Cp9JBuPj/b+VNBH8aS+TvgdumAcObu4lYnuXwo3w2SP+ZL+q4wbVBde latVXMI5cQJEvM+urvRGXUG1JMdoeSVj5+g2js4NZAJojCgnsRz3Jt9qpKbdmguvBhXUh3 8l13KcWy9n5G1bN4CmBnsSCP6mmINa9yb9Mfs3IFixcwa7BsWbDZYxkubke4rHgr5K6k2A ciy5uyLQo5R/DaaMJ7mEMjxY7nZZZ8/jS+rSSWR+xX/QCE3ySz9ZOnc1J5gLKIOkWAsgMs qc05XiSysQOvXJJmGuP+fSPzxfuokwr2jpyHJ0WvLvLjX+u+aP5G8liDLqM0hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682325436; a=rsa-sha256; cv=none; b=m+p7nehDIDdYQUZ/UBFj99MSsn8awKad69gGvly5If2EfXw517ws4NNCst8SVsuTuUTdSE ylNQnsfjIFE2Pkmh3cTCjgC7ZXZv3EMzCUvDl6v3acdL6rUhHNdE0Tq6i+QTiWGBFG8JEV V7E1lEziyfLiNjxuEMTMk3YY5Z9ivbmzseOX3+FP3o4bw0vQX5rtFF3ZIo8p/okNbLCYTH 0VNcamSDWLbUrhSpjiRPQNoDQOjc60Up9O5Mz3IgRhLYjBLxsr+LE3VDohOT3J8FBXDcKm g8kwW0vnJk1CQhPPl76p7aVSMYHTbjzQI2lVvORHtkgcgkhmT4Js4ILLoE4q1g== 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 4Q4dmD1j8WzJXB; Mon, 24 Apr 2023 08:37:16 +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 33O8bGcU073807; Mon, 24 Apr 2023 08:37:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33O8bGAK073806; Mon, 24 Apr 2023 08:37:16 GMT (envelope-from git) Date: Mon, 24 Apr 2023 08:37:16 GMT Message-Id: <202304240837.33O8bGAK073806@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jimmy Olgeni Subject: git: ff57d9fddd56 - main - devel/p5-Mojo-Log-Clearable: Add new port 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: olgeni X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ff57d9fddd566f6e7666de9920f55ba6c9ebfe15 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by olgeni: URL: https://cgit.FreeBSD.org/ports/commit/?id=ff57d9fddd566f6e7666de9920f55ba6c9ebfe15 commit ff57d9fddd566f6e7666de9920f55ba6c9ebfe15 Author: Jimmy Olgeni AuthorDate: 2023-04-24 08:30:42 +0000 Commit: Jimmy Olgeni CommitDate: 2023-04-24 08:36:03 +0000 devel/p5-Mojo-Log-Clearable: Add new port Mojo::Log is a simple logger class. It holds a filehandle once it writes to a log, and changing "path" in Mojo::Log does not open a new filehandle for logging. Mojo::Log::Role::Clearable is a role that provides a "clear_handle" method and automatically calls it when "path" in Mojo::Log is modified, so the logging handle is reopened at the new path. The "clear_handle" method can also be used to reopen the logging handle after log rotation. This new Perl module is useful for anyone who wants to use Mojo::Log and also needs automatic log file rotation. WWW: https://metacpan.org/release/Mojo-Log-Clearable --- devel/Makefile | 1 + devel/p5-Mojo-Log-Clearable/Makefile | 23 +++++++++++++++++++++++ devel/p5-Mojo-Log-Clearable/distinfo | 3 +++ devel/p5-Mojo-Log-Clearable/pkg-descr | 10 ++++++++++ devel/p5-Mojo-Log-Clearable/pkg-plist | 4 ++++ 5 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 8e91bfcc9cc3..2a3641b8c1db 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2891,6 +2891,7 @@ SUBDIR += p5-Module-Versions SUBDIR += p5-Module-Versions-Report SUBDIR += p5-Mojo-Base-XS + SUBDIR += p5-Mojo-Log-Clearable SUBDIR += p5-Mojolicious-Plugin-NYTProf SUBDIR += p5-Moo SUBDIR += p5-MooX-Aliases diff --git a/devel/p5-Mojo-Log-Clearable/Makefile b/devel/p5-Mojo-Log-Clearable/Makefile new file mode 100644 index 000000000000..326f2ab0198b --- /dev/null +++ b/devel/p5-Mojo-Log-Clearable/Makefile @@ -0,0 +1,23 @@ +PORTNAME= Mojo-Log-Clearable +PORTVERSION= 1.001 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:DBOOK +PKGNAMEPREFIX= p5- + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Log rotation role for Mojo::Log +WWW= https://metacpan.org/pod/Mojo::Log::Clearable + +LICENSE= ART20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Mojolicious>9:www/p5-Mojolicious + +USES= perl5 + +NO_ARCH= yes +USE_PERL5= modbuildtiny + +.include diff --git a/devel/p5-Mojo-Log-Clearable/distinfo b/devel/p5-Mojo-Log-Clearable/distinfo new file mode 100644 index 000000000000..fa87d20516de --- /dev/null +++ b/devel/p5-Mojo-Log-Clearable/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1682323627 +SHA256 (Mojo-Log-Clearable-1.001.tar.gz) = 82e06a29d59e99ce260bfc69efb59deea795da246a638c2b439351b07b6c0a72 +SIZE (Mojo-Log-Clearable-1.001.tar.gz) = 13270 diff --git a/devel/p5-Mojo-Log-Clearable/pkg-descr b/devel/p5-Mojo-Log-Clearable/pkg-descr new file mode 100644 index 000000000000..614de73fa7f9 --- /dev/null +++ b/devel/p5-Mojo-Log-Clearable/pkg-descr @@ -0,0 +1,10 @@ +Mojo::Log is a simple logger class. It holds a filehandle once it writes to +a log, and changing "path" in Mojo::Log does not open a new filehandle for +logging. + +Mojo::Log::Role::Clearable is a role that provides a "clear_handle" method +and automatically calls it when "path" in Mojo::Log is modified, so the +logging handle is reopened at the new path. + +The "clear_handle" method can also be used to reopen the logging handle +after log rotation. diff --git a/devel/p5-Mojo-Log-Clearable/pkg-plist b/devel/p5-Mojo-Log-Clearable/pkg-plist new file mode 100644 index 000000000000..9934b5537490 --- /dev/null +++ b/devel/p5-Mojo-Log-Clearable/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_PERL%%/Mojo/Log/Clearable.pm +%%SITE_PERL%%/Mojo/Log/Role/Clearable.pm +%%PERL5_MAN3%%/Mojo::Log::Clearable.3.gz +%%PERL5_MAN3%%/Mojo::Log::Role::Clearable.3.gz