# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
#
SYNC="rsync://mirror.averse.net/gentoo-portage"
PORTDIR=/usr/portage
ARCH=x86
PORTAGE_TMPDIR=/var/tmp
USE="-esd -qt3 -gpm -X -ipv6 -tk"
USE="${USE} qt4"
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
#---------------------------------------------------------------------------
#CFLAGS="-O2 -march=athlon-xp -pipe"
#athlon-xp
#CHOST="x86_64-pc-linux-gnu"
#CXXFLAGS="${CFLAGS}"
#--------------------------------------------------------------
#CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
#CFLAGS="-march=athlon-xp -mfpmath=sse -mmmx -msse -msse2 -msse3 -m3dnow -pipe -O3 -funroll-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fweb -frename-registers -fbranch-target-load-optimize2"
#LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
#--------------------------------------------------------------
#ACCEPT_KEYWORDS="x86"
#ACCEPT_KEYWORDS="~x86"
ACCEPT_KEYWORDS="~amd64"
#ARCH="x86"
#--------------------------------------------------------------
#CHOST="i686-pc-linux-gnu"
CHOST="x86_64-pc-linux-gnu"
#CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -msse3"
#CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
#CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" #for x86_32
#CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -msse4.1" #for x86_64
#CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
#GCC 4.3 has -march=core2
# pentium-m Low power version of Intel Pentium3 with MMX, SSE, SSE2.
# Used by Centrino notebooks.
# prescott Intel Pentium4 with MMX, SSE, SSE2 and SSE3.
# nocona Intel Pentium4 with 64-bit extensions, MMX, SSE, SSE2
# and SSE3.
#ACCEPT_KEYWORDS="~x86"
LANG=C
LANGUAGE=C
LC_ALL=C
LC_COLLATE=C
LC_CTYPE=C
LC_MESSAGES=C
LC_NUMERIC=C
LC_TIME=C
CXXFLAGS="${CFLAGS}"
#CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
MAKEOPTS="-j3"
#LDFLAGS="-Wl,-O1" ###OK+++
LDFLAGS="-Wl,-O1 -Wl,--as-needed" #-->use this
#LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
#EMERGE_DEFAULT_OPTS="-v"
#--------------------------------------------------------------
#LDFLAGS="-Wl,-O1"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#LDFLAGS="-Wl,-O2"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed"
#LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
#LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both -s"
#LDFLAGS="-Wl,-O2,--as-needed"
#--------------------------------------------------------------
#BUILD_PREFIX=/home/yegle/tmp ## set tmp_dir,default is /var/tmp/
#--------------------------------------------------------------
#==== for crossdev ========================
# CFLAGS="-march=athlon-xp -pipe"
# CXXFLAGS="${CFLAGS}"
# LDFLAGS=""
#==== for openembedded========================
#CFLAGS="-march=athlon-xp -O2 -pipe"
#CFLAGS="-march=athlon-xp -pipe"
#CXXFLAGS="${CFLAGS}"
#LDFLAGS=""
#LDFLAGS="-Wl,-O2,--as-needed"
#---------------------------------------------------------------------------
#==== for crossdev ========================
LINGUAS="zh_CN zh"
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
#ACCEPT_KEYWORDS="~amd64"
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# /usr/portage/profiles/use.desc
# USE="accessibility dbus lvm2 a52 aac automount bash-completion boost bzip2 chroot cjk \
# colordiff command-args compress cscope curl dbase dbm directfb \
# disk-partition dts fat ffmpeg fontconfig glib gtalk gzip \
# hddtemp ithreads jpeg2k jpgraph latin1 mmap \
# network ntfs nvidia openssh openssl opensslcrypt posix \
# rar sandbox scim serial 3dnow 3dnowext p_w_picpathmagick \
# sftp sql sqlite3 subversion symlink threads unzip usb v4l \
# v4l2 vim vim-pager vim-syntax vim-with-x wav wma real \
# xine xinetd xvid zip gssapi theora -cups ipv6 -kde truetype-fonts \
# -type1-fonts"
#
# USE="$USE 3dnow 3dnowext mmx sse fftw gmp mudflap openmp chm samba ieee1394 bluetooth oss wifi hdaps dvd dvdr dvdread fam fastcgii p_w_picpathmagick"
#
# USE="$USE win32codecs sse2 acpi alsa djvu flac lm_sensors mad mmap mp3 mplayer ncurses nls pcmcia startup-notification xface xinerama xinetd zlib ssl"
# # added on Apr 30, 2008
# # use for Hardware with Multimedia Instruction
# USE="$USE mmx sse sse2 ssse3 nvidia srt"
#
# # use for Desktop Environment
# USE="${USE} X gtk gtk2 -gnome hal avahi xft"
#
# # use for Chinese Support
# USE="${USE} cjk immqt-bc"
#
# # use for File Formats Support
# USE="${USE} exif gif jpeg mp3 mng mpeg ogg openexr pdf png svg tiff wma wmf xml xpm"
#
# # use for Multimedia Support
# USE="${USE} alsa cdr cddb cdparanoia css dts dvd dvdr openal opengl v4l v4l2 vcd xv xvmc" #arts
#
# # use for Codecs
# USE="${USE} a52 aac aalib audiofile cdparanoia dv dvdread encode ffmpeg flac lame live mad quicktime theora vorbis x264 xvid"
#
# # use for Power Management
# USE="${USE} acpi -apm"
#
# # use for Programming
# USE="${USE} bash-completion -examples lua python -ruby subversion vim-syntax" #csv
#
# # use for Accounting
# USE="${USE} hbci ofx quotes stock"
#
# # misc.
# USE="${USE} branding samba wifi" #fbsplash
#
# # TODO: Add this next emerge -e world
# #USE="${USE} xinerama"
#
# USE="${USE} lm-sensors nforce2 nvidia pmu"
# USE="${USE} l7filter"
# USE="${USE} xcb xinerama"
# USE="${USE} kdeprefix xcomposite" #KDE4
# USE="${USE} kerberos caps -imlib"
# USE="${USE} logrotate"
# USE="${USE} tk -sqlite"
# USE="${USE} -qt -qt3 -qt4 qt3support pch"
# USE="${USE} -eds" #evolution-data-server
# USE="${USE} policykit"
# USE="${USE} java6" #java
#
#---------------------------------------------------------------------------
#USE="immqt "
#FEATURES="userpriv usersandbox ccache sandbox parallel-fetch userfetch" #getbinpkg keepwork
FEATURES="sandbox parallel-fetch userfetch preserve-libs noinfo metadata-transfer ccache" #nodoc metadata-transfer getbinpkg keepwork keeptemp ccache
PORTAGE_ECLASS_WARNING_ENABLE="0"
INPUT_DEVICES="keyboard mouse evdev synaptics"
VIDEO_CARDS="nvidia vga fbdev" #vesa
#ALSA_CARDS="es1371"
ALSA_CARDS="hda-intel"
#---------------------------------------------------------------------------
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="1G"
#---------------------------------------------------------------------------
MAKEOPTS="-j3"
PORTAGE_BINHOST="https://e.ututo.org.ar/athlon-xp/ http://gentoo.modulix.net/gentoo/grp/x86_64-pc-linux-gnu/athlon64/gnome/"
#PORTDIR=/home/lvdata/funtoo/portage/
#PORTAGE_TMPDIR=/home/lvdata/portage_temp
PKGDIR=/usr/portage/packages
PORT_LOGDIR=/var/log/portage
AUTOCLEAN="yes"
PORTAGE_NICENESS=10
PORTAGE_RSYNC_INITIAL_TIMEOUT=60
#---------------------------------------------------------------------------
#GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/"
#GENTOO_MIRRORS="http://fido.online.kz/gentoo"
#---------------------------------------------------------------------------
#FETCHCOMMAND='proz --no-getch --no-search ${URI} -P ${DISTDIR}'
#==========================OK====================================
#--------------- copy from elog ----------------------------------------------
FETCHCOMMAND="/usr/bin/axel -a -o \${DISTDIR}/\${FILE} \${URI}"
RESUMECOMMAND="${FETCHCOMMAND}"
#-------------------------------------------------------------
#FETCHCOMMAND="/usr/bin/axel -a -n2 \${URI} -o \${DISTDIR}"
#RESUMECOMMAND="/usr/bin/axel -a -n2 \${URI} -o \${DISTDIR}"
#==========================OK====================================
#FETCHCOMMAND="/usr/bin/wget --limit-rate=200k -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
#RESUMECOMMAND="/usr/bin/wget --limit-rate=200k -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
#RESUMECOMMAND="${FETCHCOMMAND}"
#==========================OK====================================
#==========================OK====================================
#FETCHCOMMAND="/usr/bin/axel -a -n 4 -o \${DISTDIR}/\${FILE} \${URI}"
#RESUMECOMMAND="/usr/bin/axel -a -n 4 -o \${DISTDIR}/\${FILE} \${URI}"
#
#FETCHCOMMAND="/usr/bin/axel -a -n 10 -S 5 -o \${DISTDIR}/\${FILE} \${#URI}"
#RESUMECOMMAND="/usr/bin/axel -a -n 10 -S 5 -o \${DISTDIR}/\${FILE} \${URI}"
#
#FETCHCOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
#RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
#RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P \${DISTDIR}"
#---------------------------------------------------------------------------
#RSYNC_RATELIMIT=20
#FETCHCOMMAND="/usr/bin/wget --limit-rate=50k -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
#RESUMECOMMAND="/usr/bin/wget --limit-rate=50k -c -t 5 --passive-ftp -P \${DISTDIR}"
#---------------------------------------------------------------------------
#================================================================
#---------------------------------------------------------------------------
#FETCHCOMMAND="axel -a -n 3 -N -o \${DISTDIR}/\${FILE} \${URI}"
#RESUMECOMMAND="axel -a -n 3 -N -o \${DISTDIR}/\${FILE} \${URI}"
#---------------------------------------------------------------------------
#source /usr/portage/local/layman/make.conf
#FETCHCOMMAND="/usr/bin/axel -a -o \${DISTDIR}/\${FILE}/\${URI}"
#RESUMECOMMAND=${FETCHCOMMAND}
#---------------------------------------------------------------------------
#==============================================================================
# Lukemftp (BSD ftp):
#FETCHCOMMAND="/usr/bin/lukemftp -s -a -o \${DISTDIR}/\${FILE} \${URI}"
#RESUMECOMMAND="/usr/bin/lukemftp -s -a -R -o \${DISTDIR}/\${FILE} \${URI}"
#
# Prozilla (turbo downloader)
#FETCHCOMMAND='/usr/bin/proz --no-getch -s ${URI} -P ${DISTDIR}' #[去掉前面的#]
#FETCHCOMMAND='/usr/bin/proz --no-getch --no-search ${URI} -P ${DISTDIR}'
#nano /etc/prozilla.conf [配置prozilla,把这一行threads改为=10,十线程下载,
#ftpsearch=OFF (不自动搜索下载镜像)]
#==============================================================================
#---------------------------------------------------------------------------
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error info"
#---------------------------------------------------------------------------
#mirrorselect -D -s4
#---------------------------------------------------------------------------
#PORTDIR_OVERLAY="/usr/local/myportage"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/layman/gentoo-china"
#----
#PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-china"
######--------------------------------
###layman -a openmoko
#http://gentoo.mindzoo.de/index.cgi/wiki/cross-compiling
#PORTDIR_OVERLAY="/var/lib/layman/openmoko/trunk/openmoko-target"
#-------------------------------------------------
#PORTDIR_OVERLAY="/usr/portage"
PORTDIR_OVERLAY=""
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /var/lib/layman/openmoko/trunk/openmoko-target"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /var/lib/layman/openmoko/tags/20090616/openmoko-target"
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /var/lib/layman/gentoo-china"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /var/lib/layman/lxde"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /var/lib/layman/java-overlay"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /var/lib/myportage"
#PORTDIR_OVERLAY="/usr/portage /var/lib/layman/gentoo-china /var/lib/layman/lxde /var/lib/myportage /var/lib/layman/openmoko/trunk/openmoko-target"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/layman/gentoo-taiwan"
#-------------------------------------------------
######--------------------------------
#----
#PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-china/ /usr/local/myportage/"
#PORTDIR_OVERLAY="/usr/local/myportage /usr/portage/local/layman/gentoo-china"
#----
#PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
#---------------------------------------------------------------------------
##一. 网通
#GENTOO_MIRRORS="http://61.135.158.199"
#SYNC="rsync://61.135.158.199/gentoo-portage"
#点评:版主fei所架设。dell 2650 4G内存。双P4 xeon 2.8G 超线程,只做了portage和distfiles和snapshots镜象。
#每天同步两次。北京网通机房。千兆带宽。
##二. 电信
#GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo"
#点评:sanfanling帮忙联系建立的,速度很快
#GENTOO_MIRRORS="http://linux.ntcu.net/ftp/dists/gentoo"
#SYNC="rsync://linux.ntcu.net/gentoo-portage"
#点评:从上海连,可达200KB/S
#GENTOO_MIRRORS="ftp://ftp.linuxforum.net/gentoo http://mirror.gentoo.gr.jp"
#点评:据反映linuxforum的镜像更新可能不够勤,所以以gentoo.gr.jp为后备
#GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo"
#SYNC="rsync://acm.cs.rpi.edu/gentoo-portage"
#点评:这是fakeid和assemble推荐的
##三. 教育网
#GENTOO_MIRRORS="ftp://ftp3.tsinghua.edu.cn/mirror/gentoo"
#SYNC="rsync://ftp3.tsinghua.edu.cn/gentoo/gentoo-portage"
##点评:清华的,教育网访问速度超快,可以sync,教育网首选。
#GENTOO_MIRRORS="ftp://ftp.sjtu.edu.cn/gentoo"
#点评:上海交大
##四. 内地以外
#GENTOO_MIRRORS="http://ftp.ncnu.edu.tw/Linux/Gentoo"
#SYNC="rsync://rsync.gentoo.org/gentoo-portage"
#点评:这是zhllg用的,从香港连,很快
#---------------------------------------------------------------------------
SYNC="rsync://mirror.averse.net/gentoo-portage"
#SYNC="rsync://linux.ntcu.net/gentoo-portage"
#http_proxy = http://211.140.192.186:8080
#PORTAGE_RSYNC_INITIAL_TIMEOUT=60
SYNC="rsync://linux.ntcu.net/gentoo-portage"
#---------------------------------------------------------------------------
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
SYNC="rsync://61.135.158.199/gentoo-portage"
GENTOO_MIRRORS="http://gentoo.aditsu.net http://61.135.158.199 ftp://gentoo.anheng.com.cn/gentoo"
#GENTOO_MIRRORS="http://gentoo.aditsu.net/"
#GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo"
#GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.twaren.net/Linux/Gentoo/ http://mirror.pacific.net.au/linux/Gentoo"
#http://ftp.nara.wide.ad.jp/pub/Linux/gentoo/ http://linux.ntcu.net/ftp/dists/gentoo
#GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/ http://gentoo.gg3.net/ http://gentoo.channelx.biz/ http://ftp.gentoo.or.kr/"
#SYNC="rsync://193.190.198.20/gentoo-portage"
#SYNC="rsync://211.14.6.124/gentoo-portage"
#SYNC="rsync://rsync.gentoo.org/gentoo-portage"
#---------------------------------------------------------------------------
#GENTOO_MIRRORS="http://ftp.nara.wide.ad.jp/pub/Linux/gentoo/ $GENTOO_MIRRORS"
#---------------------------------------------------------------------------
#SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
#SYNC="rsync://mirror.averse.net/gentoo-portage"
#SYNC="rsync://61.135.158.199/gentoo-portage"
#SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage/"
#SYNC="rsync://mirror.espri.arizona.edu/gentoo/"
#SYNC="rsync://gentoo.139pay.com/gentoo-portage"
#SYNC="rsync://linux.ntcu.net/gentoo-portage"
#SYNC="rsync://rsync.gentoo.org/gentoo-portage"
#SYNC="rsync://gentoo.chem.wisc.edu/gentoo/gentoo-portage"
#SYNC="rsync://acm.cs.rpi.edu/gentoo-portage"
#SYNC="rsync://61.135.158.199/gentoo-portage"
#SYNC="rsync://38.99.64.200/gentoo-portage"
####SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
#SYNC="rsync://219.111.13.142/gentoo-portage"
#SYNC="rsync://61.135.158.199/gentoo-portage"
#SYNC="rsync://gentoo.kems.net/gentoo-portage"
#SYNC="rsync://202.1.117.1/gentoo-portage"
#SYNC="rsync://ftp.swin.edu.au"
#SYNC="rsync://rsync.gg3.net/portage"
#SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
#SYNC="rsync://mirror.lupaworld.com/gentoo/gentoo-x86-portage"
#SYNC="rsync://http://mirror.lupaworld.com/gentoo/gentoo-x86-portage/"
#SYNC="rsync://ftp3.tsinghua.edu.cn/gentoo/gentoo-portage"
#---------------------------------------------------------------------------
#SYNC="rsync://192.168.1.9/gentoo-portage"
#GENTOO_MIRRORS="http://192.168.1.3 $GENTOO_MIRRORS"
#---------------------------------------------------------------------------
####mirror ===>> /etc/portage/mirrors
#---------------------------------------------------------------------------
#GENTOO_MIRRORS="http://ftp.daum.net/gentoo/"
#
#FETCHCOMMAND="/usr/bin/wget --limit-rate=200k -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
#ESUMECOMMAND="/usr/bin/wget --limit-rate=200k -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"