LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-25-2010, 08:54 PM   #1
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
Lightbulb mkslack 1.6 released


Quote:
mkslack - a SlackBuild generator script
(C) David Woodfall 2010

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, copyright etc.

The slackbuild templates are based on the ones at slackbuilds.org and
shouldn't be changed too much apart from the aforementioned. In particular
the lines for man and info pages and <documentation> should not be edited
as the script will look for those lines to be exactly the same, and if not
needed, delete them.

The PRGNAM, VERSION, ARCHIVE recognition is very loosely done. It can find
standard source archives which can be .tar.gz .tar.bz2 or .tgz. If you have
a source archive with a '-' in the version number then mkslack will be
borked. In this case you can still use mkslack to build the slackbuild,
but you must edit it by hand before running it.

The new template detection system has not been extensively tested so please
give feedback, bug reports on any that don't seem to work. Mail me at
dave@dawoodfall.net with name of software, download link etc.

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!

This is only a starter kit! You ARE expected to edit the created files
by hand afterwards to remove unnecesary parts!

Syntax:

mkslack [options] <archive>

Options:
-h --help Usage.
-r --run Run SlackBuild after creation. Got root?
-i --install Install the package after running.
-l --list Pipe archive contents to /usr/bin/most and exit.
-v --version Version of mkslack.

The documents list in top level of source tree can be adjusted by command:
DOCS="SomeFile" mkslack <archive>
This will add 'SomeFile' to the list. You can also edit the DOCS list in
this script. Any that it doesn't find will be removed from the list.

Build can be specified by:
BUILD=2 mkslack <archive>
Otherwise it defaults to 1.

ARCH can be specified by:
ARCH=xxx mkslack <archive>
It defaults to i486 the same as a regular SlackBuild.
http://www.dawoodfall.net/slackbuild...rsion/mkslack/

Last edited by dive; 06-10-2010 at 07:20 PM.
 
Old 04-25-2010, 09:33 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I have actually wondered if anyone had put together a tool like this, as 90-95% of packages don't actually need unique Slackbuilds; a common template with changed variables for name, version, and arch is sufficient.

Up to this point I have always just done it by hand, but that is repetitive and rather tedious. I'll have to check this out on my build machine.
 
Old 04-25-2010, 09:36 PM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
Alien Bob made something similar
http://alien.slackbook.org/AST/

His is web-based though.

Last edited by piratesmack; 04-26-2010 at 04:00 AM.
 
Old 04-26-2010, 06:25 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292
Just uploaded version 1.2

Found a bug for copying <documentation>. Hopefully it's fixed but please let me know of any bugs/problems/ideas.

Thanks
 
Old 04-27-2010, 04:13 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292
Uploaded 1.3

Much better <documentation> grepping.
 
Old 06-10-2010, 07:21 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292
Uploaded 1.6

Uses all the new templates on SBo. Please give feedback especially on bugs with source that doesn't work (and a link to source).

Enjoy.
 
  


Reply

Tags
build, script, slackbuild, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mkslack 0.7 release dive Slackware 4 04-13-2010 04:05 AM
Bordeaux 1.8.2 for FreeBSD & PC-BSD Released Bordeaux 1.8.2 for FreeBSD Released twickline Linux - News 0 08-11-2009 01:31 AM
2.6.16.6 released amosf Linux - Kernel 12 05-31-2006 10:15 PM
9.3 released? mwaddoups Suse/Novell 2 05-23-2005 11:57 AM
RH 7.3 Released psyklops Linux - General 2 05-07-2002 09:58 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration