SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does anyone know where I can find a slackbuild for FVWM-Crystal? I've tried installing it by hand it but its just too time consuming. I'm constantly rebuilding my old laptop and I'd love to have a tgz or a slackbuild for it.
Here's a src2pkg script to build that with(name it 'fvwm-crstyal.src2pkg':
Code:
#!/bin/bash
## src2pkg script for: fvwm-crystal
## Auto-generated by src2pkg-1.9.9
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>
SOURCE_URL='http://download.gna.org/fvwm-crystal/3.0.6/fvwm-crystal-3.0.6.tar.gz'
SOURCE_NAME='fvwm-crystal-3.0.6.tar.gz'
NAME='fvwm-crystal' # Use ALT_NAME to override guessed value
VERSION='3.0.6' # Use ALT_VERSION to override guessed value
# ARCH=''
BUILD='1'
PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""
DOCLIST='AUTHORS COPYING ChangeLog README NEWS addons'
# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;
# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source
echo -n $BLUE"Removing .svn cruft - "$NORMAL
(cd $SRC_DIR ; find "." -type d -name ".svn" -exec rm -rf "{}" \; 2> /dev/null )
(cd $SRC_DIR ; find "." -type f -name ".svn" -exec rm -f "{}" \; 2> /dev/null )
echo $GREEN"Done"$NORMAL
fix_source_perms
(cd $SRC_DIR
sed -i -e 's|$HOME/|${HOME}/.|g;
s|`dirname ${0}`/..|/usr|g' \
bin/${NAME} || exit 1
sed -i -e '/FVWM_DISTROMENUNAME/s|debian|slackware|g' \
fvwm/config || exit 1
sed -i -e '/^Terminal=/s|False|false|g' \
-e 's,Encoding=UTF-8,,' \
-e 's,Window Manager,X-Window-Manager,' \
addons/${NAME}.desktop || exit 1
sed -i -e 's|pidof|/sbin/pidof|g' \
fvwm/preferences/Startup \
fvwm/components/apps/{Nautilus,XScreenSaver} \
fvwm/components/functions/{Exit,Music-xmms,Exit-Safe} || exit 1
)
configure_source
compile_source
fake_install
(cd $SRC_DIR
mkdir -p ${PKG_DIR}/usr/share/xsessions
install -m0644 addons/${NAME}.desktop \
${PKG_DIR}/usr/share/xsessions/${NAME}.desktop || exit 1
mkdir -p ${PKG_DIR}/usr/share/vim/vim71
install -m0644 addons/fvwm.vim \
${PKG_DIR}/usr/share/vim/vim71/fvwm.vim || exit 1
)
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process
You'll also need this xintrc file:
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
# redirect errors to a file in user's home directory if we can
errfile="$HOME/.xsession-errors"
if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null )
then
exec > "$errfile" 2>&1
else
mktemp=/usr/bin/mktemp
for errfile in "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
if ef="$( umask 077 && $mktemp "$errfile.XXXXXX" 2> /dev/null)"
then
exec > "$ef" 2>&1
mv "$ef" "$errfile" 2> /dev/null
break
fi
done
fi
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/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
# run all system xinitrc shell scripts.
for file in /etc/X11/xinit/xinitrc.d/* ; do
[ -x $file ] && source $file
done
# start some nice programs
exec /usr/bin/fvwm-crystal
Name it 'xinitrc.fvwm-crystal' and place it alongside the sources and the fvwm-crystal.src2pkg script.
this may be too old, but I just tried these scripts with Slackware 13, the issue im having is this output. Im new to slackware and not sure what the proper fix would be.
Code:
Checking for misplaced dirs -
Notice - Package contains /usr/local directory, but PRE_FIX is: /usr
You may need to patch the Makefile(s) to correct the installation prefix.
FATAL! This build installs faulty directories or files.
You must fix the build as suggested above, or override this action with:
FAIL_ON_BAD_DIRS=NO from the command-line or in your src2pkg.conf file.
I haven't altered src2pkg.conf at all
all 3 files are in the directory /home/chloride/FVWMcrystal and this is where i am running the .src2pkg file from.
Is it possible that I need to place that /FVWMcrystal somewhere else?
-I just tested this same setup on my laptop with freshly installed Slackware 13 again the same issue comes up.
Last edited by micemicerabies; 04-23-2010 at 01:50 PM.
Reason: tested on fresh install
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.