Remove gentoo files.
This commit is contained in:
parent
a5476cad42
commit
dc282e386e
0
conf/.gitignore → .gitignore
vendored
0
conf/.gitignore → .gitignore
vendored
34
Makefile
34
Makefile
@ -1,6 +1,32 @@
|
|||||||
SUBDIRS = conf gentoo
|
FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
|
||||||
|
bashrc bash_completion screenrc commonshrc gnomerc gvimrc
|
||||||
|
|
||||||
.PHONY: all install clean
|
ifeq "$(USER)" "gebner"
|
||||||
|
FILES += muttrc gnus.el ssh/config
|
||||||
|
XFILES =
|
||||||
|
|
||||||
all install clean:
|
ifeq "$(shell hostname)" "marginata"
|
||||||
@for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
|
FILES += procmailrc
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
.PHONY: all install clean check
|
||||||
|
|
||||||
|
all: $(FILES) $(XFILES)
|
||||||
|
|
||||||
|
install: $(FILES) $(XFILES)
|
||||||
|
mkdir -p ~/.zfuncs ~/.ssh
|
||||||
|
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
|
||||||
|
for i in $(XFILES); do install -m0755 $$i ~/.$$i; done
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f procmailrc muttrc
|
||||||
|
|
||||||
|
check: $(FILES) $(XFILES)
|
||||||
|
for i in $(FILES) $(XFILES); do diff -u ~/.$$i $$i; done
|
||||||
|
|
||||||
|
procmailrc muttrc: maildirs.m4
|
||||||
|
muttrc: gpg.rc
|
||||||
|
|
||||||
|
%: %.m4
|
||||||
|
m4 $< >$@
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
|
|
||||||
bashrc bash_completion screenrc commonshrc gnomerc gvimrc
|
|
||||||
|
|
||||||
ifeq "$(USER)" "gebner"
|
|
||||||
FILES += muttrc gnus.el ssh/config
|
|
||||||
XFILES =
|
|
||||||
|
|
||||||
ifeq "$(shell hostname)" "marginata"
|
|
||||||
FILES += procmailrc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: all install clean check
|
|
||||||
|
|
||||||
all: $(FILES) $(XFILES)
|
|
||||||
|
|
||||||
install: $(FILES) $(XFILES)
|
|
||||||
mkdir -p ~/.zfuncs ~/.ssh
|
|
||||||
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
|
|
||||||
for i in $(XFILES); do install -m0755 $$i ~/.$$i; done
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f procmailrc muttrc
|
|
||||||
|
|
||||||
check: $(FILES) $(XFILES)
|
|
||||||
for i in $(FILES) $(XFILES); do diff -u ~/.$$i $$i; done
|
|
||||||
|
|
||||||
procmailrc muttrc: maildirs.m4
|
|
||||||
muttrc: gpg.rc
|
|
||||||
|
|
||||||
%: %.m4
|
|
||||||
m4 $< >$@
|
|
@ -1 +0,0 @@
|
|||||||
LANG=de_AT.utf8
|
|
@ -1,25 +0,0 @@
|
|||||||
.PHONY: all install clean
|
|
||||||
|
|
||||||
all install clean:
|
|
||||||
|
|
||||||
PORTDIR = $(wildcard /usr/portage)
|
|
||||||
|
|
||||||
ifeq "$(USER)" "root"
|
|
||||||
ifneq "$(PORTDIR)" ""
|
|
||||||
|
|
||||||
BIN = machine-update tla-mirror-all
|
|
||||||
SBIN = laptop-mode m4conf-update make-kernel regen-virtuals
|
|
||||||
MISC = grub.conf.m4 local.conf.m4 02locale
|
|
||||||
|
|
||||||
DIRS = /usr/local/bin /boot/grub /etc/fonts /etc/env.d
|
|
||||||
|
|
||||||
install:
|
|
||||||
mkdir -p $(DIRS)
|
|
||||||
install -m755 -o0 -g0 $(BIN) $(SBIN) /usr/local/bin
|
|
||||||
install -m664 -o0 -g0 grub.conf.m4 /boot/grub
|
|
||||||
install -m664 -o0 -g0 local.conf.m4 /etc/fonts
|
|
||||||
install -m664 -o0 -g0 02locale /etc/env.d
|
|
||||||
m4conf-update
|
|
||||||
|
|
||||||
endif
|
|
||||||
endif
|
|
@ -1,26 +0,0 @@
|
|||||||
default 0
|
|
||||||
timeout 2
|
|
||||||
|
|
||||||
define(`host', `esyscmd(`hostname | xargs echo -n')')
|
|
||||||
|
|
||||||
define(`main_part_grub', `(hd0,0)')
|
|
||||||
define(`kargs', `ifelse(
|
|
||||||
host, `schnecke2', `video=radeonfb:vesa:0x11B root=/dev/hda1',
|
|
||||||
host, `achatina', `video=radeonfb:vesa:0x11B udev dolvm2 root=/dev/ram0 init=/linuxrc real_root=/dev/datavg/gentoo',
|
|
||||||
host, `schnecke1', `video=matroxfb:vesa:0x11B root=/dev/hda1'
|
|
||||||
)')
|
|
||||||
|
|
||||||
define(`kernel_file', `/boot/kernel-$1')
|
|
||||||
|
|
||||||
define(`linux', `
|
|
||||||
title Gentoo Linux $1
|
|
||||||
root main_part_grub
|
|
||||||
kernel kernel_file(`$1') kargs
|
|
||||||
ifelse(host, `achatina', `initrd /boot/initramfs-genkernel-x86_64-$1')
|
|
||||||
')
|
|
||||||
|
|
||||||
define(`m_linux', `linux($1)
|
|
||||||
ifelse(`$#', `1', `', `m_linux(shift($@))')')
|
|
||||||
|
|
||||||
m_linux(esyscmd(`ls -t /boot/kernel-* | cut -c 14- | xargs echo -n \
|
|
||||||
| tr " " ,'))
|
|
@ -1,126 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# start or stop laptop_mode, best run by a power management daemon when
|
|
||||||
# ac gets connected/disconnected from a laptop
|
|
||||||
#
|
|
||||||
# install as /sbin/laptop_mode
|
|
||||||
#
|
|
||||||
# Contributors to this script: Kiko Piris
|
|
||||||
# Bart Samwel
|
|
||||||
# Dax Kelson
|
|
||||||
# Original Linux 2.4 version by: Jens Axboe
|
|
||||||
|
|
||||||
parse_mount_opts () {
|
|
||||||
echo "$*" | \
|
|
||||||
sed 's/commit=[0-9]*//g' | \
|
|
||||||
sed 's/,,*/,/g' | \
|
|
||||||
sed 's/^,//' | \
|
|
||||||
sed 's/,$//' | \
|
|
||||||
cat -
|
|
||||||
}
|
|
||||||
|
|
||||||
KLEVEL="$(uname -r | cut -c1-3)"
|
|
||||||
case "$KLEVEL" in
|
|
||||||
"2.4")
|
|
||||||
true
|
|
||||||
;;
|
|
||||||
"2.6")
|
|
||||||
true
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Unhandled kernel level: $KLEVEL ('uname -r' = '$(uname -r)')"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Shall we remount journaled fs. with appropiate commit interval? (1=yes)
|
|
||||||
DO_REMOUNTS=1
|
|
||||||
|
|
||||||
# age time, in seconds. should be put into a sysconfig file
|
|
||||||
MAX_AGE=600
|
|
||||||
|
|
||||||
# Allowed dirty ratio, in pct. should be put into a sysconfig file as well.
|
|
||||||
DIRTY_RATIO=40
|
|
||||||
|
|
||||||
# kernel default dirty buffer age
|
|
||||||
DEF_AGE=30
|
|
||||||
DEF_UPDATE=5
|
|
||||||
DEF_DIRTY_BACKGROUND_RATIO=10
|
|
||||||
DEF_DIRTY_RATIO=40
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -e /proc/sys/vm/laptop_mode ]; then
|
|
||||||
echo "Kernel is not patched with laptop_mode patch."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -w /proc/sys/vm/laptop_mode ]; then
|
|
||||||
echo "You do not have enough privileges to enable laptop_mode."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
AGE=$((100*$MAX_AGE))
|
|
||||||
echo -n "Starting laptop_mode"
|
|
||||||
case "$KLEVEL" in
|
|
||||||
"2.4")
|
|
||||||
echo "1" > /proc/sys/vm/laptop_mode
|
|
||||||
echo "30 500 0 0 $AGE $AGE 60 20 0" > /proc/sys/vm/bdflush
|
|
||||||
;;
|
|
||||||
"2.6")
|
|
||||||
echo "1" > /proc/sys/vm/laptop_mode
|
|
||||||
echo "$AGE" > /proc/sys/vm/dirty_writeback_centisecs
|
|
||||||
echo "$AGE" > /proc/sys/vm/dirty_expire_centisecs
|
|
||||||
echo "$DIRTY_RATIO" > /proc/sys/vm/dirty_ratio
|
|
||||||
echo "$DIRTY_RATIO" > /proc/sys/vm/dirty_background_ratio
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
if [ $DO_REMOUNTS -eq 1 ]; then
|
|
||||||
cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
|
|
||||||
PARSEDOPTS="$(parse_mount_opts "$OPTS")"
|
|
||||||
case "$FST" in
|
|
||||||
"ext3") mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_AGE ;;
|
|
||||||
"reiserfs") mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_AGE ;;
|
|
||||||
"xfs") mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_AGE ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
echo "."
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
U_AGE=$((100*$DEF_UPDATE))
|
|
||||||
B_AGE=$((100*$DEF_AGE))
|
|
||||||
echo -n "Stopping laptop_mode"
|
|
||||||
case "$KLEVEL" in
|
|
||||||
"2.4")
|
|
||||||
echo "0" > /proc/sys/vm/laptop_mode
|
|
||||||
echo "30 500 0 0 $U_AGE $B_AGE 60 20 0" > /proc/sys/vm/bdflush
|
|
||||||
;;
|
|
||||||
"2.6")
|
|
||||||
echo "0" > /proc/sys/vm/laptop_mode
|
|
||||||
echo "$U_AGE" > /proc/sys/vm/dirty_writeback_centisecs
|
|
||||||
echo "$B_AGE" > /proc/sys/vm/dirty_expire_centisecs
|
|
||||||
echo "$DEF_DIRTY_RATIO" > /proc/sys/vm/dirty_ratio
|
|
||||||
echo "$DEF_DIRTY_BACKGROUND_RATIO" > /proc/sys/vm/dirty_background_ratio
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
if [ $DO_REMOUNTS -eq 1 ]; then
|
|
||||||
cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
|
|
||||||
PARSEDOPTS="$(parse_mount_opts "$OPTS")"
|
|
||||||
case "$FST" in
|
|
||||||
"ext3") mount $DEV -t $FST $MP -o remount,$PARSEDOPTS ;;
|
|
||||||
"reiserfs") mount $DEV -t $FST $MP -o remount,$PARSEDOPTS ;;
|
|
||||||
"xfs") mount $DEV -t $FST $MP -o remount,$PARSEDOPTS ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
echo "."
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "$0 {start|stop}"
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,34 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
||||||
<!-- /etc/fonts/local.conf file for local customizations -->
|
|
||||||
<fontconfig>
|
|
||||||
<!-- the additional font dirs -->
|
|
||||||
<dir>/usr/share/fonts/corefonts</dir>
|
|
||||||
|
|
||||||
ifelse(esyscmd(`hostname | xargs echo -n'), `schnecke2',
|
|
||||||
`<!-- sub-pixel rendering -->
|
|
||||||
<match target="font">
|
|
||||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
|
||||||
</match>')
|
|
||||||
|
|
||||||
define(`font_repl', `<match target="pattern">
|
|
||||||
<test name="family">
|
|
||||||
<string>$1</string>
|
|
||||||
</test>
|
|
||||||
<edit name="family" mode="prepend" binding="same">
|
|
||||||
<string>$2</string>
|
|
||||||
</edit>
|
|
||||||
</match>')
|
|
||||||
|
|
||||||
dnl Replace bit-mapped fonts with AA fonts
|
|
||||||
font_repl(`Helvetica', `Arial')
|
|
||||||
font_repl(`Times', `Times New Roman')
|
|
||||||
font_repl(`Courier', `Courier New')
|
|
||||||
|
|
||||||
dnl Now replace M$ fonts with Bitstream ones...
|
|
||||||
font_repl(`Arial', `Bitstream Vera Sans')
|
|
||||||
font_repl(`Times New Roman', `Bitstream Vera Serif')
|
|
||||||
font_repl(`Courier New', `Bitstream Vera Mono Sans')
|
|
||||||
font_repl(`Verdana', `Bitstream Vera Sans')
|
|
||||||
font_repl(`Andale Sans UI', `Bitstream Vera Sans')
|
|
||||||
</fontconfig>
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
. /etc/init.d/functions.sh
|
|
||||||
|
|
||||||
einfo "Regenerating M4 config files"
|
|
||||||
for i in /etc/fonts/local.conf /boot/grub/grub.conf; do
|
|
||||||
ebegin " $i"
|
|
||||||
m4 "$i.m4" >"$i"
|
|
||||||
eend $?
|
|
||||||
done
|
|
File diff suppressed because it is too large
Load Diff
@ -1,31 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
. /etc/init.d/functions.sh
|
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
KV=`ketchup -m 2>/dev/null`
|
|
||||||
|
|
||||||
if [ -z "$KV" ]; then
|
|
||||||
KV=`readlink $PWD`
|
|
||||||
KV=`basename "$KV"`
|
|
||||||
test -z "$KV" && KV=`basename $PWD`
|
|
||||||
KV=${KV:6}
|
|
||||||
if [ -z "$KV" ]; then
|
|
||||||
eerror "Could not resolve kernel version"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
KV=$1
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "I am now going to build kernel $KV"
|
|
||||||
einfo "Press C-c to stop or RET to continue..."
|
|
||||||
read
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
make -j4
|
|
||||||
make modules_install
|
|
||||||
cp arch/*/boot/bzImage /boot/kernel-$KV
|
|
||||||
cp .config /boot/config-$KV
|
|
||||||
m4conf-update
|
|
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
find /var/db/pkg/ -name PROVIDE | perl -ne 'chomp;($p)=m#^/var/db/pkg/(.*?/.*?)-(\d+.*)/PROVIDE$#; {local$/=undef;open$f,$_;$c=<$f>;close$f}$c=~s/^\s*//;$c=~s/\s*$//;@c=split/\s+/,$c;($v{$_}.=" $p")for@c; END{while(($k,$v)=each%v){print"$k$v\n"}}' >/var/cache/edb/virtuals
|
|
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
tla archives | grep MIRROR | sed s/-MIRROR// | xargs -n1 tla archive-mirror
|
|
Loading…
Reference in New Issue
Block a user