/usr/share/pcsd/Makefile is in pcs 0.9.164-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | FFI_VERSION="1.9.18"
FFI_C_DIR=vendor/bundle/ruby/gems/ffi-${FFI_VERSION}/ext/ffi_c
build_gems: get_gems
bundle install --local --deployment
#ffi makes symlink with absolute path. Let's change it to relative path.
for fname in `ls ${FFI_C_DIR}/libffi-*/include/ffitarget.h`; do \
if [[ -L "$$fname" ]]; then \
target=$$(readlink $$fname | sed "s~.*/${FFI_C_DIR}\(/libffi/src/[^/]\+/ffitarget.h\)~../..\1~"); \
rm $$fname; \
ln -s $$target $$fname; \
fi; \
done;
build_gems_without_bundler:
mkdir -p vendor/bundle/ruby
gem install --verbose --no-rdoc --no-ri -l --ignore-dependencies -i vendor/bundle/ruby \
vendor/cache/backports-3.9.1.gem \
vendor/cache/ethon-0.10.1.gem \
vendor/cache/ffi-${FFI_VERSION}.gem \
vendor/cache/json-2.1.0.gem \
vendor/cache/multi_json-1.12.2.gem \
vendor/cache/open4-1.3.4.gem \
vendor/cache/rack-1.6.4.gem \
vendor/cache/rack-protection-1.5.5.gem \
vendor/cache/rack-test-0.7.0.gem \
vendor/cache/rpam-ruby19-1.2.1.gem \
vendor/cache/sinatra-1.4.8.gem \
vendor/cache/sinatra-contrib-1.4.7.gem \
vendor/cache/tilt-2.0.8.gem \
-- '--with-ldflags="-Wl,-z,now -Wl,-z,relro"'
get_gems:
bundle package
clean:
rm -rfv vendor/
|