summaryrefslogtreecommitdiff
blob: 16b183c9bc2cdf41bf90bdfbff1f8f10c6e0ad5d (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or
# later
# $Header: /var/cvsroot/gentoo-x86/app-i18n/init-es/init-es-0.3-r1.ebuild,v 1.1 2003/06/29 00:00:31 bass Exp $


S=${WORKDIR}/${P}

LICENSE="GPL-2"

KEYWORDS="~x86 ~ppc ~alpha ~sparc"

DESCRIPTION="Traductor de mensajes de inicio (init)"
SRC_URI="http://projects.frikis.org/gentoo/init-es/programa/${P}.tar.bz2"
HOMEPAGE="http://projects.frikis.org"

IUSE=""
SLOT="0"

RDEPEND="sys-apps/textutils
	sys-apps/sed"


src_install() {
		insinto /etc
		doins ${WORKDIR}/${P}/trad.es
		cd ${WORKDIR}/${P}/doc
		dodoc README ChangeLog
		exeinto /sbin
		doexe ${WORKDIR}/${P}/functions.sh
}

pkg_preinst() {
	if [ ! -f /sbin/functions.sh.ORIG ]
	then
		mv /sbin/functions.sh /sbin/functions.sh.ORIG
	fi
	if [ -f /sbin/functions.sh.ORIG ]
	then
		rm /sbin/functions.sh
	fi
}

pkg_postrm() {
	if [ ! -f /sbin/functions.sh ]
	then
		mv /sbin/functions.sh.ORIG /sbin/functions.sh
	fi
}