blob: 0c56e3d3971df85d3ec0eb1f91a43518ab6bcb4b (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/adjtime/adjtime-0.4.ebuild,v 1.1 2006/01/21 23:21:16 nerdboy Exp $
inherit eutils
DESCRIPTION="A script to adjust the clock tick on the Kurobox and LinkStation hardware clock."
HOMEPAGE="http://groups.yahoo.com/group/LinkStation_General/"
#SRC_URI="http://dev.gentoo.org~/nerdboy/${P}.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="ppc"
IUSE=""
RDEPEND="dev-lang/perl"
src_install() {
dodir /usr/sbin
dosbin ${FILESDIR}/adjtime.pl || die
dodir /etc/init.d
newinitd "${FILESDIR}/adjtime.init" adjtime || die
dodir /etc/conf.d
newconfd "${FILESDIR}/adjtime.conf" adjtime || die
}
pkg_postinst() {
if [ "${ROOT}" = "/" ] \
&& [ ! -f /etc/runlevels/default/adjtime ] ; then
rc-update add adjtime default
fi
}
pkg_postrm() {
if [ "${ROOT}" = "/" ] \
&& [ ! -f /usr/sbin/adjtime ] ; then
rc-update del adjtime default
fi
}
|