default_install &&
# repertory for bitlbee to store personnal datas of each user
# allow bitlbee to write in by changing owner
if ! [ -d /var/lib/bitlbee ]; then
  mkdir /var/lib/bitlbee &&
  chown nobody.nogroup /var/lib/bitlbee
fi &&

# default configuration files installation (bitlbee.conf and motd.txt)
# files removed when dispelled if not modified by user
if [ -f /etc/bitlbee/bitlbee.conf ]; then
  echo "A Bitlbee configuration file already exists"
else
  make install-etc
fi

if [[ "$BITLBEE_BITLBEED" == y ]] ; then
	install utils/bitlbeed /usr/sbin/bitlbeed
fi
