wok view monkey/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 65942c8606f4
children
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 - $WEB_SITE 2>/dev/null | \
20 sed '/releases/!d;s|.*monkey-||;s|.tar.*||;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 }