wok-current annotate silc-server/receipt @ rev 19949

memtest: add @cmdlinefile support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 07 21:49:40 2017 +0200 (2017-05-07)
parents 9e01bc6321ea
children f9690e227edd
rev   line source
pascal@5977 1 # SliTaz package receipt.
pascal@5977 2
pascal@5977 3 PACKAGE="silc-server"
pascal@5977 4 VERSION="1.1.18"
pascal@5977 5 CATEGORY="network"
pascal@5977 6 SHORT_DESC="Secure Internet Live Conferencing server."
pascal@5977 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15138 8 LICENSE="GPL2"
pascal@5977 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@5977 10 WEB_SITE="http://www.silcnet.org"
pascal@5977 11 WGET_URL="$WEB_SITE/download/server/sources/$TARBALL"
pascal@5977 12 CONFIG_FILES="/etc/silcalgs.conf /etc/silcd.conf"
pascal@5977 13
pascal@5977 14 # Rules to configure and make the package.
pascal@5977 15 compile_rules()
pascal@5977 16 {
pascal@5977 17 cd $src
pascal@19791 18 mkdir -p $DESTDIR/etc $DESTDIR/usr/share/man/man5 \
pascal@19791 19 $DESTDIR/usr/share/man/man8 $DESTDIR/usr/share/doc/silc-server
pascal@15138 20 touch $DESTDIR/etc/silcd.pub
pascal@5977 21 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@5977 22 --mandir=/usr/share/man --sysconfdir=/etc \
pascal@5977 23 --with-logsdir=/var/log/silc \
pascal@5977 24 $CONFIGURE_ARGS &&
pascal@5977 25 make &&
pascal@15138 26 make DESTDIR=$DESTDIR install
pascal@5977 27 }
pascal@5977 28
pascal@5977 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5977 30 genpkg_rules()
pascal@5977 31 {
pascal@5977 32 mkdir -p $fs/usr $fs/var/log/silc
pascal@15138 33 cp -a $install/etc $fs
pascal@15138 34 cp -a $install/usr/sbin $fs/usr
pascal@5977 35 }
pascal@5977 36
pascal@15138 37 # Pre and post install commands for Tazpkg.
pascal@15138 38 post_install()
pascal@15138 39 {
pascal@18730 40 [ -s "$1/etc/silcd.pub" ] || chroot "$1/" /usr/sbin/silcd -C /etc
pascal@15138 41 }