LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-24-2005, 04:23 PM   #1
ivoencarnacao
LQ Newbie
 
Registered: Feb 2005
Distribution: Ubuntu Linux
Posts: 15

Rep: Reputation: 0
Making a Slackware package....


Yellow 2 ALL!


So, if i would like to try (!) & make a pkg to my jolly slack, how would i do it?


Can someone help?



Thanks,
Ivo.
 
Old 02-24-2005, 04:25 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
There is probably an official way of doing things, but for most purposes, checkinstall seems to do a fine job:

http://asic-linux.com.mx/~izto/checkinstall/

HTH,

Samsara

-
 
Old 02-24-2005, 04:43 PM   #3
sio
Member
 
Registered: Jul 2003
Location: Louisiana, US
Distribution: Slackware
Posts: 129

Rep: Reputation: 15
if compiling from source;

install checkinstall from the extra directory
http://www.slackware.com/pb/searchpk...g=checkinstall

then you can
./configure
make
checkinstall

this will create a package and install it for you. Optionally installing from source you can create a directory somewhere, say on the root of the drive at
/pkgs
then when you run go to compile
./configure --prefix=/pkgs/usr
make
make install
cd /pkgs
makepkg mypackage.tgz

Or if you just want to do your own package do like the second option above. Make a directory such as /pkgs then move whatever files you want into /pkgs. Then run makepkg from /pkgs
 
Old 02-24-2005, 08:44 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
linuxpackages.net has some good documentation about making slackpacks:

http://www.linuxpackages.net/howto.p...erfect+Package

 
Old 02-25-2005, 12:16 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
If you use checkinstall, removepkg will not work unless you go in and correct the slack-desc file and reinstall the package.
So, after using checkinstall, take the package it makes and put it ina temporary folder and do:
explodepkg PKG-name.tgz
Then go into the 'install' dir and open up slack-desc. Edit:
Study the linuxpackages howto for the details of the 11 critical lines in slack-desc.
Then do:
makepkg mynewpkg-version-arch-build.tgz
Be sure to remove the .tgz that checkinstall made there. Then, either run pkgtool and remove the original package that checkinstall installed, or simply remove the files that installpkg created in /var/log/packages and /var/log/scripts. Then install your new package.
When you compile from source you can usually specify an installation PREFIX= and install to a temp directory where you can create a package as above, except you'll need to create the install directory and also a valid slack-desc file as above.
 
Old 02-25-2005, 07:21 AM   #6
Makaelin
Member
 
Registered: Mar 2004
Posts: 93

Rep: Reputation: 15
A guy over on the Dropline forums made a script, createpkg, which will create a Slackware package from source. I've used it for a few things so far, and while it's still barebones, it's worked everytime.

http://www.dropline.net/forums/viewtopic.php?t=3920

(Note - his package is for Slackware, it doesn't have anything to do with Dropline GNOME).
 
  


Reply



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
tutorial custom package making? Potatopopper Slackware 4 11-19-2005 04:07 PM
problem making slackware package busbarn Programming 3 07-21-2004 08:12 PM
Making a slackware 9.1 bootable cd Gamer341 Linux - Software 3 10-07-2003 11:06 PM
making an RPM package ?? rinux Linux - Software 1 09-24-2003 07:11 PM
Howto on making .deb package files preben Debian 1 08-21-2003 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:47 AM.

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
Open Source Consulting | Domain Registration