# SliTaz package receipt. PACKAGE="silc-server" VERSION="1.1.19" CATEGORY="network" SHORT_DESC="Secure Internet Live Conferencing server." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://web.archive.org/web/20190501185313/http://www.silcnet.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" #WGET_URL="$WEB_SITE/download/server/sources/$TARBALL" WGET_URL="$SF_MIRROR/project/silc/silc/server/sources/$TARBALL" CONFIG_FILES="/etc/silcalgs.conf /etc/silcd.conf" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/silc/files/silc/server/sources/ 2>/dev/null | \ sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q" } # Rules to configure and make the package. compile_rules() { mkdir -p $DESTDIR/etc mkdir -p $DESTDIR/usr/share/man/man5 mkdir -p $DESTDIR/usr/share/man/man8 mkdir -p $DESTDIR/usr/share/doc/silc-server touch $DESTDIR/etc/silcd.pub ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --with-logsdir=/var/log/silc \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr mkdir -p $fs/var/log/silc cp -a $install/etc $fs cp -a $install/usr/sbin $fs/usr } # Pre and post install commands for Tazpkg. post_install() { [ -s "$1/etc/silcd.pub" ] || chroot "$1/" /usr/sbin/silcd -C /etc }