Name: ngircd Version: 22.1 Release: 9 Summary: Next Generation IRC Daemon Group: System Environment/Daemons License: GPLv2+ URL: http://ngircd.barton.de/ Source0: ftp://ftp.berlios.de/pub/ngircd/ngircd-%{version}.tar.gz Source1: ngircd.init Source2: ngircd.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel, avahi-compat-howl-devel, %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 BuildRequires: tcp_wrappers-devel %else BuildRequires: tcp_wrappers %endif BuildRequires: libident-devel BuildRequires: gnutls-devel Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service 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 \ --enable-ipv6 make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} install -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/ngircd install -D -m 660 %{SOURCE2} %{buildroot}%{_sysconfdir}/ngircd.conf 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 # This adds the proper /etc/rc*.d links for the script /sbin/chkconfig --add ngircd %preun if [ $1 = 0 ]; then /sbin/service ngircd stop >/dev/null 2>&1 || : /sbin/chkconfig --del ngircd fi %postun if [ "$1" -ge "1" ]; then /sbin/service ngircd condrestart >/dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README doc/* %config(noreplace) %attr(660, root, ngircd) %{_sysconfdir}/ngircd.conf %ghost %config(noreplace) %attr(660, root, ngircd) %{_sysconfdir}/ngircd.motd %{_initrddir}/ngircd %{_sbindir}/ngircd %{_mandir}/man5/ngircd.conf* %{_mandir}/man8/ngircd.8* %dir %attr(775, root, ngircd) %{_localstatedir}/run/ngircd/ %changelog * Thu Apr 23 2015 Scott R. Shinn - 22.1-9 - Update to 22.1 * Thu Nov 20 2014 Scott R. Shinn - 22-8 - Update to 22 * Tue Apr 8 2014 Scott R. Shinn - 21.1-7 - Update to 21.1 * Wed Sep 25 2013 Scott R. Shinn - 20.3-6 - Update to 20.3 * Tue Mar 19 2013 Scott R. Shinn - 20.2-5 - Update to 20.2 * 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