diff options
author | 2006-08-09 18:18:00 +0000 | |
---|---|---|
committer | 2006-08-09 18:18:00 +0000 | |
commit | 7dd6c7fb7338b924890b51c343b6b74777b59c82 (patch) | |
tree | 49a12818c03e733ab4a7e77ef57493c90b5a5c51 /sys-apps/busybox | |
parent | Add the gcc-4 patch to 0.14.2, bug #139656. (diff) | |
download | gentoo-2-7dd6c7fb7338b924890b51c343b6b74777b59c82.tar.gz gentoo-2-7dd6c7fb7338b924890b51c343b6b74777b59c82.tar.bz2 gentoo-2-7dd6c7fb7338b924890b51c343b6b74777b59c82.zip |
- move preinst data into postinst. Add a few savedconfig examples
(Portage version: 2.1.1_pre2-r7)
Diffstat (limited to 'sys-apps/busybox')
-rw-r--r-- | sys-apps/busybox/ChangeLog | 5 | ||||
-rw-r--r-- | sys-apps/busybox/busybox-1.2.1.ebuild | 54 |
2 files changed, 53 insertions, 6 deletions
diff --git a/sys-apps/busybox/ChangeLog b/sys-apps/busybox/ChangeLog index 2017a16616e9..b3b4801daec1 100644 --- a/sys-apps/busybox/ChangeLog +++ b/sys-apps/busybox/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-apps/busybox # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.103 2006/08/09 12:08:38 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.104 2006/08/09 18:18:00 solar Exp $ + + 09 Aug 2006; <solar@gentoo.org> busybox-1.2.1.ebuild: + - move preinst data into postinst. Add a few savedconfig examples 09 Aug 2006; <solar@gentoo.org> busybox-1.2.1.ebuild: - change die to an ewarn when no savedconfig file is found diff --git a/sys-apps/busybox/busybox-1.2.1.ebuild b/sys-apps/busybox/busybox-1.2.1.ebuild index 960432b6330d..3668683c0cfa 100644 --- a/sys-apps/busybox/busybox-1.2.1.ebuild +++ b/sys-apps/busybox/busybox-1.2.1.ebuild @@ -1,9 +1,52 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.2.1.ebuild,v 1.6 2006/08/09 12:08:38 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.2.1.ebuild,v 1.7 2006/08/09 18:18:00 solar Exp $ inherit eutils flag-o-matic +################################################################################ +# BUSYBOX ALTERNATE CONFIG MINI-HOWTO +# +# Busybox can be modified in many different ways. Here's a few ways to do it: +# +# (1) Emerge busybox with FEATURES=keepwork so the work directory won't +# get erased afterwards. Add a definition like ROOT=/my/root/path to the +# start of the line if you're installing to somewhere else than the root +# directory. This command will save the default configuration to +# ${PORTAGE_CONFIGROOT} (or ${ROOT} if ${PORTAGE_CONFIGROOT} is not +# defined), and it will tell you that it has done this. Note the location +# where the config file was saved. +# +# FEATURES=keepwork USE=savedconfig emerge busybox +# +# (2) Go to the work directory and change the configuration of busybox using its +# menuconfig feature. +# +# cd /var/tmp/portage/busybox*/work +# make menuconfig +# +# +# (3) Save your configuration to the default location and copy it to the +# savedconfig location as follows. Replace X.X.X by the version of +# busybox, and change the path if you're overriding ${ROOT} or +# ${PORTAGE_CONFIGROOT}. The file should overwrite the default config +# file that was written by the ebuild during step 1. +# +# cp .config /etc/portage/savedconfig/busybox-X.X.X.config +# +# (4) Execute the same command as in step 1 to build the new busybox config; +# the FEATURES=keepwork option is probably no longer necessary unless you +# want to modify the configuration further. +# +################################################################################ +# +# (1) Alternatively skip the above steps and simply emerge busybox with +# USE=savedconfig and edit the file it saves by hand. Then remerge bb as +# needed. +# +################################################################################ + + #SNAPSHOT=20040726 SNAPSHOT="" @@ -217,20 +260,21 @@ src_install() { fi } -pkg_preinst() { +pkg_postinst() { if use savedconfig ; then local config_dir="${PORTAGE_CONFIGROOT:-${ROOT}}/etc/portage/savedconfig" einfo "Saving this build config to ${config_dir}/${PF}.config" einfo "Read this ebuild for more info on how to take advantage of this option" mkdir -p "${config_dir}" cp "${S}"/.config "${config_dir}"/${PF}.config + return 0 fi -} - -pkg_postinst() { echo einfo "This ebuild has support for user defined configs" einfo "Please read this ebuild for more details and re-emerge as needed" einfo "if you want to add or remove functionality for ${PN}" echo } + + + |