/[gentoo-x86]/net-misc/rdate/rdate-1.4-r4.ebuild
Gentoo

Contents of /net-misc/rdate/rdate-1.4-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Apr 13 07:17:55 2013 UTC (6 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Stable for sparc, wrt bug #464384

(Portage version: 2.1.11.55/cvs/Linux ppc64, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-1.4-r4.ebuild,v 1.9 2013/04/12 17:15:06 ago Exp $
4
5 EAPI="5"
6
7 inherit flag-o-matic
8
9 DESCRIPTION="use TCP or UDP to retrieve the current time of another machine"
10 HOMEPAGE="http://www.apps.ietf.org/rfc/rfc868.html"
11 SRC_URI="ftp://people.redhat.com/sopwith/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
16 IUSE="ipv6"
17
18 DEPEND=""
19
20 src_prepare() {
21 sed -i \
22 -e '/^CFLAGS=/d' \
23 -e '/^rdate: /,+1d' \
24 -e '/\tinstall/s:\([^ ]\+\)$:$(DESTDIR)&:' \
25 Makefile || die "Sed failed!"
26 }
27
28 src_compile() {
29 use ipv6 && append-cppflags "-DINET6"
30 tc-export CC
31 emake
32 }
33
34 src_install(){
35 emake DESTDIR="${D}" install
36 newinitd "${FILESDIR}"/rdate-initd-1.4-r3 rdate
37 newconfd "${FILESDIR}"/rdate-confd rdate
38 }

  ViewVC Help
Powered by ViewVC 1.1.20