1 # Contributor: Glenn Matthys <glenn@webmind.be>
3 pkgdesc="Nanoweb is an HTTP server written in PHP, designed to be small, secure, and extensible"
11 url="http://nanoweb.si.kz/"
13 ${url}/downloads/dist/${pkgname}_${pkgver}.tgz
18 '3207919258d6a75b11214dc8eb747939'
19 '7ad058bc4b43e34c3beff9270a397bd9'
20 '4cc38c27ad962f69668aa9d2075c97bf'
24 etc/nanoweb/default.theme
25 etc/nanoweb/fancy.theme
26 etc/nanoweb/mime.types
27 etc/nanoweb/modules-win.conf
28 etc/nanoweb/modules.conf
29 etc/nanoweb/nanoweb-win.conf
30 etc/nanoweb/nanoweb.conf
31 etc/nanoweb/nanoweb.theme
32 etc/nanoweb/vhosts-win.conf
33 etc/nanoweb/vhosts.conf
37 mkdir -p $startdir/pkg/etc/nanoweb
38 mkdir -p $startdir/pkg/usr/lib/nanoweb/icons
39 mkdir -p $startdir/pkg/usr/lib/nanoweb/modules
40 mkdir -p $startdir/pkg/usr/share/doc/nanoweb
41 mkdir -p $startdir/pkg/usr/share/man
43 cd ${startdir}/src/${pkgname}_${pkgver}
45 cp conf/* ${startdir}/pkg/etc/nanoweb/
46 cp www/icons/* ${startdir}/pkg/usr/lib/nanoweb/icons/
47 cp modules/*.php ${startdir}/pkg/usr/lib/nanoweb/modules/
48 cp -R docs/manual ${startdir}/pkg/usr/share/doc/nanoweb/
49 cp docs/README.* ${startdir}/pkg/usr/share/doc/nanoweb/
50 cp -R docs/man/* ${startdir}/pkg/usr/share/man/
52 install -D -m755 src/nanoctl ${startdir}/pkg/usr/sbin/nanoctl
53 install -D -m755 src/nanoweb.php ${startdir}/pkg/usr/sbin/nanoweb.php
54 install -D -m755 src/htpasswd.php ${startdir}/pkg/usr/sbin/htpasswd.php
57 install -D -m644 ${startdir}/src/conf.nanoweb ${startdir}/pkg/etc/conf.d/nanoweb
58 install -D -m755 ${startdir}/src/rc.nanoweb ${startdir}/pkg/etc/rc.d/nanoweb
61 sed -i 's,#!/usr/local/bin/php,#!/usr/bin/php,g' $startdir/pkg/usr/sbin/nanoweb.php
62 sed -i 's,#!/usr/local/bin/php,#!/usr/bin/php,g' $startdir/pkg/usr/sbin/htpasswd.php