Page 1 of 2

Quax's packages

Posted: 20. Sep 2009, 17:52
by Quax
Hi all,

as the packages/modules flux and me are using for fluxflux-sl/Lin2Go are 'not guideline compliant' but
nevertheless Slackware/Salixos compatible, one might find some interesting perls at

http://mirror.live-modules.org/quax/ind ... -sl/2009.1

Our mirror is slapt-get/gslapt compatible - You will have to add the following line to /etc/slapt-get/slapt-getrc:

Code: Select all

SOURCE=http://mirror.live-modules.org/quax/fluxflux-sl/2009.1/
Regards, Quax

Re: Quax's packages

Posted: 20. Sep 2009, 19:38
by gapan
Thanks Quax! I noticed all dep files are empty. Is that a bug or something you haven't done yet?

Re: Quax's packages

Posted: 20. Sep 2009, 19:59
by Quax
Hi Gapan,
gapan wrote:Thanks Quax! I noticed all dep files are empty. Is that a bug ...
Yes it is ;) - I have had a fluke in one of my server scripts last week ...
gapan wrote:...or something you haven't done yet?
When I started live-modules.org with ancient Nekdesk/Slack2Go I used the scripts from Stefano Stabellini
at http://stabellini.net/depslack.html and 'injected' the slack-required by script-extracting the information out of his PACKAGES.TXT.

As I am running the whole mirror by a single script I have changed the procedure some weeks ago:

- Each package gets 'exploded' and examined by requiredbuilder (now depfinder ;) )
- To be Slackware/Zenwalk(Salixos) compatible I have to build both slack-required and dep files
- Each package gets script converted to an .lzm module

As fluxflux-sl/Lin2Go is a 'two men show', we will need ~ 2 more weeks to get all deps checked and done.
The handmade packages/modules of flux and me (especially my 'splitted' ones) in the subfolders are ready.
I will have to take time because at the end all packages/modules will be installable/mountable directly via firefox and httpfs.

The result will be the successor of kweb2mod http://www.kde-apps.org/content/show.php?content=61935,
which is one of the earlier projets of flux and me.

Regards, Quax

btw: OT - You might have a look at the last snapshot of fluxflux-sl at http://mirror.live-modules.org/quax/ind ... luxflux-sl

Re: Quax's packages

Posted: 20. Sep 2009, 20:12
by gapan
Quax wrote:- To be Slackware/Zenwalk(Salixos) compatible I have to build both slack-required and dep files
Slackware has no dependency mechanism, so any way is Slackware compatible :D
It doesn't matter if do a dep or a slack-required file, all it matters is the info getting in PACKAGES.TXT, so I don't think you need to do it both ways.
In any case, if you still wan't to do it both ways, it shouldn't be that hard to tweak depfinder to output both at the same time.

Re: Quax's packages

Posted: 20. Sep 2009, 20:15
by Quax
... I forgot to mention fluxflux-sl/Lin2Go :oops: - They are using slack-required

Quax

Re: Quax's packages

Posted: 20. Sep 2009, 20:21
by Quax
Hi Gapan,
gapan wrote:...it shouldn't be that hard to tweak depfinder to output both at the same time.
I have 'tweaked' depfinder a bit to suite my needs:

Code: Select all

if [ $VERSIONINFO -eq 1 ]; then
	# If requesting version info, output the deps to a
	# slack-required file or to stdout
	if [ $CREATEDEPFILE -eq 1 ]; then
		if [ -d "$CWD/install" ]; then
		cat DEPSNAMES | sed 's/.*|//g' | uniq > $CWD/install/slack-required
		else
		cat DEPSNAMES | sed 's/.*|//g' | uniq > $CWD/slack-required
		fi
	else
		cat DEPSNAMES
	fi
else
Thus I am able to call it like:

cd $TMP/package-$PRGNAM
depfinder -j2 -f -a -s .

and it will store the slack-required in the install subfolder instead of the package's root

Regards, Quax

Re: Quax's packages

Posted: 20. Sep 2009, 20:26
by gapan
What I mean is: are you doing 2 depfinder passes to create both slack-required and dep file? You could make that a single pass. I'll probably be able to give you a one-liner to do the conversion from slack-required to dep file if you want.

Re: Quax's packages

Posted: 20. Sep 2009, 20:38
by Quax
gapan wrote:...are you doing 2 depfinder passes to create both slack-required and dep file? ...
No, I am creating slack-required while creating a new / exploding an existing package.

Then I am generating the depfiles with the script running on my server.

Code: Select all

    function gen_dep {
	    if [ ! -f $1 ]; then
		    echo "File not found: $1"
		    exit 1;
	    fi
			if [ "`echo $1|grep -E '(.*{1,})\-(.*[\.\-].*[\.\-].*).tgz[ ]{0,}$'`" == "" ]; then
				return;
			fi
	    NAME=$(echo $1|sed -re "s/(.*\/)(.*.tgz)$/\2/")
	    LOCATION=$(echo $1|sed -re "s/(.*)\/(.*.tgz)$/\1/")
	    DEPFILE=${NAME%tgz}dep
	    tar xzfO $1 install/slack-required | tr "\n" "," >> $LOCATION/$DEPFILE 2>/dev/null
	    if [ $? -ne 0 ]; then
	       touch $LOCATION/$DEPFILE
	    fi
    }
Quax

Re: Quax's packages

Posted: 20. Sep 2009, 20:41
by gapan
Ah, OK, that's what I meant. But I really think I could transform that to a one-liner. :D

Re: Quax's packages

Posted: 20. Sep 2009, 20:48
by gapan
Another thing, you don't need to tweak depfinder to output inside the package. You can just redirect the stdout to wherever you want.