LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-05-2013, 07:05 AM   #1
PeterUK
Member
 
Registered: May 2009
Posts: 281

Rep: Reputation: 16
Slackware- Creating my own package archive- loading from an script


I am installing everything from zero. And I would like to create my own archive of packages archive but also I want to be able to tell in in a text list of package from a scripts.

The is some question that comes to mine.

-How can I run a series of script from a script?

I mean to run a xxxx.SlackBuild and make if wait for a success output to move in the next yyyy.SlackBuild to be execute.maybe exit or just give a message and move to the next one.

-The other question that come to mine is do I need to create the package again (run xxxx.SlackBuild) or just install the xxx_SBo.tgz file. It may be easy if the same PC but what about if its different PC , Does the hardware matter? Maybe the depends file version has changed? Is may be a good practice to actually create the xxx_SBo.tgz file by the script to compile it again and dont keep the xxx_SBo.tgz files .

-Other this I still not very clear is about the verification, I created a Threads about it but the use of it is not very clear, I want to create maybe my own key and check the package or the compress file for integrity before to unpack and compile. That may guaranty is my files are not gone corrupt it in the archive or in transmission? Right?

You can maybe point out issues I have not though about it. Thanks
 
Old 07-05-2013, 07:53 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Quote:
How can I run a series of script from a script
Just write a script that call other scripts

Quote:
The other question that come to mine is do I need to create the package again (run xxxx.SlackBuild) or just install the xxx_SBo.tgz file. It may be easy if the same PC but what about if its different PC , Does the hardware matter? Maybe the depends file version has changed? Is may be a good practice to actually create the xxx_SBo.tgz file by the script to compile it again and dont keep the xxx_SBo.tgz files
If you build and install the dependencies in the right order, then you may install these created packages on another computer. It would help if they run the same Slackware Version and they must have the same architecture (32bit/64bit/arm).

To check for integrity of files, you can compare the md5sum of the packages.
These are some of mine, yours will be different:
Quote:
chris@acer:~/packages$ md5sum *.txz
f334cf73e7c6bb0f88bf6e28320c610e AMD-2.2.2-x86_64-1_SBo.txz
9c7640ea532b2a070deb0bd673a61647 CAMD-2.2.2-x86_64-1_SBo.txz
f217864f85af4abc2625a9f5a8a9af48 CCOLAMD-2.7.3-x86_64-1_SBo.txz

Last edited by ChrisAbela; 07-05-2013 at 08:02 AM.
 
Old 07-05-2013, 08:38 AM   #3
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
If you need to execute SlackBuild scripts in a specific order, you may want to check sbopkg, build queue files and sqg:
http://www.sbopkg.org/
http://www.sbopkg.org/queues.php
https://code.google.com/p/sbopkg/sou...oc/contrib/sqg
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Creating a Slackware package. damgar Slackware 8 07-16-2012 01:48 AM
Old Slackware from 1994/95, LaTeX-package KOMA-Script in Slackware (t-series) markush Slackware 9 05-28-2012 07:22 AM
Creating a php package for Slackware 13.1 Ramurd Slackware 4 10-13-2010 06:51 PM
Cron job script creating corrupt archive roach7711x Linux - Server 2 04-08-2009 04:01 AM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration