-
-
Notifications
You must be signed in to change notification settings - Fork 287
Document rpm build process #118
Comments
I found the rpmbuild command line in #104 |
in the rpmspec, you will find a few lines starting with After that, use the command from #104 |
replacing the placeholders with the content of the files also doesn't work as intended, as some variables like SSHD_CONFIG_FILE are not defined. Anyway, I can now build and will adapt the post-install step to my needs. Thanks for your quick support @michaelwittig . I will spend some time testing alternative build methods (I also need a debian package), probably using fpm and will give you some feedback if I succeed. |
yes, you are right. the variables are also replaced. the solution is not very clean. the goal was to not have duplication in install.sh and the RPM. so I ended up with this hack.. regarding the deb package you can have a look at #109 |
How could I miss #109! I tested it and it works fine. I also like the pkg/ directory to regroup postinst and postrm scripts. BTW I tested fpm to build the rpm package, it works fine. You just have to replace the "-t deb" by "-t rpm". I will definitely use it to build both package types with jenkins. You could maybe reuse the pkg/ scripts in install.sh, to get rid of the code duplication? |
Metadata:
(describe your issue here)
I would like to build my own rpm package from the sources (to avoid modifying the config after installation), but I get this error:
error: Unable to open install_configure_sshd.sh: No such file or directory
Could you give me some details about how your build process? Thanks!
The text was updated successfully, but these errors were encountered: