1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/unreal-ircd/unreal-ircd.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ "$prefix_auto" = 1 ]; then
14 prefix=$SDECFG_PKG_UNREAL_PREFIX
17 if [ "$SDECFG_PKG_UNREAL_DMODS" = 1 ]; then
18 var_append extraconfopt ' ' "--enable-dynamic-linking"
20 if [ "$SDECFG_PKG_UNREAL_ZIP" = 1 ]; then
21 var_append extraconfopt ' ' "--enable-ziplinks"
23 if [ "$SDECFG_PKG_UNREAL_SSL" = 1 ]; then
24 var_append extraconfopt ' ' "--enable-ssl"
26 if [ "$SDECFG_PKG_UNREAL_IP6" = 1 ]; then
27 var_append extraconfopt ' ' "--enable-inet6"
29 if [ "$SDECFG_PKG_UNREAL_ANTISPOOF" = 1 ]; then
30 var_append extraconfopt ' ' "--enable-nospoof"
32 if [ "$SDECFG_PKG_UNREAL_HUB" = 1 ]; then
33 var_append extraconfopt ' ' "--enable-hub"
36 var_append extraconfopt ' ' "--with-listen=$SDECFG_PKG_UNREAL_BACKLOG"
37 var_append extraconfopt ' ' "--with-nick-history=$SDECFG_PKG_UNREAL_NICKHIST"
38 var_append extraconfopt ' ' "--with-sendq=$SDECFG_PKG_UNREAL_MAXSENDQ"
39 var_append extraconfopt ' ' "--with-bufferpool=$SDECFG_PKG_UNREAL_BUFPOOLS"
40 var_append extraconfopt ' ' "--with-fd-setsize=$SDECFG_PKG_UNREAL_MAXCON"
41 var_append extraconfopt ' ' "$SDECFG_PKG_UNREAL_ADDITIONAL"
42 var_append extraconfopt ' ' "--with-dpath=$root/$prefix/config --with-spath=$root$bindir/ircd"
44 hook_add postmake 5 "mkdir -p $root/$prefix/config/tmp"