Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: How To Compile Modules  (Read 8244 times)

0 Members and 1 Guest are viewing this topic.

turbosard

  • Anope User
  • Offline Offline
  • Posts: 4
How To Compile Modules
« on: July 17, 2008, 01:43:50 PM »

Hello.,,, about 3 days i learn to add modules on my anope services.
Currently my anope services works well in my unrealircd 3.2.7
Could anyone help me to compile file .c in shell
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: How To Compile Modules
« Reply #1 on: July 17, 2008, 02:37:13 PM »

if you are on windows, most modules come with a precompiled .dll
on*nix, simply follow the modules' install instructions if it has them, or the generic instructions in the documentation (docs/MODULES). there s an online version on the wiki too: http://anope.info/wiki/Modules:Usage:Compiling
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

turbosard

  • Anope User
  • Offline Offline
  • Posts: 4
Re: How To Compile Modules
« Reply #2 on: July 25, 2008, 11:37:28 AM »

if you are on windows, most modules come with a precompiled .dll
on*nix, simply follow the modules' install instructions if it has them, or the generic instructions in the documentation (docs/MODULES). there s an online version on the wiki too: http://anope.info/wiki/Modules:Usage:Compiling

i'm using shell. So as far i concern about compiling add on let say hideserv.c module :
1. cd Unreal3.2/src/modules
2. wget http://www.ircdshells.com.ar/servicios/hideserver.tar.gz
3. tar -zxvf hideserver.tar.gz;cd ../..
4. make custommodule MODULEFILE=hideserver
5. open unrealircd.conf, and then edit==  loadmodule “src/modules/hideserver.so”;

sorry for many explaination.

So the scenario is my anope services is currently works how i'm going to add others modules like irc_vhostserv.c

Is it same step like unreal?
For ur info my ircd and services in separate folder
Ok.. what i understand from http://anope.info/wiki/Modules:Usage:Compiling
i can't compile irc_vhostserv.c

Logged

katsklaw

  • Guest
Re: How To Compile Modules
« Reply #3 on: July 25, 2008, 12:48:30 PM »

You are confusing Unreal modules with Anope modules.

All you need to know about modules is found in docs/MODULES or at http://anope.info/wiki/Modules:Usage:Compiling as you have already been instructed.
Logged

turbosard

  • Anope User
  • Offline Offline
  • Posts: 4
Re: How To Compile Modules
« Reply #4 on: July 26, 2008, 02:22:02 AM »

ok now i figured out the problem. in anope root directory the src folder not exist. Since that i can't compile. Could i just create src in anope folder? Is it affect the anope services in unreal?
Logged

Raiden

  • Anope User
  • Offline Offline
  • Posts: 23
Re: How To Compile Modules
« Reply #5 on: July 26, 2008, 02:07:51 PM »

To install anope modules:

cd ~/anope-1.7.21/src/modules
wget http://url.of.the.module.com
cd ~/anope-1.7.21
make all
make install
/os modload name_ofmodule

If its unrealircd modules:

cd ~/Unreal3.2.7/src/modules
wget http://url.of.the.module.com
extract it if needed
make custommodule MODULEFILE=module_name
make install
add loadmodule "src/modules/module_name.so"; into your unrealircd
/rehash

Logged

katsklaw

  • Guest
Re: How To Compile Modules
« Reply #6 on: July 26, 2008, 02:36:46 PM »

Actually you don't need "make all" .. "make modules" will compile only new or changed modules and nothing else.
Logged

turbosard

  • Anope User
  • Offline Offline
  • Posts: 4
Re: How To Compile Modules
« Reply #7 on: August 07, 2008, 02:27:47 PM »

ok guys work done when u guys assist me. thx so much.
Logged
Pages: [1]   Go Up