diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2001-11-25 10:02:10 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2001-11-25 10:02:10 +0000 |
commit | 2c70a27eadc77e3283788ea803166b7794b21a6c (patch) | |
tree | 6bc16e14ab9d3103f7d2d3a8965fa8adcd350003 /x11-base | |
parent | fixed kde-objprelink-patch makegile selection. allows e.g. koncd to (diff) | |
download | historical-2c70a27eadc77e3283788ea803166b7794b21a6c.tar.gz historical-2c70a27eadc77e3283788ea803166b7794b21a6c.tar.bz2 historical-2c70a27eadc77e3283788ea803166b7794b21a6c.zip |
added a rc-script for xfs (X Font Server)
Diffstat (limited to 'x11-base')
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/10xfree | 5 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/XftConfig | 71 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/Xsession | 56 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/site.def | 20 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/xdm | 4 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/xdm.start | 47 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/xfs.start | 21 | ||||
-rw-r--r-- | x11-base/xfree/files/4.1.0-r5/xinitrc | 42 | ||||
-rw-r--r-- | x11-base/xfree/files/digest-xfree-4.1.0-r5 | 4 | ||||
-rw-r--r-- | x11-base/xfree/xfree-4.1.0-r5.ebuild | 89 |
10 files changed, 359 insertions, 0 deletions
diff --git a/x11-base/xfree/files/4.1.0-r5/10xfree b/x11-base/xfree/files/4.1.0-r5/10xfree new file mode 100644 index 000000000000..87d675d0a361 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/10xfree @@ -0,0 +1,5 @@ +PATH=/usr/X11R6/bin +ROOTPATH=/usr/X11R6/bin +LDPATH=/usr/X11R6/lib +MANPATH=/usr/X11R6/man +INFODIR=/usr/X11R6/info diff --git a/x11-base/xfree/files/4.1.0-r5/XftConfig b/x11-base/xfree/files/4.1.0-r5/XftConfig new file mode 100644 index 000000000000..16af856f7c29 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/XftConfig @@ -0,0 +1,71 @@ +# +# XftConfig +# +# Use with Type1 and TrueType fonts +# + +dir "/usr/X11R6/lib/X11/fonts/Type1" +dir "/usr/X11R6/lib/X11/fonts/truetype" + +# +# alias 'fixed' for 'mono' +# +match any family == "fixed" edit family =+ "mono"; + +# +#Check users config file +# +includeif "~/.xftconfig" + +# +# Substitute TrueType fonts for Type1 versions +# +match any family == "Times" edit family += "Times New Roman"; +match any family == "Helvetica" edit family += "Verdana"; +match any family == "Courier" edit family += "Courier New"; + +# +# Use TrueType fonts for defaults +# +match any family == "serif" edit family += "Times New Roman"; +match any family == "sans" edit family += "Verdana"; + +# +# Use monotype.com (andale) face where possible +# +match + any family == "mono" + all slant == roman + all weight < bold +edit + family += "monotype.com"; +# +# otherwise, use courier +# +match any family == "mono" edit family += "Courier New"; + +# +# Alias between XLFD families and font file family name, prefer local fonts +# +match any family == "Charter" edit family += "Bitstream Charter"; +match any family == "Bitstream Charter" edit family =+ "Charter"; + +match any family == "Lucidux Serif" edit family += "LuciduxSerif"; +match any family == "LuciduxSerif" edit family =+ "Lucidux Serif"; + +match any family == "Lucidux Sans" edit family += "LuciduxSans"; +match any family == "LuciduxSans" edit family =+ "Lucidux Sans"; + +match any family == "Lucidux Mono" edit family += "LuciduxMono"; +match any family == "LuciduxMono" edit family =+ "Lucidux Mono"; + +# +# TrueType font aliases +# +match any family == "Comic Sans" edit family += "Comic Sans MS"; +match any family == "Comic Sans MS" edit family =+ "Comic Sans"; +match any family == "Trebuchet" edit family += "Trebuchet MS"; +match any family == "Trebuchet MS" edit family =+ "Trebuchet"; +match any family == "Monotype" edit family =+ "Monotype.com"; +match any family == "Andale Mono" edit family += "Monotype.com"; +match any family == "Monotype.com" edit family =+ "Andale Mono"; diff --git a/x11-base/xfree/files/4.1.0-r5/Xsession b/x11-base/xfree/files/4.1.0-r5/Xsession new file mode 100644 index 000000000000..42215d8b80e8 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/Xsession @@ -0,0 +1,56 @@ +#!/bin/sh +# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $ +# +# +# $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ + +# redirect errors to a file in user's home directory if we can +for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER" +do + if ( cp /dev/null "$errfile" 2> /dev/null ) + then + chmod 600 "$errfile" + exec > "$errfile" 2>&1 + break + fi +done + +case $# in +1) + if [ -f /usr/X11R6/bin/wm/$1 ] + then + source /etc/profile + /usr/X11R6/bin/wm/$1 + else + #failsafe + exec xterm -geometry 80x24-0-0 + fi + ;; +0) + startup=$HOME/.xsession + resources=$HOME/.Xresources + + + if [ -s "$startup" -a -x "$startup" ]; then + exec "$startup" + else + if [ -f $HOME/.wm ] + then + mywm="/usr/X11R6/bin/wm/`cat $HOME/.wm`" + if [ -f $mywm ] + then + source /etc/profile + $mywm + exit 0 + fi + else + if [ -r "$resources" ]; then + xrdb -load "$resources" + exec xsm + fi + fi + fi + ;; + +esac + diff --git a/x11-base/xfree/files/4.1.0-r5/site.def b/x11-base/xfree/files/4.1.0-r5/site.def new file mode 100644 index 000000000000..612ff0a1646e --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/site.def @@ -0,0 +1,20 @@ +#define HasZlib YES +#define HasGcc2ForCplusplus YES +#define ForceNormalLib YES +#define BuildXinerama YES +#define SharedLibXau YES +#define BuildRman NO +#define BuildHtmlManPages NO +#define BuildAllSpecsDocs NO +#define BuildSpecsDocs NO +#define BuildGLULibrary NO +#define SharedLibGLU NO +#define NormalLibGLU NO +/* binutils-2.9 */ +#define LinuxBinUtilsMajorVersion 29 +/* glibc-2.2 (6.2 because glibc is considered libc-6) */ +#define LinuxCLibMajorVersion 6 +#define LinuxClibMinorVersion 2 +#define HasTk NO +#define HasTcl NO +#define FSUseSyslog YES diff --git a/x11-base/xfree/files/4.1.0-r5/xdm b/x11-base/xfree/files/4.1.0-r5/xdm new file mode 100644 index 000000000000..f1773fb59a12 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/xdm @@ -0,0 +1,4 @@ +auth required pam_pwdb.so +account required pam_pwdb.so +password required pam_pwdb.so md5 +session required pam_pwdb.so diff --git a/x11-base/xfree/files/4.1.0-r5/xdm.start b/x11-base/xfree/files/4.1.0-r5/xdm.start new file mode 100644 index 000000000000..221c464952c4 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/xdm.start @@ -0,0 +1,47 @@ +#!/sbin/runscript +# Based upon a script Copyright (c) 1996-99 SuSE GmbH Nuernberg, Germany. All rights reserved. +# Not sure how much of the SuSE original is left. + +# Start X Font Server before X +depend() { + use xfs +} + +. /etc/profile.env +export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$ROOTPATH + +case "$DISPLAYMANAGER" in + kdm|kde|KDM|KDE) + EXE=$KDEDIR/bin/kdm + ;; + gdm|GDM|Gnome|GNOME) + EXE=/usr/bin/gdm + ;; + *) + EXE=/usr/X11R6/bin/xdm ;; +esac + +test ! -x "$EXE" && EXE=/usr/X11R6/bin/xdm + +SERVICE=${EXE##*/} +PID="/var/run/xdm.pid" + +start() { + ebegin "Starting ${SERVICE}" + start-stop-daemon --start --quiet --exe $EXE 1>&2 + if [ -n "$?" ] ; then + # After a crash or a kill signal we may have + # a wrong ownership of /dev/console + chown root:tty /dev/console /dev/tty0 + chmod 622 /dev/console /dev/tty0 + else + eend $? "Error starting ${SERVICE}." + fi +} + +stop() { + ebegin "Stopping ${SERVICE}" + killall X + start-stop-daemon --stop --quiet --exe $EXE 1>&2 + eend $? "Error stopping ${SERVICE}." +} diff --git a/x11-base/xfree/files/4.1.0-r5/xfs.start b/x11-base/xfree/files/4.1.0-r5/xfs.start new file mode 100644 index 000000000000..3ad34e5d3657 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/xfs.start @@ -0,0 +1,21 @@ +#!/sbin/runscript + +start() { + ebegin "Starting X Font Server" + if [ "`grep xfs /etc/passwd`" ] ; then + start-stop-daemon --start --quiet --exec /usr/X11R6/bin/xfs \ + -- -port -1 -daemon -config /etc/X11/fs/config \ + -droppriv -user xfs 1>&2 + else + start-stop-daemon --start --quiet --exec /usr/X11R6/bin/xfs \ + -- -port -1 -daemon -config /etc/X11/fs/config 1>&2 + fi + eend $? +} + +stop() { + ebegin "Stopping X Font Server" + start-stop-daemon --stop --quiet --exec /usr/X11R6/bin/xfs 1>&2 + rm -rf /tmp/.font-unix + eend $? +} diff --git a/x11-base/xfree/files/4.1.0-r5/xinitrc b/x11-base/xfree/files/4.1.0-r5/xinitrc new file mode 100644 index 000000000000..0c8faef40844 --- /dev/null +++ b/x11-base/xfree/files/4.1.0-r5/xinitrc @@ -0,0 +1,42 @@ +#!/bin/sh +# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/usr/X11R6/lib/X11/xinit/.Xresources +sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +# start some nice program +if [ -f $HOME/.wm ] +then + mywm="/usr/X11R6/bin/wm/`cat $HOME/.wm`" + if [ -f $mywm ] + then + $mywm + exit 0 + fi +else + twm & + xclock -geometry 50x50-1+1 & + xterm -geometry 80x50+494+51 & + xterm -geometry 80x20+494-0 & + exec xterm -geometry 80x66+0+0 -name login +fi
\ No newline at end of file diff --git a/x11-base/xfree/files/digest-xfree-4.1.0-r5 b/x11-base/xfree/files/digest-xfree-4.1.0-r5 new file mode 100644 index 000000000000..142d8b1c9d6b --- /dev/null +++ b/x11-base/xfree/files/digest-xfree-4.1.0-r5 @@ -0,0 +1,4 @@ +MD5 2d4709f7106a1d65c175be445a3d3c32 X410src-1.tgz 25022464 +MD5 beaffed1cbdb700e5fed6a5490a7f222 X410src-2.tgz 22528000 +MD5 f94e42cd5c5e31a702ec64bfdc017a7d X410src-3.tgz 9322496 +MD5 a70e4d28c241374868a099127c668949 truetype.tar.gz 1531904 diff --git a/x11-base/xfree/xfree-4.1.0-r5.ebuild b/x11-base/xfree/xfree-4.1.0-r5.ebuild new file mode 100644 index 000000000000..ea23725e2f3e --- /dev/null +++ b/x11-base/xfree/xfree-4.1.0-r5.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Desktop Team <desktop@gentoo.org> +# Author: Achim Gottinger <achim@gentoo.org>, Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.1.0-r5.ebuild,v 1.1 2001/11/25 10:02:10 azarah Exp $ + +MY_V="`echo ${PV} |sed -e 's:\.::g'`" +S=${WORKDIR}/xc +DESCRIPTION="Xfree86: famouse and free X server" +SRC_PATH0="ftp://ftp.xfree.org/pub/XFree86/4.1.0/source" +SRC_PATH1="ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/4.1.0/source" + +SRC_URI="$SRC_PATH0/X${MY_V}src-1.tgz + $SRC_PATH0/X${MY_V}src-2.tgz + $SRC_PATH0/X${MY_V}src-3.tgz + $SRC_PATH1/X${MY_V}src-1.tgz + $SRC_PATH1/X${MY_V}src-2.tgz + $SRC_PATH1/X${MY_V}src-3.tgz + http://www.ibiblio.org/gentoo/gentoo-sources/truetype.tar.gz" + +HOMEPAGE="http://www.xfree.org" + +DEPEND=">=sys-libs/ncurses-5.1 + >=sys-libs/zlib-1.1.3-r2 + sys-devel/flex + sys-devel/perl" + +RDEPEND=">=sys-libs/ncurses-5.1" + +PROVIDE="virtual/x11 virtual/opengl" +# virtual/glu" +# This has been removed. Anyone know why exactly ?? + + +src_unpack () { + + unpack X${MY_V}src-{1,2,3}.tgz + + cd ${S} + cp ${FILESDIR}/${PVR}/site.def config/cf/host.def + echo "#define DefaultGcc2i386Opt ${CFLAGS}" >> config/cf/host.def + echo "#define GccWarningOptions -Wno" >> config/cf/host.def + echo "#define DefaultCCOptions -ansi" >> config/cf/host.def +} + +src_compile() { + + make World || die +} + +src_install() { + + make install DESTDIR=${D} || die + make install.man DESTDIR=${D} || die + + #we zap the host.def file which gets hard-coded with our CFLAGS, messing up other things that use xmkmf + echo > ${D}/usr/X11R6/lib/X11/config/host.def + #theoretically, /usr/X11R6/lib/X11/config is a possible candidate for config file management. + #If we find that people really worry about imake stuff, we may add it. But for now, we leave + #the dir unprotected. + + insinto /usr/X11R6/lib/X11 + doins ${FILESDIR}/${PVR}/XftConfig + cd ${D}/usr/X11R6/lib/X11/fonts + tar -xz --no-same-owner -f ${DISTDIR}/truetype.tar.gz + dosym /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so + dosym /usr/X11R6/bin /usr/bin/X11 + + #X installs some /usr/lib/libGL symlinks, pointing to the libGL's in /usr/X11R6/lib. + #I don't see the point in this. Yes, according to LSB, the correct location for libGL is + #in /usr/lib, but this is so closely integrated with X itself that /usr/X11R6/lib seems + #like the right place. + rm -rf ${D}/usr/lib + + #dosym /usr/X11R6/lib/libGLU.so.1.3 /usr/lib/libMesaGLU.so + #We're no longer including libGLU from here. Packaged separately, from separate sources. + + insinto /etc/env.d + doins ${FILESDIR}/${PVR}/10xfree + insinto /etc/X11/xinit + doins ${FILESDIR}/${PVR}/xinitrc + insinto /etc/X11/xdm + doins ${FILESDIR}/${PVR}/Xsession + insinto /etc/pam.d + doins ${FILESDIR}/${PVR}/xdm + exeinto /etc/init.d + newexe ${FILESDIR}/${PVR}/xdm.start xdm + newexe ${FILESDIR}/${PVR}/xfs.start xfs +} |