wok-current annotate monkey/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 535c806240cc |
children | 65942c8606f4 |
rev | line source |
---|---|
necrophcodr@17848 | 1 # SliTaz package receipt. |
necrophcodr@17848 | 2 |
necrophcodr@17848 | 3 PACKAGE="monkey" |
Hans-G?nter@24916 | 4 VERSION="1.6.9" |
necrophcodr@17848 | 5 CATEGORY="network" |
Hans-G?nter@24916 | 6 SHORT_DESC="Lightweight HTTP server." |
necrophcodr@17848 | 7 MAINTAINER="necrophcodr@necrophcodr.me" |
necrophcodr@17848 | 8 LICENSE="APL2" |
Hans-G?nter@24916 | 9 WEB_SITE="http://monkey-project.com/" |
necrophcodr@17848 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24916 | 11 WGET_URL="${WEB_SITE}releases/${VERSION%.*}/$TARBALL" |
necrophcodr@17848 | 12 |
necrophcodr@17848 | 13 DEPENDS="" |
Hans-G?nter@24916 | 14 BUILD_DEPENDS="cmake findutils" |
necrophcodr@17848 | 15 |
pascal@24465 | 16 # What is the latest version available today? |
pascal@24465 | 17 current_version() |
pascal@24465 | 18 { |
pascal@24465 | 19 wget -O - http://monkey-project.com/downloads/ 2>/dev/null | \ |
pascal@24465 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24465 | 21 } |
pascal@24465 | 22 |
necrophcodr@17848 | 23 # Rules to configure and make the package. |
necrophcodr@17848 | 24 compile_rules() |
necrophcodr@17848 | 25 { |
Hans-G?nter@24916 | 26 ./configure \ |
Hans-G?nter@24916 | 27 --prefix=/usr \ |
Hans-G?nter@24916 | 28 --webroot=/var/www \ |
Hans-G?nter@24916 | 29 --sbindir=/usr/bin \ |
Hans-G?nter@24916 | 30 --sysconfdir=/etc/monkey \ |
Hans-G?nter@24916 | 31 --pidfile=monkey.pid \ |
Hans-G?nter@24916 | 32 --default-user=www \ |
Hans-G?nter@24916 | 33 --disable-plugins=mbedtls \ |
Hans-G?nter@24916 | 34 --malloc-libc \ |
Hans-G?nter@24916 | 35 --mandir=/usr/share/man && |
necrophcodr@17848 | 36 make && |
Hans-G?nter@24916 | 37 make install DESTDIR=$install |
necrophcodr@17848 | 38 } |
necrophcodr@17848 | 39 |
necrophcodr@17848 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
necrophcodr@17848 | 41 genpkg_rules() |
necrophcodr@17848 | 42 { |
necrophcodr@17848 | 43 mkdir -p $fs/usr/share/monkey/samples |
Hans-G?nter@24916 | 44 |
Hans-G?nter@24916 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24916 | 46 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@24916 | 47 cp -a $install/usr/share $fs/usr |
Hans-G?nter@24916 | 48 cp -a $install/etc $fs |
Hans-G?nter@24916 | 49 cp -a $install/var $fs |
Hans-G?nter@24916 | 50 mv $fs/var/www $fs/usr/share/monkey/samples/htdocs |
necrophcodr@17848 | 51 } |