LinuxQuestions.org
Help answer threads with 0 replies.
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-12-2010, 06:23 PM   #1
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Lightbulb mkslack 0.7 release


This is a personal project that some of you may also find helpful.

mkslack is a utility to create SlackBuild scripts along with .info and doinst.sh.

It uses templates and a config file for name, email and tag. Once the settings are made you can simply run 'mkslack somearchive.tar.gz' and it will create the files. It is very simple and can be fooled by some tarballs with unusual names/versions so you should usually check/edit the finished script afterwards, but it's a helpful start. It _will_ overwrite any previous SlackBuild, info and slack-desc so be aware of that.

This version adds support for a /etc/mkslack/mkslack.conf for name, email, and tag to save re-editing the templates on update.

README:

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

This slackbuild generator uses templates stored in /usr/share/mkslack/templates
which you can edit for copyright.

mkslack reads /etc/mkslack/mkslack.conf for name and email address. You
should therefore edit this file.

The slackbuild template is based on the one at slackbuilds.org and
shouldn't be changed too much apart from the aforementioned. In particular
the lines for man and info pages and 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.

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!

Syntax:

mkslack [options] 

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 
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 
Otherwise it defaults to 1.

ARCH can be specified by:
ARCH=xxx mkslack 
It defaults to i486 the same as a regular SlackBuild.
Download from here: http://www.dawoodfall.net/slackbuilds/13.0/mkslack/

Feedback and ideas welcome :-)

Last edited by dive; 04-13-2010 at 05:32 AM.
 
Old 04-13-2010, 03:15 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
Looks like Eric beat you to it?

http://alien.slackbook.org/AST/
 
Old 04-13-2010, 03:19 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 137Reputation: 137
Thanks I have downloaded and will try it out. Although Eric has AST it is useful to have something local.

samac
 
Old 04-13-2010, 04:03 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
Quote:
Originally Posted by samac View Post
Although Eric has AST it is useful to have something local.
Yeah, agreed. It's always good to have a choice.
 
Old 04-13-2010, 05:05 AM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by brianL View Post
Looks like Eric beat you to it?

http://alien.slackbook.org/AST/
Yes I knew about Erics and some other scripts like src2slack but I wanted 1) Something that I didn't need to keep entering details and 2) Something that was easier to configure.

Mine also generates a .info with md5sum, maintainer and email.

*Edit: One thing I need to do is make a tag option in the conf. Will do that now.

*Edit: Done. Thread updated.

Last edited by dive; 04-13-2010 at 05:32 AM.
 
  


Reply


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
LXer: Release Early, Release Often, Adopt Slowly LXer Syndicated Linux News 0 01-01-2010 03:22 AM
install opensuse release candidate upgrade path to final release newbuyer17 Linux - General 2 06-05-2008 09:23 AM
What release and other Q jogl_z_8 Linux - Newbie 5 02-15-2007 07:58 PM
FC5 development release and FC5 official release- where is the DVD iso? smiley_lauf Fedora 11 03-13-2006 02:38 PM
SUSE Release 10 RC1 Release Candidate 1 available 1kyle Suse/Novell 8 09-11-2005 07:26 PM


All times are GMT -5. The time now is 01:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration