summaryrefslogtreecommitdiff
blob: 9158ae0e1cdb98f41111cffb248f996883484500 (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
48
49
50
51
52
53
54
55
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/hotwayd/hotwayd-0.7.4.ebuild,v 1.4 2004/11/12 12:08:03 tomk Exp $

DESCRIPTION="Hotmail to pop3 daemon"
HOMEPAGE="http://hotwayd.sourceforge.net/"
SRC_URI="mirror://sourceforge/hotwayd/${P}.tar.bz2"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

IUSE=""

DEPEND="virtual/inetd
	dev-libs/libxml2"

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

src_install () {
	# The original make install is broken, since it also tries to install 
	# the libghttp files. This is not needed, since this library is statically
	# linked into the executable.
	# Lets just copy the (one) file manually...
	dosbin hotwayd

	dodoc AUTHORS NEWS README

	insinto /etc/xinetd.d
	newins ${FILESDIR}/hotwayd.xinetd hotwayd
}

pkg_postinst () {
	einfo ""
	einfo " By default daemons that use xinetd are not started "
	einfo "     automatically in gentoo"
	einfo " To activate do the following steps: "
	einfo " - Edit the file /etc/xinetd.d/hotwayd and change disable "
	einfo "   from yes to no "
	einfo " - Add the following line to /etc/services: "
	einfo "   hotwayd         110/tcp "
	einfo " - Note: if you already have a daemon serving port 110 (the "
	einfo "   default pop3 port); then change the port number to something "
	einfo "   else; also change the port number in hotwayd "
	einfo " - If you already had xinetd up and running, restart with "
	einfo "   # /etc/init.d/xinetd restart "
	einfo "   or "
	einfo "   If the emerge also pulled in the xinetd package for you, do "
	einfo "   # rc-update add xinetd default "
	einfo "   # /etc/init.d/xinetd start "
	einfo ""
}