wok view monkey/receipt @ rev 25494

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