Removed tqca-tls patch, updated tdebase.SlackBuild for /usr

pull/25/head
Ray-V 7 years ago
parent 9fe3e836bc
commit a520925753

@ -78,7 +78,7 @@ case $session in
exec $HOME/.xsession exec $HOME/.xsession
;; ;;
default) default)
exec ${INSTALL_TDE}/bin/starttde exec $INSTALL_TDE/bin/starttde
;; ;;
*) *)
eval exec "$session" eval exec "$session"

@ -28,28 +28,28 @@ config etc/trinity/tdm/backgroundrc.new
# Update the desktop database: # Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then if [ -x usr/bin/update-desktop-database ]; then
chroot . /usr/bin/update-desktop-database ${INSTALL_TDE}/share/applications > /dev/null 2>&1 chroot . /usr/bin/update-desktop-database $INSTALL_TDE/share/applications > /dev/null 2>&1
fi fi
# Update hicolor theme cache: # Update hicolor theme cache:
if [ -d usr/share/icons/hicolor ]; then if [ -d usr/share/icons/hicolor ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then
chroot . /usr/bin/gtk-update-icon-cache -f -t ${INSTALL_TDE}/share/icons/hicolor 1> /dev/null 2> /dev/null chroot . /usr/bin/gtk-update-icon-cache -f -t $INSTALL_TDE/share/icons/hicolor 1> /dev/null 2> /dev/null
fi fi
fi fi
# Update the mime database: # Update the mime database:
if [ -x usr/bin/update-mime-database ]; then if [ -x usr/bin/update-mime-database ]; then
chroot . /usr/bin/update-mime-database ${INSTALL_TDE}/share/mime >/dev/null 2>&1 chroot . /usr/bin/update-mime-database $INSTALL_TDE/share/mime >/dev/null 2>&1
fi fi
# update PATH # update PATH
# upgradepkg runs this twice, so even though $TQTDIR/bin will be # upgradepkg runs this twice, so even though $TQTDIR/bin will be
# a new PATH, it needs to be tested for the second run # a new PATH, it needs to be tested for the second run
if ! grep ${INSTALL_TDE}/bin /etc/profile if ! grep $INSTALL_TDE/bin /etc/profile
then then
echo "PATH=\$PATH:${INSTALL_TDE}/bin:$TQTDIR/bin" >> /etc/profile echo "PATH=\$PATH:$INSTALL_TDE/bin:$TQTDIR/bin" >> /etc/profile
else else
if ! grep $TQTDIR/bin /etc/profile if ! grep $TQTDIR/bin /etc/profile
then then
@ -59,9 +59,9 @@ fi
# update MANPATH # update MANPATH
if ! grep ${INSTALL_TDE}/man /etc/profile if ! grep $INSTALL_TDE/man /etc/profile
then then
echo "export MANPATH=\$MANPATH:${INSTALL_TDE}/man" >> /etc/profile echo "export MANPATH=\$MANPATH:$INSTALL_TDE/man" >> /etc/profile
fi fi

@ -1,10 +1,10 @@
#!/bin/csh #!/bin/csh
# TDE additions: # TDE additions:
if ( ! $?TDEDIR ) then if ( ! $?TDEDIR ) then
setenv TDEDIR ${INSTALL_TDE} setenv TDEDIR $INSTALL_TDE
endif endif
if ( $?XDG_CONFIG_DIRS ) then if ( $?XDG_CONFIG_DIRS ) then
setenv XDG_CONFIG_DIRS ${XDG_CONFIG_DIRS}:/etc/trinity/xdg setenv XDG_CONFIG_DIRS $XDG_CONFIG_DIRS:/etc/trinity/xdg
else else
setenv XDG_CONFIG_DIRS /etc/xdg:/etc/trinity/xdg setenv XDG_CONFIG_DIRS /etc/xdg:/etc/trinity/xdg
endif endif

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# TDE additions: # TDE additions:
TDEDIR=${INSTALL_TDE} TDEDIR=$INSTALL_TDE
export TDEDIR export TDEDIR
if [ ! "$XDG_CONFIG_DIRS" = "" ]; then if [ ! "$XDG_CONFIG_DIRS" = "" ]; then
XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/trinity/xdg XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/trinity/xdg

@ -1,9 +1,9 @@
#! /bin/sh #! /bin/sh
# Start TDM: # Start TDM:
if [ -x ${INSTALL_TDE}/bin/tdm ]; then if [ -x $INSTALL_TDE/bin/tdm ]; then
echo "Using TDM (Trinity Login Manager)." echo "Using TDM (Trinity Login Manager)."
echo echo
# log_cleanup "/var/log/tdm.log" # log_cleanup "/var/log/tdm.log"
exec ${INSTALL_TDE}/bin/tdm -nodaemon -error /var/log/tdm.log exec $INSTALL_TDE/bin/tdm -nodaemon -error /var/log/tdm.log
fi fi

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

@ -22,8 +22,8 @@ if [ -f $usermodmap ]; then
fi fi
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch --exit-with-session ${INSTALL_TDE}/bin/starttde exec ck-launch-session dbus-launch --exit-with-session $INSTALL_TDE/bin/starttde
else else
exec dbus-launch --exit-with-session ${INSTALL_TDE}/bin/starttde exec dbus-launch --exit-with-session $INSTALL_TDE/bin/starttde
fi fi

@ -51,23 +51,6 @@ CFLAGS=$SLKCFLAGS \
## it may pick up the wrong march/mtune flags, or none at all - use SET_march as set up in BUILD-TDE.sh ## it may pick up the wrong march/mtune flags, or none at all - use SET_march as set up in BUILD-TDE.sh
sed -i "s|-march=.*-mtune=[a-z,0-9,-]*||;s|fvisibility-inlines-hidden|& $SET_march|" Makefile sed -i "s|-march=.*-mtune=[a-z,0-9,-]*||;s|fvisibility-inlines-hidden|& $SET_march|" Makefile
## allow building with clang
echo $'
--- Makefile
+++ Makefile
@@ -12,2 +12,2 @@
-CC = gcc
-CXX = g++
+CC = $(COMPILER)
+CXX = $(COMPILER_CXX)
@@ -21 +21 @@
-LINK = g++
+LINK = $(COMPILER_CXX)
' | while read line
do
patch -p0
done
make $NUMJOBS || exit 1 make $NUMJOBS || exit 1
mkdir -p $PKG$TQTDIR-$VERSION/plugins/crypto/ mkdir -p $PKG$TQTDIR-$VERSION/plugins/crypto/

Loading…
Cancel
Save