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.
#!/bin/sh
#
PRGNAM=mozilla-firefox
VER="2.0.0.2"
PKG=${PRGNAM}-${VER}-`uname -m`-1
ARC=firefox
SRC=~/downloads/rpm/${ARC}-${VER}.tar.gz
#
# --- with a little luck, you won't have to edit below this point ---
#
BUILD=`pwd`
WORK=/tmp/$ARC.work
INST=$WORK/inst
SLACKBUILD=${INST}/usr/src/slackbuilds/${ARC}
#
# Exit the script on errors:
set -e
trap 'echo "$0 FAILED at line $LINENO!" | tee $WORK/error.log' ERR
#
set -u
P1=${1:-1}
#
if [ -a ${WORK} ]; then
rm -rd ${WORK}
fi
#
# --- CLEANUP ---
# Beenden, da immer erst gelöscht wird.
if [ "$P1" = "--cleanup" ]; then
echo cleanup done.
exit 0
fi
#
mkdir ${WORK}
mkdir -p ${INST}/install
mkdir -p ${SLACKBUILD}
mkdir -p ${INST}/usr/bin
mkdir -p ${INST}/usr/lib
cd ${INST}/usr/lib
tar -xf ${SRC}
mv ${ARC} ${ARC}-${VER}
cd ${INST}
#
cat <<EOINS > install/doinst.sh
( cd usr/bin ; rm -rf ${ARC} )
( cd usr/bin ; ln -sf /usr/lib/${ARC}-${VER}/${ARC} ${ARC} )
( cd usr/lib ; rm -rf ${ARC} )
( cd usr/lib ; ln -sf ${ARC}-${VER} ${ARC} )
EOINS
#
cp ${BUILD}/slack-desc install
cp ${BUILD}/slack-desc ${SLACKBUILD}
cp ${BUILD}/${ARC}.SlackBuild ${SLACKBUILD}
#
tree | tee $WORK/makepkg.log
find -ls | tee -a $WORK/makepkg.log
makepkg --linkadd y --chown n ${WORK}/${PKG}.tgz | tee -a $WORK/makepkg.log
(cd $WORK && md5sum $PKG.tgz > $PKG.tgz.md5)
grep "^${PRGNAM}" > ${WORK}/${PKG}.txt < ${BUILD}/slack-desc
#
ls -l ${WORK}/${PKG}.t*
echo $0 FERTIG
and slack-desc
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
mozilla-firefox: mozilla-firefox (Mozilla Firefox Web browser)
mozilla-firefox:
mozilla-firefox: This project is a redesign of the Mozilla browser component written
mozilla-firefox: using the XUL user interface language. Firefox empowers you to
mozilla-firefox: browse faster, more safely and more efficiently than with any other
mozilla-firefox: browser.
mozilla-firefox:
mozilla-firefox: Visit the Mozilla Firefox project online:
mozilla-firefox: http://www.mozilla.org/projects/firefox/
mozilla-firefox: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
mozilla-firefox:
I know how to build a slackware package.I use slackware for more than 2-3 years. But thanx for the reply.
I 'm just asking if anyone knows anything about this because it seems strange to me.
Last edited by perfect_circle; 03-05-2007 at 02:03 PM.
Reason: spelling
then put it in a global directory with r/w access to everyone ... or is that not safe ?
To be honest, I've got my FF (and TB) in /opt/, with only read permissions.
You can shut that off pretty good, as far as safety is concerned.
But especially embedded media is a disaster when you pull tricks like this (yeah, there are work-arounds, but they all suck deeply, IMHO)..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.