Added some workarounds to AppArmor + color messages as bonus :-)
[mirrors/ArchLinux-Packages.git] / busybox-httpd / PKGBUILD
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
4
5 pkgname=busybox-httpd
6 pkgver=1
7 pkgrel=2
8 pkgdesc="BusyBox HTTPd integration with Arch. Support for IPv6,MIME,CGI,PHP,PERL,Python,BASH,BasicHTTPAuth,Access control and more. Usefull for embeded systems or chroots."
9 arch=('any')
10 license=('GPL')
11 url="http://www.busybox.net/"
12 depends=('busybox')
13 optdepends=('php: dynamic pages support')
14 backup=('etc/busybox/httpd.conf' 'etc/busybox/httpd-rc.conf')
15 source=(busybox-httpd busybox-httpd-rc busybox-httpd-watch httpd.conf httpd-rc.conf)
16 md5sums=('3bdf984a53c1361bc2a28ff33542ea74'
17 '46c0e5fa50b84d93cb34d7bc2563e34a'
18 'd897aba2f008d911c97a837f9645ffc9'
19 'd8ae5de2c6a10a1b68c85304bf58da72'
20 '41e20b684539b665bce653a64aa37972')
21
22 build() {
23 cd "$srcdir"
24
25 mkdir -p "$pkgdir"/usr/bin
26 mkdir -p "$pkgdir"/etc/rc.d
27 mkdir -p "$pkgdir"/etc/busybox
28
29 cp busybox-httpd "$pkgdir"/usr/bin/
30 cp busybox-httpd-watch "$pkgdir"/usr/bin/
31 cp busybox-httpd-rc "$pkgdir"/etc/rc.d/busybox-httpd
32 cp httpd.conf "$pkgdir"/etc/busybox
33 cp httpd-rc.conf "$pkgdir"/etc/busybox
34
35 chmod -R 755 "$pkgdir"
36 #protect potential passwords
37 chown -R root:http "$pkgdir"/etc/busybox/httpd.conf
38 chmod -R 740 "$pkgdir"/etc/busybox/httpd.conf
39 }
This page took 0.230685 seconds and 4 git commands to generate.