Setting up InspIRCd On FreeBSD 11

From IRC Wiki
Jump to: navigation, search
This article is a rough draft. Some items in the article may be incomplete or may not work as intended. You can help by learning how to Contribute to the article.

Prerequisites

Before you can install InspIRCd you will need to make sure that you have all the required packages, and that the correct directories/users are created on the system.

# pkg install gcc openssl-devel git wget
# adduser # create a user called 'irc'

Compile InspIRCd

Once all the prerequisites are setup you will be ready to clone the repository and compile the IRCd.

# mkdir $HOME/src
# cd $HOME/src
# git clone https://github.com/inspircd/inspircd.git
# cd inspircd/
# git checkout insp20
# ./configure --prefix=/opt/inspircd --enable-openssl --uid=irc
# make && make install

Finalize installation

You will need to change permissions and ownership of the /opt/inspircd directory, as well as setup the startup script.

# chown -R irc:irc /opt/inspircd
# wget https://gitlab.com/BuddyIM/scripts/raw/master/freebsd-startup.sh -O /etc/rc.d/ircd
# chmod +x /etc/rc.d/ircd

Configure

*************************************
*        INSTALL COMPLETE!          *
*************************************
Paths:
  Base install: /opt/inspircd
  Configuration: /opt/inspircd/conf
  Binaries: /opt/inspircd/bin
  Modules: /opt/inspircd/modules
  Data: /opt/inspircd/data
To start the ircd, run: /opt/inspircd/inspircd start
Remember to create your config file: /opt/inspircd/conf/inspircd.conf
Examples are available at: /opt/inspircd/conf/examples/

Once you see the above message you are ready to configure your IRCd by editing /opt/inspircd/conf/inspircd.conf.

Once your IRCd is configured you can run it with the command service ircd onestart. If you want to start the ircd on boot then edit your rc.conf to include ircd_enable="YES".