Browse Source

fix irc daemon

master
parent
commit
8b76136f59
  1. 28
      ircd/ircd.conf
  2. 18
      ircd/ircd.spec

28
ircd/ircd.conf

@ -0,0 +1,28 @@
##
## ircd.conf -- IRC Daemon Configuration
##
# M;<Server NAME>;<YOUR Internet IP#>;<Geographic Location>;<Port>
M;irc.foo.dom;127.0.0.1;OpenPKG Sample IRC Server;6667
# A;<Your Name/Location>;<Your Electronic Mailing Addr>;<other information>;;
A;OpenPKG Sample IRC Server;John Doe Admin <admin@irc.foo.dom>;Client Server;;
# P;<YOUR Internet IP#>;<*>;<Internet IP Mask>;<Port>;
P;127.0.0.1;;;6667;
# SERVER CLASSES
# Y;<Class>;<Ping Frequency>;<Connect freq>;<Max Links>;<SendQ>;;
Y;2;90;300;1;4000000
# CLIENT CLASSES
# Y;<Class>;<Ping Frequency>;;<Max Links>;<SendQ>;<Local Limit>;<Global Limit>
Y;10;90;;100;512000;10;32
# I;<TARGET Host Addr>;<Password>;<TARGET Hosts NAME>;<Port>;<Class>
# i;<TARGET Host Addr>;<Password>;<TARGET Hosts NAME>;<Port>;<Class>
i;*@*;;;;10
# B;<Class|Host Mask>;;<Server Name>;<Port>;
B;-1;;irc2.foo.dom;6667;

18
ircd/ircd.spec

@ -32,12 +32,13 @@ Distribution: OpenPKG [EXP]
Group: IRC
License: BSD
Version: 2.10.3p2
Release: 2
Release: 3
# list of sources
Source0: ftp://ftp.irc.org/irc/server/irc%{version}.tgz
Source1: rc.ircd
Source2: ircd.conf
Patch0: irc%{version}.patch
# build information
Prefix: %{l_prefix}
@ -48,10 +49,15 @@ AutoReq: no
AutoReqProv: no
%description
ircII is the classical Unix IRC client.
ircd is the server (daemon) program for the Internet Relay Chat.
The ircd is a server in that its function is to "serve" the client
program ircII with messages and commands. All commands and user
messages are passed directly to the ircd for processing and relaying
to other ircd sites.
%prep
%setup -q -n irc%{version}
%patch -p0
%build
CC="%{l_cc}" \
@ -61,12 +67,13 @@ AutoReqProv: no
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/ircd \
--libdir=%{l_prefix}/lib/ircd \
--localstatedir=%{l_prefix}/var/ircd \
--with-zlib \
--disable-ip6 \
--disable-dsm
( cd *-*-*
%{l_make} %{l_mflags -O} all \
%{l_make} %{l_mflags -O} server \
ircd_dir=%{l_prefix} \
ircd_conf_dir=%{l_prefix}/etc/ircd \
ircd_var_dir=%{l_prefix}/var/ircd \
ircd_log_dir=%{l_prefix}/var/ircd
@ -75,8 +82,9 @@ AutoReqProv: no
%install
rm -rf $RPM_BUILD_ROOT
( cd *-*-*
%{l_make} %{l_mflags} install \
%{l_make} %{l_mflags} install-server \
prefix=$RPM_BUILD_ROOT%{l_prefix} \
ircd_dir=$RPM_BUILD_ROOT%{l_prefix} \
ircd_conf_dir=$RPM_BUILD_ROOT%{l_prefix}/etc/ircd \
ircd_var_dir=$RPM_BUILD_ROOT%{l_prefix}/var/ircd \
ircd_log_dir=$RPM_BUILD_ROOT%{l_prefix}/var/ircd

Loading…
Cancel
Save