Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-1.4-r3.ebuild,v 1.13 2009/09/23 19:43:36 patrick Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-1.4-r3.ebuild,v 1.13 2009/09/23 19:43:36 patrick Exp $ |
4 |
|
4 |
|
5 |
inherit flag-o-matic |
5 |
EAPI="2" |
|
|
6 |
|
7 |
inherit flag-o-matic toolchain-funcs |
6 |
|
8 |
|
7 |
DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" |
9 |
DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" |
8 |
HOMEPAGE="http://www.apps.ietf.org/rfc/rfc868.html" |
10 |
HOMEPAGE="http://www.apps.ietf.org/rfc/rfc868.html" |
Lines 15-27
Link Here
|
15 |
|
17 |
|
16 |
DEPEND="" |
18 |
DEPEND="" |
17 |
|
19 |
|
|
|
20 |
src_prepare() { |
21 |
sed -i \ |
22 |
-e '/^CFLAGS=/d' \ |
23 |
-e '/^rdate: /,+1d' \ |
24 |
-e '/\tinstall/s:\([^ ]\+\)$:$(DESTDIR)&:' \ |
25 |
Makefile |
26 |
} |
27 |
|
18 |
src_compile() { |
28 |
src_compile() { |
19 |
use ipv6 && append-flags "-DINET6" |
29 |
use ipv6 && append-flags "-DINET6" |
20 |
emake RCFLAGS="${CFLAGS}" || die "emake failed" |
30 |
tc-export CC |
|
|
31 |
emake || die "emake failed" |
21 |
} |
32 |
} |
22 |
|
33 |
|
23 |
src_install(){ |
34 |
src_install(){ |
24 |
emake -j1 prefix="${D}/usr" install || die "make install failed" |
35 |
emake DESTDIR="${D}" install || die "make install failed" |
25 |
newinitd "${FILESDIR}"/rdate-initd-1.4-r3 rdate |
36 |
newinitd "${FILESDIR}"/rdate-initd-1.4-r3 rdate |
26 |
newconfd "${FILESDIR}"/rdate-confd rdate |
37 |
newconfd "${FILESDIR}"/rdate-confd rdate |
27 |
} |
38 |
} |