Name: ngircd Version: 23 Release: 11 Summary: Next Generation IRC Daemon Group: System Environment/Daemons License: GPLv2+ URL: http://ngircd.barton.de/ Source0: http://ngircd.barton.de/pub/ngircd/ngircd-%{version}.tar.gz Source1: ngircd.init Source2: ngircd.conf Source3: ngircd.service BuildRequires: zlib-devel, avahi-compat-howl-devel, tcp_wrappers-devel BuildRequires: libident-devel BuildRequires: gnutls-devel BuildRequires: pam-devel %if 0%{?rhel} > 6 || 0%{?fedora} > 18 BuildRequires: systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %else Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service %endif Requires(pre): shadow-utils %description ngIRCd is a free open source daemon for Internet Relay Chat (IRC), developed under the GNU General Public License (GPL). It's written from scratch and is not based upon the original IRCd like many others. %prep %setup -q %build %configure \ --with-syslog \ --with-zlib \ --with-epoll \ --with-zeroconf \ --with-tcp-wrappers \ --with-ident \ --with-gnutls \ --with-pam \ --enable-ipv6 make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %if 0%{?rhel} > 6 || 0%{?fedora} > 18 install -D -m 755 %{SOURCE3} %{buildroot}%{_unitdir}/ngircd.service %else install -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/ngircd %endif install -D -m 660 %{SOURCE2} %{buildroot}%{_sysconfdir}/ngircd.conf mkdir -p %{buildroot}%{_sysconfdir}/pam.d install -D -m 660 ./contrib/Debian/ngircd.pam %{buildroot}%{_sysconfdir}/pam.d/ngircd touch %{buildroot}%{_sysconfdir}/ngircd.motd rm -rf %{buildroot}%{_docdir}/ngircd mkdir -p %{buildroot}%{_localstatedir}/run/ngircd %clean rm -rf %{buildroot} %pre getent group ngircd >/dev/null || groupadd -r ngircd getent passwd ngircd >/dev/null || \ useradd -r -g ngircd -d /tmp/ -s /sbin/nologin \ -c "Next Generation IRC Daemon" ngircd exit 0 %post %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %systemd_post ngircd.service %else # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add ngircd %endif %preun %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %systemd_preun ngircd.service %else if [ $1 = 0 ]; then /sbin/service ngircd stop >/dev/null 2>&1 || : /sbin/chkconfig --del ngircd fi %endif %postun %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %systemd_postun_with_restart ngircd.service %else if [ "$1" -ge "1" ]; then /sbin/service ngircd condrestart >/dev/null 2>&1 || : fi %endif %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README doc/*.txt doc/*.tmpl doc/sample-ngircd.conf %config(noreplace) %attr(660, root, ngircd) %{_sysconfdir}/ngircd.conf %config(noreplace) %attr(660, root, ngircd) %{_sysconfdir}/pam.d/ngircd %ghost %config(noreplace) %attr(660, root, ngircd) %{_sysconfdir}/ngircd.motd %if 0%{?rhel} > 6 || 0%{?fedora} > 18 %{_unitdir}/ngircd.service %else %{_initrddir}/ngircd %endif %{_sbindir}/ngircd %{_mandir}/man5/ngircd.conf* %{_mandir}/man8/ngircd.8* %dir %attr(775, root, ngircd) %{_localstatedir}/run/ngircd/ %changelog * Mon Dec 21 2015 Scott R. Shinn - 23 - Update to 23 * Wed Jun 17 2015 Fedora Release Engineering - 22.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Apr 06 2015 Kevin Fenzi 22.1-1 - Update to 22.1 * Mon Jan 19 2015 Kevin Fenzi 22-2 - Set default gnutls ciphers to "@SYSTEM". Fixes bug #1179328 * Mon Oct 13 2014 Kevin Fenzi 22-1 - Update to 22. Fixes bug #1152080 * Fri Oct 03 2014 Kevin Fenzi 21.1-6 - Sync ngircd.conf with sample template version. Fixes bug #1149012 * Sun Aug 17 2014 Fedora Release Engineering - 21.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Aug 11 2014 Kevin Fenzi 21.1-4 - Set pam config to allow connections by default. * Sat Jun 07 2014 Fedora Release Engineering - 21.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Apr 29 2014 Kevin Fenzi 21.1-2 - Enable pam support. Fixes bug #1092706 * Wed Mar 26 2014 Kevin Fenzi 21.1-1 - Update to 21.1 * Fri Nov 01 2013 Kevin Fenzi 21-1 - Update to 21 * Wed Sep 04 2013 Kevin Fenzi 20.3-2 - Fix docs to not include Makefiles. Fixes bug #1004557 * Sat Aug 24 2013 Kevin Fenzi 20.3-1 - Update to 20.3. Fixes bug #1000690 - Fix for CVE-2013-5580 * Sat Aug 03 2013 Fedora Release Engineering - 20.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Mar 29 2013 Kevin Fenzi 20.2-1 - Update to 20.2. - Fix for CVE-2013-1747 * Thu Mar 7 2013 Tomáš Mráz 20.1-2 - Rebuilt with new GnuTLS * Sat Feb 2 2013 Kevin Fenzi 20.1-1 - Update to 20.1 - Convert to systemd units for f19+ * Fri Jul 20 2012 Fedora Release Engineering - 18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Aug 22 2011 Kevin Fenzi - 18-2 - Fix config file typo. * Mon Aug 22 2011 Kevin Fenzi - 18-1 - Update to 18 * Tue Feb 08 2011 Fedora Release Engineering - 17.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jan 23 2011 Kevin Fenzi - 17.1-2 - Fix up for tmpfs /var/run - Remove fedora-usermgmt stuff - Fix username in config file to match up. * Tue Dec 21 2010 Kevin Fenzi - 17.1-1 - Update to 17.1 * Sun Nov 21 2010 Kevin Fenzi - 17-1 - Update to 17 * Sun Jul 04 2010 Kevin Fenzi - 16-1 - Update to 16 - Add ssl support with gnutls - Add zeroconf support * Sat Jul 25 2009 Fedora Release Engineering - 0.12.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Oct 23 2008 Andreas Thienemann 0.12.1-1 - Updated to 0.12.1 - Updated configuration sample * Mon Aug 11 2008 Tom "spot" Callaway 0.11.0-2 - fix license tag * Mon Feb 11 2008 Andreas Thienemann 0.11.0-1 - Updated to 0.11.0 * Tue Nov 20 2007 Andreas Thienemann 0.10.3-1 - Rebased to 0.10.3 - Incorporated patches from fw@strlen.de * Thu Apr 26 2007 Andreas Thienemann 0.10.1-3 - Removed libident requirement - Added patch from fw fixing server connections * Mon Apr 02 2007 Andreas Thienemann 0.10.1-2 - Added ngirc user * Sat Mar 31 2007 Andreas Thienemann 0.10.1-1 - Initial package