# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar pkgname = 'apache-mod-fcgid'
setvar _pkgreal = 'mod_fcgid'
setvar pkgver = '2.3.9'
setvar pkgrel = '1'
setvar pkgdesc = ""FastCGI module for Apache 2.x""
setvar url = ""http://httpd.apache.org/$_pkgreal/""
setvar arch = ""all""
setvar license = ""ASL 2.0""
setvar depends = ""apache2""
setvar makedepends = ""apache2-dev""
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://mirror.switch.ch/mirror/apache/dist//httpd/mod_fcgid/$_pkgreal-$pkgver.tar.gz
        $_pkgreal.conf
        ""

setvar _builddir = ""$srcdir"/$_pkgreal-$pkgver"
proc build {
	cd $_builddir
	./configure.apxs || return 1
	make || return 1
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	install -d "$pkgdir"/var/www/localhost/fcgi-bin || return 1
	install -Dm644 "$srcdir"/$_pkgreal.conf "$pkgdir"/etc/apache2/conf.d/$_pkgreal.conf
	rm -fr "$pkgdir"/etc/apache2/original
}

setvar md5sums = ""ece4c66f0c05d216fc96969fcf3d1add  mod_fcgid-2.3.9.tar.gz
3f4288dad895b6fc65af87d0af3d34bd  mod_fcgid.conf""
setvar sha256sums = ""1cbad345e3376b5d7c8f9a62b471edd7fa892695b90b79502f326b4692a679cf  mod_fcgid-2.3.9.tar.gz
c6df3eb47fb9e6a81a066a83ae8c11a8a796dc6e83b23eb47c7903d406bade22  mod_fcgid.conf""
setvar sha512sums = ""cae8bf8ad324512a51e6f34cb32468ea49a17deaabd481f8b581444891656f2516f10d198630f92ebc18db3d575f61dd7254153938a8206fb6c1441c7850be63  mod_fcgid-2.3.9.tar.gz
e5d7d81905f7cd73b5dbd3baa39c1d84e3c96e3fc3fda41fc52ada1a4353ca5186e53f56d782273d86a858cc9215c72321f34d92643ac176d4232df638a05812  mod_fcgid.conf""