From sofar at foo-projects.org Wed Jan 6 02:38:33 2010 From: sofar at foo-projects.org (Auke Kok) Date: Tue, 05 Jan 2010 17:38:33 -0800 Subject: [Fwd: iptraf build problem] Message-ID: <4B43E999.3000003@foo-projects.org> -------- Original Message -------- Subject: iptraf build problem Date: Tue, 05 Jan 2010 16:00:01 -0700 From: Richard B. Pyne To: maintainer at lunar-linux.org make[1]: Leaving directory `/usr/src/iptraf-3.0.1/support' gcc -o iptraf iptraf.o itrafmon.o packet.o tcptable.o othptab.o ifstats.o deskman.o ipcsum.o hostmon.o fltedit.o tr.o cidr.o fltselect.o ipfilter.o fltmgr.o ipfrag.o serv.o servname.o instances.o timer.o revname.o pktsize.o landesc.o isdntab.o options.o promisc.o ifaces.o error.o log.o mode.o getpath.o bar.o parseproto.o -L../support -ltextbox -lpanelw -lncursesw /usr/bin/ld: cannot find -lpanelw collect2: ld returned 1 exit status make: *** [iptraf] Error 1 Creating /var/log/lunar/compile/iptraf-3.0.1.bz2 ! Problem detected during BUILD From dennisveatch at bellsouth.net Wed Jan 6 22:56:18 2010 From: dennisveatch at bellsouth.net (Dennis Veatch) Date: Wed, 6 Jan 2010 16:56:18 -0500 Subject: A moonbase.git prompt Message-ID: <201001061656.18722.dennisveatch@bellsouth.net> Florin made mention today in IRC about a "proper git prompt" and not realizing he was in his dev branch. That got me to thinking it would be nice if your bash prompt would change to reflect where you were at in your local repository. So instead of reinventing the wheel, I looked around and found a guy that has what I think a suitable answer; http://aaroncrane.co.uk/2009/03/git_branch_prompt/ In a nutshell, put this in your .bash_profile; function find_git_branch { local dir=. head until [ "$dir" -ef / ]; do if [ -f "$dir/.git/HEAD" ]; then head=$(< "$dir/.git/HEAD") if [[ $head == ref:\ refs/heads/* ]]; then git_branch=" ${head#*/*/}" elif [[ $head != '' ]]; then git_branch=' (detached)' else git_branch=' (unknown)' fi return fi dir="../$dir" done git_branch='' } green=$'\e[1;32m' magenta=$'\e[1;35m' normal_colours=$'\e[m' PS1="\[$green\]\u@\h: \w\[$magenta\]\$git_branch\[$green\]\\$\[$normal_colours\] " PROMPT_COMMAND="find_git_branch; $PROMPT_COMMAND" It works rather well afaict at this point. The nice thing about this is it does not depend on the name of your repository because it looks at the contents of .git/HEAD. Perhaps with a little tweaking from others we might want to add that to our bash module. Dennis From ratler at lunar-linux.org Thu Jan 7 13:40:16 2010 From: ratler at lunar-linux.org (Stefan Wold) Date: Thu, 07 Jan 2010 13:40:16 +0100 Subject: A moonbase.git prompt In-Reply-To: <201001061656.18722.dennisveatch@bellsouth.net> References: <201001061656.18722.dennisveatch@bellsouth.net> Message-ID: <1262868016.6589.132.camel@localhost> There is a simpler way actually, git module already provide a set of git bash functions: simply add this to your PS1 and you're set: \$(__git_ps1 ' (%s)') example: PS1="\u@\h \w \$(__git_ps1 ' (%s)')\\$ " As soon as you step into a git directory the current branch will popup as (master) in your prompt. It will also detect som other stuff as on going merges, bisect etc etc. -- Sincerely Stefan Wold Lunar Linux developer - PGP public key 6E810F05 On Wed, 2010-01-06 at 16:56 -0500, Dennis Veatch wrote: > Florin made mention today in IRC about a "proper git prompt" and not realizing > he was in his dev branch. That got me to thinking it would be nice if your > bash prompt would change to reflect where you were at in your local > repository. So instead of reinventing the wheel, I looked around and found a > guy that has what I think a suitable answer; > > http://aaroncrane.co.uk/2009/03/git_branch_prompt/ > > In a nutshell, put this in your .bash_profile; > > function find_git_branch { > local dir=. head > until [ "$dir" -ef / ]; do > if [ -f "$dir/.git/HEAD" ]; then > head=$(< "$dir/.git/HEAD") > if [[ $head == ref:\ refs/heads/* ]]; then > git_branch=" ${head#*/*/}" > elif [[ $head != '' ]]; then > git_branch=' (detached)' > else > git_branch=' (unknown)' > fi > return > fi > dir="../$dir" > done > git_branch='' > } > > green=$'\e[1;32m' > magenta=$'\e[1;35m' > normal_colours=$'\e[m' > > PS1="\[$green\]\u@\h: > \w\[$magenta\]\$git_branch\[$green\]\\$\[$normal_colours\] " > > PROMPT_COMMAND="find_git_branch; $PROMPT_COMMAND" > > > It works rather well afaict at this point. The nice thing about this is it > does not depend on the name of your repository because it looks at the > contents of .git/HEAD. > > Perhaps with a little tweaking from others we might want to add that to our > bash module. > > Dennis > _______________________________________________ > Lunar-dev mailing list > Lunar-dev at lunar-linux.org > http://foo-projects.org/mailman/listinfo/lunar-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From zbiggy at o2.pl Mon Jan 25 05:52:29 2010 From: zbiggy at o2.pl (Zbigniew Luszpinski) Date: Mon, 25 Jan 2010 05:52:29 +0100 Subject: udev 150 ready for testing in zbiggy-WIP branch Message-ID: <201001250552.29547.zbiggy@o2.pl> Hello, I have done udev 150 update - ready for testing. You can get it here - on my zbiggy-WIP branch: http://foo-projects.org/git/?p=zbiggy/moonbase.git;a=shortlog;h=refs/heads/zbiggy-WIP requirements: kernel minimum 2.6.27 the following kernel config: CONFIG_SYSFS_DEPRECATED must be not set or =n to not create thread race and memory run out recommended kernel configuration: CONFIG_HOTPLUG=y CONFIG_UEVENT_HELPER_PATH="" CONFIG_NET=y CONFIG_UNIX=y CONFIG_SYSFS=y CONFIG_SYSFS_DEPRECATED*=n CONFIG_PROC_FS=y CONFIG_TMPFS=y CONFIG_INOTIFY_USER=y CONFIG_SIGNALFD=y CONFIG_TMPFS_POSIX_ACL=y (user ACLs for device nodes) CONFIG_BLK_DEV_BSG=y (SCSI devices) On my machine CONFIG_SYSFS_DEPRECATED is not set at all. On my machine CONFIG_TMPFS_POSIX_ACL is not set and udev works very well. have a nice day, Zbigniew Luszpinski