Группа :: Сети/IRC
Пакет: unreal
Главная Изменения Спек Патчи Загрузить Bugs and FR
%define chroot %_localstatedir/%name
Name: unreal
Version: 3.2.6
Release: alt0.M24.1
Summary: UnrealIRCD is a powerful irc daemon
Summary(ru_RU.KOI8-R): UnrealIRCD это мощный irc-сервер
Summary(ru_RU.UTF-8): UnrealIRCD я█я┌п╬ п╪п╬я┴п╫я▀п╧ irc-я│п╣я─п╡п╣я─
License: GPL
Group: Networking/IRC
URL: http://www.unrealircd.net
Source0: http://unrealircd.pimpmylinux.org/Unreal%version.tar.gz
Source1: %name.init
Source3: %name.cert.pem
Source4: %name.key.pem
Source5: %name.req.pem
Source6: uircd.chroot.all
Source7: uircd.chroot.conf
Source8: uircd.chroot.lib
Source9: uircd.chroot.bin
Source10: uircd.chroot.log
Source11: uircd.motd
Source12: uircd.rules
Source13: uircd.tune
Source14: %name.sysconfig
Packager: Vladimir V Kamarzin <vvk at altlinux.ru>
# Automatically added by buildreq on Thu Apr 28 2005
PreReq: /etc/chroot.d
BuildRequires: libssl-devel net-tools openssl pkgconfig zlib-devel gcc-c++
Requires: chrooted openssl libssl zlib
%description
Unreal was created from the Dreamforge IRCd that was
formerly used by the DALnet IRC Network. Over the years,
many new and exciting features have been added to Unreal.
UnrealIRCd is designed to be an advanced IRCd, so it is
probably not the best choice for beginners.
%description -l ru_RU.KOI8-R
Unreal был содан из Dreamforge IRCd который использовался
в DALnet IRC сети. С годами unreal обрёл множество новых
фич и багов. UnrealIRCd это сложный и расширяемый сервер,
и не является лучшим выбором для новичков.
%package doc
Summary: Documentation files for Unreal IRC daemon
Summary(ru_RU.KOI8-R): Документация irc сервера Unreal
Group: Networking/IRC
Provides: unreal-doc = %version-%release
%description doc
Documentation files for Unreal IRC daemon
%description doc -l ru_RU.KOI8-R
Документация irc сервера Unreal
%prep
%setup -q -n Unreal3.2
%build
%configure \
--with-showlistmodes \
--enable-nospoof \
--enable-hub \
--enable-ssl \
--enable-ziplinks \
--enable-prefixaq \
--with-listen=5 \
--with-dpath=%chroot \
--with-spath=%_sbindir/uircd \
--with-nick-history=2000 \
--with-sendq=3000000 \
--with-bufferpool=18 \
--with-permissions=0600 \
--with-fd-setsize=1024 \
--enable-dynamic-linking
%make_build
%install
install -pD -m0755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m0755 %SOURCE14 %buildroot%_sysconfdir/sysconfig/%name
mkdir -p %buildroot%_sysconfdir/unrealircd/aliases
mkdir -p %buildroot%_datadir/%name/networks
mkdir -p %buildroot%_sbindir
mkdir -p %buildroot%_libdir/%name/modules
mkdir -p %buildroot%chroot/aliases
mkdir -p %buildroot%chroot%_sysconfdir
mkdir -p %buildroot%chroot/dev
mkdir -p %buildroot%chroot%_var/run
mkdir -p %buildroot%chroot/{lib,lib64}
mkdir -p %buildroot%chroot/tmp
mkdir -p %buildroot%chroot/bin
mkdir -p %buildroot%chroot/modules
mkdir -p %buildroot%chroot%_sbindir
mkdir -p %buildroot%chroot/networks
install -pD -m640 doc/example.conf %buildroot%_sysconfdir/unrealircd/unrealircd.conf
install -pD -m640 %SOURCE11 %buildroot%_sysconfdir/unrealircd/uircd.motd
install -pD -m640 %SOURCE12 %buildroot%_sysconfdir/unrealircd/uircd.rules
install -pD -m640 %SOURCE13 %buildroot%_sysconfdir/unrealircd/ircd.tune
cp *.conf %buildroot%_sysconfdir/unrealircd/
cp aliases/*.conf %buildroot%_sysconfdir/unrealircd/aliases/
cp src/modules/*.so %buildroot%_libdir/%name/modules/
cp networks/*.network %buildroot%_datadir/%name/networks/
cp networks/makenet %buildroot%_datadir/%name/networks/
cp src/ircd %buildroot%_sbindir/uircd
install -m 0640 -D %SOURCE3 %buildroot%_datadir/%name/server.cert.pem
install -m 0640 -D %SOURCE4 %buildroot%_datadir/%name/server.key.pem
install -m 0640 -D %SOURCE5 %buildroot%_datadir/%name/server.req.pem
install -m 0750 -D %SOURCE6 %buildroot%_sysconfdir/chroot.d/%name.all
install -m 0750 -D %SOURCE7 %buildroot%_sysconfdir/chroot.d/%name.conf
install -m 0750 -D %SOURCE8 %buildroot%_sysconfdir/chroot.d/%name.lib
install -m 0750 -D %SOURCE9 %buildroot%_sysconfdir/chroot.d/%name.bin
install -m 0750 -D %SOURCE10 %buildroot%_sysconfdir/chroot.d/%name.log
%pre
if [ $1 = 1 ]; then
%_sbindir/groupadd -r uircd >/dev/null 2>&1 ||:
%_sbindir/useradd -M -r uircd -g uircd -s /dev/null -c "Unreal IRC server" \
-d %_localstatedir/%name >/dev/null 2>&1 ||:
fi
%post
%post_service %name
%preun
%preun_service %name
subst 's|-a %chroot/dev/log||' %_sysconfdir/sysconfig/syslogd
%files
%doc Changes Donation INSTALL.REMOTEINC README
%config %_sysconfdir/chroot.d/*
%config(noreplace) %_sysconfdir/unrealircd
%config(noreplace) %attr(0640,root,root) %_datadir/%name/*.pem
%config(noreplace) %_sysconfdir/sysconfig/%name
%_initdir/%name
%_datadir/%name/networks
%_libdir/%name/modules/commands.so
%_libdir/%name/modules/cloak.so
%_sbindir/uircd
%dir %attr(1770,root,uircd) %chroot
%dir %chroot/etc
%dir %chroot/aliases
%dir %chroot/dev
%dir %chroot%_var/run
%dir %chroot/lib
%dir %chroot/lib64
%dir %chroot/tmp
%dir %chroot/modules
%dir %chroot%_sbindir
%dir %chroot/networks
%files doc
%doc doc
%changelog
…
Полный changelog можно просмотреть здесь
Name: unreal
Version: 3.2.6
Release: alt0.M24.1
Summary: UnrealIRCD is a powerful irc daemon
Summary(ru_RU.KOI8-R): UnrealIRCD это мощный irc-сервер
Summary(ru_RU.UTF-8): UnrealIRCD я█я┌п╬ п╪п╬я┴п╫я▀п╧ irc-я│п╣я─п╡п╣я─
License: GPL
Group: Networking/IRC
URL: http://www.unrealircd.net
Source0: http://unrealircd.pimpmylinux.org/Unreal%version.tar.gz
Source1: %name.init
Source3: %name.cert.pem
Source4: %name.key.pem
Source5: %name.req.pem
Source6: uircd.chroot.all
Source7: uircd.chroot.conf
Source8: uircd.chroot.lib
Source9: uircd.chroot.bin
Source10: uircd.chroot.log
Source11: uircd.motd
Source12: uircd.rules
Source13: uircd.tune
Source14: %name.sysconfig
Packager: Vladimir V Kamarzin <vvk at altlinux.ru>
# Automatically added by buildreq on Thu Apr 28 2005
PreReq: /etc/chroot.d
BuildRequires: libssl-devel net-tools openssl pkgconfig zlib-devel gcc-c++
Requires: chrooted openssl libssl zlib
%description
Unreal was created from the Dreamforge IRCd that was
formerly used by the DALnet IRC Network. Over the years,
many new and exciting features have been added to Unreal.
UnrealIRCd is designed to be an advanced IRCd, so it is
probably not the best choice for beginners.
%description -l ru_RU.KOI8-R
Unreal был содан из Dreamforge IRCd который использовался
в DALnet IRC сети. С годами unreal обрёл множество новых
фич и багов. UnrealIRCd это сложный и расширяемый сервер,
и не является лучшим выбором для новичков.
%package doc
Summary: Documentation files for Unreal IRC daemon
Summary(ru_RU.KOI8-R): Документация irc сервера Unreal
Group: Networking/IRC
Provides: unreal-doc = %version-%release
%description doc
Documentation files for Unreal IRC daemon
%description doc -l ru_RU.KOI8-R
Документация irc сервера Unreal
%prep
%setup -q -n Unreal3.2
%build
%configure \
--with-showlistmodes \
--enable-nospoof \
--enable-hub \
--enable-ssl \
--enable-ziplinks \
--enable-prefixaq \
--with-listen=5 \
--with-dpath=%chroot \
--with-spath=%_sbindir/uircd \
--with-nick-history=2000 \
--with-sendq=3000000 \
--with-bufferpool=18 \
--with-permissions=0600 \
--with-fd-setsize=1024 \
--enable-dynamic-linking
%make_build
%install
install -pD -m0755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m0755 %SOURCE14 %buildroot%_sysconfdir/sysconfig/%name
mkdir -p %buildroot%_sysconfdir/unrealircd/aliases
mkdir -p %buildroot%_datadir/%name/networks
mkdir -p %buildroot%_sbindir
mkdir -p %buildroot%_libdir/%name/modules
mkdir -p %buildroot%chroot/aliases
mkdir -p %buildroot%chroot%_sysconfdir
mkdir -p %buildroot%chroot/dev
mkdir -p %buildroot%chroot%_var/run
mkdir -p %buildroot%chroot/{lib,lib64}
mkdir -p %buildroot%chroot/tmp
mkdir -p %buildroot%chroot/bin
mkdir -p %buildroot%chroot/modules
mkdir -p %buildroot%chroot%_sbindir
mkdir -p %buildroot%chroot/networks
install -pD -m640 doc/example.conf %buildroot%_sysconfdir/unrealircd/unrealircd.conf
install -pD -m640 %SOURCE11 %buildroot%_sysconfdir/unrealircd/uircd.motd
install -pD -m640 %SOURCE12 %buildroot%_sysconfdir/unrealircd/uircd.rules
install -pD -m640 %SOURCE13 %buildroot%_sysconfdir/unrealircd/ircd.tune
cp *.conf %buildroot%_sysconfdir/unrealircd/
cp aliases/*.conf %buildroot%_sysconfdir/unrealircd/aliases/
cp src/modules/*.so %buildroot%_libdir/%name/modules/
cp networks/*.network %buildroot%_datadir/%name/networks/
cp networks/makenet %buildroot%_datadir/%name/networks/
cp src/ircd %buildroot%_sbindir/uircd
install -m 0640 -D %SOURCE3 %buildroot%_datadir/%name/server.cert.pem
install -m 0640 -D %SOURCE4 %buildroot%_datadir/%name/server.key.pem
install -m 0640 -D %SOURCE5 %buildroot%_datadir/%name/server.req.pem
install -m 0750 -D %SOURCE6 %buildroot%_sysconfdir/chroot.d/%name.all
install -m 0750 -D %SOURCE7 %buildroot%_sysconfdir/chroot.d/%name.conf
install -m 0750 -D %SOURCE8 %buildroot%_sysconfdir/chroot.d/%name.lib
install -m 0750 -D %SOURCE9 %buildroot%_sysconfdir/chroot.d/%name.bin
install -m 0750 -D %SOURCE10 %buildroot%_sysconfdir/chroot.d/%name.log
%pre
if [ $1 = 1 ]; then
%_sbindir/groupadd -r uircd >/dev/null 2>&1 ||:
%_sbindir/useradd -M -r uircd -g uircd -s /dev/null -c "Unreal IRC server" \
-d %_localstatedir/%name >/dev/null 2>&1 ||:
fi
%post
%post_service %name
%preun
%preun_service %name
subst 's|-a %chroot/dev/log||' %_sysconfdir/sysconfig/syslogd
%files
%doc Changes Donation INSTALL.REMOTEINC README
%config %_sysconfdir/chroot.d/*
%config(noreplace) %_sysconfdir/unrealircd
%config(noreplace) %attr(0640,root,root) %_datadir/%name/*.pem
%config(noreplace) %_sysconfdir/sysconfig/%name
%_initdir/%name
%_datadir/%name/networks
%_libdir/%name/modules/commands.so
%_libdir/%name/modules/cloak.so
%_sbindir/uircd
%dir %attr(1770,root,uircd) %chroot
%dir %chroot/etc
%dir %chroot/aliases
%dir %chroot/dev
%dir %chroot%_var/run
%dir %chroot/lib
%dir %chroot/lib64
%dir %chroot/tmp
%dir %chroot/modules
%dir %chroot%_sbindir
%dir %chroot/networks
%files doc
%doc doc
%changelog
…
Полный changelog можно просмотреть здесь