# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils gnuconfig DESCRIPTION="Pico Server is a small web server." HOMEPAGE="http://pserv.sourceforge.net/" SRC_URI="mirror://sourceforge/pserv/${P}.tar.Z" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~sparc" IUSE="" DEPEND="" RDEPEND="" #S=${WORKDIR}/${P} src_compile() { cd ${S}/defaults epatch ${FILESDIR}/pserv.conf.patch-3.2 cd ${S}/sources epatch ${FILESDIR}/main.h.patch-3.2 cd ${S} ./configure \ --prefix=/usr \ --sysconfdir=/etc/pserv emake || die } src_install() { exeinto /usr/bin doexe ${S}/sources/pserv dodir /etc/pserv cp ${S}/defaults/mime_types.dat ${D}/etc/pserv/myme_types.dat cp ${S}/defaults/pserv.conf ${D}/etc/pserv/pserv.conf dodir /var/www/localhost/htdocs cp ${S}/defaults/index.html ${D}/var/www/localhost/htdocs/index.html newinitd ${FILESDIR}/pserv.rc pserv dodoc ${S}/AUTHORS ${S}/ChangeLog ${S}/COPYING ${S}/INSTALL ${S}/NEWS ${S}/README ${S}/TODO }