stefanozanella / fpm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jordansissel/fpm
Effing package managers! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
License: Other
This project forked from jordansissel/fpm
Effing package managers! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
License: Other
Currently, when you create a RPM using --rpm-use-file-permissions
, --rpm-user
and --rpm-group
, the spec file that is built correctly contains a %defattr
with the specified user and/or group; but, all the files contain also a %attr
directive specifying not only the permissions, but also the ownership of the file, setting the ownership to that of the build system.
For example, consider you have a file like this:
-rw-r--r-- 1 vagrant vagrant 2616 Feb 14 17:28 test.rb
that is packaged with the following fpm
command:
fpm ... --rpm-use-file-permissions --rpm-user test --rpm-group test
This results in a spec file like this:
...
%defattr(-, test, test, -)
...
%attr(644, vagrant, vagrant) test.rb
...
thus overwriting the specified default. It would be more useful, instead, if the following output is produced:
...
%defattr(-, test, test, -)
...
%attr(644, -, -) test.rb
...
This would allow to actually mix the two/three options, as the installed file will keep the original permissions, while using the custom user/group specified at wrapping time.
NOTE: The issue can be solved by modifying FPM::Package::RPM#rpm_file_entry
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.