summaryrefslogtreecommitdiff
blob: 850701576b3a48b6d3c3d55711fd5b8c4747fe26 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/msn-transport/msn-transport-1.2.8_rc1.ebuild,v 1.1 2004/01/23 18:12:27 humpback Exp $

S="${WORKDIR}/msn-transport"
MY_PV="${PV/_rc/rc}"
DESCRIPTION="Open Source Jabber Server MSN transport"
HOMEPAGE="http://msn-transport.jabberstudio.org/"
SRC_URI="http://msn-transport.jabberstudio.org/${PN}-${MY_PV}.tar.gz"

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

DEPEND=">=net-im/jabberd-1.4.3
		net-ftp/curl"

src_unpack() {
		unpack ${A}
		mv ${PN}-${MY_PV} msn-transport
}

src_compile() {
		./configure --with-jabberd=/usr/include/jabberd --with-pth=/usr/include || die
		emake || die
}

src_install() {
		dodir /etc/jabber /usr/lib/jabberd
		insinto /usr/lib/jabberd
		doins src/msntrans.so
		insinto /etc/jabber
		doins  ${FILESDIR}/msnt.xml
		dodoc README ${FILESDIR}/README.Gentoo msnt.xml
}

pkg_postinst() {
	einfo
	einfo "Please read /usr/share/doc/${P}/README.Gentoo"
	einfo
}