# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-servers/fnord/fnord-1.8.ebuild,v 1.6 2005/01/27 21:02:18 xmerlin Exp $ # flag-o-matic needed for replace-sparc64-flags inherit flag-o-matic eutils DESCRIPTION="Yet another small httpd." SRC_URI="http://www.fefe.de/fnord/${P}.tar.bz2 mirror://gentoo/${P}-gentoo.diff" HOMEPAGE="http://www.fefe.de/fnord/" KEYWORDS="~x86 sparc ppc" SLOT="0" LICENSE="GPL-2" IUSE="diet" DEPEND="diet?(dev-libs/dietlibc) !diet? ( virtual/libc )" RDEPEND="${DEPEND} sys-apps/daemontools sys-apps/ucspi-tcp " pkg_setup() { if ! grep -q ^fnord: /etc/passwd ; then useradd -g nofiles -s /bin/false -d /etc/fnord -c "fnord" fnord\ || die "problem adding user fnord" fi if ! grep -q ^fnordlog: /etc/passwd ; then useradd -g nofiles -s /bin/false -d /etc/fnord -c "fnordlog" fnordlog\ || die "problem adding user fnordlog" fi } src_unpack() { # Fix for bug #45716 replace-sparc64-flags unpack ${A} ; cd ${S} sed -i "s:^CFLAGS=-O.*:CFLAGS=${CFLAGS}:" Makefile epatch ${DISTDIR}/${PF}-gentoo.diff || die "epatch failed." } src_compile() { local DIET use diet && DIET=diet || DIET="" emake DIET="$DIET" } src_install () { exeinto /usr/bin doexe fnord-conf fnord dodoc TODO README SPEED COPYING CHANGES }