Project

General

Profile

« Previous | Next » 

Revision 7a59c903

Added by Lukas Zapletal almost 10 years ago

Fixes #6013, #6014, #6979 - changes for RHEL7

View differences:

Rakefile
raise "can't find VERSION from #{ref}" if version.length == 0
`git archive --prefix=foreman-selinux-#{version}/ #{ref} | bzip2 -9 > pkg/foreman-selinux-#{version}.tar.bz2`
end
desc 'Compile and load policy on a remote host, supply distro & host=(user@)hostname'
task :load do
box = ENV['host'] || 'UNKNOWN'
distro = ENV['distro'] || 'rhel6'
system "rsync -rav . -e ssh --exclude .git #{box}:policy/"
system "ssh #{box} 'cd policy && sed -i s/@@VERSION@@/99.9/ *.te && make -f /usr/share/selinux/devel/Makefile load DISTRO=#{distro} && echo OK'"
end
end

Also available in: Unified diff