wok view silc-server/receipt @ rev 21709

ccid: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 08 10:39:23 2019 +0200 (2019-06-08)
parents 965806f1a9ba
children fa50aa6b22c6
line source
1 # SliTaz package receipt.
3 PACKAGE="silc-server"
4 VERSION="1.1.18"
5 CATEGORY="network"
6 SHORT_DESC="Secure Internet Live Conferencing server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://web.archive.org/web/20190501185313/http://www.silcnet.org/"
11 WGET_URL="$WEB_SITE/download/server/sources/$TARBALL"
12 CONFIG_FILES="/etc/silcalgs.conf /etc/silcd.conf"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $DESTDIR/etc $DESTDIR/usr/share/man/man5 \
18 $DESTDIR/usr/share/man/man8 $DESTDIR/usr/share/doc/silc-server
19 touch $DESTDIR/etc/silcd.pub
20 ./configure --prefix=/usr --infodir=/usr/share/info \
21 --mandir=/usr/share/man --sysconfdir=/etc \
22 --with-logsdir=/var/log/silc \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr $fs/var/log/silc
32 cp -a $install/etc $fs
33 cp -a $install/usr/sbin $fs/usr
34 }
36 # Pre and post install commands for Tazpkg.
37 post_install()
38 {
39 [ -s "$1/etc/silcd.pub" ] || chroot "$1/" /usr/sbin/silcd -C /etc
40 }