# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # httpd_1.5.2a-export S=${WORKDIR}/httpd_${PV}-export DESCRIPTION="NCSA HTTPd, a classic web server" HOMEPAGE="http://hoohoo.ncsa.uiuc.edu" KEYWORDS="x86" SRC_URI="ftp://ftp.ncsa.uiuc.edu/Web/httpd/Unix/ncsa_httpd/current/httpd_${PV}-export_source.tar.Z" DEPEND="" LICENSE="NCSA-1.3" SLOT="1" src_unpack() { unpack ${A} epatch ${FILESDIR}/${P}.patch } src_compile() { chown -R root:root * make linux cd support/auth gcc -o uudecode uudecode.c gcc -o uuencode uuencode.c cd .. } src_install() { mkdir -p ${D}/usr/local/etc/httpd mkdir ${D}/usr/local/etc/httpd/htdocs mkdir ${D}/usr/local/etc/httpd/logs cp httpd ${D}/usr/local/etc/httpd/ cp -rf cgi-bin ${D}/usr/local/etc/httpd/ cd conf cp access.conf-dist access.conf cp httpd.conf-dist httpd.conf cp srm.conf-dist srm.conf cd .. cp -rf conf ${D}/usr/local/etc/httpd/ cp -rf icons ${D}/usr/local/etc/httpd/ cd src cp httpd.man httpd.1 cd .. mkdir ${D}/usr/local/etc/httpd/support cd support cp README ../README-SUPPORT cp README.change-passwd ../README.change-passwd cp dbm2std dbmdigest dbmgroup dbmpasswd htdigest htpasswd inc2shtml \ std2dbm unescape webgrab ${D}/usr/local/etc/httpd/support/ mkdir ${D}/usr/local/etc/httpd/support/auth cd auth cp pgp-dec pgp-enc ripem-dec ripem-enc uudecode uuencode \ ${D}/usr/local/etc/httpd/support/auth/ cd ../.. doman src/httpd.1 dodoc COPYRIGHT BUGS CHANGES CREDITS README README-SUPPORT \ README.change-passwd } pkg_postinst() { ewarn "In the spirit of nostalgia, all files are in the classic" ewarn "directory of /usr/local/etc/httpd. The main binary is" ewarn "/usr/local/etc/httpd/httpd. Documentation and man pages" ewarn "are in the normal places" echo "" ewarn "It's not a good idea to run this in a production environment." }