Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Andraž Levstik (0dc08229e6fb4f78a78290e2cf3c62ab6aa16151)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andraž Levstik <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Andraž Levstik (0dc08229e6fb4f78a78290e2cf3c62ab6aa16151)
  • Date: Sun, 26 Oct 2008 12:37:14 -0500

GIT changes to master grimoire by Andraž Levstik <ruskie AT codemages.net>:

ChangeLog | 3 +
mail/metamail/BUILD | 2 +
mail/metamail/DEPENDS | 3 +
mail/metamail/DETAILS | 20 ++++++++++
mail/metamail/HISTORY | 4 ++
mail/metamail/INSTALL | 2 +
mail/metamail/PRE_BUILD | 10 +++++
mail/metamail/metamail-2.7.45.3-CVE-2006-0709.patch | 40
++++++++++++++++++++
8 files changed, 84 insertions(+)

New commits:
commit 0dc08229e6fb4f78a78290e2cf3c62ab6aa16151
Author: Andraž Levstik <ruskie AT codemages.net>
Commit: Andraž Levstik <ruskie AT codemages.net>

mail/metamail: new spell

diff --git a/ChangeLog b/ChangeLog
index ffb622c..3bb19f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-10-26 Andraž "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * mail/metamail: added a new spell, mime mail tools
+
2008-10-26 Treeve Jelbert <treeve AT sourcemage.org>
* kde4-apps/kid3-kde4: new spell, kde4 only bersion of kid3

diff --git a/mail/metamail/BUILD b/mail/metamail/BUILD
new file mode 100755
index 0000000..aea51ce
--- /dev/null
+++ b/mail/metamail/BUILD
@@ -0,0 +1,2 @@
+cd $SOURCE_DIRECTORY/src &&
+default_build
diff --git a/mail/metamail/DEPENDS b/mail/metamail/DEPENDS
new file mode 100755
index 0000000..48597cd
--- /dev/null
+++ b/mail/metamail/DEPENDS
@@ -0,0 +1,3 @@
+depends automake &&
+depends libtool &&
+depends autoconf
diff --git a/mail/metamail/DETAILS b/mail/metamail/DETAILS
new file mode 100755
index 0000000..768e6c3
--- /dev/null
+++ b/mail/metamail/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=metamail
+ VERSION=2.7
+ PKG=mm
+ SOURCE=${PKG}$VERSION.tar.Z
+ SOURCE2=${SPELL}_$VERSION-54.diff.gz
+# the official url doesn't work with wget
+ SOURCE_URL[0]=http://ftp.funet.fi/pub/unix/mail/${SPELL}/${SOURCE}
+
SOURCE_HASH=sha512:9cd2619ca83594ca7be94453270b6a9ef01f5a496fd361bb76f16fc575f549ab450efa1d480c3d4b0b172f245d9c3276f99ba1ae4e3ae4bb6618df9d8131f77e
+
SOURCE2_HASH=sha512:34ed2c39ac43fad62fadfaf74fbe2a7dadd46d10841b887e2222aa21ee70ca92c38e2a3292c1add35c6695432a3661af7a40e29be01f48a779216889c18a5f08
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${PKG}$VERSION"
+ SOURCE2_URL=http://ftp.de.debian.org/debian/pool/main/m/$SPELL/$SOURCE2
+ WEB_SITE="ftp://ftp.research.telcordia.com/pub/nsb/";
+ LICENSE[0]=MIT
+ ENTERED=20081025
+ SHORT="A MIME implementation."
+cat << EOF
+Metamail is an implementation of MIME (the Multipurpose Internet Mail
+Extensions) and can be used to provide MIME support for non-MIME-aware
+mail clients.
+EOF
diff --git a/mail/metamail/HISTORY b/mail/metamail/HISTORY
new file mode 100644
index 0000000..1aa6662
--- /dev/null
+++ b/mail/metamail/HISTORY
@@ -0,0 +1,4 @@
+2008-10-25 Andraž "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
+ * metamail-2.7.45.3-CVE-2006-0709.patch: added patch
+ * PRE_BUILD: added for all patches
diff --git a/mail/metamail/INSTALL b/mail/metamail/INSTALL
new file mode 100755
index 0000000..236239d
--- /dev/null
+++ b/mail/metamail/INSTALL
@@ -0,0 +1,2 @@
+cd $SOURCE_DIRECTORY/src &&
+default_install
diff --git a/mail/metamail/PRE_BUILD b/mail/metamail/PRE_BUILD
new file mode 100755
index 0000000..10fa3a5
--- /dev/null
+++ b/mail/metamail/PRE_BUILD
@@ -0,0 +1,10 @@
+default_pre_build &&
+verify_file 2 &&
+cd $SOURCE_DIRECTORY/src &&
+zcat $SOURCE_CACHE/$SOURCE2 | patch -p1 &&
+patch -p1 < $SPELL_DIRECTORY/metamail-2.7.45.3-CVE-2006-0709.patch &&
+chmod +x configure
+aclocal &&
+automake --foreign --add-missing &&
+autoconf &&
+libtoolize --force
diff --git a/mail/metamail/metamail-2.7.45.3-CVE-2006-0709.patch
b/mail/metamail/metamail-2.7.45.3-CVE-2006-0709.patch
new file mode 100644
index 0000000..6572a51
--- /dev/null
+++ b/mail/metamail/metamail-2.7.45.3-CVE-2006-0709.patch
@@ -0,0 +1,40 @@
+--- src/src/metamail/metamail.c.old 2006-03-14 10:13:35.000000000 -0800
++++ src/src/metamail/metamail.c 2006-03-14 10:11:52.000000000 -0800
+@@ -313,7 +313,7 @@
+ WroteSquirrelFile = 0;
+ }
+ LineBuf = XMALLOC(char, LINE_BUF_SIZE);
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
+@@ -1712,7 +1712,7 @@
+ if (boundary[0] == '"') {
+ boundary=UnquoteString(boundary);
+ }
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
+--- src/metamail/metamail.c.old 2006-03-14 10:12:39.000000000 -0800
++++ src/metamail/metamail.c 2006-03-14 10:14:53.000000000 -0800
+@@ -445,7 +445,7 @@
+ }
+ LineBuf = malloc(LINE_BUF_SIZE);
+ if (!LineBuf) ExitWithError(nomem);
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {
+@@ -2115,7 +2115,7 @@
+ if (boundary[0] == '"') {
+ boundary=UnquoteString(boundary);
+ }
+- sprintf(LineBuf, "--%s", boundary);
++ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary);
+ strcpy(boundary, LineBuf);
+ boundarylen = strlen(boundary);
+ if (BoundaryCt >= BoundaryAlloc) {



  • [SM-Commit] GIT changes to master grimoire by Andraž Levstik (0dc08229e6fb4f78a78290e2cf3c62ab6aa16151), Andraž Levstik, 10/26/2008

Archive powered by MHonArc 2.6.24.

Top of Page