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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Mar 25 19:30:25 2010 UTC (9 years, 8 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old versions and QA cleanup.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.20-r1.ebuild,v 1.3 2009/09/23 19:32:56 patrick Exp $
4
5 inherit fixheadtails eutils
6
7 DEBIAN_PV="6"
8 MY_P="${P/-/_}"
9 DEBIAN_URI="mirror://debian/pool/main/${PN:0:1}/${PN}"
10 DEBIAN_PATCH="${MY_P}-${DEBIAN_PV}.diff.gz"
11 DEBIAN_SRC="${MY_P}.orig.tar.gz"
12 DESCRIPTION="display or set the kernel time variables"
13 HOMEPAGE="http://www.ibiblio.org/linsearch/lsms/adjtimex.html"
14 SRC_URI="${DEBIAN_URI}/${DEBIAN_PATCH}
15 ${DEBIAN_URI}/${DEBIAN_SRC}"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
20 IUSE=""
21
22 RDEPEND=""
23 DEPEND="${RDEPEND} sys-apps/sed"
24
25 src_unpack() {
26 unpack ${DEBIAN_SRC}
27 epatch ${DISTDIR}/${DEBIAN_PATCH}
28 cd ${S}
29 for i in debian/adjtimexconfig debian/adjtimexconfig.8 ; do
30 sed -e 's|/etc/default/adjtimex|/etc/conf.d/adjtimex|' \
31 -i.orig ${i}
32 sed -e 's|^/sbin/adjtimex |/usr/sbin/adjtimex |' \
33 -i.orig ${i}
34 done
35 epatch ${FILESDIR}/${PN}-1.20-gentoo-utc.patch
36 ht_fix_file debian/adjtimexconfig
37 sed -e '/CFLAGS = -Wall -t/,/endif/d' -i Makefile.in
38 epatch ${FILESDIR}/${PN}-1.16-pic.patch
39 }
40
41 src_install() {
42 dodoc README* ChangeLog
43 doman adjtimex.8 debian/adjtimexconfig.8
44 dosbin adjtimex debian/adjtimexconfig
45 newinitd ${FILESDIR}/adjtimex.init adjtimex
46 }
47
48 pkg_postinst() {
49 einfo "Please run adjtimexconfig to create the configuration file"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20