wok-current annotate silc-server/receipt @ rev 24569
sokojs: add shrink.sh (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 18:46:53 2022 +0000 (2022-02-26) |
parents | fa50aa6b22c6 |
children |
rev | line source |
---|---|
pascal@5977 | 1 # SliTaz package receipt. |
pascal@5977 | 2 |
pascal@5977 | 3 PACKAGE="silc-server" |
Hans-G?nter@21910 | 4 VERSION="1.1.19" |
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@21709 | 9 WEB_SITE="https://web.archive.org/web/20190501185313/http://www.silcnet.org/" |
Hans-G?nter@21910 | 10 |
Hans-G?nter@21910 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21910 | 12 #WGET_URL="$WEB_SITE/download/server/sources/$TARBALL" |
Hans-G?nter@21910 | 13 WGET_URL="$SF_MIRROR/project/silc/silc/server/sources/$TARBALL" |
Hans-G?nter@21910 | 14 |
pascal@5977 | 15 CONFIG_FILES="/etc/silcalgs.conf /etc/silcd.conf" |
pascal@5977 | 16 |
pascal@24313 | 17 # What is the latest version available today? |
pascal@24313 | 18 current_version() |
pascal@24313 | 19 { |
pascal@24313 | 20 wget -O - https://sourceforge.net/projects/silc/files/silc/server/sources/ 2>/dev/null | \ |
pascal@24313 | 21 sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q" |
pascal@24313 | 22 } |
pascal@24313 | 23 |
pascal@5977 | 24 # Rules to configure and make the package. |
pascal@5977 | 25 compile_rules() |
pascal@5977 | 26 { |
Hans-G?nter@21910 | 27 mkdir -p $DESTDIR/etc |
Hans-G?nter@21910 | 28 mkdir -p $DESTDIR/usr/share/man/man5 |
Hans-G?nter@21910 | 29 mkdir -p $DESTDIR/usr/share/man/man8 |
Hans-G?nter@21910 | 30 mkdir -p $DESTDIR/usr/share/doc/silc-server |
Hans-G?nter@21910 | 31 |
pascal@15138 | 32 touch $DESTDIR/etc/silcd.pub |
Hans-G?nter@21910 | 33 |
Hans-G?nter@21910 | 34 ./configure \ |
Hans-G?nter@21910 | 35 --prefix=/usr \ |
Hans-G?nter@21910 | 36 --infodir=/usr/share/info \ |
Hans-G?nter@21910 | 37 --mandir=/usr/share/man \ |
Hans-G?nter@21910 | 38 --sysconfdir=/etc \ |
Hans-G?nter@21910 | 39 --with-logsdir=/var/log/silc \ |
Hans-G?nter@21910 | 40 $CONFIGURE_ARGS && |
pascal@5977 | 41 make && |
pascal@15138 | 42 make DESTDIR=$DESTDIR install |
pascal@5977 | 43 } |
pascal@5977 | 44 |
pascal@5977 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5977 | 46 genpkg_rules() |
pascal@5977 | 47 { |
Hans-G?nter@21910 | 48 mkdir -p $fs/usr |
Hans-G?nter@21910 | 49 mkdir -p $fs/var/log/silc |
Hans-G?nter@21910 | 50 |
Hans-G?nter@21910 | 51 cp -a $install/etc $fs |
Hans-G?nter@21910 | 52 cp -a $install/usr/sbin $fs/usr |
pascal@5977 | 53 } |
pascal@5977 | 54 |
pascal@15138 | 55 # Pre and post install commands for Tazpkg. |
pascal@15138 | 56 post_install() |
pascal@15138 | 57 { |
pascal@18730 | 58 [ -s "$1/etc/silcd.pub" ] || chroot "$1/" /usr/sbin/silcd -C /etc |
pascal@15138 | 59 } |