Added a patch to enable posting after the BBS system change.
authorMamoru Komachi <usata@gentoo.org>
Sat, 17 Jun 2006 12:30:01 +0000 (12:30 +0000)
committerMamoru Komachi <usata@gentoo.org>
Sat, 17 Jun 2006 12:30:01 +0000 (12:30 +0000)
Package-Manager: portage-2.1

www-client/ochusha/ChangeLog
www-client/ochusha/files/digest-ochusha-0.5.8.2
www-client/ochusha/files/digest-ochusha-0.5.8.2-r1 [new file with mode: 0644]
www-client/ochusha/files/ochusha-0.5.8.2-gentoo.diff [new file with mode: 0644]
www-client/ochusha/ochusha-0.5.8.2-r1.ebuild [new file with mode: 0644]

index 58509222235a47ff655720ae88a25704ef6083fe..bad3b3ec1b709aa0759b338af52adada8d581ba6 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for www-client/ochusha
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ChangeLog,v 1.13 2005/12/03 17:05:53 tgall Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ChangeLog,v 1.14 2006/06/17 12:30:01 usata Exp $
+
+*ochusha-0.5.8.2-r1 (17 Jun 2006)
+
+  17 Jun 2006; Mamoru KOMACHI <usata@gentoo.org>
+  +files/ochusha-0.5.8.2-gentoo.diff, -ochusha-0.5.8.ebuild,
+  +ochusha-0.5.8.2-r1.ebuild:
+  Added a patch to enable posting after the BBS system change.
 
   03 Dec 2005; Tom Gall <tgall@gentoo.org> 
   ochusha-0.5.8.2.ebuild:
index 48e24a4757f6fd7f5b553c2515f93a857bd4746a..ee45ff098e3660ba42ca49adca9b3f76d568bd1e 100644 (file)
@@ -1 +1,3 @@
 MD5 167edce1d41f766d18018175458373c7 ochusha-0.5.8.2.tar.bz2 1794268
+RMD160 5990fd327165b3d3c415aec5639babe1ce9ad6ba ochusha-0.5.8.2.tar.bz2 1794268
+SHA256 91a4429b085be335ad34c9af3ed2ab8871b6245839348abe21073a48789dbe7c ochusha-0.5.8.2.tar.bz2 1794268
diff --git a/www-client/ochusha/files/digest-ochusha-0.5.8.2-r1 b/www-client/ochusha/files/digest-ochusha-0.5.8.2-r1
new file mode 100644 (file)
index 0000000..ee45ff0
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 167edce1d41f766d18018175458373c7 ochusha-0.5.8.2.tar.bz2 1794268
+RMD160 5990fd327165b3d3c415aec5639babe1ce9ad6ba ochusha-0.5.8.2.tar.bz2 1794268
+SHA256 91a4429b085be335ad34c9af3ed2ab8871b6245839348abe21073a48789dbe7c ochusha-0.5.8.2.tar.bz2 1794268
diff --git a/www-client/ochusha/files/ochusha-0.5.8.2-gentoo.diff b/www-client/ochusha/files/ochusha-0.5.8.2-gentoo.diff
new file mode 100644 (file)
index 0000000..515b2f1
--- /dev/null
@@ -0,0 +1,33 @@
+diff -urN ochusha-0.5.8.2/lib/ochusha_board_2ch.c ochusha-0.5.8.2-cookie/lib/ochusha_board_2ch.c
+--- ochusha-0.5.8.2/lib/ochusha_board_2ch.c    2005-08-21 00:01:15.000000000 +0900
++++ ochusha-0.5.8.2-cookie/lib/ochusha_board_2ch.c     2006-06-17 21:11:07.000000000 +0900
+@@ -981,7 +981,7 @@
+   if (board->cookie != NULL)
+     G_FREE(board->cookie);
+   if (cookie != NULL)
+-    board->cookie = G_STRDUP(cookie);
++    board->cookie = g_strconcat(cookie, "; hana=mogera", NULL);
+   else
+     board->cookie = NULL;
+ }
+diff -urN ochusha-0.5.8.2/lib/ochusha_thread_2ch.c ochusha-0.5.8.2-cookie/lib/ochusha_thread_2ch.c
+--- ochusha-0.5.8.2/lib/ochusha_thread_2ch.c   2005-09-09 22:18:20.000000000 +0900
++++ ochusha-0.5.8.2-cookie/lib/ochusha_thread_2ch.c    2006-06-17 21:10:22.000000000 +0900
+@@ -1883,7 +1883,7 @@
+         && broker->config->login_2ch)
+       query = g_strdup_printf("submit=%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&sid=%s&time=%ld", from, mail, message, bbs, key, broker->config->session_id_2ch, time);
+       else
+-      query = g_strdup_printf("submit=%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
++      query = g_strdup_printf("hana=mogera&submit=%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
+     }
+   if (query == NULL)
+@@ -1903,7 +1903,7 @@
+                 && broker->config->login_2ch)
+               query = g_strdup_printf("submit=%%91%%53%%90%%D3%%94%%43%%82%%F0%%95%%89%%82%%A4%%82%%B1%%82%%C6%%82%%F0%%8F%%B3%%91%%F8%%82%%B5%%82%%C4%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&sid=%s&time=%ld", from, mail, message, bbs, key, broker->config->session_id_2ch, time);
+             else
+-              query = g_strdup_printf("submit=%%91%%53%%90%%D3%%94%%43%%82%%F0%%95%%89%%82%%A4%%82%%B1%%82%%C6%%82%%F0%%8F%%B3%%91%%F8%%82%%B5%%82%%C4%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
++              query = g_strdup_printf("hana=mogera&submit=%%91%%53%%90%%D3%%94%%43%%82%%F0%%95%%89%%82%%A4%%82%%B1%%82%%C6%%82%%F0%%8F%%B3%%91%%F8%%82%%B5%%82%%C4%%8F%%91%%82%%AB%%8D%%9E%%82%%DE&FROM=%s&mail=%s&MESSAGE=%s&bbs=%s&key=%s&time=%ld", from, mail, message, bbs, key, time);
+           }
+         sleep(30);
+         post_result = ochusha_utils_2ch_try_post(broker, thread->board,
diff --git a/www-client/ochusha/ochusha-0.5.8.2-r1.ebuild b/www-client/ochusha/ochusha-0.5.8.2-r1.ebuild
new file mode 100644 (file)
index 0000000..547f77b
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/ochusha/ochusha-0.5.8.2-r1.ebuild,v 1.1 2006/06/17 12:30:01 usata Exp $
+
+inherit flag-o-matic eutils
+
+IUSE="nls ssl"
+
+DESCRIPTION="Ochusha - 2ch viewer for GTK+"
+HOMEPAGE="http://ochusha.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/16560/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc ~ppc64 ~x86"
+
+DEPEND="virtual/xft
+       >=x11-libs/gtk+-2.2.4
+       >=dev-libs/glib-2.2.3
+       >=dev-libs/libxml2-2.5.0
+       >=gnome-base/libghttp-1.0.9
+       sys-libs/zlib
+       nls? ( sys-devel/gettext )
+       ssl? ( dev-libs/openssl )"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+
+       econf $(use_enable nls) \
+               $(use_with ssl) \
+               --enable-regex \
+               --disable-shared \
+               --enable-static \
+               --with-included-oniguruma || die
+       emake || die
+}
+
+src_install() {
+
+       make DESTDIR=${D} install || die
+
+       dodoc ABOUT-NLS ACKNOWLEDGEMENT AUTHORS BUGS \
+               ChangeLog INSTALL* NEWS README TODO
+}