From 3df079aa4d971e33a392ad0187764976b7db4cf0eed462916fa15a20386f0204 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Mon, 19 Oct 2009 12:43:06 +0000 Subject: [PATCH] 1.2.4 OBS-URL: https://build.opensuse.org/package/show/server:irc/bitlbee?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + bitlbee-1.2.4.tar.bz2 | 3 + bitlbee-fix_oscar_buffer_overflow.patch | 11 ++ bitlbee.spec | 213 ++++++++++++++++++++++++ bitlbee.xinetd-suse.in | 14 ++ 6 files changed, 265 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bitlbee-1.2.4.tar.bz2 create mode 100644 bitlbee-fix_oscar_buffer_overflow.patch create mode 100644 bitlbee.spec create mode 100644 bitlbee.xinetd-suse.in diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/bitlbee-1.2.4.tar.bz2 b/bitlbee-1.2.4.tar.bz2 new file mode 100644 index 0000000..a6b3650 --- /dev/null +++ b/bitlbee-1.2.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c61dada11b035655bd411cbe33951a141888c41b97ae37d90a388b6723081fa5 +size 366208 diff --git a/bitlbee-fix_oscar_buffer_overflow.patch b/bitlbee-fix_oscar_buffer_overflow.patch new file mode 100644 index 0000000..a696ba8 --- /dev/null +++ b/bitlbee-fix_oscar_buffer_overflow.patch @@ -0,0 +1,11 @@ +--- protocols/oscar/ssi.c.orig 2009-10-19 14:34:39.000000000 +0200 ++++ protocols/oscar/ssi.c 2009-10-19 14:35:25.000000000 +0200 +@@ -414,7 +414,7 @@ + for (parentgroup=sess->ssi.items; ((parentgroup) && (parentgroup->type!=AIM_SSI_TYPE_GROUP) && (parentgroup->gid==0x0000)); parentgroup=parentgroup->next); + if (!parentgroup) { + char *newgroup; +- newgroup = (char*)g_malloc(strlen("Unknown")*sizeof(char)); ++ newgroup = (char*)g_malloc((strlen("Unknown")*sizeof(char)) + 1); + strcpy(newgroup, "Unknown"); + aim_ssi_addgroups(sess, conn, &newgroup, 1); + } diff --git a/bitlbee.spec b/bitlbee.spec new file mode 100644 index 0000000..405fb03 --- /dev/null +++ b/bitlbee.spec @@ -0,0 +1,213 @@ +# norootforbuild + +Name: bitlbee +Version: 1.2.4 +Release: 0 +Summary: IRC to other Chat Networks Gateway +# http://get.bitlbee.org/src/bitlbee-%{version}.tar.gz +Source: bitlbee-%{version}.tar.bz2 +Source1: %{name}.xinetd-suse.in +Patch1: bitlbee-fix_oscar_buffer_overflow.patch +URL: http://www.bitlbee.org/ +Group: Productivity/Network/IRC +License: GNU General Public License version 2 (GPL v2) +BuildRoot: %{_tmppath}/build-%{name}-%{version} +Requires: xinetd +BuildRequires: make gcc glibc-devel pkgconfig gnutls-devel libgcrypt-devel +BuildRequires: zlib-devel xmlto glib2-devel lzo-devel glib2-devel +BuildRequires: licenses fdupes +Requires: licenses +PreReq: /usr/sbin/groupadd /usr/sbin/useradd + +%description +We are both console lovers. But it is annoying to have a few tty's open with +chat things in them. IRC, ICQ, MSN, Jabber... For X there is Gaim, which +supports many chatprotocols. Why wasn't there such a thing for the console? + +The idea to port Gaim was easily thought of, of course. But we liked our IRC +clients. And we used it the most, so we used it best. Importing it into the +IRC client was a nice idea. But what if someone liked a different client. Then +(s)he had to duplicate our work. + +That's a shame, we thought. Doing work twice is pointless. So when Wilmer got +the ingenious thought in his mind while farming, to create an IRC to other +chatnetworks gateway, we were both so excited, that we started working on it +almost immediately. And the result is BitlBee. + +This package comes with support for MSN, Jabber, Oscar and Yahoo, as well as +enabled flood protection. + +%prep +%setup -q +%patch1 + +%build +# not autoconf +CFLAGS="%{optflags} -fno-strict-aliasing" \ +CXXFLAGS="%{optflags} -fno-strict-aliasing" \ +./configure \ + --prefix="%{_prefix}" \ + --bindir="%{_sbindir}" \ + --etcdir="%{_sysconfdir}/%{name}" \ + --mandir="%{_mandir}" \ + --datadir="%{_datadir}/%{name}" \ + --plugindir="%{_libdir}/%{name}" \ + --pidfile="%{_localstatedir}/run/%{name}.pid" \ + --config="%{_localstatedir}/lib/%{name}" \ + --ipcsocket="%{_localstatedir}/run/%{name}.sock" \ + --msn=1 \ + --jabber=1 \ + --oscar=1 \ + --yahoo=1 \ + --debug=0 \ + --strip=0 \ + --gcov=0 \ + --flood=0 \ + --plugins=1 \ + --ssl=gnutls + +%__make %{?jobs:-j%{jobs}} + +%install +%__install -d "%{buildroot}%{_mandir}/man1" +%__install -d "%{buildroot}%{_mandir}/man8" +%__install -d "%{buildroot}%{_sysconfdir}/bitlbee" +%__install -d "%{buildroot}%{_localstatedir}/lib/bitlbee" + +%__make DESTDIR="%{buildroot}" -C doc +%makeinstall install-etc + +%__install -d "%{buildroot}%{_sysconfdir}/xinetd.d" +%__sed -e "s+@@BITLBEE@@+%{_sbindir}/bitlbee+g" \ + < "%{SOURCE1}" > "%{buildroot}%{_sysconfdir}/xinetd.d/bitlbee" + +h=/usr/share/doc/licenses/md5/$(md5sum COPYING | cut -f1 -d" ") +[ -e "$h" ] && %__ln_s -f "$h" COPYING + +%fdupes -s + +%pre +/usr/bin/getent group bitlbee &>/dev/null || /usr/sbin/groupadd -r bitlbee &>/dev/null || : +/usr/bin/getent passwd bitlbee &>/dev/null || \ +/usr/sbin/useradd -o -g bitlbee -s /bin/false -r -c "User for bitlbee" \ + -d "%{_localstatedir}/run/bitlbee" bitlbee &>/dev/null || : + +%clean +%__rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%doc COPYING doc/AUTHORS doc/CHANGES doc/CREDITS doc/FAQ doc/README +%doc doc/user-guide/*.html doc/user-guide/*.txt +%config(noreplace) %{_sysconfdir}/xinetd.d/bitlbee +%attr(0750,root,bitlbee) %dir %{_sysconfdir}/bitlbee +%config(noreplace) %attr(0640,root,bitlbee) %{_sysconfdir}/bitlbee/bitlbee.conf +%config(noreplace) %attr(0640,root,bitlbee) %{_sysconfdir}/bitlbee/motd.txt +%{_sbindir}/bitlbee +%{_datadir}/bitlbee +%doc %{_mandir}/man5/bitlbee.conf.5* +%doc %{_mandir}/man8/bitlbee.8* +%attr(0750,bitlbee,bitlbee) %dir %{_localstatedir}/lib/bitlbee + +%changelog +* Mon Oct 19 2009 Pascal Bleser 1.2.4-0 +- update to 1.2.4: + * Yahoo! support was fixed + * various stability and usability improvements were made +- moved from Packman to openSUSE Build Service + +* Sun Sep 7 2008 Pascal Bleser 1.2.3-0.pm.1 +- update to 1.2.3: + * fixes another account hijacking issue + +* Thu Aug 28 2008 Pascal Bleser 1.2.2-0.pm.1 +- update to 1.2.2: + * SECURITY: fixes an account hijacking issue + * various other stability improvements + +* Wed Jun 25 2008 Pascal Bleser 1.2.1-0.pm.1 +- new upstream version: + * many bugfixes + * stability was improved + * the single-process daemon mode is now officially declared stable + +* Tue Mar 25 2008 Pascal Bleser 1.2-0.pm.2 +- fixed RPM Group + +* Tue Mar 18 2008 Pascal Bleser 1.2-0.pm.1 +- new upstream version + +* Sat Dec 8 2007 Pascal Bleser 1.0.4-0.pm.1 +- moved to Packman + +* Mon Aug 20 2007 Pascal Bleser 1.0.4-1 +- new upstream version + +* Sun Jun 25 2006 Pascal Bleser 1.0.3-1 +- new upstream version + +* Thu Apr 27 2006 Pascal Bleser 1.0.2-2 +- removed Packager and Distribution, injected by rpmmacros +- use makeinstall instead of make install +- added missing build dependency for libgcrypt-devel +- added binary stripping for SUSE < 9.3 +- moved configure to build section + +* Sat Apr 1 2006 Pascal Bleser 1.0.2-1 +- new upstream version + +* Mon Jan 16 2006 Pascal Bleser 1.0.1-1 +- new upstream version + +* Mon Dec 5 2005 Pascal Bleser 1.0-1 +- revamped spec file header section (y2pmbuild-ready) +- new upstream version + +* Mon Nov 7 2005 Pascal Bleser 0.99-3 +- fixed wrong requires for useradd and groupadd + +* Sat Nov 5 2005 Pascal Bleser 0.99-2 +- explicitely turn off stripping +- turn off flood protection +- added creating user and group "bitlbee" +- changed xinetd user from nobody to bitlbee +- fixed ownership of /var/lib/bitlbee to bitlbee:bitlbee + +* Fri Nov 4 2005 Pascal Bleser 0.99-1 +- added --ipv6=1 +- new upstream version + +* Wed Nov 2 2005 Pascal Bleser 0.93a-2 +- added upstream patch + +* Tue Nov 1 2005 Pascal Bleser 0.93a-1 +- added debuginfo support +- new upstream version + +* Mon Feb 28 2005 Pascal Bleser 0.92-1 +- version 0.92 + +* Sun Sep 26 2004 Pascal Bleser 0.91-2 +- version 0.91 + +* Tue Jun 29 2004 Pascal Bleser 0.90a-1 +- fixes to Yahoo protocol +- version 0.90a + +* Sun May 30 2004 Pascal Bleser 0.90-1 +- version 0.90 + +* Mon Mar 15 2004 Pascal Bleser 0.85-1 +- removed dependency to libsoup (not the case any more) + +* Sun Mar 14 2004 Pascal Bleser 0.85-1 +- flood protection is enabled +- version 0.85 + +* Tue Feb 17 2004 Pascal Bleser 0.84-1 +- first RPM + +# Local Variables: +# mode: rpm-spec +# tab-width: 3 +# End: diff --git a/bitlbee.xinetd-suse.in b/bitlbee.xinetd-suse.in new file mode 100644 index 0000000..b29f5d3 --- /dev/null +++ b/bitlbee.xinetd-suse.in @@ -0,0 +1,14 @@ +# default: off +# description: IRC gateway to many IM protocols (MSN, Jabber, ICQ, ...) +service bitlbee +{ + disable = yes + socket_type = stream + protocol = tcp + wait = no + user = bitlbee + group = bitlbee + server = @@BITLBEE@@ + port = 6667 + type = UNLISTED +} \ No newline at end of file