2010-01-27 18:01:50 +00:00
|
|
|
Summary: High performance ADC p2p hub.
|
2010-01-26 14:32:42 +00:00
|
|
|
Name: uhub
|
2010-07-29 08:26:55 +00:00
|
|
|
Version: 0.4.0
|
2012-01-23 11:32:05 +00:00
|
|
|
Release: 2
|
2010-02-01 09:22:12 +00:00
|
|
|
License: GPLv3
|
|
|
|
Group: Networking/File transfer
|
2010-01-26 14:32:42 +00:00
|
|
|
Source: uhub-%{version}.tar.gz
|
|
|
|
URL: http://www.uhub.org
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
2010-07-29 08:26:55 +00:00
|
|
|
BuildRequires: sqlite-devel
|
2012-01-23 11:32:05 +00:00
|
|
|
BuildRequires: openssl-devel
|
2010-01-26 14:32:42 +00:00
|
|
|
|
|
|
|
%description
|
2010-01-27 18:01:50 +00:00
|
|
|
uhub is a high performance peer-to-peer hub for the ADC network.
|
|
|
|
Its low memory footprint allows it to handle several thousand users on
|
|
|
|
high-end servers, or a small private hub on embedded hardware.
|
|
|
|
|
|
|
|
Key features:
|
|
|
|
- High performance and low memory usage
|
|
|
|
- IPv4 and IPv6 support
|
|
|
|
- Experimental SSL support (optional)
|
|
|
|
- Advanced access control support
|
|
|
|
- Easy configuration
|
2010-07-29 08:26:55 +00:00
|
|
|
- plugin support
|
2012-01-23 11:32:05 +00:00
|
|
|
- mod_welcome - MOTD\RULES messages
|
|
|
|
- mod_auth_sipmle - auth with sqlite DB
|
|
|
|
- mod_logging - log hub activity
|
2010-01-26 14:32:42 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
echo RPM_BUILD_ROOT = $RPM_BUILD_ROOT
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/uhub
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
|
2012-10-13 15:48:24 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/uhub
|
2010-01-26 14:32:42 +00:00
|
|
|
|
|
|
|
install uhub $RPM_BUILD_ROOT/usr/bin/
|
2012-01-23 11:32:05 +00:00
|
|
|
install uhub-passwd $RPM_BUILD_ROOT/usr/bin/
|
2010-01-26 14:32:42 +00:00
|
|
|
> doc/motd.txt
|
2012-01-23 11:32:05 +00:00
|
|
|
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
|
2010-01-26 14:32:42 +00:00
|
|
|
install doc/init.d.RedHat/etc/init.d/uhub $RPM_BUILD_ROOT/etc/init.d
|
2010-02-01 09:22:12 +00:00
|
|
|
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/
|
2010-01-26 14:32:42 +00:00
|
|
|
/bin/gzip -9c doc/uhub.1 > doc/uhub.1.gz &&
|
2010-02-01 09:22:12 +00:00
|
|
|
install -m644 doc/uhub.1.gz $RPM_BUILD_ROOT/usr/share/man/man1
|
2012-10-13 15:48:24 +00:00
|
|
|
install -m644 mod_*.so $RPM_BUILD_ROOT/usr/lib/uhub
|
2010-01-26 14:32:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS BUGS COPYING ChangeLog README TODO doc/Doxyfile doc/architecture.txt doc/compile.txt doc/extensions.txt doc/getstarted.txt doc/uhub.dot
|
|
|
|
%config(noreplace) /etc/uhub/uhub.conf
|
|
|
|
#%{_sysconfdir}/uhub/uhub.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/uhub/users.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/uhub/motd.txt
|
|
|
|
%config(noreplace) %{_sysconfdir}/uhub/rules.txt
|
2010-07-29 08:26:55 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/uhub/plugins.conf
|
2012-01-23 11:32:05 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/uhub/users.db
|
2010-01-26 14:32:42 +00:00
|
|
|
%{_sysconfdir}/init.d/uhub
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/uhub
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/uhub
|
|
|
|
/usr/share/man/man1/uhub.1.gz
|
|
|
|
%{_bindir}/uhub
|
2010-07-29 08:26:55 +00:00
|
|
|
%{_libdir}/uhub/mod_*.so
|
2010-01-26 14:32:42 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
2010-02-01 09:22:12 +00:00
|
|
|
/sbin/chkconfig --add uhub
|
|
|
|
if [ $1 -gt 1 ] ; then
|
|
|
|
/etc/rc.d/init.d/uhub restart >/dev/null || :
|
|
|
|
fi
|
2010-01-26 14:32:42 +00:00
|
|
|
# need more informations about add services and users in system
|
2010-02-01 09:22:12 +00:00
|
|
|
/usr/sbin/adduser -M -d /tmp -G nobody -s /sbin/nologin -c 'The Uhub ADC p2p hub Daemon' uhub >/dev/null 2>&1 ||:
|
2012-01-23 11:32:05 +00:00
|
|
|
# write SSL create
|
|
|
|
echo "PLS see /usr/share/doc/uhub/"
|
2010-01-26 14:32:42 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-01-23 11:32:05 +00:00
|
|
|
* Fri Dec 30 2011 E_zombie
|
|
|
|
- add users.db
|
|
|
|
- add new doc
|
|
|
|
* Tue Jun 26 2010 E_zombie
|
2010-07-29 08:26:55 +00:00
|
|
|
- add plugins.conf
|
2010-02-01 09:22:12 +00:00
|
|
|
* Tue Jan 31 2010 E_zombie
|
|
|
|
- change GROUP
|
|
|
|
- chmod for files
|
|
|
|
- add postinstall scripts
|
|
|
|
- fix "License"
|
2010-01-26 14:32:42 +00:00
|
|
|
* Tue Jan 26 2010 E_zombie
|
|
|
|
- first .spec release
|
|
|
|
|
|
|
|
|