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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (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.10: +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.16-r1.ebuild,v 1.10 2009/09/23 19:32:56 patrick Exp $
4
5 inherit fixheadtails eutils
6
7 DEBIAN_PV="1"
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|' -i ${i}
31 sed -e 's|^/sbin/adjtimex |/usr/sbin/adjtimex |' -i ${i}
32 done
33 ht_fix_file debian/adjtimexconfig
34 sed -e '/CFLAGS = -Wall -t/,/endif/d' -i Makefile.in
35 epatch ${FILESDIR}/${PN}-1.16-pic.patch
36 }
37
38 src_install() {
39 dodoc README* ChangeLog
40 doman adjtimex.8 debian/adjtimexconfig.8
41 dosbin adjtimex debian/adjtimexconfig
42 newinitd ${FILESDIR}/adjtimex.init adjtimex
43 }
44
45 pkg_postinst() {
46 einfo "Please run adjtimexconfig to create the configuration file"
47 }

  ViewVC Help
Powered by ViewVC 1.1.20