pkgsrc-WIP-changes archive

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

fetchmail: add a pre-release of version 7.0.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%uninett.no@localhost>
Pushed By:	he
Date:		Tue Jan 11 18:35:31 2022 +0100
Changeset:	75d797684500a9844ea732f077f6f68162f0333f

Added Files:
	fetchmail/DESCR
	fetchmail/Makefile
	fetchmail/PLIST
	fetchmail/distinfo
	fetchmail/files/fetchmail.sh

Log Message:
fetchmail: add a pre-release of version 7.0.

This isn't a "real" alpha10, but the most recent tag on the
"next" branch since alpha9, tag 9c011ca4.

For me, the major difference between this version and the version
in pkgsrc is that this one is supposed to support oauth2 authentication.

It builds, it installs, for me, on NetBSD/amd64 9.99.92.
Not much other testing done yet.

I tried for a while using wip/mk/gitlab.mk and have left in some
comments related to that, but could not make the pieces fit together
so that it tries to fetch the right file.

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

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

diffstat:
 fetchmail/DESCR              |  6 +++++
 fetchmail/Makefile           | 61 ++++++++++++++++++++++++++++++++++++++++++++
 fetchmail/PLIST              | 37 +++++++++++++++++++++++++++
 fetchmail/distinfo           |  5 ++++
 fetchmail/files/fetchmail.sh | 42 ++++++++++++++++++++++++++++++
 5 files changed, 151 insertions(+)

diffs:
diff --git a/fetchmail/DESCR b/fetchmail/DESCR
new file mode 100644
index 0000000000..1d005033ac
--- /dev/null
+++ b/fetchmail/DESCR
@@ -0,0 +1,6 @@
+Fetchmail is a full-featured IMAP/POP2/POP3/APOP/KPOP client with easy
+configuration, daemon mode, forwarding via SMTP or local MDA, superior
+reply handling. Not a mail user agent, rather a pipe-fitting that
+seamlessly forwards fetched mail to your local delivery system. Your
+one-stop solution for intermittent email connections. This is the
+lineal descendant of and replacement for the old popclient program.
diff --git a/fetchmail/Makefile b/fetchmail/Makefile
new file mode 100644
index 0000000000..ea61ca6f6f
--- /dev/null
+++ b/fetchmail/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD$
+
+DISTNAME=	fetchmail-7.0alpha10
+CATEGORIES=	mail
+MASTER_SITES=	https://gitlab.com/fetchmail/fetchmail/-/archive/9c011ca4/
+SHORT_TAG=	9c011ca4
+LONG_TAG=	9c011ca4f688acd0330c7b2635250b2f8cf29b77
+# Remnants of failed attempt at using gitlab.mk; it doesn't
+# end up trying to fetch the right file / url.
+#MASTER_SITES=	${MASTER_SITE_GITLAB:=fetchmail/}
+#GITLAB_TAG=	9c011ca4
+#GITLAB_TYPE=	tag
+EXTRACT_SUFX=	.tar.gz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://gitlab.com/fetchmail/fetchmail
+COMMENT=	Batch mail retrieval/forwarding utility for pop2, pop3, apop, imap
+LICENSE=	gnu-gpl-v1 AND gnu-gpl-v2 AND modified-bsd AND public-domain AND gnu-lgpl-v2.1
+
+USE_PKGLOCALEDIR=	yes
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--without-hesiod
+CONFIGURE_ENV+=		PYTHON=:
+LDFLAGS+=		${CFLAGS}
+USE_TOOLS+=		msgfmt tbl
+USE_TOOLS+=		autoconf automake
+AUTOCONF_REQD=  	2.69
+
+LDFLAGS.Darwin+=	-lresolv
+CFLAGS.Darwin+=		-DBIND_8_COMPAT -DHAVE_RESOLV_H
+
+TEST_TARGET=	check
+
+DOCDIR=		${PREFIX}/share/doc/fetchmail
+RCD_SCRIPTS=	fetchmail
+
+INSTALLATION_DIRS+=	${DOCDIR}
+
+post-extract:
+	${MV} ${WRKDIR}/${PKGBASE}-${SHORT_TAG}-${LONG_TAG} ${WRKSRC}
+
+pre-configure:
+	set -e -x; cd ${WRKSRC}; \
+	sh autogen.sh
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+post-build:
+	${MV} ${WRKSRC}/fetchmail.man ${WRKSRC}/fetchmail.man.tbl &&	\
+	${TBL} ${WRKSRC}/fetchmail.man.tbl > ${WRKSRC}/fetchmail.man
+
+post-install:
+.for f in NEWS OLDNEWS \
+		README README.OAUTH2 README.NTLM README.PWMD 		\
+		README.SSL README.SSL-SERVER COPYING fetchmail-FAQ.html	\
+		fetchmail-features.html design-notes.html
+	cd ${WRKSRC} &&							\
+	${INSTALL_DATA} ${f} ${DESTDIR}${DOCDIR}
+.endfor
+
+#.include "../../wip/mk/gitlab.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fetchmail/PLIST b/fetchmail/PLIST
new file mode 100644
index 0000000000..bcec1cacda
--- /dev/null
+++ b/fetchmail/PLIST
@@ -0,0 +1,37 @@
+@comment $NetBSD$
+bin/fetchmail
+bin/fetchmailconf
+man/man1/fetchmail.1
+man/man1/fetchmailconf.1
+share/doc/fetchmail/COPYING
+share/doc/fetchmail/NEWS
+share/doc/fetchmail/OLDNEWS
+share/doc/fetchmail/README
+share/doc/fetchmail/README.NTLM
+share/doc/fetchmail/README.OAUTH2
+share/doc/fetchmail/README.PWMD
+share/doc/fetchmail/README.SSL
+share/doc/fetchmail/README.SSL-SERVER
+share/doc/fetchmail/design-notes.html
+share/doc/fetchmail/fetchmail-FAQ.html
+share/doc/fetchmail/fetchmail-features.html
+share/locale/ca/LC_MESSAGES/fetchmail.mo
+share/locale/cs/LC_MESSAGES/fetchmail.mo
+share/locale/da/LC_MESSAGES/fetchmail.mo
+share/locale/de/LC_MESSAGES/fetchmail.mo
+share/locale/en_GB/LC_MESSAGES/fetchmail.mo
+share/locale/eo/LC_MESSAGES/fetchmail.mo
+share/locale/es/LC_MESSAGES/fetchmail.mo
+share/locale/fr/LC_MESSAGES/fetchmail.mo
+share/locale/id/LC_MESSAGES/fetchmail.mo
+share/locale/it/LC_MESSAGES/fetchmail.mo
+share/locale/ja/LC_MESSAGES/fetchmail.mo
+share/locale/nl/LC_MESSAGES/fetchmail.mo
+share/locale/pl/LC_MESSAGES/fetchmail.mo
+share/locale/ro/LC_MESSAGES/fetchmail.mo
+share/locale/ru/LC_MESSAGES/fetchmail.mo
+share/locale/sq/LC_MESSAGES/fetchmail.mo
+share/locale/sr/LC_MESSAGES/fetchmail.mo
+share/locale/sv/LC_MESSAGES/fetchmail.mo
+share/locale/vi/LC_MESSAGES/fetchmail.mo
+share/locale/zh_CN/LC_MESSAGES/fetchmail.mo
diff --git a/fetchmail/distinfo b/fetchmail/distinfo
new file mode 100644
index 0000000000..545745196a
--- /dev/null
+++ b/fetchmail/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (fetchmail-7.0alpha10.tar.gz) = afe8e37326c4f4b223ed131b2c3dfa447d8a927be9729b18caab83027dcb72a4
+SHA512 (fetchmail-7.0alpha10.tar.gz) = f7e55e9325489df8ef2fd72cdbbb7fa93aa3a675453f59aabf67e0190d667ebca67ddb9bc88481ac106032732a1aed238ff965bffc4923f80a162945e7979824
+Size (fetchmail-7.0alpha10.tar.gz) = 1409592 bytes
diff --git a/fetchmail/files/fetchmail.sh b/fetchmail/files/fetchmail.sh
new file mode 100755
index 0000000000..7ff5f5c250
--- /dev/null
+++ b/fetchmail/files/fetchmail.sh
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: fetchmail.sh,v 1.4 2021/11/10 19:24:52 khorben Exp $
+#
+# PROVIDE: fetchmail
+# REQUIRE: mail
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start fetchmail:
+#
+# fetchmail=YES
+
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+	$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
+fi
+
+name="fetchmail"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+extra_commands="awaken reload"
+command_args="-f - < @PKG_SYSCONFDIR@/${name}.conf"
+awaken_cmd="start_poll"
+
+start_poll () 
+{
+	DAEMON_PID=`sed 1q ${pidfile}`
+	: ${DAEMON_PID:=0}
+	@ECHO@ -n "Awakening ${name} daemon"
+	if [ ${DAEMON_PID} -ne 0 ]; then
+		kill -SIGUSR1 ${DAEMON_PID} >/dev/null 2>&1; 
+	fi
+	@ECHO@ '.'
+}
+
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+	load_rc_config $name
+	run_rc_command "$1"
+else
+	@ECHO@ -n ' ${name}'
+	${command} ${fetchmail_flags} ${command_args}
+fi


Home | Main Index | Thread Index | Old Index