/[gentoo-x86]/net-misc/adjtimex/adjtimex-1.29-r1.ebuild
Gentoo

Contents of /net-misc/adjtimex/adjtimex-1.29-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Apr 26 23:01:48 2015 UTC (4 years, 4 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Remove old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/adjtimex/adjtimex-1.29-r1.ebuild,v 1.5 2013/08/10 12:48:49 ago Exp $
4
5 EAPI="2"
6
7 inherit eutils fixheadtails toolchain-funcs
8
9 DEBIAN_PV="2"
10 MY_P="${P/-/_}"
11 DEBIAN_URI="mirror://debian/pool/main/${PN:0:1}/${PN}"
12 DEBIAN_PATCH="${MY_P}-${DEBIAN_PV}.diff.gz"
13 DEBIAN_SRC="${MY_P}.orig.tar.gz"
14 DESCRIPTION="display or set the kernel time variables"
15 HOMEPAGE="http://www.ibiblio.org/linsearch/lsms/adjtimex.html"
16 SRC_URI="${DEBIAN_URI}/${DEBIAN_PATCH}
17 ${DEBIAN_URI}/${DEBIAN_SRC}"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="alpha amd64 ppc x86"
22 IUSE=""
23
24 DEPEND="sys-apps/sed"
25 RDEPEND=""
26
27 src_prepare() {
28 cd "${WORKDIR}"
29 epatch "${DISTDIR}"/${DEBIAN_PATCH}
30 cd "${S}"
31 for i in debian/adjtimexconfig debian/adjtimexconfig.8 ; do
32 sed -e 's|/etc/default/adjtimex|/etc/conf.d/adjtimex|' \
33 -i.orig ${i}
34 sed -e 's|^/sbin/adjtimex |/usr/sbin/adjtimex |' \
35 -i.orig ${i}
36 done
37 epatch "${FILESDIR}"/${PN}-1.29-r1-gentoo-utc.patch
38 ht_fix_file debian/adjtimexconfig
39 sed -i \
40 -e '/CFLAGS = -Wall -t/,/endif/d' \
41 -e '/$(CC).* -o/s|$(CFLAGS)|& $(LDFLAGS)|g' \
42 Makefile.in || die "sed Makefile.in"
43 }
44
45 src_configure() {
46 tc-export CC
47 default
48 }
49
50 src_install() {
51 dodoc README* ChangeLog
52 doman adjtimex.8 debian/adjtimexconfig.8
53 dosbin adjtimex debian/adjtimexconfig
54 newinitd "${FILESDIR}"/adjtimex.init adjtimex
55 }
56
57 pkg_postinst() {
58 einfo "Please run adjtimexconfig to create the configuration file"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20