|
|
|
@ -44,17 +44,17 @@ chown_fn
|
|
|
|
|
cd_builddir_fn
|
|
|
|
|
|
|
|
|
|
cmake \
|
|
|
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
|
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
|
|
|
|
|
-DCMAKE_C_COMPILER=${COMPILER} \
|
|
|
|
|
-DCMAKE_CXX_COMPILER=${COMPILER_CXX} \
|
|
|
|
|
-DCMAKE_C_FLAGS:STRING=$SLKCFLAGS \
|
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING=$SLKCFLAGS \
|
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE:STRING=$SLKCFLAGS \
|
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING=$SLKCFLAGS \
|
|
|
|
|
-DCMAKE_C_COMPILER=$COMPILER \
|
|
|
|
|
-DCMAKE_CXX_COMPILER=$COMPILER_CXX \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${INSTALL_TDE} \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=$INSTALL_TDE \
|
|
|
|
|
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
|
|
|
|
|
-DMAN_INSTALL_DIR=${INSTALL_TDE}/man \
|
|
|
|
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
|
|
|
|
-DMAN_INSTALL_DIR=$INSTALL_TDE/man \
|
|
|
|
|
-DLIB_SUFFIX=$LIBDIRSUFFIX \
|
|
|
|
|
-DWITH_OPENEXR="ON" \
|
|
|
|
|
-DWITH_XCOMPOSITE="ON" \
|
|
|
|
|
-DWITH_XCURSOR="ON" \
|
|
|
|
@ -87,50 +87,50 @@ strip_fn
|
|
|
|
|
|
|
|
|
|
# Add xinitrc:
|
|
|
|
|
mkdir -p $PKG/etc/X11/xinit
|
|
|
|
|
sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/xinitrc.tde > $PKG/etc/X11/xinit/xinitrc.tde
|
|
|
|
|
sed "s|\$INSTALL_TDE|$INSTALL_TDE|g" < $SRCDIR/xinitrc.tde > $PKG/etc/X11/xinit/xinitrc.tde
|
|
|
|
|
chmod 755 $PKG/etc/X11/xinit/xinitrc.tde
|
|
|
|
|
(cd $PKG/etc/X11/xinit/
|
|
|
|
|
ln -sf xinitrc.tde xinitrc)
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/etc/profile.d
|
|
|
|
|
sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/profile.d/tde.sh > $PKG/etc/profile.d/tde.sh
|
|
|
|
|
sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" < $SRCDIR/profile.d/tde.csh > $PKG/etc/profile.d/tde.csh
|
|
|
|
|
sed "s|\$INSTALL_TDE|$INSTALL_TDE|g" < $SRCDIR/profile.d/tde.sh > $PKG/etc/profile.d/tde.sh
|
|
|
|
|
sed "s|\$INSTALL_TDE|$INSTALL_TDE|g" < $SRCDIR/profile.d/tde.csh > $PKG/etc/profile.d/tde.csh
|
|
|
|
|
chmod 755 $PKG/etc/profile.d/tde.{,c}sh
|
|
|
|
|
|
|
|
|
|
# Add some configuration files / scripts needed by TDE.
|
|
|
|
|
mkdir -p ${PKG}/etc/trinity
|
|
|
|
|
mv ${PKG}/${INSTALL_TDE}/share/config/tdm ${PKG}/etc/trinity/tdm
|
|
|
|
|
( cd ${PKG}/${INSTALL_TDE}/share/config ; ln -sf /etc/trinity/tdm tdm )
|
|
|
|
|
mkdir -p $PKG/etc/trinity
|
|
|
|
|
mv $PKG/$INSTALL_TDE/share/config/tdm $PKG/etc/trinity/tdm
|
|
|
|
|
( cd $PKG/$INSTALL_TDE/share/config ; ln -sf /etc/trinity/tdm tdm )
|
|
|
|
|
|
|
|
|
|
# Add rc.4.local to give TDM priority over rc.4 X11 session manager options
|
|
|
|
|
# Assumes that rc.4.new from sysvinit-scripts still has the rc.4.local option
|
|
|
|
|
mkdir ${PKG}/etc/rc.d
|
|
|
|
|
sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|" < $SRCDIR/rc.4.local > $PKG/etc/rc.d/rc.4.local
|
|
|
|
|
mkdir $PKG/etc/rc.d
|
|
|
|
|
sed "s|\$INSTALL_TDE|$INSTALL_TDE|" < $SRCDIR/rc.4.local > $PKG/etc/rc.d/rc.4.local
|
|
|
|
|
chmod 755 $PKG/etc/rc.d/rc.4.local
|
|
|
|
|
|
|
|
|
|
# Set sane permissions for the include files.
|
|
|
|
|
if [ -d ${PKG}/${INSTALL_TDE}/include ]; then
|
|
|
|
|
find ${PKG}/${INSTALL_TDE}/include -type f -exec chmod 0644 {} \;
|
|
|
|
|
if [ -d $PKG/$INSTALL_TDE/include ]; then
|
|
|
|
|
find $PKG/$INSTALL_TDE/include -type f -exec chmod 0644 {} \;
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Ensure correct login manager session file is available.
|
|
|
|
|
mkdir -p ${PKG}/usr/share/apps/tdm/sessions
|
|
|
|
|
cp ${PKG}/${INSTALL_TDE}/share/apps/tdm/sessions/tde.desktop ${PKG}/usr/share/apps/tdm/sessions/
|
|
|
|
|
mkdir -p $PKG/usr/share/apps/tdm/sessions
|
|
|
|
|
cp $PKG/$INSTALL_TDE/share/apps/tdm/sessions/tde.desktop $PKG/usr/share/apps/tdm/sessions/ || true
|
|
|
|
|
|
|
|
|
|
# Setup config files for TDM:
|
|
|
|
|
${PKG}/${INSTALL_TDE}/bin/gentdmconf --no-old --no-old-scripts --no-backup --in ${PKG}/etc/trinity/tdm
|
|
|
|
|
$PKG/$INSTALL_TDE/bin/gentdmconf --no-old --no-old-scripts --no-backup --in $PKG/etc/trinity/tdm
|
|
|
|
|
## set correct paths for config files
|
|
|
|
|
sed -i 's|/opt/trinity/share/config/tdm/|/etc/trinity/tdm/|' ${PKG}/etc/trinity/tdm/tdmrc
|
|
|
|
|
sed -i 's|/opt/trinity/share/config/tdm/|/etc/trinity/tdm/|' $PKG/etc/trinity/tdm/tdmrc
|
|
|
|
|
# Allow root to login
|
|
|
|
|
sed 's|AllowRootLogin=false|AllowRootLogin=true|' ${PKG}/etc/trinity/tdm/tdmrc > ${PKG}/etc/trinity/tdm/tdmrc.new
|
|
|
|
|
sed 's|AllowRootLogin=false|AllowRootLogin=true|' $PKG/etc/trinity/tdm/tdmrc > $PKG/etc/trinity/tdm/tdmrc.new
|
|
|
|
|
## Remove tdmrc which has AllowRootLogin=false set and would be used for a new installation
|
|
|
|
|
## The installed tdmrc will be created by doinst.sh from tdmrc.new if it doesn't exist
|
|
|
|
|
rm ${PKG}/etc/trinity/tdm/tdmrc
|
|
|
|
|
mv ${PKG}/etc/trinity/tdm/Xsession ${PKG}/etc/trinity/tdm/Xsession.orig
|
|
|
|
|
cat ${SRCDIR}/config/Xsession | sed "s|\${INSTALL_TDE}|${INSTALL_TDE}|" > ${PKG}/etc/trinity/tdm/Xsession
|
|
|
|
|
mv ${PKG}/etc/trinity/tdm/backgroundrc ${PKG}/etc/trinity/tdm/backgroundrc.new
|
|
|
|
|
if [[ -r ${PKG}/${INSTALL_TDE}/etc/trinity/tdm/README ]]; then
|
|
|
|
|
sed -i "s|${TMP}/package-tdebase/etc/trinity/tdm|/etc/trinity/tdm|" ${PKG}/${INSTALL_TDE}/etc/trinity/tdm/README
|
|
|
|
|
rm $PKG/etc/trinity/tdm/tdmrc
|
|
|
|
|
mv $PKG/etc/trinity/tdm/Xsession $PKG/etc/trinity/tdm/Xsession.orig
|
|
|
|
|
cat $SRCDIR/config/Xsession | sed "s|\$INSTALL_TDE|$INSTALL_TDE|" > $PKG/etc/trinity/tdm/Xsession
|
|
|
|
|
mv $PKG/etc/trinity/tdm/backgroundrc $PKG/etc/trinity/tdm/backgroundrc.new
|
|
|
|
|
if [[ -r $PKG/$INSTALL_TDE/etc/trinity/tdm/README ]]; then
|
|
|
|
|
sed -i "s|$TMP/package-tdebase/etc/trinity/tdm|/etc/trinity/tdm|" $PKG/$INSTALL_TDE/etc/trinity/tdm/README
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mkdir_install_fn
|
|
|
|
@ -157,7 +157,7 @@ $PRGNAM:
|
|
|
|
|
$PRGNAM: Home: https://www.trinitydesktop.org/index.php
|
|
|
|
|
" > $PKG/install/slack-desc
|
|
|
|
|
|
|
|
|
|
sed -e "s|\${INSTALL_TDE}|${INSTALL_TDE}|g" -e "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/doinst.sh > $PKG/install/doinst.sh
|
|
|
|
|
sed -e "s|\$INSTALL_TDE|$INSTALL_TDE|g" -e "s|\$TQTDIR|$TQTDIR|g" < $SRCDIR/doinst.sh > $PKG/install/doinst.sh
|
|
|
|
|
[[ $RUNLEVEL == 4 ]] && {
|
|
|
|
|
echo "
|
|
|
|
|
## set default runlevel to 4 for tdm
|
|
|
|
|