summaryrefslogtreecommitdiff
blob: 43609fa3c7f056491202b93de51c86d3c18cd671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/ixbiff/ixbiff-0.03b.ebuild,v 1.2 2005/01/14 20:17:35 ticho Exp $

inherit eutils

DESCRIPTION="Ixbiff blinks the keyboard LEDs on new mail"
HOMEPAGE="http://ixbiff.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz"
IUSE=""

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND=""

src_compile() {
	# This first one is to set the configuration correctly
	# The init script installed later also needs to be configured
	# for a gentoo system
	epatch ${FILESDIR}/ixbiff_0.03b-config-gentoo.patch
	# This second one is because gcc was complaining about the
	# default case in a switch statement
	epatch ${FILESDIR}/ixbiff_0.03b-main.c-gentoo.patch

	make || die
}

src_install () {
	# Building in "default" mode means that these variables have to be overriden
	# if we don't want sandbox violations
	make prefix=${D} sysconfdir=${D}/etc localstatedir=${D}/var install || die

	exeinto /etc/init.d
	newexe src/ixbiff.sh ixbiff

	doman man/*.1 man/*.5
	dohtml doc/*.html
}

pkg_postinst () {
	einfo "Use rc-update to add ixbiff to the startup sequence."
}