Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Slackware

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-2008, 07:33 PM
notbob
 
Posts: n/a
making a slack package

I'm not here to snivel. I want to get to a point where I know enough about
bash scripting that I can contribute and provide slack packages. I know
enough that I can usually understand the barebones fybasics of bash scripts,
but I am still ignorant of the fine points. So, I'll continue to hone my
scripting skills.

One of the things that eludes me is understanding how a slack pkg is
constructed and built (slack builds). I know it is compiled before it
becomes a pkg, cuz I know how to compile from source and I know pkg's are
not compiled from source. So, what is done to make a pkg and how can I
control the configure and make options to make a pkg the way I want. One
goal I have is to be able to make a pkg that has all the required libs and
deps included, so a package install includes everything. A pointer is all I
ask. Thank you.

nb
Reply With Quote
  #2 (permalink)  
Old 07-20-2008, 07:50 PM
ilSimo
 
Posts: n/a
Re: making a slack package

It was 21:33, domenica 20 luglio 2008, and notbob, in message
<slrng874ot.36g.notbob@bb.nothome.com> wrote:
>
> One of the things that eludes me is understanding how a slack pkg is
> constructed and built (slack builds).
> A pointer is all I ask.


there's this guide on linuxpackages.net:
http://www.linuxpackages.net/howto.p...=Package+Howto

> Thank you.


you're welcome.

ilSimo
--
now playing:

If you want blood
You've got it

AC/DC - If You Want Blood (You've Got It)

Reply With Quote
  #3 (permalink)  
Old 07-20-2008, 08:02 PM
dillinger
 
Posts: n/a
Re: making a slack package

notbob wrote:
> I'm not here to snivel. I want to get to a point where I know enough about
> bash scripting that I can contribute and provide slack packages. I know
> enough that I can usually understand the barebones fybasics of bash scripts,
> but I am still ignorant of the fine points. So, I'll continue to hone my
> scripting skills.
>
> One of the things that eludes me is understanding how a slack pkg is
> constructed and built (slack builds). I know it is compiled before it
> becomes a pkg, cuz I know how to compile from source and I know pkg's are
> not compiled from source. So, what is done to make a pkg and how can I
> control the configure and make options to make a pkg the way I want. One
> goal I have is to be able to make a pkg that has all the required libs and
> deps included, so a package install includes everything. A pointer is all I
> ask. Thank you.
>
> nb


How about this one: http://slackwiki.org/Writing_A_SlackBuild_Script

Michel
Reply With Quote
  #4 (permalink)  
Old 07-20-2008, 09:18 PM
Grant
 
Posts: n/a
Re: making a slack package

On Sun, 20 Jul 2008 22:02:07 +0200, dillinger <dillinger@invalid.not> wrote:

>notbob wrote:
>> I'm not here to snivel. I want to get to a point where I know enough about
>> bash scripting that I can contribute and provide slack packages. I know
>> enough that I can usually understand the barebones fybasics of bash scripts,
>> but I am still ignorant of the fine points. So, I'll continue to hone my
>> scripting skills.
>>
>> One of the things that eludes me is understanding how a slack pkg is
>> constructed and built (slack builds). I know it is compiled before it
>> becomes a pkg, cuz I know how to compile from source and I know pkg's are
>> not compiled from source. So, what is done to make a pkg and how can I
>> control the configure and make options to make a pkg the way I want. One
>> goal I have is to be able to make a pkg that has all the required libs and
>> deps included, so a package install includes everything. A pointer is all I
>> ask. Thank you.
>>
>> nb

>
>How about this one: http://slackwiki.org/Writing_A_SlackBuild_Script


Looks good, except for the ./configure -- some things don't have this, for
example dnsmasq, and sometimes you want to edit Makefile instead (eg. dnsmasq
Makefile needs s/nawk/gawk/).

To nb:
And also see http://slackbuilds.org/howto/ I made a SlackBuild for a small
project a while back and it took a couple tries to get right -- perhaps join
their mail-list for some feedback when you do your first slackbuild.

As far as bash scripting goes, download / extract to local web server:
http://personal.riverusers.com/~theg...de-5.3.tar.bz2
for lots of examples -- there's a newsgroup: comp.unix.shell that has some
very helpful people when you hit a snag with shell scripting.

Grant.
--
http://bugsplatter.mine.nu/
Reply With Quote
  #5 (permalink)  
Old 07-21-2008, 08:24 AM
Stuart Winter
 
Posts: n/a
Re: making a slack package

On Sun, 20 Jul 2008 19:33:49 GMT, notbob@nothome.com wrote:

> becomes a pkg, cuz I know how to compile from source and I know pkg's are
> not compiled from source. So, what is done to make a pkg and how can I
> control the configure and make options to make a pkg the way I want. One
> goal I have is to be able to make a pkg that has all the required libs and
> deps included, so a package install includes everything. A pointer is all I


http://www.slackware.com/~mozes/

Look at the bottom of that page -- there are some notes and a presentation
document.

--
Stuart Winter
www.slackware.com/~mozes
ARM Slackware distribution: www.armedslack.org
Reply With Quote
  #6 (permalink)  
Old 07-28-2008, 05:02 PM
Julien Mills
 
Posts: n/a
Re: making a slack package

On Sun, 20 Jul 2008 19:33:49 +0000, notbob wrote:

> One of the things that eludes me is understanding how a slack pkg is
> constructed and built (slack builds). I know it is compiled before it
> becomes a pkg, cuz I know how to compile from source and I know pkg's
> are not compiled from source. So, what is done to make a pkg and how
> can I control the configure and make options to make a pkg the way I
> want. One goal I have is to be able to make a pkg that has all the
> required libs and deps included, so a package install includes
> everything. A pointer is all I ask. Thank you


In addition to the other replies, you can use checkinstall. checkinstall
creates a package when you are compiling a program, instead of doing
a make install, you do checkinstall which creates the package, then
install the package.
Reply With Quote
  #7 (permalink)  
Old 07-28-2008, 05:23 PM
Lew Pitcher
 
Posts: n/a
Re: making a slack package

In alt.os.linux.slackware, Julien Mills wrote:

> On Sun, 20 Jul 2008 19:33:49 +0000, notbob wrote:
>
>> One of the things that eludes me is understanding how a slack pkg is
>> constructed and built (slack builds). I know it is compiled before it
>> becomes a pkg, cuz I know how to compile from source and I know pkg's
>> are not compiled from source. So, what is done to make a pkg and how
>> can I control the configure and make options to make a pkg the way I
>> want. One goal I have is to be able to make a pkg that has all the
>> required libs and deps included, so a package install includes
>> everything. A pointer is all I ask. Thank you

>
> In addition to the other replies, you can use checkinstall. checkinstall
> creates a package when you are compiling a program, instead of doing
> a make install, you do checkinstall which creates the package, then
> install the package.


But, remember, checkinstall does not (yet) support the file "at" syscalls,
so you need to use the -fstrans=no option when you run it. In 2007, the
authors started to look into the problem (see
http://checkinstall.izto.org/cklist/msg00319.html ), but have yet to come
up with a program fix.

Pat V. no longer includes checkinstall in Slackware (it was absent from 12.0
and is absent from 12.1) because of this failing. The OP will have to find
the .TGZ install package somewhere else, or install it from source.


--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:27 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
| | | |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109