# SliTaz package receipt.

PACKAGE="silc-server"
VERSION="1.1.18"
CATEGORY="network"
SHORT_DESC="Secure Internet Live Conferencing server."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.silcnet.org"
WGET_URL="$WEB_SITE/download/server/sources/$TARBALL"
CONFIG_FILES="/etc/silcalgs.conf /etc/silcd.conf"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man --sysconfdir=/etc \
	--with-logsdir=/var/log/silc \
	$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr $fs/var/log/silc
	cp -a $_pkg/etc $fs
	cp -a $_pkg/usr/sbin $fs/usr
}