# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 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" IUSE="" #DEPEND="" S=${WORKDIR}/${PN} src_compile() { cd ${S}/sources epatch ${FILESDIR}/main.h.patch-${PV} emake || die } src_install() { exeinto /usr/bin doexe ${S}/sources/pserv dodir /usr/lib cp ${S}/defaults/mime_types.dat ${D}/usr/lib/myme_types.dat dodir /etc cp ${FILESDIR}/pserv.conf ${D}/etc/pserv.conf newinitd ${FILESDIR}/pserv.rc pserv dodoc ${S}/COPYING ${S}/README ${S}/compile_options.txt ${S}/config_file.txt }