[Lunar-commits] CVS: brutus/moe/xfree86 BUILD, NONE, 1.1 CONFIGURE,
NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL,
NONE, 1.1 POST_REMOVE, NONE, 1.1 PRE_BUILD, NONE, 1.1 xsession,
NONE, 1.1
Moritz Heiber
moe at lunar-linux.org
Fri Apr 2 13:17:31 GMT 2004
Update of /var/cvs/lunar/brutus/moe/xfree86
In directory dbguin.lunar-linux.org:/tmp/cvs-serv28334
Added Files:
BUILD CONFIGURE DEPENDS DETAILS POST_INSTALL POST_REMOVE
PRE_BUILD xsession
Log Message:
Adding the module for xfree86 4.4 to brutus. Needs further fixing.
--- NEW FILE: BUILD ---
install_drm() {
DRM_DIR="programs/Xserver/hw/xfree86/os-support/linux/drm/kernel"
DRM_DEST="/lib/modules/`uname -r`/kernel/drivers"
mkdir -p $DRM_DEST
cp $DRM_DIR/*.o $DRM_DEST 2>/dev/null
depmod -a
true
}
if [ -e /etc/X11/xinit/xinitrc ]; then
cp /etc/X11/xinit/xinitrc /etc/X11/xinit/xinitrc.orig
echo "Your master xinitrc file has been backed up as /etc/X11/xinit/xinitrc.orig"
fi
if [ -f $CONFIG_CACHE/host.def ]; then
#BECAUSE CONFIGURE dosent always catch this!
if module_installed freetype2; then
if ! grep -q "#define BuildFreetype2Library[:space:]*NO" $CONFIG_CACHE/host.def
then
sedit "/ HasFreetype2/d" $CONFIG_CACHE/host.def
sedit "/ BuildFreetype2Library/d" $CONFIG_CACHE/host.def
sedit "/ Freetype2Dir/d" $CONFIG_CACHE/host.def
echo "#define HasFreetype2 YES" >> $CONFIG_CACHE/host.def
echo "#define BuildFreetype2Library NO" >> $CONFIG_CACHE/host.def
echo "#define Freetype2Dir /usr" >> $CONFIG_CACHE/host.def
fi
fi
cp $CONFIG_CACHE/host.def config/cf/host.def
fi
message "Building XFree86 takes a very long time."
(
echo "#define InstallXdmConfig YES" >> config/cf/site.def
echo "#define InstallXinitConfig YES" >> config/cf/site.def
export CFLAGS=`echo $CFLAGS | sed s/-funroll-loops//`
export CFLAGS=`echo $CFLAGS | sed s/-ffast-math//`
export CXXFLAGS=`echo $CXXFLAGS | sed s/-funroll-loops//`
export CXXFLAGS=`echo $CXXFLAGS | sed s/-ffast-math//`
export CPPFLAGS=`echo $CPPFLAGS | sed s/-funroll-loops//`
export CPPFLAGS=`echo $CPPFLAGS | sed s/-ffast-math//`
if module_installed Linux-PAM
then echo "#define HasPam YES" >> config/cf/site.def
fi &&
make World &&
prepare_install &&
cd $SOURCE_DIRECTORY &&
make install &&
make install.man &&
install_drm &&
mkdir -p /usr/X11R6/include/GL &&
rm -f /usr/X11R6/lib/libz.a &&
rm -f /usr/X11R6/include/zlib.h &&
rm -f /usr/X11R6/include/zconf.h &&
rm -f /usr/X11R6/lib/libz.a &&
if [ ! -e /etc/skel/.xsession ]; then
cp $SCRIPT_DIRECTORY/xsession /etc/skel/.xsession
fi &&
if [ ! -e /usr/bin/X11 ]; then
ln -sf /usr/X11R6/bin /usr/bin/X11
fi &&
if [ ! -e /usr/X11 ]; then
ln -sf X11R6 /usr/X11
fi &&
if [ ! -e /usr/include/X11 ]; then
ln -sf ../X11R6/include/X11 /usr/include/X11
fi &&
if [ ! -e /usr/lib/X11 ]; then
ln -sf ../X11R6/lib/X11 /usr/lib/X11
fi &&
if [ ! -e /usr/lib/libMesaGLU.so ]; then
ln -sf /usr/X11R6/lib/libGLU.so.1.3 /usr/lib/libMesaGLU.so
fi &&
if [ ! -e /usr/X11R6/lib/libMesaGL.so ]; then
ln -sf /usr/X11R6/lib/libGL.so.1.2 /usr/X11R6/lib/libMesaGL.so
fi
) > $C_FIFO 2>&1
--- NEW FILE: CONFIGURE ---
build_checklist() {
STATUS=$1
LABEL=$2
shift 2
for ITEM in $@; do
echo $ITEM $LABEL $STATUS
done
}
select_card_drivers() {
TITLE="Graphics Card Driver Selection Menu"
HELP="Key: [X] = on, [ ] = off"
CHECKLIST="`build_checklist ON Graphics $ON_CARD_DRIVERS`
`build_checklist OFF Grahpics $OFF_CARD_DRIVERS`"
if XF86CardDrivers=`dialog --backtitle "$BACKTITLE" \
--title "$TITLE" \
--stdout \
--separate-output \
--checklist "$HELP" \
18 55 10 \
$CHECKLIST`
then
ON_CARD_DRIVERS=$XF86CardDrivers
OFF_CARD_DRIVERS=$CARD_DRIVERS
for ITEM in $ON_CARD_DRIVERS; do
OFF_CARD_DRIVERS=`echo $OFF_CARD_DRIVERS | sed s/$ITEM//`
done
fi
}
select_dridrivers() {
TITLE="DRI Driver Selection Menu"
HELP="Not all XFree86 supported graphics cards have DRI.
Key: [X] = on, [ ] = off"
CHECKLIST="`build_checklist ON DRI $ON_DRI`
`build_checklist OFF DRI $OFF_DRI`"
if DriDrivers=`dialog --backtitle "$BACKTITLE" \
--title "$TITLE" \
--stdout \
--separate-output \
--checklist "$HELP" \
18 55 10 \
$CHECKLIST`
then
ON_DRI=$DriDrivers
OFF_DRI=$DRI
for ITEM in $ON_DRI; do
OFF_DRI=`echo $OFF_DRI | sed s/$ITEM//`
done
fi
}
select_input_drivers() {
TITLE="Input Driver Selection Menu"
HELP="Key: [X] = on, [ ] = off"
CHECKLIST="`build_checklist ON Input $ON_INPUT_DRIVERS`
`build_checklist OFF Input $OFF_INPUT_DRIVERS`"
if XInputDrivers=`dialog --backtitle "$BACKTITLE" \
--title "$TITLE" \
--stdout \
--separate-output \
--checklist "$HELP" \
18 55 10 \
$CHECKLIST`
then
ON_INPUT_DRIVERS=$XInputDrivers
OFF_INPUT_DRIVERS=$INPUT_DRIVERS
for ITEM in $ON_INPUT_DRIVERS; do
OFF_INPUT_DRIVERS=`echo $OFF_INPUT_DRIVERS | sed s/$ITEM//`
done
fi
}
initialize() {
BACKTITLE="Lunar-Linux XFree86 host.def Configuration Menu"
ON_CARD_DRIVERS="vga vesa v4l"
OFF_CARD_DRIVERS="mga glint nv tga s3virge sis rendition neomagic i740
tdfx savage cirrus vmware tseng trident chips apm
GlideDriver fbdev i128 ati i810 ark cyrix
siliconmotion AgpGartDrivers DevelDrivers
XF86OSCardDrivers"
CARD_DRIVERS="$ON_CARD_DRIVERS $OFF_CARD_DRIVERS"
ON_DRI=""
OFF_DRI="gamma TdfxDriDriver mga i810 i830 r128 radeon sis r200 mach64
s3v trident"
DRI="$ON_DRI $OFF_DRI"
ON_INPUT_DRIVERS="mouse keyboard"
OFF_INPUT_DRIVERS="acecad calcomp citron digitaledge dmc dynapro elographics
fpit hyperpen jamstudio magictouch magellan microtouch
mutouch palmax penmount summa tek4957 spaceorb wacom void"
INPUT_DRIVERS="$ON_INPUT_DRIVERS $OFF_INPUT_DRIVERS"
YES_FONT_OPTIONS="BuildFonts MakeLocalFontDir Build75DpiFonts Build100DpiFonts
BuildType1Fonts BuildTrueTypeFonts BuildSpeedoFonts
GzipFontCompression CompressAllFonts"
NO_FONT_OPTIONS="BuildCIDFonts BuildCyrillicFonts UseKoi8RForCyrillic
BuildLatin2Fonts BuildArabicFonts BuildThaiFonts
BuildCyrillicFonts BuildCIDFonts
BuildGreekFonts BuildHebrewFonts BuildJapaneseFonts
BuildKoreanFonts BuildBethMarduthoFonts BuildEthiopicFonts
BuildChineseFonts BuildISO8859_2Fonts BuildISO8850_3Fonts
BuildISO8859_4Fonts BuildISO8859_9Fonts BuildISO8859_10Fonts
BuildISO8859_13Fonts BuildISO8859_14Fonts
BuildISO8859_15Fonts BuildISO8859_16Fonts
BuildFontServer InstallFSConfig"
FONT_OPTIONS="$YES_FONT_OPTIONS $NO_FONT_OPTIONS"
YES_MISC_OPTIONS="HasShm BuildXF86DRI BuildXF86DRM BuildGLULibrary
BuildGlxExt BuildOSMesaLib ThreadedX
InstallXinitConfig InstallXdmConfig"
NO_MISC_OPTIONS="BuildServersOnly XnestServer BuildXinerama
LinuxFBDevSupport XVirtualFramebufferServer"
MISC_OPTIONS="$YES_MISC_OPTIONS $NO_MISC_OPTIONS"
}
generate_host_def() {
echo "#define DefaultCCOptions $CFLAGS"
echo "#define DefaultGcc2i386Opt $CFLAGS"
echo "#define LibraryCDebugFlags $CFLAGS"
echo "#define DefaultCDebugFlags $CFLAGS"
echo "#define OptimizedCDebugFlags $CFLAGS"
echo "#define HasZlib YES"
echo "#define HasFreetype2 YES"
echo "#define HasExpat YES"
echo "#define ForceNormalLib YES"
echo "#define HasExpat YES"
echo "#define UseExpat YES"
echo "#define HasLibpng YES"
echo "#define HasLibxml2 YES"
if module_installed tk; then
echo "#define HasTcl YES"
echo "#define TclLibDir /usr/lib"
echo "#define TclIncDir /usr/include"
echo "#define TclLibName tcl"
echo "#define HasTcl YES"
echo "#define TclLibDir /usr/lib"
echo "#define TclIncDir /usr/include"
echo "#define TclLibName tcl"
fi
if [ -z "$XF86CardDrivers" ]; then
XF86CardDrivers="$ON_CARD_DRIVERS"
fi
XF86CardDrivers=`echo $XF86CardDrivers | tr '
' ' '`
echo "#define XF86CardDrivers $XF86CardDrivers"
if [ -z "$DriDrivers" ]; then
echo "#define DriDrivers /**/"
else
DriDrivers=`echo $DriDrivers | tr '
' ' '`
echo "#define DriDrivers $DriDrivers"
fi
if [ -z "$XInputDrivers" ]; then
echo "#define XInputDrivers mouse"
else
XInputDrivers=`echo $XInputDrivers | tr '
' ' '`
echo "#define XInputDrivers $XInputDrivers"
fi
for ITEM in $YES_FONT_OPTIONS; do
echo "#define $ITEM YES"
done
for ITEM in $NO_FONT_OPTIONS; do
echo "#define $ITEM NO"
done
for ITEM in $YES_MISC_OPTIONS; do
echo "#define $ITEM YES"
done
for ITEM in $NO_MISC_OPTIONS; do
echo "#define $ITEM NO"
done
}
save_host_def() {
TARGET1="$CONFIG_CACHE/host.def"
dialog --backtitle "$BACKTITLE" \
--msgbox "Saving Configuration to $TARGET1" \
6 40
generate_host_def > "$TARGET1"
}
select_font_options() {
TITLE="Select Font Options"
CHECKLIST="`build_checklist ON Option $YES_FONT_OPTIONS`
`build_checklist OFF Option $NO_FONT_OPTIONS`"
HELP="Key: [X] = on, [ ] = off"
if ON_FONT_OPTIONS=`dialog --backtitle "$BACKTITLE" \
--title "$TITLE" \
--stdout \
--separate-output \
--checklist "$HELP" \
18 55 10 \
$CHECKLIST`
then
YES_FONT_OPTIONS=$ON_FONT_OPTIONS
NO_FONT_OPTIONS=$FONT_OPTIONS
for ITEM in $YES_FONT_OPTIONS; do
NO_FONT_OPTIONS=`echo $NO_FONT_OPTIONS | sed s/$ITEM//`
done
fi
}
select_misc_options() {
TITLE="Select Misc Options"
CHECKLIST="`build_checklist ON Option $YES_MISC_OPTIONS`
`build_checklist OFF Option $NO_MISC_OPTIONS`"
HELP="Key: [X] = on, [ ] = off"
if ON_MISC_OPTIONS=`dialog --backtitle "$BACKTITLE" \
--title "$TITLE" \
--stdout \
--separate-output \
--checklist "$HELP" \
18 55 10 \
$CHECKLIST`
then
YES_MISC_OPTIONS=$ON_MISC_OPTIONS
NO_MISC_OPTIONS=$MISC_OPTIONS
for ITEM in $YES_MISC_OPTIONS; do
NO_MISC_OPTIONS=`echo $NO_MISC_OPTIONS | sed s/$ITEM//`
done
fi
}
configure_host_def() {
initialize
while
COMMAND=`dialog --backtitle "$BACKTITLE" \
--stdout \
--title "Main Menu" \
--default-item $COMMAND \
--nocancel \
--menu \
"" \
18 55 10 \
"XF86CardDrivers" "Select Video Card Drivers" \
"DriDrivers" "Select Direct DRI Drivers" \
"XInputDrivers" "Select Input Drivers" \
"Fonts" "Select Font Options" \
"Misc" "Set other Options" \
"Save" "Save current configuration" \
"Edit" "Edit host.def" \
"Exit" "Done here. Start building"`
do
case $COMMAND in
Exit) break ;;
Save) save_host_def ;;
Edit) [ -n "$EDITOR" ] &&
$EDITOR /etc/lunar/local/host.def ||
nano /etc/lunar/local/host.def ;;
XF86CardDrivers) select_card_drivers ;;
DriDrivers) select_dridrivers ;;
XInputDrivers) select_input_drivers ;;
Fonts) select_font_options ;;
Misc) select_misc_options ;;
esac
done
}
echo $CFLAGS
message "${MESSAGE_COLOR}**WARNING!!**"
message "If you are running this inside a existing X server" \
"installation please log out and restart this module" \
"in the Linux Console"
message "${MESSAGE_COLOR}The DRI/DRM in Xfree86 4.3.99.x is not" \
"compatible with the DRI/DRM you might of compiled in the" \
"kernel. DRI/DRM is turned on by default, if you do not" \
"need it please make sure you unselect it in the configure"
if [ -f $CONFIG_CACHE/host.def ]
then message "Reconfiguration is optional."
fi
echo $CFLAGS
if query "Configure host.def?" y
then configure_host_def
fi
--- NEW FILE: DEPENDS ---
depends perl &&
depends libpng &&
depends expat &&
depends freetype2 &&
depends fontconfig &&
optional_depends "Linux-PAM" "" "" "for Linux-PAM Support" &&
optional_depends "tk" "" "" "for tk/tcl support"
--- NEW FILE: DETAILS ---
MODULE=xfree86
VERSION=4.4.0
SOURCE=XFree86-$VERSION-src-1.tgz
SOURCE2=XFree86-$VERSION-src-2.tgz
SOURCE3=XFree86-$VERSION-src-3.tgz
SOURCE4=XFree86-$VERSION-src-4.tgz
SOURCE5=XFree86-$VERSION-src-5.tgz
SOURCE6=XFree86-$VERSION-src-6.tgz
SOURCE7=XFree86-$VERSION-src-7.tgz
FUZZY="off"
SOURCE_DIRECTORY=$BUILD_DIRECTORY/xc
SOURCE_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE
SOURCE_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE
SOURCE2_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE2
SOURCE2_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE2
SOURCE3_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE3
SOURCE3_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE3
SOURCE4_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE4
SOURCE4_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE4
SOURCE5_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE5
SOURCE5_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE5
SOURCE6_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE6
SOURCE6_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE6
SOURCE7_URL[0]=$XFREE86_URL/4.4.0/source/$SOURCE7
SOURCE7_URL[1]=ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/$SOURCE7
SOURCE_VFY=md5:97cea3d9e1197dde32ca34e3b6086469
SOURCE2_VFY=md5:b9b6c74a03e314569e01d5fd4ff59523
SOURCE3_VFY=md5:703404f48d3a15f58389a879d47c769d
SOURCE4_VFY=md5:5d1792f5c154c7462c6aef39c7853b3b
SOURCE5_VFY=md5:5c37f028efc6d54a9c725e333f9cc8ae
SOURCE6_VFY=md5:d1e12c33e9756d5143004a69f2cdac81
SOURCE7_VFY=md5:947a34279a0ca2da2f300719c583845e
WEB_SITE=http://www.xfree86.org
ENTERED=20010922
UPDATED=20040301
SHORT="xfree86 is a free implementation of the X Window System."
cat << EOF
What is XFree86?
The XFree86 Project, Inc is an organisation which produces XFree86, a
freely redistributable open-source implementation of the X Window System
that runs on UNIX(R) and UNIX-like (like Linux, the BSDs, Mac OS X (aka
Darwin) and Solaris x86 series) operating systems and OS/2.
XFree86 is the underlying software that is between the hardware and
graphical user interface (aka gui) that people see and use. If you are
using KDE, GNOME, Enlightenment, Blackbox, AfterStep, twm or fvwm then
you are already using and running XFree86 as these run as our clients.
Traditionally, The XFree86 Project has focused on Intel x86-based
platforms, which is where the 86 in our name comes from, but our
current release supports other platforms like the Alpha, PowerPC, Sparc
and in-the-works MIPS CPU families.
Our goal at XFree86 is to have X run on every platform available,
including those we do not currently support, as the best windowing
system available on that platform.
EOF
--- NEW FILE: POST_INSTALL ---
rm -f $BOOST_LOCK
if module_installed NVIDIA; then lin NVIDIA; fi
if module_installed NVIDIA26; then lin NVIDIA26; fi
if module_installed pango; then lin -c pango; fi
if module_installed fontconfig; then lin -c fontconfig; fi
if ! grep -q '. /etc/profile' /etc/X11/xdm/Xsession; then
sedit 2s:#:.\ /etc/profile: /etc/X11/xdm/Xsession
fi
# run xfs only on unix socket:
if [ -f /etc/X11/fs/config ] ; then
if ! grep -q "no-listen = tcp" /etc/X11/fs/config ; then
cat >> /etc/X11/fs/config <<EOF
# more secure: do not listen on tcp ports
no-listen = tcp
EOF
fi
fi
if ! [ -d /usr/lib/pkgconfig ]
then mkdir -p /usr/lib/pkgconfig
fi
ln -sf /usr/X11R6/lib/pkgconfig/xft.pc /usr/lib/pkgconfig &&
ln -sf /usr/X11R6/lib/pkgconfig/fontconfig.pc /usr/lib/pkgconfig &&
message "Running fc-cache please be patient" &&
/usr/X11R6/bin/fc-cache -f
if ! module_installed xserver; then
lin xserver
fi
--- NEW FILE: POST_REMOVE ---
lrm xserver
--- NEW FILE: PRE_BUILD ---
if module_installed Xrender; then
lrm Xrender
fi
if module_installed Xft; then
lrm Xft
fi
mk_source_dir $SOURCE_DIRECTORY &&
unpack $SOURCE &&
unpack $SOURCE2 &&
unpack $SOURCE3 &&
unpack $SOURCE4 &&
unpack $SOURCE5 &&
unpack $SOURCE6 &&
unpack $SOURCE7
--- NEW FILE: xsession ---
#!/bin/sh
if [ -e /usr/bin/xscreensaver ]; then
xscreensaver -no-splash &
fi
if [ -x /usr/bin/enlightenment ]
then exec enlightenment
elif [ -x /opt/lunar/kde/3/bin/startkde ]
then exec /opt/lunar/kde/3/bin/startkde
elif [ -x /opt/lunar/kde/2/bin/startkde ]
then exec /opt/lunar/kde/2/bin/startkde
elif [ -x /usr/bin/wmaker ]
then [ -d ~/GNUstep ] ||
wmaker.inst
exec wmaker
elif [ -x /usr/bin/icewm ]
then exec icewm
elif [ -x /usr/bin/blackbox ]
then exec blackbox
elif [ -x /usr/bin/fvwm2 ]
then exec fvwm2
fi
More information about the Lunar-commits
mailing list