# HG changeset patch # User Pascal Bellard # Date 1376565823 0 # Node ID 7b4a8f56e44ea21b0f16c1fa80a28fb997df2948 # Parent 116909b7c87e862c65a25c9efd6500326a2f2340 silc-server: add post_install diff -r 116909b7c87e -r 7b4a8f56e44e silc-server/receipt --- a/silc-server/receipt Thu Aug 15 10:58:00 2013 +0000 +++ b/silc-server/receipt Thu Aug 15 11:23:43 2013 +0000 @@ -5,6 +5,7 @@ CATEGORY="network" SHORT_DESC="Secure Internet Live Conferencing server." MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.silcnet.org" WGET_URL="$WEB_SITE/download/server/sources/$TARBALL" @@ -14,19 +15,26 @@ compile_rules() { cd $src + mkdir -p $DESTDIR/etc + 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=$PWD/_pkg install + make DESTDIR=$DESTDIR 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 + 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 +}