summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-pda/jpilot-mail
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-pda/jpilot-mail')
-rw-r--r--app-pda/jpilot-mail/Manifest1
-rw-r--r--app-pda/jpilot-mail/files/jpilot-mail-0.1.7.patch172
-rw-r--r--app-pda/jpilot-mail/jpilot-mail-0.1.7.ebuild48
-rw-r--r--app-pda/jpilot-mail/metadata.xml5
4 files changed, 226 insertions, 0 deletions
diff --git a/app-pda/jpilot-mail/Manifest b/app-pda/jpilot-mail/Manifest
new file mode 100644
index 00000000000..cd214b0263e
--- /dev/null
+++ b/app-pda/jpilot-mail/Manifest
@@ -0,0 +1 @@
+DIST jpilot-Mail-0.1.7.tar.gz 481041 SHA256 99169a74564053ef6c62da1738951570fcb3fcc044276f7040d334f553966bbe SHA512 79b74a27d9a3bfcd46791f0c5b6a5750ec5d8463d71843c0b64eed146871e7633bb2803ac742e5b48723e395295ed42e8ae5530d9047bbf930829028c18c8a6c WHIRLPOOL a9cce33788ee6dd9203bfbb6a91a509f26b594702d6701f3d9a8e3324984c5bb950a63f9f34353662b11dd0e41e25082327ebd6fc488d494a2e833bf9f9b9d59
diff --git a/app-pda/jpilot-mail/files/jpilot-mail-0.1.7.patch b/app-pda/jpilot-mail/files/jpilot-mail-0.1.7.patch
new file mode 100644
index 00000000000..829c455a6bf
--- /dev/null
+++ b/app-pda/jpilot-mail/files/jpilot-mail-0.1.7.patch
@@ -0,0 +1,172 @@
+diff -Nru jpilot-Mail-0.1.7.orig/src/connect.c jpilot-Mail-0.1.7/src/connect.c
+--- jpilot-Mail-0.1.7.orig/src/connect.c 2003-01-11 17:52:28.000000000 +0200
++++ jpilot-Mail-0.1.7/src/connect.c 2007-01-02 11:43:09.000000000 +0200
+@@ -24,7 +24,7 @@
+ if(inet_aton(ip, &ia)){
+ mxip_addr mxip;
+
+- mxip.name = g_strdup(ip);
++ mxip.name = (guchar*)g_strdup(ip);
+ mxip.pref = 0;
+ mxip.ip = (guint32) *(guint32 *)(&ia);
+ list = g_list_append(list, g_memdup(&mxip, sizeof(mxip)));
+diff -Nru jpilot-Mail-0.1.7.orig/src/lookup.c jpilot-Mail-0.1.7/src/lookup.c
+--- jpilot-Mail-0.1.7.orig/src/lookup.c 2002-06-27 21:36:26.000000000 +0300
++++ jpilot-Mail-0.1.7/src/lookup.c 2007-01-02 11:43:48.000000000 +0200
+@@ -325,7 +325,7 @@
+ mxip_addr mxip;
+ mxip.ip = *(guint32 *)(haddr);
+ mxip.pref = 0;
+- mxip.name = g_strdup(hent->h_name);
++ mxip.name = (guchar*)g_strdup(hent->h_name);
+ list = g_list_append(list, g_memdup(&mxip, sizeof(mxip)));
+ }
+ }
+diff -Nru jpilot-Mail-0.1.7.orig/src/mail.c jpilot-Mail-0.1.7/src/mail.c
+--- jpilot-Mail-0.1.7.orig/src/mail.c 2004-07-18 21:06:42.000000000 +0300
++++ jpilot-Mail-0.1.7/src/mail.c 2007-01-02 12:15:30.000000000 +0200
+@@ -56,7 +56,7 @@
+ static int show_category = 0;
+ static int glob_row_selected;
+
+-static struct MyMail *glob_mymail_list = NULL;
++struct MyMail *glob_mymail_list = NULL;
+
+ struct Preferences prefs;
+ struct MailSyncPref mailSyncPref;
+@@ -75,6 +75,8 @@
+ *minor_version = 99;
+ }
+
++void multibyte_safe_strncpy(char *dst, char *src, size_t len);
++
+ static void free_mymail_list(struct MyMail **ppM)
+ {
+ struct MyMail *pM, *next_pM;
+@@ -195,7 +197,7 @@
+ if (fptr)
+ {
+ gchar *line = NULL;
+- gint line_size = 0;
++ size_t line_size = 0;
+
+ while (!feof(fptr))
+ {
+@@ -1001,7 +1003,7 @@
+
+ if (size > 0)
+ {
+- char *buf = g_malloc(size);
++ unsigned char *buf = g_malloc(size);
+
+ if (buf)
+ {
+@@ -1030,7 +1032,7 @@
+ if (size > 0)
+ {
+ buf_rec br;
+- char *buf = g_malloc(size);
++ unsigned char *buf = g_malloc(size);
+
+ if (buf)
+ {
+@@ -1212,7 +1214,7 @@
+
+ temp_str = malloc((len = strlen(mai.category.name[i])*2+1));
+ multibyte_safe_strncpy(temp_str, mai.category.name[i], len);
+- jp_charset_p2j(temp_str, len);
++ jp_charset_p2j((unsigned char *)temp_str, len);
+ categories[i] = temp_str;
+ }
+ categories[i] = NULL;
+diff -Nru jpilot-Mail-0.1.7.orig/src/mail_get.c jpilot-Mail-0.1.7/src/mail_get.c
+--- jpilot-Mail-0.1.7.orig/src/mail_get.c 2004-07-18 20:31:28.000000000 +0300
++++ jpilot-Mail-0.1.7/src/mail_get.c 2007-01-02 12:16:29.000000000 +0200
+@@ -68,7 +68,7 @@
+ {
+ GList *id_list = NULL;
+ gchar *line = NULL;
+- gint line_size = 0;
++ size_t line_size = 0;
+
+ while (!feof(fptr))
+ {
+@@ -179,7 +179,7 @@
+ {
+ FILE *in;
+ char *line = NULL;
+- gint line_size = 0;
++ size_t line_size = 0;
+ GList *id_list = read_msgids();
+
+ // conf.debug_level = 5;
+diff -Nru jpilot-Mail-0.1.7.orig/src/mail_send.c jpilot-Mail-0.1.7/src/mail_send.c
+--- jpilot-Mail-0.1.7.orig/src/mail_send.c 2004-04-29 20:27:48.000000000 +0300
++++ jpilot-Mail-0.1.7/src/mail_send.c 2007-01-02 12:16:58.000000000 +0200
+@@ -233,7 +233,7 @@
+
+ if (pMail->mail.body != NULL)
+ {
+- guchar *p = pMail->mail.body;
++ gchar *p = pMail->mail.body;
+
+ while (*p)
+ {
+diff -Nru jpilot-Mail-0.1.7.orig/src/mbox.c jpilot-Mail-0.1.7/src/mbox.c
+--- jpilot-Mail-0.1.7.orig/src/mbox.c 2004-04-17 19:24:15.000000000 +0300
++++ jpilot-Mail-0.1.7/src/mbox.c 2007-01-02 11:49:55.000000000 +0200
+@@ -25,7 +25,8 @@
+ gboolean mbox_read(message * msg, FILE * in, gchar ** from_line, int max_size)
+ {
+ gchar *line = NULL;
+- gint line_size = 0, line_cnt = 0;
++// gint line_size = 0, line_cnt = 0;
++ size_t line_size = 0;
+ gint data_size = 0;
+ gboolean in_headers = TRUE;
+ int l_no = 1;
+@@ -91,7 +92,7 @@
+ msg->data_list = g_list_append(msg->data_list, g_strdup(line));
+ data_size += strlen(line);
+ }
+- line_cnt++;
++// line_cnt++;
+ }
+ }
+
+diff -Nru jpilot-Mail-0.1.7.orig/src/smtp_out.c jpilot-Mail-0.1.7/src/smtp_out.c
+--- jpilot-Mail-0.1.7.orig/src/smtp_out.c 2003-01-11 17:52:28.000000000 +0200
++++ jpilot-Mail-0.1.7/src/smtp_out.c 2007-01-02 12:11:27.000000000 +0200
+@@ -66,7 +66,7 @@
+ gchar *set_heloname(smtp_base *psb, gchar *default_name, gboolean do_correct)
+ {
+ struct sockaddr_in sname;
+- int len = sizeof(struct sockaddr_in);
++ socklen_t len = sizeof(struct sockaddr_in);
+ struct hostent *host_entry;
+
+ if(do_correct){
+@@ -479,11 +479,11 @@
+ if((addr = connect_resolvelist(&sock, host, port, resolve_list))){
+ /* create structure to hold status data: */
+ psb = create_smtpbase(sock);
+- psb->remote_host = addr->name;
++ psb->remote_host = (gchar*)addr->name;
+
+ DEBUG(5){
+ struct sockaddr_in name;
+- int len = sizeof(struct sockaddr);
++ socklen_t len = sizeof(struct sockaddr);
+ getsockname(sock, (struct sockaddr *)(&name), &len);
+ debugf("socket: name.sin_addr = %s\n", inet_ntoa(name.sin_addr));
+ }
+diff -Nru jpilot-Mail-0.1.7.orig/src/utils.h jpilot-Mail-0.1.7/src/utils.h
+--- jpilot-Mail-0.1.7.orig/src/utils.h 2002-06-27 21:36:26.000000000 +0300
++++ jpilot-Mail-0.1.7/src/utils.h 2007-01-02 11:28:45.000000000 +0200
+@@ -21,4 +21,6 @@
+
+ int get_home_file_name(char *file, char *full_name, int max_size);
+
++extern void multibyte_safe_strncpy(char *dst, char *src, size_t len);
++
+ #endif
diff --git a/app-pda/jpilot-mail/jpilot-mail-0.1.7.ebuild b/app-pda/jpilot-mail/jpilot-mail-0.1.7.ebuild
new file mode 100644
index 00000000000..c03555c0e9a
--- /dev/null
+++ b/app-pda/jpilot-mail/jpilot-mail-0.1.7.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils multilib
+
+MY_PN=jpilot-Mail
+
+DESCRIPTION="jpilot-Mail is a jpilot plugin to deliver mail from the pilot and upload mail to it"
+HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/jpilot-Mail/"
+SRC_URI="http://ludovic.rousseau.free.fr/softwares/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ >=app-pda/jpilot-0.99.7-r1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_configure() {
+ econf \
+ --enable-gtk2
+}
+
+src_compile() {
+ emake -j1 || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ datadir="/usr/share/doc/${PF}/html" \
+ libdir="/usr/$(get_libdir)/jpilot/plugins" \
+ install || die
+
+ dodoc AUTHORS ChangeLog README TODO
+
+ find "${D}" -name '*.la' -exec rm -f {} +
+}
diff --git a/app-pda/jpilot-mail/metadata.xml b/app-pda/jpilot-mail/metadata.xml
new file mode 100644
index 00000000000..228404d3a4b
--- /dev/null
+++ b/app-pda/jpilot-mail/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>pda</herd>
+</pkgmetadata>