| View previous topic :: View next topic |
| Author |
Message |
pouakai n00b

Joined: 29 Nov 2002 Posts: 20
|
Posted: Thu Dec 12, 2002 1:23 am Post subject: restoring make.conf - from where ? |
|
|
I have trashed my make.conf file during a etc-update, from where can I restore it ? which package is it included in and how could I determine this for myself ?
Regards all, |
|
| Back to top |
|
 |
pilla Administrator


Joined: 07 Aug 2002 Posts: 7184 Location: Pelotas, BR
|
Posted: Thu Dec 12, 2002 2:02 am Post subject: |
|
|
It comes with sys-apps/portage, but I guess you'll have problems emerging it without /etc/make.conf
I''ll post my make.conf so you can use it as an example. Don't forget to change CHOST and CFLAGS/CXXFLAGS to fit your system.
| Code: |
#ACCEPT_KEYWORDS="~x86"
# Copyright 2000-2002 Daniel Robbins, Gentoo Technologies, Inc.
# Contains system settings for Portage system
# Download sites: The main Gentoo Linux source mirror; specify as many
# space-separated mirrors as you like.
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
# The main Gentoo Linux Portage server; specify a single Portage server.
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
# If you want/need rsync to use an HTTP proxy to make its connections, set
# the RSYNC_PROXY proxy variable in root's .bashrc or /etc/profile. It's
# best to enable globally since then all rsync calls on your system will
# take advantage of your proxy.
# Build-time functionality
USE="mozilla apm gnome kde gtk2 cups arts qt perl mule curses ncurses -esd -3dnow truetype cdr crypt evo fbcon xv -alsa"
# USE options are inherited from /etc/make.profile/make.defaults. To turn a
# USE setting off, add a "-setting" to the USE variable here. To enable a
# setting, add the setting name to the USE variable here. Separate USE toggles
# with whitespace.
# Host-specific settings
# For optimization, the -mcpu= option will cause binaries to be optimized for a
# particular x86 CPU, but will continue to work on all CPUs. The -march=
# option, on the other hand, will instruct the compiler to use instuctions
# specific to that particular CPU in order to enhance performance. Resultant
# binaries will *not* run on other systems unless they are 100% compatible with
# your processor's instruction set. For example, -march=i686 will produce
# executables that do not execute on Pentium Classic or K6 systems, but will
# run on Pentium Pro and "above" systems. -march=x automatically enables
# -mcpu=x.
# Examples:
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
#CHOST="i686-pc-linux-gnu"
#CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
#CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer"
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
# will use the P6 instruction set and only run on P6+ systems)
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -mmmx -msse -mfpmath=sse -O2 -pipe" # -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -mmmx -msse -mfpmath=sse -O2 -pipe" # -fomit-frame-pointer"
#CFLAGS="-march=pentium3 -mmmx -msse -mfpmath=sse -O2 -pipe"
#CXXFLAGS="-march=pentium3 -mmmx -msse -mfpmath=sse -O2 -pipe"
# Pentium/Pentium MMX+ exclusive (requires a Pentium Classic or K6 or beyond)
#CHOST="i586-pc-linux-gnu"
#CFLAGS="-march=i586 -O3 -pipe"
#CXXFLAGS="-march=i586 -O3 -pipe"
# K6 exclusive (requires a K6 or beyond)
#CHOST="i586-pc-linux-gnu"
#CFLAGS="-mcpu=k6 -march=k6 -O3 -pipe"
#CXXFLAGS="-mcpu=k6 -march=k6 -O3 -pipe"
# PowerPC exclusive (requires a PPC)
#CHOST="powerpc-unknown-linux-gnu"
#CFLAGS="-O2 -pipe"
#CXXFLAGS="-O2 -pipe"
# PowerPC experimental (requires a PPC - very unstable)
#CHOST="powerpc-unknown-linux-gnu"
#CFLAGS="-mcpu=powerpc -march=powerpc -O3 -pipe"
#CXXFLAGS="-mcpu=powerpc -march=powerpc -O3 -pipe"
# If you need to set a proxy for wget or lukemftp, add the appropriate
# "export ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to
# /etc/profile if all users on your system should use them.
# Uncomment to use Lukemftp for download; you need to merge lukemftp first.
#FETCHCOMMAND="/usr/bin/lukemftp -s -a -o \${DISTDIR}/\${FILE} \${URI}"
#RESUMECOMMAND="usr/bin/lukemftp -s -a -R -o \${DISTDIR}/\${FILE} \${URI}"
# Uncomment if you wanna use Prozilla for download
# you need to merge prozilla first!
#FETCHCOMMAND='/usr/bin/proz --no-getch -s ${URI} -P ${DISTDIR}'
# Uncomment if you are a package maintainer with cvs access
# The following fine grained configuration options are now available
# digest : automatically create a digest for new ebuilds
# cvs : automatically commit new digests to cvs
# sandbox : enable the sandbox for path prefix protection
# noclean : don't clean the temp dirs when emerge terminates
# noauto : don't execute prior ebuild steps automatically
# (eg. 'ebuild install' does just that and not
# 'fetch unpack compile install'
#FEATURES="digest cvs sandbox noclean noauto"
|
|
|
| Back to top |
|
 |
taskara Advocate

Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Thu Dec 12, 2002 4:50 am Post subject: |
|
|
let me say the best place to restore your make.conf file from is the BACKUP YOU MADE AFTER YOU GOT IT ALL PERFECTLY THE WAY YOU WANTED IT!
always, always, ALWAYS backup your important config files in linux, always...
did I mention always ? _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
| Back to top |
|
 |
pouakai n00b

Joined: 29 Nov 2002 Posts: 20
|
Posted: Thu Dec 12, 2002 7:05 am Post subject: |
|
|
Thanks guys - stearling advice all round!
: ) |
|
| Back to top |
|
 |
pilla Administrator


Joined: 07 Aug 2002 Posts: 7184 Location: Pelotas, BR
|
Posted: Thu Dec 12, 2002 3:06 pm Post subject: |
|
|
How do you do a backup after erasing the file?
| taskara wrote: | let me say the best place to restore your make.conf file from is the BACKUP YOU MADE AFTER YOU GOT IT ALL PERFECTLY THE WAY YOU WANTED IT!
always, always, ALWAYS backup your important config files in linux, always...
did I mention always ? |
|
|
| Back to top |
|
 |
taskara Advocate

Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Thu Dec 12, 2002 8:43 pm Post subject: |
|
|
| Bloody Bastard wrote: | How do you do a backup after erasing the file?
| taskara wrote: | let me say the best place to restore your make.conf file from is the BACKUP YOU MADE AFTER YOU GOT IT ALL PERFECTLY THE WAY YOU WANTED IT!
always, always, ALWAYS backup your important config files in linux, always...
did I mention always ? |
|
EXACTLY my point !
Norton's "un-erase"! ?!? HAHHAHHAHA _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
| Back to top |
|
 |
proxy Apprentice


Joined: 20 Apr 2002 Posts: 253 Location: Chantilly, VA
|
Posted: Thu Dec 12, 2002 8:56 pm Post subject: |
|
|
this is exactly the reason i use autobots etc-backup script (search forums) to backup my /etc directory on every boot
proxy |
|
| Back to top |
|
 |
|