LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   [ANN] sbopkg source packages (http://www.linuxquestions.org/questions/slackware-14/%5Bann%5D-sbopkg-source-packages-893691/)

slakmagik 07-25-2011 02:43 PM

[ANN] sbopkg source packages
 
This is half announcement/half request for feedback.

We won't be producing sbopkg 'source packages' in the future and will be removing the old ones soon (unless someone can inform me of a use for them that can't be satisfied otherwise). Sbopkg is a script rather than a binary produced from distinct source code and sbopkg source packages can't currently be used as-is to produce an sbopkg package anyway. If you want to see the files without installing, you can download the package and use 'explodepkg' on it. If you want the source directly, it's available from googlecode. So that should cover the uses of a source package. This will simplify things, reduce (admittedly minimal) storage and bandwidth, and may prevent confusion if new users download the wrong tarball.

Also, thanks to generous contributors, sbopkg.org - and many other fine sites - are now coming to you from a much more powerful and hopefully more stable server and ftp access is now available in addition to the usual http.

ftp://sbopkg.org/sbopkg/

Thanks as always to all our fine users and contributors who make sbopkg what it is. :)

solarfields 07-25-2011 03:09 PM

Thank you for this wonderful tool! Keep up the good work!

Hope to see it in /extra at some point...

kikinovak 07-25-2011 04:18 PM

Quote:

Originally Posted by slakmagik (Post 4424851)
This is half announcement/half request for feedback.

We won't be producing sbopkg 'source packages' in the future and will be removing the old ones soon (unless someone can inform me of a use for them that can't be satisfied otherwise).

Hi,

Actually, I *do* make use of the sbopkg "source" package. My system is in french, and latin1 encoded. When I install the tgz, the french manpage displays incorrectly, with accented characters all messed up. So I wrote a little SlackBuild for sbopkg to correct this behaviour. Here it is:

Code:

#!/bin/sh

# Slackware build script for sbopkg

# Written by Niki Kovacs <info@microlinux.fr>

# Download: http://sbopkg.org

PRGNAM=sbopkg
VERSION=${VERSION:-0.35.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_nk}

ARCH=noarch

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e

# Download tarball
if [ ! -r $PRGNAM-$VERSION.tar.gz ] ; then
  wget -c http://sbopkg.googlecode.com/files/$PRGNAM-$VERSION.tar.gz
fi

# Check tarball
md5sum -c $PRGNAM-$VERSION.tar.gz.md5

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .

find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

# Correct french manpage on latin1 encoded systems
mv usr/man/fr/man5/sbopkg.conf.5 usr/man/fr/man5/sbopkg.conf.5.utf8
iconv -f UTF8 -t LATIN1 usr/man/fr/man5/sbopkg.conf.5.utf8 > usr/man/fr/man5/sbopkg.conf.5
rm -f usr/man/fr/man5/sbopkg.conf.5.utf8

mv usr/man/fr/man8/sbopkg.8 usr/man/fr/man8/sbopkg.8.utf8
iconv -f UTF8 -t LATIN1 usr/man/fr/man8/sbopkg.8.utf8 > usr/man/fr/man8/sbopkg.8
rm -f usr/man/fr/man8/sbopkg.8.utf8

mv etc $PKG
mv usr $PKG

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/doc/{contrib,README*,HACKING,KNOWN_ISSUES,NEWS,THANKS,TODO} \
        $PKG/usr/doc/$PRGNAM-$VERSION

cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

So, it's nice to have the "source" around.

Cheers from South France.

slakmagik 07-25-2011 05:03 PM

Quote:

Originally Posted by solarfields (Post 4424867)
Thank you for this wonderful tool! Keep up the good work!

You're welcome and we thank you for the kind words. :)

Quote:

Originally Posted by kikinovak (Post 4424931)
Hi,

Actually, I *do* make use of the sbopkg "source" package. My system is in french, and latin1 encoded. When I install the tgz, the french manpage displays incorrectly, with accented characters all messed up. So I wrote a little SlackBuild for sbopkg to correct this behaviour.

i18n issues are a bit beyond me but this should probably be handled before it gets to you rather than massaged afterwards. Shouldn't there be fr.ISO8859-1 and fr.UTF-8 man directories or something? If running iconv is all that's called for, this could be part of the release process and/or if our current wonderful translator would be willing, she could possibly provide both. And, even if not, couldn't this be a post-install thing from a normal package or something inserted into a source code checkout from svn or just done from explodepkg'ing the package tarball and re-packing it after conversion? I'm not understanding why the source tarball itself is really necessary here.

kikinovak 07-25-2011 05:18 PM

I think the problem here is that most folks here in France default their systems to UTF-8. As far as I'm concerned, UTF-8 is indeed the encoding of the future... so I'll gladly use it in the future and stick to ISO-8859-1/ISO-8859-15 in the meantime :D

As for leaving the source code available on your site, I'd quote a french saying: ša mange pas de pain. Meaning: after all, it eats no bread.

And last but not least: thanks for this nifty piece of software. SlackBuilds.org and sbopkg make a Slacker's life so much easier.

Lufbery 07-25-2011 05:36 PM

I've got no problem with you announcement since the script is the code.

Thanks for all the hard work. Sbopkg is a fantastic tool.

Regards,

BCarey 07-26-2011 07:16 PM

Another thanks for sbopkg. It would be nice to have in /extra. Ever since slackpkg got included and linux got wireless working well it is the first non-slackware package I install on a new system.

Brian

kikinovak 07-27-2011 02:21 AM

Quote:

Originally Posted by BCarey (Post 4426116)
Another thanks for sbopkg. It would be nice to have in /extra. Ever since slackpkg got included and linux got wireless working well it is the first non-slackware package I install on a new system.

Brian

Same here, and I second that.


All times are GMT -5. The time now is 01:18 PM.