wok view monkey/receipt @ rev 25430
Up os-prober (1.81)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 19 06:26:39 2022 +0000 (2022-08-19) |
parents | 535c806240cc |
children | 65942c8606f4 |
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="http://monkey-project.com/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE}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 }