LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-13-2013, 12:12 AM   #1
harryhaller
Member
 
Registered: Sep 2004
Posts: 428

Rep: Reputation: Disabled
[src2pkg] how can one add a tag to src2pkg pkg name - like slackbuilds do (Sbo)


I find src2pkg indispensable and I hope it will soon be part of Slackwares standard package tools.
But without a tag like other external packages at the end of the package name it is difficult to spot the origin of a package created by src2pkg in the package index in /var/log/packages.
How can one add a tag (e.g. S2P) to the package names?
Are there any plans to integrate the addition of a tag to package names in srcpkg?
 
Old 02-13-2013, 12:26 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,381

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
You can use the -b option that sets the BUILD variable, like the corresponding one in Slackware's *.SlackBuilds (other *.Slackbuilds, like the ones from slackbuilds.org or Alien for example, use $BUILD$TAG for the package name so you can launch them specifying TAG to have the desired effect)
Code:
src2pkg -b=1_S2P whatever.tar.gz

Last edited by ponce; 02-13-2013 at 12:30 AM. Reason: changed TAG in the example to _S2P for readability when parsing /var/log/packages/*
 
3 members found this post helpful.
Old 02-13-2013, 12:56 AM   #3
harryhaller
Member
 
Registered: Sep 2004
Posts: 428

Original Poster
Rep: Reputation: Disabled
Perfect! Thanks ponce
 
Old 02-13-2013, 01:23 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,746

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
Actually, the correct way is to set the 'SIG' variable to whatever tag you like. You can set it in the /etc/src2pkg/src2pkg.conf file or use it for individual builds. In the src2pkg.conf file you'll find it near the top(~ line 29):
# SIG is a suffix to BUILD for 'signing' package names
# [[ $SIG ]] || SIG=""
Just uncomment hat and set it like this:
[[ $SIG ]] || SIG="_mytag"
I usually would use the underline(_) as a separator. Just be sure to *not* use a hyphen(-) or it will confuse installpkg.
You can use it on a per-package basis like this:
SIG="_mytag" src2pkg ....
 
4 members found this post helpful.
Old 02-13-2013, 02:28 AM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,381

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
sorry Gilbert, I missed that
 
Old 02-13-2013, 09:55 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,746

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
No problem ponce, thanks for chipping in while I slept a little longer!
 
  


Reply

Tags
packages, pkgtools, src2pkg


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
[ANNOUNCE] src2pkg-2.0 and src2pkg-ng-0.0.1 gnashley Slackware 11 12-21-2009 11:41 AM
src2pkg karp Slackware 6 09-20-2009 05:59 AM
src2pkg macondo Slackware 11 01-07-2009 12:20 AM
New src2pkg release available for download -Introducing the src2pkg WIKI gnashley Slackware 11 05-06-2008 11:09 AM
src2pkg for Webmin - can't create a working pkg agentc0re Slackware 8 11-20-2007 11:08 AM


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