From b71add28ab49b0dea763924a0bc0df0686d9e1a0 Mon Sep 17 00:00:00 2001
From: "C. McEnroe" <june@causal.agency>
Date: Fri, 18 Dec 2020 23:16:18 +0000
Subject: Add notemap port

---
 Makefile               |  1 +
 mail/notemap/Makefile  | 29 +++++++++++++++++++++++++++++
 mail/notemap/distinfo  |  3 +++
 mail/notemap/pkg-descr |  4 ++++
 4 files changed, 37 insertions(+)
 create mode 100644 mail/notemap/Makefile
 create mode 100644 mail/notemap/distinfo
 create mode 100644 mail/notemap/pkg-descr

diff --git a/Makefile b/Makefile
index 22a1b03..b80e429 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ PORTS += irc/pounce
 PORTS += irc/pounce-palaver
 PORTS += irc/scooper
 PORTS += mail/imbox
+PORTS += mail/notemap
 PORTS += security/libretls
 PORTS += sysutils/catsit
 
diff --git a/mail/notemap/Makefile b/mail/notemap/Makefile
new file mode 100644
index 0000000..d5d9dd0
--- /dev/null
+++ b/mail/notemap/Makefile
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME=	notemap
+DISTVERSION=	1.3
+CATEGORIES=	mail
+MASTER_SITES=	https://git.causal.agency/notemap/snapshot/
+
+MAINTAINER=	june@causal.agency
+COMMENT=	mirror notes to IMAP
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libtls.so:security/libretls
+
+USES=	pkgconfig
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${MANPREFIX}/man
+
+PLIST_FILES=	bin/git-notemap \
+		bin/notemap \
+		man/man1/git-notemap.1.gz \
+		man/man1/notemap.1.gz
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notemap
+
+.include <bsd.port.mk>
diff --git a/mail/notemap/distinfo b/mail/notemap/distinfo
new file mode 100644
index 0000000..135e1c3
--- /dev/null
+++ b/mail/notemap/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1608333183
+SHA256 (notemap-1.3.tar.gz) = 76f9f44963546d443420f03159d6bebfd4d661a67dd8e4e59ccde5d23f51c68d
+SIZE (notemap-1.3.tar.gz) = 22773
diff --git a/mail/notemap/pkg-descr b/mail/notemap/pkg-descr
new file mode 100644
index 0000000..67622a8
--- /dev/null
+++ b/mail/notemap/pkg-descr
@@ -0,0 +1,4 @@
+notemap mirrors text files to an IMAP mailbox in a format compatible
+with the iOS Notes app.
+
+WWW: https://git.causal.agency/notemap/
-- 
cgit 1.4.1