diff options
author | 2005-05-12 06:11:18 +0000 | |
---|---|---|
committer | 2005-05-12 06:11:18 +0000 | |
commit | 9df1368b33a46b7d68ab285a2554df546232e5c2 (patch) | |
tree | e9819fec0ffb65697b0bf89f43269903a1be0573 /sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild | |
parent | Initial commit. (diff) | |
download | historical-9df1368b33a46b7d68ab285a2554df546232e5c2.tar.gz historical-9df1368b33a46b7d68ab285a2554df546232e5c2.tar.bz2 historical-9df1368b33a46b7d68ab285a2554df546232e5c2.zip |
Initial commit.
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild')
-rw-r--r-- | sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild b/sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild new file mode 100644 index 000000000000..59015be6fb69 --- /dev/null +++ b/sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-darwin/baselayout-darwin-1.11.11.ebuild,v 1.1 2005/05/12 06:11:18 josejx Exp $ + +DESCRIPTION="Baselayout and init scripts (eventually)" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="mirror://gentoo/${P}.tar.gz + http://dev.gentoo.org/~josejx/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc-macos" +IUSE="" +DEPEND="" +RDEPEND="sys-apps/coreutils-darwin" + +PROVIDE="virtual/baselayout" + +src_compile() { + einfo "Nothing to compile" +} + +src_install() { + local dir libdirs libdirs_env rcscripts_dir + + dodir /etc/env.d + dodir /etc/init.d + + # + # Setup files in /etc + # + insopts -m0644 + insinto /etc + doins -r "${S}"/etc/* + + insinto /etc/env.d + doins ${S}/etc/env.d/* + insinto /etc/skel + find ${S}/etc/skel -maxdepth 1 -type f -print0 | xargs --null doins + + # + # Setup files in /sbin + # + cd ${S}/sbin + into / + # These moved from /etc/init.d/ to /sbin to help newb systems + # from breaking + dosbin functions.sh + + # Compat symlinks between /etc/init.d and /sbin + # (some stuff have hardcoded paths) + dosym /sbin/functions.sh /etc/init.d/functions.sh + + # We can only install new, fast awk versions of scripts + # if 'build' or 'bootstrap' is not in USE. This will + # change if we have sys-apps/gawk-3.1.1-r1 or later in + # the build image ... + #if ! use build; then + # This is for new depscan.sh and env-update.sh + # written in awk + #cd ${S}/sbin + #into / + #dosbin env-update.sh + #insinto ${rcscripts_dir}/awk + #doins ${S}/src/awk/*.awk + #fi +} + +pkg_postinst() { + if [ -f /etc/profile ] && ! grep profile.gentoo /etc/profile > /dev/null; then + einfo "Adding /etc/profile.gentoo to /etc/profile" + echo "source /etc/profile.gentoo" >> /etc/profile + fi + if [ -f /etc/bashrc ] && ! grep skel /etc/bashrc > /dev/null; then + einfo "Adding /etc/skel/.bashrc to /etc/bashrc" + echo ". /etc/skel/.bashrc" >> /etc/bashrc + fi + + echo + einfo "Please be sure to update all pending '._cfg*' files in /etc," + einfo "else things might break at your next reboot! You can use 'etc-update'" + einfo "to accomplish this:" + einfo + einfo " # etc-update" + echo +} |