summaryrefslogtreecommitdiff
blob: e7b6ebf50f1e9037a607b21a2669492162dd1a29 (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
45
46
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/reaim/reaim-0.8.ebuild,v 1.3 2004/06/24 22:59:18 agriffis Exp $

DESCRIPTION="AIM transport proxy over NAT firewalls"
HOMEPAGE="http://reaim.sourceforge.net/"
SRC_URI="mirror://sourceforge/reaim/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND=">=sys-apps/sed-4"
RDEPEND="net-firewall/iptables"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i -e 's:-g -Wall:${CFLAGS} -g -Wall:g' Makefile
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	insinto /usr/sbin
	insopts -o root -g root -m 0750 ; doins reaim

	doman reaim.8
	dodoc html/*

	exeinto /etc/init.d
	newexe ${FILESDIR}/reaim reaim
}

pkg_postinst() {
	einfo "In order to use reaim, run the rc script in /etc/init.d."
	einfo
	einfo "To start:"
	einfo "  /etc/init.d/reaim start"
	einfo "To stop:"
	einfo "  /etc/init.d/reaim stop"
	einfo
	einfo "To have reaim start at each system startup, run the following:"
	einfo "  rc-update add reaim default"
}