jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.15k stars 1.07k forks source link

advanced howto question: modify a file before it's placed #2022

Closed jpfreyen closed 1 year ago

jpfreyen commented 1 year ago

For an rpm package creation, say I want to modify the file

"burb.service" using the script file "script.sh"

which "burb.service" will be part of the final .rpm package.

and "burb.service" gets placed here after the modification:

/usr/lib/systemd/system/burb.service

(then for kicks, that script.sh file gets deleted as the final step). How do I do this via fpm?

thank you so much!

jpfreyen commented 1 year ago

this case doesn't apply to my use case anymore