wok annotate coturn/receipt @ rev 24943
BootProg: clear cmdline (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 20 16:57:09 2022 +0000 (2022-04-20) |
parents | c4968381aed9 |
children | fe1b5660fdd1 |
rev | line source |
---|---|
pascal@23890 | 1 # SliTaz package receipt. |
pascal@23890 | 2 |
pascal@23890 | 3 PACKAGE="coturn" |
Hans-G?nter@24438 | 4 VERSION="4.5.2" |
pascal@23890 | 5 CATEGORY="network" |
Hans-G?nter@24438 | 6 TAGS="stun turn" |
Hans-G?nter@24438 | 7 SHORT_DESC="Free open source implementation of TURN and STUN Server." |
pascal@23890 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23890 | 9 LICENSE="BSD" |
Hans-G?nter@24438 | 10 WEB_SITE="https://github.com/coturn/coturn" |
pascal@23890 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23890 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@23890 | 13 |
Hans-G?nter@24438 | 14 DEPENDS="libevent libsqlite libssl zlib" |
Hans-G?nter@24438 | 15 BUILD_DEPENDS="libevent-dev openssl-dev sqlite-dev zlib-dev" |
pascal@23890 | 16 |
pascal@24045 | 17 current_version() |
pascal@24045 | 18 { |
pascal@24045 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24045 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24045 | 21 } |
pascal@24045 | 22 |
pascal@23890 | 23 # Rules to configure and make the package. |
pascal@23890 | 24 compile_rules() |
pascal@23890 | 25 { |
pascal@23892 | 26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpthread" |
Hans-G?nter@24438 | 27 |
Hans-G?nter@24438 | 28 ./configure \ |
Hans-G?nter@24438 | 29 --prefix=/usr \ |
Hans-G?nter@24438 | 30 --sysconfdir=/etc \ |
Hans-G?nter@24438 | 31 --mandir=/usr/share/man \ |
Hans-G?nter@24438 | 32 $CONFIGURE_ARGS && |
pascal@23890 | 33 make && |
Hans-G?nter@24438 | 34 make install DESTDIR=$DESTDIR |
pascal@23890 | 35 } |
pascal@23890 | 36 |
pascal@23890 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23890 | 38 genpkg_rules() |
pascal@23890 | 39 { |
pascal@23890 | 40 mkdir -p $fs/usr/share |
Hans-G?nter@24438 | 41 |
Hans-G?nter@24438 | 42 cp -a $install/etc $fs |
Hans-G?nter@24438 | 43 cp -a $install/var $fs |
Hans-G?nter@24438 | 44 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24438 | 45 cp -a $install/usr/share/examples $fs/usr/share |
Hans-G?nter@24438 | 46 cp -a $install/usr/share/turnserver $fs/usr/share |
pascal@23890 | 47 } |