Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for rpm scriptlets #9

Merged
merged 1 commit into from
Dec 16, 2012

Conversation

fleipold
Copy link
Contributor

Now the %pretrans, %pre, %post, %verifyscript %posttrans, %preun and %postun scriptlets are supported.

This currently does not escape percent signs in the contents of the scriptlets

Now the %pretrans, %pre, %post, %verifyscript %posttrans, %preun and %postun scriptlets are supported.

This currently does not escape percent signs in the contents of the scriptlets
@@ -25,6 +25,13 @@ trait RpmPlugin extends Plugin with LinuxPlugin {
rpmPrerequisites := Seq.empty,
rpmObsoletes := Seq.empty,
rpmConflicts := Seq.empty,
rpmPretrans := None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind if I modify this to look for a src/rpm/RPM/pretrans file and slurp in the contents?

I'm a fan of having these guys not inside the build (or SPEC) but external.....

@jsuereth
Copy link
Member

This looks great to me, thanks for the patch! I may take what you've done and see if it makes sense to expand for Debian scripts as well, but probably not for a bit.

jsuereth added a commit that referenced this pull request Dec 16, 2012
@jsuereth jsuereth merged commit 2718f7f into sbt:master Dec 16, 2012
@fleipold
Copy link
Contributor Author

Thanks for merging my patch in.
Re your question. I am easy either way, the current solution seems to be more flexible, because with sbt just executing scala code it would be easy to read a file in the build file.
What do you think?

@jsuereth
Copy link
Member

Exactly. It's just a matter of adding a check for the file by default and
allowing folks to override in their build file.

@jw-devops-n jw-devops-n mentioned this pull request Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants