wok-next rev 15138
silc-server: add post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 11:23:43 2013 +0000 (2013-08-15) |
parents | 116909b7c87e |
children | 34178a787624 |
files | silc-server/receipt |
line diff
1.1 --- a/silc-server/receipt Thu Aug 15 10:58:00 2013 +0000 1.2 +++ b/silc-server/receipt Thu Aug 15 11:23:43 2013 +0000 1.3 @@ -5,6 +5,7 @@ 1.4 CATEGORY="network" 1.5 SHORT_DESC="Secure Internet Live Conferencing server." 1.6 MAINTAINER="pascal.bellard@slitaz.org" 1.7 +LICENSE="GPL2" 1.8 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.9 WEB_SITE="http://www.silcnet.org" 1.10 WGET_URL="$WEB_SITE/download/server/sources/$TARBALL" 1.11 @@ -14,19 +15,26 @@ 1.12 compile_rules() 1.13 { 1.14 cd $src 1.15 + mkdir -p $DESTDIR/etc 1.16 + touch $DESTDIR/etc/silcd.pub 1.17 ./configure --prefix=/usr --infodir=/usr/share/info \ 1.18 --mandir=/usr/share/man --sysconfdir=/etc \ 1.19 --with-logsdir=/var/log/silc \ 1.20 $CONFIGURE_ARGS && 1.21 make && 1.22 - make DESTDIR=$PWD/_pkg install 1.23 + make DESTDIR=$DESTDIR install 1.24 } 1.25 1.26 # Rules to gen a SliTaz package suitable for Tazpkg. 1.27 genpkg_rules() 1.28 { 1.29 mkdir -p $fs/usr $fs/var/log/silc 1.30 - cp -a $_pkg/etc $fs 1.31 - cp -a $_pkg/usr/sbin $fs/usr 1.32 + cp -a $install/etc $fs 1.33 + cp -a $install/usr/sbin $fs/usr 1.34 } 1.35 1.36 +# Pre and post install commands for Tazpkg. 1.37 +post_install() 1.38 +{ 1.39 + [ -s $1/etc/silcd.pub ] || chroot $1/ /usr/sbin/silcd -C /etc 1.40 +}