| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.2 2008/03/23 00:04:00 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.3 2008/03/23 17:40:46 vapier Exp $ |
| 4 | |
4 | |
| 5 | inherit eutils flag-o-matic multilib toolchain-funcs |
5 | inherit eutils flag-o-matic multilib toolchain-funcs |
| 6 | |
6 | |
| 7 | if [[ ${PV} == "9999" ]] ; then |
7 | if [[ ${PV} == "9999" ]] ; then |
| 8 | inherit git |
8 | inherit git |
| … | |
… | |
| 82 | pkg_preinst() { |
82 | pkg_preinst() { |
| 83 | # default net script is just comments, so no point in biting people |
83 | # default net script is just comments, so no point in biting people |
| 84 | # in the ass by accident |
84 | # in the ass by accident |
| 85 | [[ -e ${ROOT}/etc/conf.d/net ]] && rm -f "${D}"/etc/conf.d/net |
85 | [[ -e ${ROOT}/etc/conf.d/net ]] && rm -f "${D}"/etc/conf.d/net |
| 86 | |
86 | |
| 87 | has_version sys-apps/openrc || return 0 |
87 | has_version sys-apps/openrc && return 0 |
| 88 | |
88 | |
| 89 | # upgrade timezone file |
89 | # upgrade timezone file |
| 90 | if [[ ! -e ${ROOT}/etc/timezone ]] ; then |
90 | if [[ ! -e ${ROOT}/etc/timezone ]] ; then |
| 91 | ( |
91 | ( |
| 92 | source "${ROOT}"/etc/conf.d/timezone |
92 | source "${ROOT}"/etc/conf.d/timezone |