summaryrefslogtreecommitdiff
blob: 5fdc0ac16319cfd7b8686e90d6da8f887cb4828f (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
47
# 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-20040531.ebuild,v 1.3 2004/06/08 13:32:41 gmsoft Exp $

MY_PV="2004-05-31"
#Ugly, msn-transport weired version numbers
MY_SDIR="1.3-cvs"
S="${WORKDIR}/${PN}-${MY_PV}"
DESCRIPTION="MSN transport for jabberd"
HOMEPAGE="http://msn-transport.jabberstudio.org/"
SRC_URI="http://msn-transport.jabberstudio.org/${PN}-${MY_PV}.tar.gz"

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

DEPEND=">=net-im/jabberd-1.4.3-r3
		net-misc/curl"

src_compile() {
		cd ${WORKDIR}/${PN}-${MY_SDIR}
		econf \
				--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 ${WORKDIR}/${PN}-${MY_SDIR}/src/msntrans.so
		insinto /etc/jabber
		doins  ${FILESDIR}/msnt.xml
		exeinto /etc/init.d
		newexe ${FILESDIR}/msn-transport.init msn-transport
		dodoc README ${FILESDIR}/README.Gentoo msnt.xml
}

pkg_postinst() {
	einfo
	einfo "Please read /usr/share/doc/${P}/README.Gentoo.gz"
	einfo "And please notice that now msn-transport comes with a init.d script"
	einfo "dont forget to add it to your runlevel."
	einfo
}