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