* [gentoo-commits] repo/gentoo:master commit in: net-mail/mlmmj/files/, net-mail/mlmmj/
@ 2016-05-04 21:01 Robin H. Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Robin H. Johnson @ 2016-05-04 21:01 UTC (permalink / raw
To: gentoo-commits
commit: d2372cf9d36b2fa25084009b20b3459317517e4b
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed May 4 21:00:57 2016 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed May 4 21:01:11 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2372cf9
net-mail/mlmmj: include customheaders in list control emails.
Package-Manager: portage-2.2.28
| 30 +++++++++++++++
net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild | 44 ++++++++++++++++++++++
2 files changed, 74 insertions(+)
--git a/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch
new file mode 100644
index 0000000..c5ee9b3
--- /dev/null
+++ b/net-mail/mlmmj/files/mlmmj-1.2.19.0-listcontrol-customheaders.patch
@@ -0,0 +1,30 @@
+List control emails do not include customheaders, and can lead to RBL issues
+for forged senders.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar --exclude '*~' mlmmj-1.2.19.0.orig/src/mlmmj-process.c mlmmj-1.2.19.0/src/mlmmj-process.c
+--- mlmmj-1.2.19.0.orig/src/mlmmj-process.c 2014-03-23 17:57:24.000000000 -0700
++++ mlmmj-1.2.19.0/src/mlmmj-process.c 2016-05-04 13:50:26.034174788 -0700
+@@ -702,8 +702,19 @@
+ "output mail file");
+ exit(EXIT_FAILURE);
+ }
+- if(do_all_the_voodoo_here(rawmailfd, donemailfd, -1,
+- -1, delheaders,
++ /* hdrfd is checked in do_all_the_voodoo_here(), because the
++ * customheaders file might not exist */
++ headerfilename = concatstr(2, listdir, "/control/customheaders");
++ hdrfd = open(headerfilename, O_RDONLY);
++ myfree(headerfilename);
++
++ /* footfd is checked in do_all_the_voodoo_here(), see above */
++ footerfilename = concatstr(2, listdir, "/control/footer");
++ footfd = open(footerfilename, O_RDONLY);
++ myfree(footerfilename);
++
++ if(do_all_the_voodoo_here(rawmailfd, donemailfd, hdrfd,
++ footfd, delheaders,
+ NULL, &allheaders, NULL) < 0) {
+ log_error(LOG_ARGS, "do_all_the_voodoo_here");
+ exit(EXIT_FAILURE);
diff --git a/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild
new file mode 100644
index 0000000..b4a9d2d
--- /dev/null
+++ b/net-mail/mlmmj/mlmmj-1.2.19.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+MY_PV="${PV/_rc/-RC}"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="Mailing list managing made joyful"
+HOMEPAGE="http://mlmmj.org/"
+SRC_URI="http://mlmmj.org/releases/${MY_P}.tar.bz2"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+DEPEND="virtual/mta"
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
+PATCHES=(
+ "${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch
+)
+
+src_configure() {
+ econf --enable-receive-strip
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/mlmmj/texts
+ doins listtexts/*
+
+ insinto /usr/share/mlmmj
+ doins -r contrib/web/*
+}
+
+pkg_postinst() {
+ elog "mlmmj comes with serveral webinterfaces:"
+ elog "- One for user subscribing/unsubscribing"
+ elog "- One for admin tasks"
+ elog "both available in a php and perl module."
+ elog "For more info have a look in /usr/share/mlmmj"
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-mail/mlmmj/files/, net-mail/mlmmj/
@ 2020-01-30 19:49 Sergei Trofimovich
0 siblings, 0 replies; 3+ messages in thread
From: Sergei Trofimovich @ 2020-01-30 19:49 UTC (permalink / raw
To: gentoo-commits
commit: a1c0385dd3e7a463ababe24f39d96dffd1f6ac28
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 30 19:49:12 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Jan 30 19:49:34 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1c0385d
net-mail/mlmmj: tweak for gcc-10, bug #
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/707476
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch | 20 ++++++++++++++++++++
net-mail/mlmmj/mlmmj-1.3.0.ebuild | 3 ++-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch b/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch
new file mode 100644
index 00000000000..83217241e1d
--- /dev/null
+++ b/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch
@@ -0,0 +1,20 @@
+--- a/include/mlmmj.h
++++ b/include/mlmmj.h
+@@ -81,7 +81,7 @@ enum subtype {
+ SUB_NONE /* For when an address is not subscribed at all */
+ };
+
+-char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
++extern char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
+
+ enum subreason {
+ SUB_REQUEST,
+@@ -92,7 +92,7 @@ enum subreason {
+ SUB_SWITCH
+ };
+
+-char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
++extern char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
+
+ void print_version(const char *prg);
+
diff --git a/net-mail/mlmmj/mlmmj-1.3.0.ebuild b/net-mail/mlmmj/mlmmj-1.3.0.ebuild
index 66a6bc8a1e1..c955caee300 100644
--- a/net-mail/mlmmj/mlmmj-1.3.0.ebuild
+++ b/net-mail/mlmmj/mlmmj-1.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -18,6 +18,7 @@ S="${WORKDIR}/${MY_P}"
DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
PATCHES=(
"${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch
+ "${FILESDIR}"/mlmmj-1.3.0-gcc-10.patch
)
src_configure() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-mail/mlmmj/files/, net-mail/mlmmj/
@ 2024-10-25 6:52 Yixun Lan
0 siblings, 0 replies; 3+ messages in thread
From: Yixun Lan @ 2024-10-25 6:52 UTC (permalink / raw
To: gentoo-commits
commit: 1809dc319f7ea33e6fab16b2c6c3bad88b1e34e2
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Aug 28 16:11:48 2024 +0000
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Oct 25 06:52:25 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1809dc31
net-mail/mlmmj: add 1.4.7
Closes: https://bugs.gentoo.org/923563
Closes: https://github.com/gentoo/gentoo/pull/38895
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
net-mail/mlmmj/Manifest | 1 +
net-mail/mlmmj/files/mlmmj-1.4.7-cflags.patch | 13 +++++
net-mail/mlmmj/metadata.xml | 9 +++-
net-mail/mlmmj/mlmmj-1.4.7.ebuild | 70 +++++++++++++++++++++++++++
4 files changed, 92 insertions(+), 1 deletion(-)
diff --git a/net-mail/mlmmj/Manifest b/net-mail/mlmmj/Manifest
index 486b67f60733..672cdadb2bdc 100644
--- a/net-mail/mlmmj/Manifest
+++ b/net-mail/mlmmj/Manifest
@@ -1 +1,2 @@
DIST mlmmj-1.3.0.tar.bz2 292519 BLAKE2B abaf5c7ad53034d2201a2d3ba6d7f99ca83f47ec83df59e12a90a7118fbbde941d5ed2d14864a4af1568f67e74ea082fbc70fc9e44390673b76377bb3679c817 SHA512 c704d89f8a96c0ffc751a744ffdefb5e4304ab74be89292f06ce0c337b8ff1cc5a91737c8b1bd96fe3e993338986fa42bf360cfefc508e1eac74ab88ffda2494
+DIST mlmmj-1.4.7.tar.xz 308224 BLAKE2B edf9caa10643374a02dfea633348ab8da1af33961f5d1496615863aec1c4d1b8366b88ac30f34a4fa704bf719e07357a78e6bf4eb95ab793b5c37f66d2ab20c1 SHA512 db26c5135469bc826d148175bf7f9abc6336a8fb09b0628734d2b50747781c418ec51e4dae5ffd2c4a5b8c62a45fcfb80ddb0fd5539146925852db6fb56d9bfb
diff --git a/net-mail/mlmmj/files/mlmmj-1.4.7-cflags.patch b/net-mail/mlmmj/files/mlmmj-1.4.7-cflags.patch
new file mode 100644
index 000000000000..f48c3d31287d
--- /dev/null
+++ b/net-mail/mlmmj/files/mlmmj-1.4.7-cflags.patch
@@ -0,0 +1,13 @@
+Don't add "-g" by default.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -95,7 +95,7 @@ AM_CONDITIONAL([WANT_TESTS], [test x"$enable_tests" = xyes])
+ AM_CPPFLAGS="-I\$(top_srcdir)/include -DDEFAULTTEXTDIR='\"\$(textlibdir)\"'"
+ AC_SUBST(AM_CPPFLAGS)
+
+-AM_CFLAGS="-g -Wall -std=gnu99 -D_GNU_SOURCE=1 -Wextra -pedantic -Wsign-compare $COVERAGE_CFLAGS $ASAN_CFLAGS $UBSAN_CFLAGS"
++AM_CFLAGS="-Wall -std=gnu99 -D_GNU_SOURCE=1 -Wextra -pedantic -Wsign-compare $COVERAGE_CFLAGS $ASAN_CFLAGS $UBSAN_CFLAGS"
+ AC_SUBST(AM_CFLAGS)
+
+ AM_LDFLAGS="$COVERAGE_LDFLAGS $ASAN_LDFLAGS $UBSAN_LDFLAGS"
diff --git a/net-mail/mlmmj/metadata.xml b/net-mail/mlmmj/metadata.xml
index 85e4ed814fa2..c15483f7493d 100644
--- a/net-mail/mlmmj/metadata.xml
+++ b/net-mail/mlmmj/metadata.xml
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="codeberg">mlmmj/mlmmj</remote-id>
+ <maintainer>
+ <name>Baptiste Daroussin</name>
+ <email>bapt@nours.eu</email>
+ </maintainer>
+ </upstream>
</pkgmetadata>
diff --git a/net-mail/mlmmj/mlmmj-1.4.7.ebuild b/net-mail/mlmmj/mlmmj-1.4.7.ebuild
new file mode 100644
index 000000000000..5d7e8b38635c
--- /dev/null
+++ b/net-mail/mlmmj/mlmmj-1.4.7.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Mailing list managing made joyful"
+HOMEPAGE="https://codeberg.org/mlmmj/mlmmj"
+SRC_URI="https://codeberg.org/${PN}/${PN}/releases/download/RELEASE_$(ver_rs 1- _)/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="virtual/libiconv"
+DEPEND="
+ ${COMMON_DEPEND}
+ test? (
+ dev-libs/atf
+ dev-util/kyua
+ )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ virtual/mta
+"
+BDEPEND="test? ( virtual/pkgconfig )"
+
+DOCS=( AUTHORS ChangeLog FAQ TODO TUNABLES.md UPGRADE )
+
+PATCHES=(
+ "${FILESDIR}"/mlmmj-1.4.7-cflags.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+
+ # bug #259962
+ sed -i contrib/web/perl-admin/htdocs/subscribers.cgi \
+ -e "s:/usr/local/bin/:${EPREFIX}/usr/bin/:g" || die
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable test tests)
+ --enable-receive-strip
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ insinto /usr/share/mlmmj
+ doins -r contrib/web/*
+
+ dodoc README.*
+}
+
+pkg_postinst() {
+ elog "mlmmj comes with serveral webinterfaces:"
+ elog "- One for user subscribing/unsubscribing"
+ elog "- One for admin tasks"
+ elog "both available in a php and perl module."
+ elog "For more info have a look in ${EROOT}/usr/share/mlmmj"
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-25 6:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-30 19:49 [gentoo-commits] repo/gentoo:master commit in: net-mail/mlmmj/files/, net-mail/mlmmj/ Sergei Trofimovich
-- strict thread matches above, loose matches on Subject: below --
2024-10-25 6:52 Yixun Lan
2016-05-04 21:01 Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox