- change order load plugins on example file
This commit is contained in:
parent
8607b40278
commit
e4df1884d2
|
@ -23,19 +23,6 @@ plugin /var/lib/uhub/mod_logging.so "file=/var/log/uhub.log"
|
||||||
|
|
||||||
# A simple example plugin
|
# A simple example plugin
|
||||||
# plugin /var/lib/uhub/mod_example.so
|
# plugin /var/lib/uhub/mod_example.so
|
||||||
|
|
||||||
# Load the chat history plugin.
|
|
||||||
#
|
|
||||||
# This plugin provides chat history when users are connecting, or
|
|
||||||
# when users invoke the !history command.
|
|
||||||
# The history command can optionally take a parameter to indicate how many lines of history is requested.
|
|
||||||
#
|
|
||||||
# Parameters:
|
|
||||||
# history_max: the maximum number of messages to keep in history
|
|
||||||
# history_default: when !history is provided without arguments, then this default number of messages are returned.
|
|
||||||
# history_connect: the number of chat history messages to send when users connect (0 = do not send any history)
|
|
||||||
plugin /var/lib/uhub/mod_chat_history.so "history_max=200 history_default=10 history_connect=5"
|
|
||||||
|
|
||||||
# A plugin sending a welcome message.
|
# A plugin sending a welcome message.
|
||||||
#
|
#
|
||||||
# This plugin provides the following commands:
|
# This plugin provides the following commands:
|
||||||
|
@ -61,4 +48,15 @@ plugin /var/lib/uhub/mod_chat_history.so "history_max=200 history_default=10 his
|
||||||
# %S - Seconds (00-60) (Hub local time)
|
# %S - Seconds (00-60) (Hub local time)
|
||||||
plugin /var/lib/uhub/mod_welcome.so "motd=/etc/uhub/motd.txt rules=/etc/uhub/rules.txt"
|
plugin /var/lib/uhub/mod_welcome.so "motd=/etc/uhub/motd.txt rules=/etc/uhub/rules.txt"
|
||||||
|
|
||||||
|
# Load the chat history plugin.
|
||||||
|
#
|
||||||
|
# This plugin provides chat history when users are connecting, or
|
||||||
|
# when users invoke the !history command.
|
||||||
|
# The history command can optionally take a parameter to indicate how many lines of history is requested.
|
||||||
|
#
|
||||||
|
# Parameters:
|
||||||
|
# history_max: the maximum number of messages to keep in history
|
||||||
|
# history_default: when !history is provided without arguments, then this default number of messages are returned.
|
||||||
|
# history_connect: the number of chat history messages to send when users connect (0 = do not send any history)
|
||||||
|
plugin /var/lib/uhub/mod_chat_history.so "history_max=200 history_default=10 history_connect=5"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Summary: High performance ADC p2p hub.
|
Summary: High performance ADC p2p hub.
|
||||||
Name: uhub
|
Name: uhub
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
Release: 1
|
Release: 2
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
Group: Networking/File transfer
|
Group: Networking/File transfer
|
||||||
Source: uhub-%{version}.tar.gz
|
Source: uhub-%{version}.tar.gz
|
||||||
|
@ -9,6 +9,7 @@ URL: http://www.uhub.org
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
uhub is a high performance peer-to-peer hub for the ADC network.
|
uhub is a high performance peer-to-peer hub for the ADC network.
|
||||||
|
@ -22,6 +23,9 @@ Key features:
|
||||||
- Advanced access control support
|
- Advanced access control support
|
||||||
- Easy configuration
|
- Easy configuration
|
||||||
- plugin support
|
- plugin support
|
||||||
|
- mod_welcome - MOTD\RULES messages
|
||||||
|
- mod_auth_sipmle - auth with sqlite DB
|
||||||
|
- mod_logging - log hub activity
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
@ -40,8 +44,9 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/lib/uhub
|
mkdir -p $RPM_BUILD_ROOT/var/lib/uhub
|
||||||
|
|
||||||
install uhub $RPM_BUILD_ROOT/usr/bin/
|
install uhub $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
install uhub-passwd $RPM_BUILD_ROOT/usr/bin/
|
||||||
> doc/motd.txt
|
> doc/motd.txt
|
||||||
install -m644 doc/uhub.conf doc/users.conf doc/rules.txt doc/motd.txt doc/plugins.conf $RPM_BUILD_ROOT/etc/uhub
|
install -m644 doc/uhub.conf doc/users.conf doc/rules.txt doc/motd.txt doc/plugins.conf doc/users.db $RPM_BUILD_ROOT/etc/uhub
|
||||||
install doc/init.d.RedHat/etc/init.d/uhub $RPM_BUILD_ROOT/etc/init.d
|
install doc/init.d.RedHat/etc/init.d/uhub $RPM_BUILD_ROOT/etc/init.d
|
||||||
install -m644 doc/init.d.RedHat/etc/sysconfig/uhub $RPM_BUILD_ROOT/etc/sysconfig/
|
install -m644 doc/init.d.RedHat/etc/sysconfig/uhub $RPM_BUILD_ROOT/etc/sysconfig/
|
||||||
install -m644 doc/init.d.RedHat/etc/logrotate.d/uhub $RPM_BUILD_ROOT/etc/logrotate.d/
|
install -m644 doc/init.d.RedHat/etc/logrotate.d/uhub $RPM_BUILD_ROOT/etc/logrotate.d/
|
||||||
|
@ -59,6 +64,7 @@ install -m644 mod_*.so $RPM_BUILD_ROOT/var/lib/uhub
|
||||||
%config(noreplace) %{_sysconfdir}/uhub/motd.txt
|
%config(noreplace) %{_sysconfdir}/uhub/motd.txt
|
||||||
%config(noreplace) %{_sysconfdir}/uhub/rules.txt
|
%config(noreplace) %{_sysconfdir}/uhub/rules.txt
|
||||||
%config(noreplace) %{_sysconfdir}/uhub/plugins.conf
|
%config(noreplace) %{_sysconfdir}/uhub/plugins.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/uhub/users.db
|
||||||
%{_sysconfdir}/init.d/uhub
|
%{_sysconfdir}/init.d/uhub
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/uhub
|
%config(noreplace) %{_sysconfdir}/logrotate.d/uhub
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/uhub
|
%config(noreplace) %{_sysconfdir}/sysconfig/uhub
|
||||||
|
@ -76,9 +82,14 @@ if [ $1 -gt 1 ] ; then
|
||||||
fi
|
fi
|
||||||
# need more informations about add services and users in system
|
# need more informations about add services and users in system
|
||||||
/usr/sbin/adduser -M -d /tmp -G nobody -s /sbin/nologin -c 'The Uhub ADC p2p hub Daemon' uhub >/dev/null 2>&1 ||:
|
/usr/sbin/adduser -M -d /tmp -G nobody -s /sbin/nologin -c 'The Uhub ADC p2p hub Daemon' uhub >/dev/null 2>&1 ||:
|
||||||
|
# write SSL create
|
||||||
|
echo "PLS see /usr/share/doc/uhub/"
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 26 2001 E_zombie
|
* Fri Dec 30 2011 E_zombie
|
||||||
|
- add users.db
|
||||||
|
- add new doc
|
||||||
|
* Tue Jun 26 2010 E_zombie
|
||||||
- add plugins.conf
|
- add plugins.conf
|
||||||
* Tue Jan 31 2010 E_zombie
|
* Tue Jan 31 2010 E_zombie
|
||||||
- change GROUP
|
- change GROUP
|
||||||
|
|
Loading…
Reference in New Issue