summaryrefslogtreecommitdiff
blob: 3f1765864249a74900d5a1f98101782e9b023c23 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-0.990821-r2.ebuild,v 1.2 2004/09/07 19:15:41 robbat2 Exp $

inherit flag-o-matic

MY_P=${P/0.}
S="${WORKDIR}/${MY_P}"
DESCRIPTION="use TCP or UDP to retrieve the current time of another machine"
HOMEPAGE="http://www.freshmeat.net/projects/rdate/"
SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/network/misc/${MY_P}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ~ppc sparc alpha hppa ia64 amd64 ~mips ppc64"
IUSE="ipv6"

DEPEND=">=sys-apps/sed-4"

src_compile() {
	use ipv6 && append-flags "-DINET6"
	emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}

src_install(){
	dodir /usr/{bin,share/man/man1} || die "dodir failed"
	make DESTDIR=${D} install       || die "Failed to install rdate"
	dodoc README.linux              || die "dodoc failed"
}