openSUSE Forums > openSUSE Build Service (OBS) » advanced packaging possibilites

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-Oct-2009, 14:45
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 12
canislycan hasn't been rated much yet
Question advanced packaging possibilites

Here is what I am trying to accomplish:

Build a package but offer up separate user controlled installation options depending on some currently undefined trigger (say a config file in /etc).

The goal is to create a meta set of packages that have the user controlled option to install them into very customized directories and include menu entries (not unlike Backtrack), but, still retain the the option (default) for users who want these same packages installed into standard FHS compliant directories and without menu entries for non-gui tools.

The difference being user1 wants a few tools, and user2 wants an entirely customized distro that allows them to perform a specific set of tasks in a much more optimized manner.

Is it possible to accomplish this with RPM? Say via the spec file? So far, I have found nothing to indicate this is so.

If I didn't explain myself well, let me know! =D

As a random side thought, I think FHS is antiquated. I'd like to see that standard redefined.
Reply With Quote
  #2 (permalink)  
Old 05-Oct-2009, 14:54
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 12
canislycan hasn't been rated much yet
Default Re: advanced packaging possibilites

Just some way to have the binary separate from the installation definitions..
Reply With Quote
  #3 (permalink)  
Old 05-Oct-2009, 21:09
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,545
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: advanced packaging possibilites

Aren't you mixing things up, you can't tell a binary to do xyz well certainly not build options. And the other regarding place is again not going to be handled the way you want a binary is used for ease of use. But look at man rpm for prefix and relocate.

I see 2 ways create sans-binary and with-all-binary, the other going on the spec option but this really doesn't sound user friendly. With some limited rpm building and a lot of googling you can pass environment vars.
I've seen a few of the format ....
Code:
rpmbuild -ba SPECS/$package.spec --define '_prefix /usr/local'
snipped from here Defining variables for rpmbuild | End Point Blog (redhatish but shouldn't matter)
So I would guess and a lot of presumption that that could be a custom var that you could check in one of the macros.

... and if you wish for finer granularity of where then then I think similar again, by sending it to rpmbuild.

Any way my tuppence and perhaps something to experiment with until someone with better packaging skills than I jumps in.
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #4 (permalink)  
Old 10-Oct-2009, 11:37
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 12
canislycan hasn't been rated much yet
Default Re: advanced packaging possibilites

Thanks FM, I'll play around with your suggestions and see where it takes me. =D
Reply With Quote
Reply

Bookmarks


Thread Tools
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

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




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2