pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dmarcaroni-client: import



Module Name:	pkgsrc-wip
Committed By:	PHO <pho%cielonegro.org@localhost>
Pushed By:	pho
Date:		Sat Mar 8 17:49:21 2025 +0900
Changeset:	54a34b051e0454928a2ef5e98c1fc99ff26a1a5f

Modified Files:
	Makefile
Added Files:
	dmarcaroni-client/COMMIT_MSG
	dmarcaroni-client/DESCR
	dmarcaroni-client/Makefile
	dmarcaroni-client/PLIST
	dmarcaroni-client/TODO
	dmarcaroni-client/distinfo
	dmarcaroni-client/patches/patch-dist_index.html
	dmarcaroni-client/patches/patch-src_Skeleton.elm

Log Message:
dmarcaroni-client: import

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=54a34b051e0454928a2ef5e98c1fc99ff26a1a5f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                         |  1 +
 dmarcaroni-client/COMMIT_MSG                     |  6 ++++
 dmarcaroni-client/DESCR                          |  4 +++
 dmarcaroni-client/Makefile                       | 36 ++++++++++++++++++++++++
 dmarcaroni-client/PLIST                          |  6 ++++
 dmarcaroni-client/TODO                           |  4 +++
 dmarcaroni-client/distinfo                       |  7 +++++
 dmarcaroni-client/patches/patch-dist_index.html  | 15 ++++++++++
 dmarcaroni-client/patches/patch-src_Skeleton.elm | 15 ++++++++++
 9 files changed, 94 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index c61aa2c506..107420f568 100644
--- a/Makefile
+++ b/Makefile
@@ -731,6 +731,7 @@ SUBDIR+=	dlt-daemon
 SUBDIR+=	dlt-viewer
 SUBDIR+=	dma
 SUBDIR+=	dmake
+SUBDIR+=	dmarcaroni-client
 SUBDIR+=	dmarcaroni-server
 SUBDIR+=	dmd
 SUBDIR+=	dmd-bin
diff --git a/dmarcaroni-client/COMMIT_MSG b/dmarcaroni-client/COMMIT_MSG
new file mode 100644
index 0000000000..f3ac82d2d2
--- /dev/null
+++ b/dmarcaroni-client/COMMIT_MSG
@@ -0,0 +1,6 @@
+mail/dmarcaroni-client: import 0.8
+
+DMARCaroni is a free and open source software to do DMARC monitoring.
+
+After running the DMARCaroni Haskell Server, view the index.html file to
+analyze your aggregated DMARC data.
diff --git a/dmarcaroni-client/DESCR b/dmarcaroni-client/DESCR
new file mode 100644
index 0000000000..39c7797476
--- /dev/null
+++ b/dmarcaroni-client/DESCR
@@ -0,0 +1,4 @@
+DMARCaroni is a free and open source software to do DMARC monitoring.
+
+After running the DMARCaroni Haskell Server, view the index.html file to
+analyze your aggregated DMARC data.
diff --git a/dmarcaroni-client/Makefile b/dmarcaroni-client/Makefile
new file mode 100644
index 0000000000..4daf6a3aa6
--- /dev/null
+++ b/dmarcaroni-client/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+DISTNAME=	dmarcaroni-client-0.8alpha2025.02.01
+CATEGORIES=	mail
+# There are no official releases at the moment.
+SITES.${DISTNAME}.tar.gz=	-https://git.disroot.org/lnrs/dmarcaroni-client/archive/78e2cc7ab2c194f697512accd25287c6f38b399f.tar.gz
+WRKSRC=		${WRKDIR}/${PKGBASE}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://git.disroot.org/lnrs/dmarcaroni-client
+COMMENT=	Free and open source software to do DMARC monitoring
+LICENSE=	gnu-agpl-v3
+
+TOOL_DEPENDS+=	elm-[0-9]*:../../lang/elm
+
+do-build:
+	cd ${WRKSRC} && elm make src/Main.elm --output="dist/main.js"
+
+INSTALLATION_DIRS+=	share/${PKGBASE}/assets
+do-install:
+	for f in "${WRKSRC}/dist/"*; do \
+		case "$$f" in \
+			*.orig) :;; \
+			*) \
+				${INSTALL_DATA} "$$f" "${DESTDIR}${PREFIX}/share/${PKGBASE}";; \
+		esac; \
+	done
+	for f in "${WRKSRC}/assets/"*; do \
+		case "$$f" in \
+			*.orig) :;; \
+			*) \
+				${INSTALL_DATA} "$$f" "${DESTDIR}${PREFIX}/share/${PKGBASE}/assets";; \
+		esac; \
+	done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/dmarcaroni-client/PLIST b/dmarcaroni-client/PLIST
new file mode 100644
index 0000000000..65770bb084
--- /dev/null
+++ b/dmarcaroni-client/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+share/dmarcaroni-client/assets/bulma.min.css
+share/dmarcaroni-client/assets/dmarcaroni.logo.svg
+share/dmarcaroni-client/assets/dmarcaroni.logo.svg.license
+share/dmarcaroni-client/index.html
+share/dmarcaroni-client/main.js
diff --git a/dmarcaroni-client/TODO b/dmarcaroni-client/TODO
new file mode 100644
index 0000000000..1c6bab46c1
--- /dev/null
+++ b/dmarcaroni-client/TODO
@@ -0,0 +1,4 @@
+DMARCaroni appears to be at an early stage of development. There is no
+documentation on how to set it up properly. This is a web frontend that
+obviously needs to talk to wip/dmarcaroni-server, but I (pho@) couldn't
+figure out what arrangement is required for that.
diff --git a/dmarcaroni-client/distinfo b/dmarcaroni-client/distinfo
new file mode 100644
index 0000000000..38405487d3
--- /dev/null
+++ b/dmarcaroni-client/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (dmarcaroni-client-0.8alpha2025.02.01.tar.gz) = adb4f639ec51272ed66c8da2a3fe075ad9414f66a2a03eb7c010aff3f266a024
+SHA512 (dmarcaroni-client-0.8alpha2025.02.01.tar.gz) = 004e98bec2019041c069fcce6948a9d2c270c6e59f0ec29e159786c9dee4dcf6ae79ff4cd13b7388c1a93c34f0623cb608e85a14e623453ed2fa9f498b3b9f6d
+Size (dmarcaroni-client-0.8alpha2025.02.01.tar.gz) = 840062 bytes
+SHA1 (patch-dist_index.html) = 54586035a691ad5911609023d7907f94713cc9cd
+SHA1 (patch-src_Skeleton.elm) = 40dc52128344a571b37ff60c68126a1b30f31478
diff --git a/dmarcaroni-client/patches/patch-dist_index.html b/dmarcaroni-client/patches/patch-dist_index.html
new file mode 100644
index 0000000000..7f1582d540
--- /dev/null
+++ b/dmarcaroni-client/patches/patch-dist_index.html
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Assume the assets directory is at the same level. This is pkgsrc-specific.
+
+--- dist/index.html.orig	2025-03-08 08:16:43.689562933 +0000
++++ dist/index.html
+@@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-or-lat
+   <meta charset="UTF-8">
+   <meta name="viewport" content="width=device-width, initial-scale=1">
+   <title>DMARCaroni app</title>
+-  <link rel="stylesheet" href="../assets/bulma.min.css">
++  <link rel="stylesheet" href="./assets/bulma.min.css">
+   <script src="./main.js"></script>
+ </head>
+ <body>
diff --git a/dmarcaroni-client/patches/patch-src_Skeleton.elm b/dmarcaroni-client/patches/patch-src_Skeleton.elm
new file mode 100644
index 0000000000..b998856f43
--- /dev/null
+++ b/dmarcaroni-client/patches/patch-src_Skeleton.elm
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Assume the assets directory is at the same level. This is pkgsrc-specific.
+
+--- src/Skeleton.elm.orig	2025-03-08 08:17:17.920123429 +0000
++++ src/Skeleton.elm
+@@ -57,7 +57,7 @@ viewLogo =
+     , style "display"         "flex"
+     , style "align-items"     "center"
+     ]
+-    [ img [ alt "logo", src "../assets/dmarcaroni.logo.svg", width 300] [ ]
++    [ img [ alt "logo", src "./assets/dmarcaroni.logo.svg", width 300] [ ]
+     ]
+ 
+ viewFooter : Html msg


Home | Main Index | Thread Index | Old Index