Ask Your Question
0

How to add entries to /etc/services with rpm/spec

asked 2014-04-05 15:19:05 -0600

updated 2014-04-05 18:50:48 -0600

mether gravatar image

Hi,

Got a new package I'm working on. One of the requirements of this package is to have additional services defined, so at the moment I've added some embedded awk to the %post of the spec file which does this fine.

However, I'm not convinced this is the best or even Fedora way of achieving this. I can't find any help out there in the docs so I would like to get this approach confirmed before I put this package forward.

Thanks, Jon

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-05 20:50:50 -0600

mether gravatar image

Sed is fine. So is Lua. Here is one example of a spec already in the repository

http://pkgs.fedoraproject.org/cgit/Canna.git/tree/Canna.spec

edit flag offensive delete link more

Comments

Hi,

Great, hoped I wasn't going down the wrong path with this.

Thanks for that,

Regards, Jon

jondkent gravatar imagejondkent ( 2014-04-06 14:31:03 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-05 15:19:05 -0600

Seen: 595 times

Last updated: Apr 06 '14