head	1.9;
access;
symbols
	pkgsrc-2026Q1:1.9.0.2
	pkgsrc-2026Q1-base:1.9
	pkgsrc-2025Q4:1.8.0.6
	pkgsrc-2025Q4-base:1.8
	pkgsrc-2025Q3:1.8.0.4
	pkgsrc-2025Q3-base:1.8
	pkgsrc-2025Q2:1.8.0.2
	pkgsrc-2025Q2-base:1.8
	pkgsrc-2025Q1:1.7.0.2
	pkgsrc-2025Q1-base:1.7
	pkgsrc-2024Q4:1.5.0.2
	pkgsrc-2024Q4-base:1.5
	pkgsrc-2024Q3:1.3.0.4
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.2
	pkgsrc-2024Q2-base:1.3;
locks; strict;
comment	@# @;


1.9
date	2026.01.08.14.17.48;	author taca;	state Exp;
branches;
next	1.8;
commitid	qwDbt1vPaQtr3BpG;

1.8
date	2025.06.09.16.30.32;	author taca;	state Exp;
branches;
next	1.7;
commitid	93R6fTWYQEmyDeYF;

1.7
date	2025.02.22.17.35.32;	author taca;	state Exp;
branches;
next	1.6;
commitid	JnEDhgRUTmW4ruKF;

1.6
date	2025.02.08.03.44.47;	author taca;	state Exp;
branches;
next	1.5;
commitid	ZjrQrd9xGzKZhCIF;

1.5
date	2024.11.11.15.43.38;	author wiz;	state Exp;
branches;
next	1.4;
commitid	cWUxF6mi4cdY7fxF;

1.4
date	2024.11.11.15.39.56;	author taca;	state Exp;
branches;
next	1.3;
commitid	Qu1ZqXf510FH6fxF;

1.3
date	2024.06.04.04.18.18;	author taca;	state Exp;
branches;
next	1.2;
commitid	pQZXia5GlUGttCcF;

1.2
date	2024.06.04.01.05.07;	author taca;	state Exp;
branches;
next	1.1;
commitid	NKZnCrAbbqgdpBcF;

1.1
date	2024.06.03.15.12.19;	author taca;	state Exp;
branches;
next	;
commitid	15h2eCm4s7h38ycF;


desc
@@


1.9
log
@Remove reference to php81.
@
text
@# $NetBSD: Makefile,v 1.8 2025/06/09 16:30:32 taca Exp $

DISTNAME=	dmarc-srg-${GITHUB_RELEASE}
PKGNAME=	${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_GITHUB:=liuch/}
GITHUB_PROJECT=	dmarc-srg
GITHUB_TYPE=	tag
GITHUB_TAG=	v${GITHUB_RELEASE}
GITHUB_RELEASE=	2.3

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/liuch/dmarc-srg
COMMENT=	Viewer and summary report generator for DMARC reports
LICENSE=	gnu-gpl-v3

DEPENDS+=	${PHP_PKG_PREFIX}-pdo_mysql>=${PHP_BASE_VERS}:../../databases/php-pdo_mysql
DEPENDS+=	${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring
DEPENDS+=	${PHP_PKG_PREFIX}-zip>=${PHP_BASE_VERS}:../../archivers/php-zip

PHP_VERSIONS_ACCEPTED=	82 83 84

USE_LANGUAGES=	# none
USE_TOOLS+=	pax
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${DISTNAME}
BUILD_DEFS+=	APACHE_GROUP

WEBBASE=	dmarc-srg
WEBDIR=		share/${PHP_PKG_PREFIX}/${WEBBASE}
EGDIR=		share/examples/${PHP_PKG_PREFIX}/${WEBBASE}

INSTALLATION_DIRS+=	${WEBDIR}/config ${EGDIR}
OWN_DIRS_PERMS+=	${WEBDIR}/config ${REAL_ROOT_USER} ${APACHE_GROUP} 0750
CONF_FILES+=		${EGDIR}/conf.php ${WEBDIR}/config/conf.php
CONF_FILES+=		${EGDIR}/vendor_config.php \
			${WEBDIR}/config/vendor_config.php
PLIST_SUBST+=		EGDIR=${EGDIR} WEBDIR=${WEBDIR}
PRINT_PLIST_AWK+=	/^${EGDIR:S|/|\\/|g}/ \
			{ gsub(/${EGDIR:S|/|\\/|g}/, "$${EGDIR}") }
PRINT_PLIST_AWK+=	/^${WEBDIR:S|/|\\/|g}/ \
			{ gsub(/${WEBDIR:S|/|\\/|g}/, "$${WEBDIR}") }

pre-configure:
	${MV} ${WRKSRC}/config/conf.sample.php ${WRKDIR}/conf.php
	${MV} ${WRKSRC}/config/vendor_config.php ${WRKDIR}

do-install:
	cd ${WRKSRC} && ${FIND} . -type f \! -name '*.orig' -print | \
		pax -rw ${DESTDIR}${PREFIX}/${WEBDIR}
	${INSTALL_DATA} ${WRKDIR}/conf.php ${WRKDIR}/vendor_config.php \
		${DESTDIR}${PREFIX}/${EGDIR}

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
@


1.8
log
@mail/php-dmarc-srg: update to 2.3

2.3 (2025-03-19)

What's Changed

* Added an overall section to the summary report
* Utils: implemented to the ability to specify a custom email subject line
  for summary reports
* WebUI: added host information to the report view
* Added the ability to use plugins to handle host information requests in
  the report view
* Added the ability to delete domains with reports
* WebUI: added an info button to the stats block for mobile viewing
* WebUI: added robots.txt file
* Added vendor configuration file
* Empty summary reports for deactivated domains are now not generated
* WebUI: improved accessibility of main menu, dialogs, buttons and toolbars
* WebUI: improved work with PHP sessions (refactoring, security enhancement)
* WebUI: improved behavior of ui.ipv4.url and ui.ipv6.url options
* WebUI: improved error messages in the admin panel
* Improved checking for optional dependencies
* Updated README.md
* Fixed working in PHP 8.4
* Utils: fixed environment detection for some configurations
* WebUI: fixed display of long names (organizations and domains)
* WebUI: fixed display report id in mobile view
* Other minor changes and refactoring
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2025/02/22 17:35:32 taca Exp $
d21 1
a21 1
PHP_VERSIONS_ACCEPTED=	81 82 83 84
@


1.7
log
@mail/php-dmarc-srg: enable php84
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2025/02/08 03:44:47 taca Exp $
a4 1
PKGREVISION=	1
d10 1
a10 1
GITHUB_RELEASE=	2.2.1
d36 2
d45 2
a46 1
	${MV} ${WRKSRC}/config/conf.sample.php ${WRKDIR}
d51 2
a52 2
	${INSTALL_DATA} ${WRKDIR}/conf.sample.php \
		${DESTDIR}${PREFIX}/${EGDIR}/conf.php
@


1.6
log
@multiple PHP support

* Use PHP_BASE_VERS in DEPENDS if required.
* Use REPLACE_PHP.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2024/11/11 15:43:38 wiz Exp $
d22 1
a22 1
PHP_VERSIONS_ACCEPTED=	81 82 83
@


1.5
log
@php-dmarc-srg: fix HOMEPAGE
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2024/11/11 15:39:56 taca Exp $
d5 1
@


1.4
log
@mail/php-dmarc-srg: update to 2.2.1

2.2 (2024-08-27)

* WebUI: More correct filtering reports by disposition value
* WebUI: add actual fail count to the report list (#96)
* WebUI: implemented use of abbreviated form for numbers in the list of
  reports
* WebUI: added a toolbar and column management to the report list. The
  default column set was changed
* Implemented destroying user sessions if user_management is set to false
* Added ignoring unknown tags in XML report files
* Fixed undefined property usage in utils/reports_cleaner.php (#131)
* Fixed an error occuring when adding a user without the level parameter via
  utils/users_admin.php
* Improved error message when passing invalid time to Report dialog
* Updated the "Utilities" section in README.md
* Other minor changes and updates
* Some code optimization and refactoring

2.2.1 (2024-08-28)

* Fixed an error "Undefined array key" occurring when processing an
  incorrect report file (#132)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2024/06/04 04:18:18 taca Exp $
d13 1
a13 1
HOMEPAGE=	https://github.com/liuch
@


1.3
log
@mail/php-dmarc-srg: fix config file handling

Make sure to install config file to proper directory.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2024/06/04 01:05:07 taca Exp $
a4 1
PKGREVISION=	1
d10 1
a10 1
GITHUB_RELEASE=	2.1
@


1.2
log
@mail/php-dmarc-srg: fix fetch process

Set GITHUB_PROJECT explicitly required for fetch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2024/06/03 15:12:19 taca Exp $
d5 1
d35 2
a36 2
CONF_FILES_PERMS+=	${EGDIR}/conf.php ${WEBDIR}/config/conf.php \
			${BINOWN} ${APACHE_GROUP} 0640
@


1.1
log
@mail/php-dmarc-srg: add version 2.1 package

DmarcSrg

A php parser, viewer and summary report generator for incoming DMARC reports.

Features

* View a table of parsed reports.
* Easily identify potential DMARC related issues through colors.
* Filter report list by domain, month, reporting organization and more.
* View DKIM/SPF details for each report.
* Password protection of the web interface (can be disabled).
* Receiving and processing incoming DMARC reports from specified mailboxes.
* Receiving and processing incoming DMARC reports from specified server
  local directories.
* Uploading and processing incoming DMARC reports by using the web
  interface.
* Ability to configure deletion of old reports from the database and
  mailboxes.
* Generation of summary reports for the last week, last month or last N days
  and sending them to the specified mailbox.
* Uses AJAX calls to the backend; no external Javascript libraries are
  needed.
@
text
@d1 1
a1 1
# $NetBSD$
d7 1
@

