# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-mta/qpsmtpd/qpsmtpd-0.84.ebuild,v 1.4 2013/04/15 23:19:22 robbat2 Exp $ EAPI=2 inherit eutils perl-app user DESCRIPTION="qpsmtpd is a flexible smtpd daemon written in Perl" HOMEPAGE="http://smtpd.develooper.com" SRC_URI="http://smtpd.develooper.com/files/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="postfix ipv6 syslog" RDEPEND=">=dev-lang/perl-5.8.0 "${D}"/etc/qpsmtpd/plugin_dirs echo "/var/spool/qpsmtpd" > "${D}"/etc/qpsmtpd/spool_dir cat >"${D}"/etc/qpsmtpd/logging <<-EOF #logging/syslog loglevel LOGINFO priority LOG_NOTICE #logging/file loglevel LOGINFO /var/log/qpsmtpd/%Y-%m-%d EOF if use syslog; then sed -i -e '/^#logging\/syslog/s,^#,,g' "${D}"/etc/qpsmtpd/logging else sed -i -e '/^#logging\/file/s,^#,,g' "${D}"/etc/qpsmtpd/logging fi newenvd "${FILESDIR}"/qpsmtpd.envd 99qpsmtpd newconfd "${FILESDIR}"/qpsmtpd.confd qpsmtpd || die "Installing conf.d file" newinitd "${FILESDIR}"/qpsmtpd.initd qpsmtpd || die "Installing init.d file" dodoc CREDITS Changes README README.plugins STATUS diropts -m 0755 -o smtpd -g smtpd dodir /var/spool/qpsmtpd /var/run/qpsmtpd /var/log/qpsmtpd keepdir /var/spool/qpsmtpd /var/run/qpsmtpd /var/log/qpsmtpd }