# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Fetch and deliver mail" HOMEPAGE="http://fdm.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-libs/openssl" src_compile() { # Fix man directories. # Makefile installs into bin, and GNUmakefile installs into sbin? # Standardize on bin, as with getmail. sed -i \ -e "s:/man/:/share/man/:" \ -e "s:/sbin/:/bin/:" \ GNUmakefile Makefile || die "sed Makefiles failed" # Needs -j1 to compile emake -j1 \ PREFIX=/usr \ || die "emake failed" } src_install() { emake \ PREFIX="${D}"/usr \ BIN_OWNER=root \ install || die "emake install failed" #dobin fdm || die #doman fdm.1 fdm.conf.5 || die dodoc CHANGES MANUAL README TODO docinto examples dodoc examples/* } pkg_postinst() { # Am ignoring the possibility of running fdm as root, with user "_fdm" echo elog "Create ~/.fdm.conf to use fdm." }