rpms/ngircd/devel ngircd.conf, NONE, 1.1 ngircd.init, NONE, 1.1 ngircd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Andreas Thienemann (ixs)
fedora-extras-commits at redhat.com
Mon Feb 11 16:50:02 UTC 2008
Author: ixs
Update of /cvs/pkgs/rpms/ngircd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7107
Modified Files:
.cvsignore sources
Added Files:
ngircd.conf ngircd.init ngircd.spec
Log Message:
* Mon Feb 11 2008 Andreas Thienemann <andreas at bawue.net> 0.11.0-1
- Updated to 0.11.0
***** Error reading new file: [Errno 2] No such file or directory: 'ngircd.conf'
--- NEW FILE ngircd.init ---
#!/bin/bash
#
# ngircd This shell script takes care of starting and stopping
# the ngircd IRC daemon.
#
# chkconfig: - 80 30
# description: ngircd is an IRC daemon
# processname: ngircd
# pidfile: /var/run/ngircd.pid
# Source function library.
. /etc/rc.d/init.d/functions
prog=ngircd
RETVAL=0
start() {
echo -n $"Starting $prog: "
daemon ngircd
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/ngircd
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc ngircd
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/ngircd
}
reload() {
echo -n $"Reloading $prog: "
killproc ngircd -HUP
RETVAL=$?
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status ngircd
RETVAL=$?
;;
restart)
stop
start
;;
reload)
reload
;;
condrestart)
if [ -f /var/run/ngircd/ngircd.pid ] ; then
stop
start
fi
;;
*)
echo $"Usage: $prog {start|stop|restart|reload|condrestart|status|help}"
exit 1
esac
exit $RETVAL
--- NEW FILE ngircd.spec ---
%define uid 36
%define username ngircd
%define homedir /tmp
%define gecos "Next Generation IRC Daemon"
Name: ngircd
Version: 0.11.0
Release: 1%{?dist}
Summary: Next Generation IRC Daemon
Group: System Environment/Daemons
License: GPL
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, tcp_wrappers-devel
BuildRequires: libident-devel
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
Requires(pre): fedora-usermgmt
Requires(postun): fedora-usermgmt
%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
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
/usr/sbin/fedora-groupadd %uid -r %username &>/dev/null || :
/usr/sbin/fedora-useradd %uid -r -s /sbin/nologin -d %homedir -M \
-c '%gecos' -g %username %username &>/dev/null || :
%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
test "$1" != 0 || /usr/sbin/fedora-userdel %username &>/dev/null || :
test "$1" != 0 || /usr/sbin/fedora-groupdel %username &>/dev/null || :
%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
* Mon Feb 11 2008 Andreas Thienemann <andreas at bawue.net> 0.11.0-1
- Updated to 0.11.0
* Tue Nov 20 2007 Andreas Thienemann <andreas at bawue.net> 0.10.3-1
- Rebased to 0.10.3
- Incorporated patches from fw at strlen.de
* Thu Apr 26 2007 Andreas Thienemann <andreas at bawue.net> 0.10.1-3
- Removed libident requirement
- Added patch from fw fixing server connections
* Mon Apr 02 2007 Andreas Thienemann <andreas at bawue.net> 0.10.1-2
- Added ngirc user
* Sat Mar 31 2007 Andreas Thienemann <andreas at bawue.net> 0.10.1-1
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ngircd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 20 Nov 2007 18:47:53 -0000 1.1
+++ .cvsignore 11 Feb 2008 16:49:26 -0000 1.2
@@ -0,0 +1 @@
+ngircd-0.11.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ngircd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 20 Nov 2007 18:47:53 -0000 1.1
+++ sources 11 Feb 2008 16:49:26 -0000 1.2
@@ -0,0 +1 @@
+c322656b173ecec3d626355c0c3e875f ngircd-0.11.0.tar.gz
More information about the fedora-extras-commits
mailing list