LinuxQuestions.org
Register a domain and help support LQ
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 08-01-2007, 10:57 AM   #1
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware 14.1, Slackware64-current, OpenBSD 5.5
Posts: 4,122

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Smile src2pkg 1.5 question


Please forgive a stupid question gnashley:-)
I've installed src2pkg1.5 on my slackware 12 system. I've read the man page for src2pkg, but I'm a bit confused about how to create packages using src2pkg.
What would be the basic command for creating a slackware package in my installation directory? Let's say I want to build a package in /home/hitest/downloads
I'd like to try your program.
Thanks for any and all replies.
 
Old 08-01-2007, 12:26 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 110Reputation: 110
In the common case, just doing "src2pkg foo-1.0.tar.gz" or whatever should work. The resulting package will be in /tmp, and there will be a couple of working directories you may or may not want to get rid of (personally, I don't bother cause I set up /tmp to be mounted tmpfs, so everything dies on shutdown). Without a slack-desc it really isn't a valid package, but that doesn't matter much when it is strictly for personal use.
 
Old 08-01-2007, 12:49 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,746

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
I usually always place each tarball in its' own directory -in your case:
/home/hitest/downloads/super-new-prog-0.1
Then just cd in there and run 'src2pkg super-new-prog-0.1.tar.bz2'
Note that src2pkg will insert a valid slack-desc file for you. If you want to generate it first along with a src2pkg build script for the package run:
src2pkg -N super-new-prog-0.1.tar.bz2
to create them. The script will be name super-new-prog.src2pkg.auto.Edit as needed/wanted and then run it using:
src2pkg -X
to execute the script.

The slack-desc file generated by src2pkg is named new.slack-desc. If you want to fill in the package description lines, just edit it like you want and then save it as simply slack-desc. Then it will be included in your package.

If you want to change the default location where temporary files are created and final packages are placed, read and edit the /etc/src2pkg/src2pkg.conf file.
 
Old 08-01-2007, 02:09 PM   #4
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware 14.1, Slackware64-current, OpenBSD 5.5
Posts: 4,122

Original Poster
Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Thank you tuxdev, gnashley,

I very much appreciate your helpful replies:-) I like to install Patrick's official Slackware packages, use SlackBuild scripts, and compile from source.
Your program gives me one more option to use, gnashley. Slackware is all about choice:-)
I'm going to go use your program now:-)
 
Old 08-01-2007, 02:58 PM   #5
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware 14.1, Slackware64-current, OpenBSD 5.5
Posts: 4,122

Original Poster
Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Very nice program:-)
Thank you for taking the time to build this for us, gnashley. This is a nice alternative to ./configure, make, and make install. Plus you get a solid slack package that can be easily upgraded.
Just finished making a slackware package for Sylpheed-2.4.1, it is one of my favourite light e-mail programs. Thanks again for your help:-)

http://i34.photobucket.com/albums/d1...st/src2pkg.jpg

http://i34.photobucket.com/albums/d1....1_src2pkg.jpg
 
  


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
src2pkg has a new home! gnashley Slackware 19 07-16-2007 09:18 PM
src2pkg custom related question about removepkg matters Slackware 5 06-18-2007 07:56 PM
where to download src2pkg matters Slackware 2 06-11-2007 06:29 AM
PkgBuild/src2pkg upgrade gnashley Slackware - Installation 1 10-20-2006 07:28 AM
PkgBuild & src2pkg upgrade gnashley Slackware 5 09-23-2006 03:31 AM


All times are GMT -5. The time now is 07:47 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