tomh / rpms / bip

Forked from rpms/bip 4 years ago
Clone
Lorenzo Villani bd82d84
Name:    bip
9d44b9c
Version: 0.8.9
0b43925
Release: 12%{?dist}
Lorenzo Villani c9e8e7f
Summary: IRC Bouncer
Lorenzo Villani bd82d84
Group:   Applications/Internet
Lorenzo Villani bd82d84
License: GPLv2+
Lorenzo Villani bd82d84
URL: http://bip.t1r.net
Lorenzo Villani 0dec56a
4271693
Source0: https://projects.duckcorp.org/attachments/download/20/bip-%{version}.tar.gz
Darryl L. Pierce ddbb7d3
# Fedora 15+ - ensure that /var/run/bip is created on system start
Darryl L. Pierce ddbb7d3
# http://bugzilla.redhat.com/show_bug.cgi?id=707294
Darryl L. Pierce ddbb7d3
Source2: bip-tmpfs.conf
db565e3
Source3: bip.service
937de6f
Patch0: 0001-Setup-bip-for-Fedora-s-paths.patch
937de6f
Patch1: 0002-Throttle-joins-to-prevent-flooding.patch
7bd30fb
# Backports of https://projects.duckcorp.org/issues/350: makes CA mode
7bd30fb
# TLS work out of the box
7bd30fb
# https://projects.duckcorp.org/projects/bip/repository/revisions/89295ca4b2b89f88b4ce52fd78f0033a34906d90
7bd30fb
# https://projects.duckcorp.org/projects/bip/repository/revisions/88242715f489850a1f7cad6064492668c84f5083
7bd30fb
Patch2: 0001-check-whether-trust-store-is-a-file-or-directory-in-.patch
7bd30fb
Patch3: 0002-allow-for-certificate-store-to-be-unspecified-in-CA-.patch
bb7634e
# Backports of a couple of upstream commits that fix build with OpenSSL
bb7634e
# 1.1
bb7634e
Patch4: 0001-Handle-OpenSSL-version-1.1.patch
bb7634e
Patch5: 0001-X509_OBJECT_new-call-X509err.patch
bb7634e
Patch6: 0001-Check-value-returned-by-X509_OBJECT_new.patch
bb7634e
# Fix some 'const const char' declarations
bb7634e
# https://projects.duckcorp.org/issues/580
bb7634e
Patch7: 0001-Fix-some-const-const-char-declarations.patch
Lorenzo Villani ec21100
Lorenzo Villani 0dec56a
BuildRequires: autoconf
Lorenzo Villani 0dec56a
BuildRequires: byacc
Lorenzo Villani 0dec56a
BuildRequires: flex
Lorenzo Villani 0dec56a
BuildRequires: m4
Lorenzo Villani 0dec56a
BuildRequires: openssl-devel
42b78f7
BuildRequires: perl-generators
db565e3
BuildRequires: systemd-units
937de6f
BuildRequires: git
db565e3
Requires(post): systemd-sysv
db565e3
Requires(post): systemd-units
db565e3
Requires(preun): systemd-units
db565e3
Requires(postun): systemd-units
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
%description
Lorenzo Villani bd82d84
Bip is an IRC proxy, which means it keeps connected to your preferred IRC
Lorenzo Villani bd82d84
servers, can store the logs for you, and even send them back to your IRC
Lorenzo Villani bd82d84
client(s) upon connection.
Lorenzo Villani bd82d84
You may want to use bip to keep your logfiles (in a unique format and on a
Lorenzo Villani bd82d84
unique computer) whatever your client is, when you connect from multiple
Lorenzo Villani bd82d84
workstations, or when you simply want to have a playback of what was said
Lorenzo Villani bd82d84
while you were away.
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
%prep
Lorenzo Villani bd82d84
%setup -q
937de6f
git init
937de6f
git config user.email "bip-owner@fedoraproject.org"
937de6f
git config user.name "Fedora Ninjas"
937de6f
git add .
937de6f
git commit -a -q -m "%{version} baseline."
937de6f
git am %{patches}
937de6f
Lorenzo Villani bd82d84
iconv -f iso-8859-1 -t utf-8 -o ChangeLog{.utf8,}
Lorenzo Villani bd82d84
mv ChangeLog{.utf8,}
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
%build
ac406ef
%configure --with-openssl
9d44b9c
make CFLAGS="$RPM_OPT_FLAGS -fPIE -Wno-unused-result"
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
%install
Lorenzo Villani bd82d84
rm -rf $RPM_BUILD_ROOT
Lorenzo Villani bd82d84
make install DESTDIR=$RPM_BUILD_ROOT
Lorenzo Villani bd82d84
# Remove misplaced files
Lorenzo Villani bd82d84
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/bip
Lorenzo Villani c9e8e7f
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
Lorenzo Villani c9e8e7f
# Install bip.conf
Lorenzo Villani a2c0e05
install -m 0644 samples/bip.conf $RPM_BUILD_ROOT%{_sysconfdir}/bip.conf
Lorenzo Villani a2c0e05
# Install bipgenconfig
Lorenzo Villani a2c0e05
install -m 0755 scripts/bipgenconfig $RPM_BUILD_ROOT%{_bindir}/bipgenconfig
Lorenzo Villani c9e8e7f
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/bip
Lorenzo Villani c9e8e7f
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/bip
Lorenzo Villani bd82d84
b8a5e9b
install -d -m 755 $RPM_BUILD_ROOT%{_tmpfilesdir}
b8a5e9b
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_tmpfilesdir}/bip.conf
Darryl L. Pierce ddbb7d3
db565e3
# Install systemd service file
db565e3
install -d -m 755 $RPM_BUILD_ROOT%{_unitdir}
db565e3
install -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/
db565e3
Lorenzo Villani bd82d84
%clean
Lorenzo Villani bd82d84
rm -rf $RPM_BUILD_ROOT
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
Lorenzo Villani c9e8e7f
%pre
Lorenzo Villani c9e8e7f
/usr/sbin/useradd -c "Bip IRC Proxy" \
Lorenzo Villani c9e8e7f
  -s /bin/sh -r -d / bip 2> /dev/null || :
Lorenzo Villani c9e8e7f
Lorenzo Villani c9e8e7f
%post
bf2b250
%systemd_post bip.service
b8a5e9b
/bin/systemd-tmpfiles --create %{_tmpfilesdir}/bip.conf
Lorenzo Villani c9e8e7f
Lorenzo Villani c9e8e7f
%preun
bf2b250
%systemd_preun bip.service
Lorenzo Villani c9e8e7f
Lorenzo Villani c9e8e7f
%postun
bf2b250
%systemd_postun_with_restart bip.service
Lorenzo Villani c9e8e7f
db565e3
%triggerun -- bip < 0.8.8-2
db565e3
/usr/bin/systemd-sysv-convert --save bip >/dev/null 2>&1 ||:
db565e3
/sbin/chkconfig --del bip >/dev/null 2>&1 || :
db565e3
/bin/systemctl try-restart bip.service >/dev/null 2>&1 || :
Lorenzo Villani c9e8e7f
Lorenzo Villani bd82d84
%files
a742b4c
%license COPYING
a742b4c
%doc AUTHORS ChangeLog README TODO
Lorenzo Villani bd82d84
%doc samples/bip.vim
Lorenzo Villani bd82d84
%{_bindir}/bip
Lorenzo Villani a2c0e05
%{_bindir}/bipgenconfig
Lorenzo Villani bd82d84
%{_bindir}/bipmkpw
Lorenzo Villani bd82d84
%{_mandir}/man1/bip.1.gz
Lorenzo Villani bd82d84
%{_mandir}/man5/bip.conf.5.gz
9d44b9c
%{_mandir}/man1/bipmkpw.1.gz
df37f89
%attr(0640,root,bip) %config(noreplace) %{_sysconfdir}/bip.conf
b8a5e9b
%config %{_tmpfilesdir}/bip.conf
4271693
%attr(-,bip,bip) %ghost %{_localstatedir}/run/bip
Lorenzo Villani c9e8e7f
%attr(-,bip,bip) %dir %{_localstatedir}/log/bip
db565e3
%{_unitdir}/bip.service
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
%changelog
0b43925
* Tue Jul 25 2017 Adam Williamson <awilliam@redhat.com> - 0.8.9-12
0b43925
- Specify HOME in bip.service, seems to be needed on F26+ (#1468379)
bb7634e
- Backport some upstream patches for OpenSSL 1.1 compatibility
bb7634e
- Fix some bad 'const const' declarations (upstream #580)
0b43925
084f9e1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-11
084f9e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
084f9e1
b8a5e9b
* Thu Mar 31 2016 Brian C. Lane <bcl@redhat.com> 0.8.9-10
b8a5e9b
- Use %%{_tmpfilesdir} macro instead of /etc/tmpfiles.d
b8a5e9b
c49d6b2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-9
c49d6b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c49d6b2
8358eac
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.9-8
8358eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8358eac
8ca5f8d
* Wed Jan 28 2015 Brian C. Lane <bcl@redhat.com> 0.8.9-7
8ca5f8d
- Send logs to the journal instead of a logfile (#1185131)
8ca5f8d
7bd30fb
* Wed Dec 10 2014 Adam Williamson <awilliam@redhat.com> - 0.8.9-6
7bd30fb
- backport a couple of patches that make CA mode TLS validation work OOTB
7bd30fb
473965f
* Mon Oct 06 2014 Brian C. Lane <bcl@redhat.com> 0.8.9-5
473965f
- Use network-online.target (#862610)
473965f
bc5ad5f
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.9-4
bc5ad5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bc5ad5f
84cbdfe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.9-3
84cbdfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
84cbdfe
bf2b250
* Wed Dec 18 2013 Brian C. Lane <bcl@redhat.com> 0.8.9-2
bf2b250
- Scriptlets replaced with new systemd macros (#850046)
bf2b250
9d44b9c
* Sat Nov 09 2013 Brian C. Lane <bcl@redhat.com> 0.8.9-1
9d44b9c
- Upstream v0.8.9
9d44b9c
- CVE-2013-4550 - failed SSL handshake resource leak
9d44b9c
- Removed 2 patches included in new version
9d44b9c
8a50f8d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-10
8a50f8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8a50f8d
7e98181
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.8.8-9
7e98181
- Perl 5.18 rebuild
7e98181
6e04b45
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-8
6e04b45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6e04b45
7f70099
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-7
7f70099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f70099
df37f89
* Tue May 15 2012 Brian C. Lane <bcl@redhat.com> 0.8.8-6
df37f89
- Change /etc/bip.conf to 0640,root,bip (#815935)
df37f89
210580e
* Fri Apr 13 2012 Adam Williamson <awilliam@redhat.com> - 0.8.8-5
210580e
- upstream patch to fix privmsg logs being split up (upstream #252)
210580e
937de6f
* Tue Jan 24 2012 Brian C. Lane <bcl@redhat.com> - 0.8.8-4
937de6f
- Upstream patch to fix buffer overflow with too many open fd's (#784301)
937de6f
  https://projects.duckcorp.org/issues/269
937de6f
- Switched spec to use git to apply patches
937de6f
87cff69
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-3
87cff69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
87cff69
db565e3
* Thu Nov 17 2011 Brian C. Lane <bcl@redhat.com> - 0.8.8-2
db565e3
- Adding systemd unit file and removing sysvinit file
db565e3
b458f50
* Fri Jul 29 2011 Brian C. Lane <bcl@redhat.com> - 0.8.8-1
b458f50
- Upstream v0.8.8
b458f50
Darryl L. Pierce ddbb7d3
* Thu Jun  2 2011 Darryl L. Pierce <dpierce@redhat.com> - 0.8.7-2
Darryl L. Pierce ddbb7d3
- Create file: /etc/tmpfiles.d/bip.conf
Darryl L. Pierce ddbb7d3
- Fixes #707294 - /var/run/bip on tmpfs
Darryl L. Pierce ddbb7d3
4271693
* Sat Feb 12 2011 Brian C. Lane <bcl@redhat.com> - 0.8.7-1
4271693
- Upstream v0.8.7
4271693
- New source tarball location
4271693
- Update spec with %ghost for /var/run/bip/
4271693
a3caaf0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.6-2
a3caaf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a3caaf0
ac406ef
* Wed Oct 06 2010 Brian C. Lane <bcl@redhat.com> - 0.8.6-1
ac406ef
- Upstream v0.8.6
ac406ef
Lorenzo Villani a2c0e05
* Sat Mar 27 2010 Lorenzo Villani <lvillani@binaryhelix.net> - 0.8.4-3
Lorenzo Villani a2c0e05
- Install bipgenconfig as requested in bz #566879
Lorenzo Villani a2c0e05
Lorenzo Villani 0dec56a
* Mon Feb 1 2010 Lorenzo Villani <lvillani@binaryhelix.net> - 0.8.4-2
Lorenzo Villani 0dec56a
- Import patch reported by Kevin Fenzi (bz #560476)
Lorenzo Villani 0dec56a
- + Add a join delay to work around ircd7 flood protection
Lorenzo Villani 0dec56a
- + Add support for the "quiet" list
Lorenzo Villani 0dec56a
Lorenzo Villani 0365eed
* Fri Jan  8 2010 Lorenzo Villani <lvillani@binaryhelix.net> - 0.8.4-1
Lorenzo Villani 0365eed
- 0.8.4
Lorenzo Villani 0365eed
Lorenzo Villani 7d9c5a3
* Thu Sep 03 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 0.8.2-1
Lorenzo Villani 7d9c5a3
- 0.8.2
Lorenzo Villani 7d9c5a3
28258c6
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.8.0-3
28258c6
- rebuilt with new openssl
28258c6
c5dfa30
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
c5dfa30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c5dfa30
Lorenzo Villani 91501a5
* Thu Mar 05 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 0.8.0-1
Lorenzo Villani 91501a5
- 0.8.0
Lorenzo Villani 91501a5
665f172
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
665f172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
665f172
7f7fdb3
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 0.7.5-3
7f7fdb3
- rebuild with new openssl
7f7fdb3
Lorenzo Villani d56a5c3
* Sat Nov 29 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.5-2
Lorenzo Villani d56a5c3
- rebuilt
Lorenzo Villani d56a5c3
Lorenzo Villani c9e8e7f
* Sat Nov 29 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.5-1
Lorenzo Villani c9e8e7f
- 0.7.5
Lorenzo Villani c9e8e7f
- Added support for running bip as system daemon
Lorenzo Villani c9e8e7f
  (patches from Tom Hughes, thanks! - BugID: 471791)
Lorenzo Villani c9e8e7f
Lorenzo Villani 9c4d623
* Tue Jun 08 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.4-1
Lorenzo Villani 9c4d623
- New version
Lorenzo Villani 9c4d623
Lorenzo Villani 1b13483
* Tue May 06 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.2-6
Lorenzo Villani 1b13483
- Removed _smp_mflags to avoid compilation errors with parallel jobs
Lorenzo Villani 1b13483
Lorenzo Villani bd82d84
* Wed Apr 30 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.2-5
Lorenzo Villani bd82d84
- Corrected License field
Lorenzo Villani bd82d84
- Removed openssl from Requires
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
* Wed Apr 30 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.2-4
Lorenzo Villani bd82d84
- Convert ChangeLog to utf-8 in prep
Lorenzo Villani bd82d84
- Ensure that package is compiled using RPM_OPT_FLAGS
Lorenzo Villani bd82d84
- Make usage of RPM_BUILD_ROOT consistent
Lorenzo Villani bd82d84
- Removed macros from ChangeLog (bad mistake)
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
* Mon Apr 14 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.2-3
Lorenzo Villani bd82d84
- Removed INSTALL from doc
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
* Sun Apr 13 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.2-2
Lorenzo Villani bd82d84
- Added AUTHORS, ChangeLog, COPYING, INSTALL, README, TODO to docdir
Lorenzo Villani bd82d84
- added --enable-ssl to configure, just to make sure that bip is built
Lorenzo Villani bd82d84
  with SSL support using OpenSSL
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
* Sat Apr 12 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.2-1
Lorenzo Villani bd82d84
- Version bump
Lorenzo Villani bd82d84
Lorenzo Villani bd82d84
* Sun Mar 16 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 0.7.0-1
Lorenzo Villani bd82d84
- Initial release