-   Slackware (
-   -   [src2pkg] how can one add a tag to src2pkg pkg name - like slackbuilds do (Sbo) (

harryhaller 02-13-2013 12:12 AM

[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?

ponce 02-13-2013 12:26 AM

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 or Alien for example, use $BUILD$TAG for the package name so you can launch them specifying TAG to have the desired effect)

src2pkg -b=1_S2P whatever.tar.gz

harryhaller 02-13-2013 12:56 AM

Perfect! Thanks ponce :)

gnashley 02-13-2013 01:23 AM

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 ....

ponce 02-13-2013 02:28 AM

sorry Gilbert, I missed that :)

gnashley 02-13-2013 09:55 AM

No problem ponce, thanks for chipping in while I slept a little longer!

All times are GMT -5. The time now is 01:54 PM.