LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [ANN] mkslack 4.5b2 (https://www.linuxquestions.org/questions/slackware-14/%5Bann%5D-mkslack-4-5b2-4175501952/)

dive 04-16-2014 09:28 AM

[ANN] mkslack 4.5b2
 
mkslack - a SlackBuild generator script.

* Added a waf template and waf configure error detection.

This slackbuild generator uses templates stored in /usr/share/mkslack/templates and a config file /etc/mkslack/mkslack.conf which you must edit for name, email, tag and a few options.

Idea for use: The initial slackbuild and info file are built by this script, and when a test build/install is done and working, the files should be tweaked by hand. Especially don't forget to fill in the rest of the details in the .info.

One thing to point out is that mkslack will overwrite these files if run again unless you set KEEPBACKUPS="YES" in the conf (default).

This is only a starter kit. You ARE expected to edit the created files by hand afterwards to remove unnecesary parts and add extra options.

http://www.dawoodfall.net/files/slac...rsion/mkslack/

StevenXL 04-16-2014 01:28 PM

Sweet! Thanks for this.

tronayne 04-17-2014 09:50 AM

OK, I'm being really, really stupid: how do I install it?

dive 04-17-2014 10:04 AM

Quote:

Originally Posted by tronayne (Post 5154520)
OK, I'm being really, really stupid: how do I install it?

Pretty much the same as any slackware package:

1)
Grab the prebuilt package - mkslack-4.5-noarch-2daw.txz
installpkg mkslack-4.5-noarch-2daw.txz as root
Later you can upgrade it in a similar way using upgradepkg.

or

2 )
Grab the slackbuild tarball (mkslack.tar.gz) and the source (mkslack-4.5-tar.gz).
Untar the slackbuild and copy the source tarball into the folder it creates (mkslack)
cd mkslack
chmod +x mkslack.SlackBuild
As root: ./mkslack.SlackBuild
That will create the package which you can then install using installpkg as in 1) above.

More info on running slackbuilds can be found here:
http://www.slackbuilds.org/howto/
http://www.slackbuilds.org/faq/

Hope this helps.

tronayne 04-17-2014 10:38 AM

Well, duh! I grabbed the source tarball, looked at it, went... uh...

All is well that ends, thank you.

dive 04-17-2014 05:00 PM

Small update. 4.5b3 is now available.

I fixed a bug where using -b would end up in an endless loop.

Regarding loops in general:

If the slackbuild errors out with an exit code of 1 then all is fine. Sometimes though the error doesn't and exits on 0, which does not get picked up as an error.

In these cases you need to ctrl-c and run the slackbuild manually to see what the error is.


All times are GMT -5. The time now is 07:47 PM.