LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware- Creating my own package archive- loading from an script (http://www.linuxquestions.org/questions/slackware-14/slackware-creating-my-own-package-archive-loading-from-an-script-4175468579/)

PeterUK 07-05-2013 07:05 AM

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

ChrisAbela 07-05-2013 07:53 AM

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

solarfields 07-05-2013 08:38 AM

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


All times are GMT -5. The time now is 10:35 AM.