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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sun Apr 26 23:01:48 2015 UTC (4 years, 5 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

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

1 robbat2 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 mrueg 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/adjtimex/adjtimex-1.20-r3.ebuild,v 1.2 2010/03/25 19:30:25 robbat2 Exp $
4 robbat2 1.1
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 robbat2 1.2 epatch "${DISTDIR}"/${DEBIAN_PATCH}
28     cd "${S}"
29 robbat2 1.1 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 robbat2 1.2 epatch "${FILESDIR}"/${PN}-1.20-gentoo-utc.patch
36 robbat2 1.1 ht_fix_file debian/adjtimexconfig
37     sed -e '/CFLAGS = -Wall -t/,/endif/d' -i Makefile.in
38 robbat2 1.2 epatch "${FILESDIR}"/${PN}-1.16-pic.patch
39     epatch "${FILESDIR}"/${PN}-1.20-fix-syscall.patch
40 robbat2 1.1 }
41    
42     src_install() {
43     dodoc README* ChangeLog
44     doman adjtimex.8 debian/adjtimexconfig.8
45     dosbin adjtimex debian/adjtimexconfig
46 robbat2 1.2 newinitd "${FILESDIR}"/adjtimex.init adjtimex
47 robbat2 1.1 }
48    
49     pkg_postinst() {
50     einfo "Please run adjtimexconfig to create the configuration file"
51     }

  ViewVC Help
Powered by ViewVC 1.1.20