summaryrefslogtreecommitdiff
blob: b40200674e17daa1ae75850b5397aebfb668f8f2 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/init-es/init-es-0.3-r1.ebuild,v 1.3 2003/09/08 00:48:12 lanius Exp $

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

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~alpha ~sparc"

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
}