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.08k stars 1.07k forks source link

How is this configuration item(config-files) used #2045

Open stonma opened 5 months ago

stonma commented 5 months ago

context: fpm --version 1.14.0

I don't know where to put this file (/usr/lib/systemd/system/openresty.service) , can you help me?

fpm -f -s dir -t rpm --rpm-dist el7 -n apisix-base -a x86_64 -v 1.21.4.1_20240109 --iteration 0 -x openresty/zlib -x openresty/openssl111 -x openresty/pcre -d 'openresty-zlib >= 1.2.12-1' -d 'openresty-openssl111 >= 1.1.1n-1' -d 'openresty-pcre >= 8.45-1' --post-install post-install-apisix-base.sh --description 'APISIX'\''s OpenResty distribution.' --license 'ASL 2.0' -C /tmp/build/output -p /tmp/package/output --url http://apisix.apache.org/ --conflicts openresty --config-files usr/lib/systemd/system/openresty.service --prefix=PACKAGE_PREFIX
Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
Require just the needed backports instead, or 'backports/latest'.
no value for epoch is set, defaulting to nil {:level=>:warn}
Traceback (most recent call last):
        11: from /usr/local/rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:22:in `<main>'
        10: from /usr/local/rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:22:in `eval'
         9: from /usr/local/rvm/gems/ruby-2.6.3/bin/fpm:23:in `<main>'
         8: from /usr/local/rvm/gems/ruby-2.6.3/bin/fpm:23:in `load'
         7: from /usr/local/rvm/gems/ruby-2.6.3/gems/fpm-1.4.0/bin/fpm:8:in `<top (required)>'
         6: from /usr/local/rvm/gems/ruby-2.6.3/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'
         5: from /usr/local/rvm/gems/ruby-2.6.3/gems/fpm-1.4.0/lib/fpm/command.rb:535:in `run'
         4: from /usr/local/rvm/gems/ruby-2.6.3/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'
         3: from /usr/local/rvm/gems/ruby-2.6.3/gems/fpm-1.4.0/lib/fpm/command.rb:475:in `execute'
         2: from /usr/local/rvm/gems/ruby-2.6.3/gems/fpm-1.4.0/lib/fpm/package/rpm.rb:458:in `output'
         1: from /usr/local/rvm/gems/ruby-2.6.3/gems/fpm-1.4.0/lib/fpm/package/rpm.rb:458:in `each'
/usr/local/rvm/gems/ruby-2.6.3/gems/fpm-1.4.0/lib/fpm/package/rpm.rb:460:in `block in output': Config file path /tmp/package-dir-staging20240109-52290-bdb5c9/usr/lib/systemd/system/openresty.service does not exist (RuntimeError)