瀏覽代碼

adjustments

Ralf S. Engelschall 24 年之前
父節點
當前提交
e547d058ee
共有 2 個文件被更改,包括 28 次插入19 次删除
  1. 23 18
      ircd/ircd.conf
  2. 5 1
      ircd/ircd.spec

+ 23 - 18
ircd/ircd.conf

@@ -2,27 +2,32 @@
 ##  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
+#   Machine Information
+#   M;<Server NAME>;<YOUR Internet IP#>;<Geographic Location>;<Port>
+M;localhost;127.0.0.1;OpenPKG;6667
 
-# A;<Your Name/Location>;<Your Electronic Mailing Addr>;<other information>;;
+#   Administrative Information
+#   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>;
+#   Port Connections
+#   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;
+#   Connection Classes
+#   Y:<Class>:<Ping Frequency>:<Connect freq>:<Max Links>:<SendQ>:<Local Limit>:<Global Limit>
+#   Y;<Class>;<Ping Frequency>;<Connect freq>;<Max Links>;<SendQ>;;              (server class)
+#   Y;<Class>;<Ping Frequency>;;<Max Links>;<SendQ>;<Local Limit>;<Global Limit> (client class)
+Y;10;90;300;1;4000000
+Y;20;90;;100;512000;10;32
+
+#   Client Connections
+#   I;<TARGET Host Addr>;<Password>;<TARGET Hosts NAME>;<Port>;<Class>
+#   i;<TARGET Host Addr>;<Password>;<TARGET Hosts NAME>;<Port>;<Class> (restricted clients)
+I;127.0.0.1;;;;20
+i;*@*;;;;20
+
+#   Bounce Server
+#   B;<Class|Host Mask>;;<Server Name>;<Port>;
+#B;;;irc2.foo.dom;6667;
 

+ 5 - 1
ircd/ircd.spec

@@ -32,7 +32,7 @@ Distribution: OpenPKG [EXP]
 Group:        IRC
 License:      BSD
 Version:      2.10.3p2
-Release:      3
+Release:      5
 
 #   list of sources
 Source0:      ftp://ftp.irc.org/irc/server/irc%{version}.tgz
@@ -69,9 +69,13 @@ AutoReqProv:  no
         --sysconfdir=%{l_prefix}/etc/ircd \
         --libdir=%{l_prefix}/lib/ircd \
         --localstatedir=%{l_prefix}/var/ircd \
+        --with-zlib-prefix=%{l_prefix} \
         --with-zlib \
         --disable-dsm
     ( cd *-*-*
+      %{l_rpmtool} subst \
+          's;^#undef ZIP_LINKS;#define ZIP_LINKS;' \
+          -- config.h
       %{l_make} %{l_mflags -O} server \
           ircd_dir=%{l_prefix} \
           ircd_conf_dir=%{l_prefix}/etc/ircd \