tar xvzf a.tgz -C abc 식으로 압축을 abc 디렉토리에 해제 하려고 할 경우 abc 라는 디렉토리가 이미 있어야 하는데..

mkdir -p abc && tar xvzf a.tgz -C abc 이런식으로..들.. 해결을 하는듯..

mkdir -p abc && 를 쳐야 한다는것 자체가.. 굉장히.. 거슬리고 불편하다.

그래서 -C 옵션을 줄 경우 mkdir 을 자동으로 하도록 패치


x230 /etc/portage/patches/app-arch/tar-1.30 # pwd

/etc/portage/patches/app-arch/tar-1.30


x230 /etc/portage/patches/app-arch/tar-1.30 # cat create_directory.patch 

--- a/src/names.c

+++ b/src/names.c

@@ -186,6 +186,7 @@

   switch (key)

     {

     case 'C':

+      mkdir(arg, 0755);

       name_add_dir (arg);

       break;

 

패치는...


x230 ~ # cd /usr/portage/distfiles/

x230 /usr/portage/distfiles # tar xjf tar-1.30.tar.bz2 

x230 /usr/portage/distfiles # cp -ap tar-1.30 tar-1.30.new

x230 /usr/portage/distfiles # vim tar-1.30.new/src/names.c 

case 'C': 를 검색해서 name_add_dir (arg); 위에 mkdir(arg, 0755); 를 추가

x230 /usr/portage/distfiles # diff -Nru tar-1.30 tar-1.30.new > create_directory.patch

x230 /usr/portage/distfiles # mkdir -p /etc/portage/patches/app-arch/tar-1.30

x230 /usr/portage/distfiles # cp -ap create_directory.patch /etc/portage/patches/app-arch/tar-1.30/



Posted by badung
,

localhost ~ # cat /etc/portage/bashrc 

pre_src_prepare() {

    [[ ${EAPI:-0} == [012345] ]] || return

    if ! type estack_push > /dev/null 2>&1; then

        local estack_names="eshopts_push eshopts_pop evar_push evar_push_set evar_pop estack_push estack_pop"

        source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${estack_names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/estack.eclass)

    fi

    if ! type epatch_user > /dev/null 2>&1; then

        local epatch_names="EPATCH_SOURCE EPATCH_USER_SOURCE epatch_user_death_notice epatch_user epatch"

        source <(awk "/^# @(FUNCTION|VARIABLE): / { p = 0 } /^# @(FUNCTION|VARIABLE): (${epatch_names// /|})\$/ { p = 1 } p { print }" ${PORTDIR}/eclass/epatch.eclass)

    fi


    epatch_user


    for name in $epatch_names; do

        unset $name

    done

    for name in $estack_names; do

        unset $name

    done


}


추가


Posted by badung
,

localhost /etc/portage/env # cat m-fno-stack-protector.conf 

CFLAGS="${CFLAGS} -fno-stack-protector"


이곳에 파일을 만들어주고

localhost /etc/portage # cat package.env 

games-emulation/advancemame m-fno-stack-protector.conf



적용하려는 패키지에 적용

Posted by badung
,

http://www.emma-soft.com/games/amoebax/


http://www.ios-software.com/?page=projet&quoi=29

Posted by badung
,

Gentoo Linux

gentoo 2011. 3. 27. 12:51
badung badung # emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-gentoo x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_E6300_@_2.80GHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 27 Mar 2011 03:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O3 -pipe -msse3 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=core2 -O3 -pipe -msse3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.kaist.ac.kr/gentoo"
LANG="ko_KR.utf8"
LC_ALL="ko_KR.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="ko"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-kr /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit 64bit X a52 aac aalib accessibility acl acpi acpi4linux additions alsa amd64 amr audacious auto-hinter bash-completion bashlogger berkdb big-tables bzip2 cairo ccache charconv chardet cjk cleartype cli cluster cracklib crypt custom-optimization cxx dbus dga divx dri dts encode extraengine fam ffmpeg firefox flac fortran freetype fts3 gcj gdbm gecko-sdk ggi gif git glibc-compat20 glibc-omitfp gmedia gmp gnome-keyring gpg2-experimental gpm gtk hal hddtemp iconv immqt-bc java javascript jpeg latin1 lcdfilter lcms libcaca libnotify linuxthreads-tls lm_sensors lock loop-aes mad mem-scramble mercurial mhash midi mikmod mms mmx mmx2 mmxext modules mp2 mp3 mp4 msn mudflap multilib musepack music ncurses nls nptl nptlonly nsplugin nspluginwrapper nvidia objc objc++ objc-gc ogg old-hd-rules opengl openmp optimization oss pam pcre pdf perl png pppd python python3 query-browser quicktime readline realmedia sdl server session smp source sse sse2 sse3 sse4 sse4a sse5 ssl ssse3 startup-notification static-libs strong-optimization subversion svg symlink sysfs syslog theora threads thunar tiff truetype unicode usb userlocales utempter utils uudeview vditool vdpau vim vim-syntax vorbis win64 wma wmp wps x264 xanim xcb xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ko" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="trash menu logout" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Posted by badung
,

firefox에서 휠버튼

gentoo 2010. 10. 20. 23:35
about:config

general.autoScroll true 확인

Posted by badung
,
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer-bin/mplayer-bin-1.0_rc1-r3.ebuild,v 1.4 2007/11/27 12:03:37 zzam Exp $

inherit multilib eutils

DESCRIPTION="Pre-build mplayer binary for amd64 systems"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="http://spaceparanoids.org/gentoo/distfiles/${PF}.tbz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE=""

RDEPEND=">=app-emulation/emul-linux-x86-baselibs-10.1
    >=app-emulation/emul-linux-x86-soundlibs-10.0
    >=app-emulation/emul-linux-x86-gtklibs-10.0
    >=app-emulation/emul-linux-x86-sdl-10.0
    >=app-emulation/emul-linux-x86-medialibs-10.1
    >=media-libs/win32codecs-20061022-r1"
S="${WORKDIR}"
RESTRICT="strip"

pkg_setup() {
    # This is a binary x86 package => ABI=x86
    # Please keep this in future versions
    # Daniel Gryniewicz <dang@gentoo.org>
    has_multilib_profile || die
    ABI="x86"

    if ! built_with_use app-emulation/emul-linux-x86-xlibs opengl; then
        eerror "Please rebuild emul-linux-x86-xlibs with the opengl USE flag"
        die "emul-linux-x86-xlibs needs support for opengl"
    fi
}

src_install() {
    cp -pPRvf "${WORKDIR}"/* "${D}"/
    dosym /opt/mplayer-bin/bin/mplayer-bin /opt/mplayer-bin/bin/gmplayer-bin
    dosed dosed -e "s/gmplayer/gmplayer-bin/" /opt/mplayer-bin/share/applications/mplayer.desktop
    dosym /opt/mplayer-bin/share/applications/mplayer.desktop /usr/share/applications/mplayer-bin.desktop
    dodir /opt/mplayer-bin/lib
    dosym /usr/$(get_libdir)/win32 /opt/mplayer-bin/lib/win32
}
                                                                       
~                                                      
Posted by badung
,
linux에서 xfce4를 Desktop Environment로 사용하는 상황에서.. 정말 마땅한 트위터 클라이

언트를 못찾고 있던중에 찾아낸! PINO 라는 twitter cilent. 안써보신분은 한 번 써보세요 :)

http://pino-app.appspot.com/

http://code.google.com/p/pino-twitter/

Posted by badung
,



rededit

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
"PollingIterations"=dword:00002ee0
"PollingIterationsMaximum"=dword:00002ee0
"ResendIterations"=dword:00000003
"LayerDriver JPN"="kbd101.dll"
"LayerDriver KOR"="kbd101a.dll"
"OverrideKeyboardType"=dword:00000008
"OverrideKeyboardSubtype"=dword:00000003
"OverrideKeyboardIdentifier"="PCAT_101AKEY"

 

"LayerDriver KOR"="kbd101a.dll" -> "LayerDriver KOR"="kbd101c.dll"
"OverrideKeyboardSubtype"=dword:00000003 -> "OverrideKeyboardSubtype"=dword:00000005



by http://sky.0kr.net/tc/381


Posted by badung
,

ext4

gentoo 2008. 12. 20. 21:19
unstable이긴 하지만 커널이 2.6.28로 올라오고 해서 ext4로 FS를 변경하였다. 불편한 없이 만족중
Posted by badung
,