PKG_NAME="samba"
PKG_VERSION="3.5.6"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.samba.org"
PKG_URL="http://samba.org/samba/ftp/stable/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="sqlite talloc connman"
PKG_BUILD_DEPENDS="toolchain sqlite talloc"
PKG_PRIORITY="optional"
PKG_SECTION="network"
PKG_SHORTDESC="samba: The free SMB / CIFS fileserver and client"
PKG_LONGDESC="Samba is a SMB server that runs on Unix and other operating systems. It allows these operating systems (currently Unix, Netware, OS/2 and AmigaDOS) to act as a file and print server for SMB and CIFS clients. There are many Lan-Manager compatible clients such as LanManager for DOS, Windows for Workgroups, Windows NT, Windows 95, Linux smbfs, OS/2, Pathworks and more."
PKG_IS_ADDON="no"

PKG_AUTORECONF="no"

if [ "$AVAHI_DAEMON" = yes ]; then
  PKG_DEPENDS="$PKG_DEPENDS avahi"
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS avahi"
fi
