rpms/ratbox-services/devel import.log, NONE, 1.1 ratbox-services-1.2.1-dbpath.patch, NONE, 1.1 ratbox-services.conf, NONE, 1.1 ratbox-services.init, NONE, 1.1 ratbox-services.logrotate, NONE, 1.1 ratbox-services.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Marek Mahut
mmahut at fedoraproject.org
Tue Sep 2 09:23:52 UTC 2008
- Previous message (by thread): rpms/ocaml-ocamlnet/devel ocaml-ocamlnet.spec,1.6,1.7
- Next message (by thread): rpms/ratbox-services/F-9 ratbox-services-1.2.1-dbpath.patch, NONE, 1.1 ratbox-services.conf, NONE, 1.1 ratbox-services.init, NONE, 1.1 ratbox-services.logrotate, NONE, 1.1 ratbox-services.spec, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mmahut
Update of /cvs/pkgs/rpms/ratbox-services/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7160/devel
Modified Files:
.cvsignore sources
Added Files:
import.log ratbox-services-1.2.1-dbpath.patch
ratbox-services.conf ratbox-services.init
ratbox-services.logrotate ratbox-services.spec
Log Message:
initial import
--- NEW FILE import.log ---
ratbox-services-1_2_1-1_fc8:HEAD:ratbox-services-1.2.1-1.fc8.src.rpm:1220346866
ratbox-services-1.2.1-dbpath.patch:
--- NEW FILE ratbox-services-1.2.1-dbpath.patch ---
Marek Mahut <mmahut at fedoraproject.org>: fixing DB path
diff -Naur ratbox-services-1.2.1-upstream/include/config.h ratbox-services-1.2.1/include/config.h
--- ratbox-services-1.2.1-upstream/include/config.h 2008-08-29 10:03:39.000000000 +0200
+++ ratbox-services-1.2.1/include/config.h 2008-08-29 10:05:31.000000000 +0200
@@ -9,7 +9,7 @@
#define PID_PATH RUNDIR "/ratbox-services.pid"
#define LOG_PATH LOGDIR "/ratbox-services.log"
#define HELP_PATH HELPDIR
-#define DB_PATH SYSCONFDIR "/ratbox-services.db"
+#define DB_PATH "/var/lib/ratbox-services/ratbox-services.db"
/* SMALL_NETWORK
* If your network is fairly small, enable this to save some memory.
--- NEW FILE ratbox-services.conf ---
serverinfo {
name = "ratbox.services";
sid = "66K";
description = "ratbox services";
ratbox = yes;
};
admin {
name = "Administrator";
description = "Main Server Administrator";
email = "<root at localhost>";
};
connect "ircd.ratbox" {
host = "127.0.0.1";
password = "Modify Me!"; /* this password needs to be changed */
port = 6667;
};
service "userserv" {
nick = "USERSERV";
username = "user";
host = "services.int";
realname = "user registration service";
flags = opered, msg_self;
loglevel = 5;
};
service "chanserv" {
nick = "CHANSERV";
username = "chan";
host = "services.int";
realname = "channel registration service";
flags = opered, login_help;
};
service "nickserv" {
nick = "NICKSERV";
username = "nick";
host = "services.int";
realname = "nickname services";
flags = opered, msg_self, disabled;
warn_string = "This nickname is registered, you may be disconnected if a user regains this nickname.";
};
--- NEW FILE ratbox-services.init ---
#!/bin/sh
#
# ratbox-services Startup script for the ratbox-services server
#
# chkconfig: - 85 15
# description: ratbox-services
#
# processname: ratbox-services
# config: /etc/ratbox-services.conf
# pidfile: /var/run/ratbox-services.pid
#
# Note: pidfile is assumed to be created
# by ratbox-services (config: server.pid-file).
# If not, uncomment 'pidof' line.
# Source function library
. /etc/rc.d/init.d/functions
USER=ircd
prog="ratbox-services"
ratbox_services="/usr/sbin/ratbox-services"
RETVAL=0
start() {
echo -n $"Starting $prog: "
if [ ! -f /var/run/ratbox-services.pid ] ; then
touch /var/run/ratbox-services.pid
chown ircd:ircd /var/run/ratbox-services.pid
fi
daemon --user $USER $ratbox_services
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc $ratbox_services
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
return $RETVAL
}
reload() {
echo -n $"Reloading $prog: "
killproc $ratbox_services -HUP
RETVAL=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/$prog ]; then
stop
start
fi
;;
reload)
reload
;;
status)
status $ratbox_services
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|reload|rehash|status}"
RETVAL=1
esac
exit $RETVAL
--- NEW FILE ratbox-services.logrotate ---
#
# Rotate ratbox-services log files.
#
/var/log/ratbox-services/*.log {
create 600 root root
missingok
size 5M
postrotate
/sbin/service ratbox-services reload 2> /dev/null > /dev/null || true
endscript
}
--- NEW FILE ratbox-services.spec ---
Name: ratbox-services
Version: 1.2.1
Release: 1%{?dist}
Summary: Service package for ircd-ratbox
Group: System Environment/Daemons
License: GPLv2
URL: http://services.ircd-ratbox.org
Source0: http://services.ircd-ratbox.org/download/%{name}-%{version}.tgz
Source1: ratbox-services.init
Source2: ratbox-services.conf
Source3: ratbox-services.logrotate
Patch0: ratbox-services-1.2.1-dbpath.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bison, flex, mysql-devel, sqlite-devel, postgresql-devel
Requires: MTA, ircd-ratbox
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
%description
ratbox-services is a services package written mostly from
scratch for use with ircd-ratbox. It is highly configurable,
with nearly all options being set in a config that can be
rehashed rather than set at compile time. It also uses the
SQLite database backend, which works as a database interface
to a normal file, meaning no seperate database software must be running.
%package devel
Summary: Devel package for ircd-ratbox service
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%description devel
Headers for ratbox-services, service package for ircd-ratbox.
%prep
%setup -q
%patch0 -p1 -b .dbpath
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(definetolength.pl)/d'
EOF
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
sed 's/-Werror//g' -i configure # usage of -Werror in stable version of software is a bug
%configure \
--bindir=%{_sbindir} \
--with-helpdir=%{_datadir}/%{name} \
--with-confdir=%{_sysconfdir} \
--sysconfdir=%{_sysconfdir} \
--with-logdir=%{_var}/log/%{name} \
--with-nicklen=32 \
--with-topiclen=350 \
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_var}/lib/%{name}/
install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
install -D -m640 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ratbox-services.conf
install -D -m664 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ratbox-services
install -D -m655 tools/base/schema-sqlite.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/schemas/schema-sqlite.txt
install -D -m655 tools/base/schema-mysql.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/schemas/schema-mysql.txt
install -D -m655 tools/base/schema-pgsql.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/schemas/schema-pgsql.txt
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 0 ]; then
/sbin/chkconfig --add ratbox-services
fi
if [ ! -e %{_var}/lib/%{name}/%{name}.db ]; then
/usr/bin/sqlite3 init %{_var}/lib/%{name}/%{name}.db
/usr/bin/sqlite3 %{_var}/lib/%{name}/%{name}.db < %{_datadir}/%{name}/schemas/schema-sqlite.txt
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service ratbox-services stop >/dev/null 2>&1
/sbin/chkconfig --del ratbox-services
fi
%files
%defattr(-,root,root)
%doc CREDITS DBMOVE INSTALL* LICENSE RELEASE_NOTES SVN-Access README doc/*
%attr(-,root,ircd) %{_sbindir}/%{name}
%{_sbindir}/*.pl
%{_sysconfdir}/init.d/%{name}
%{_datadir}/%{name}
%config(noreplace) %attr(-,root,ircd) %{_sysconfdir}/ratbox-services.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/ratbox-services
%dir %attr(-,ircd,ircd) %{_var}/lib/%{name}
%dir %attr(750,ircd,ircd) %{_var}/log/%{name}
%exclude %{_sysconfdir}/example.conf
%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
%changelog
* Wed Aug 28 2008 Marek Mahut <mmahut at fedoraproject.org> - 1.2.1-1
- Initial package build
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ratbox-services/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Sep 2008 21:10:42 -0000 1.1
+++ .cvsignore 2 Sep 2008 09:23:21 -0000 1.2
@@ -0,0 +1 @@
+ratbox-services-1.2.1.tgz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ratbox-services/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Sep 2008 21:10:42 -0000 1.1
+++ sources 2 Sep 2008 09:23:21 -0000 1.2
@@ -0,0 +1 @@
+2db526a3d42bfdccf150666ffb335283 ratbox-services-1.2.1.tgz
- Previous message (by thread): rpms/ocaml-ocamlnet/devel ocaml-ocamlnet.spec,1.6,1.7
- Next message (by thread): rpms/ratbox-services/F-9 ratbox-services-1.2.1-dbpath.patch, NONE, 1.1 ratbox-services.conf, NONE, 1.1 ratbox-services.init, NONE, 1.1 ratbox-services.logrotate, NONE, 1.1 ratbox-services.spec, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list