File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ class Execstack < Formula
2+ desc "Utility to set/clear/query executable stack bit"
3+ homepage "https://people.redhat.com/jakub/prelink/"
4+ url "https://people.redhat.com/jakub/prelink/prelink-20130503.tar.bz2"
5+ sha256 "6339c7605e9b6f414d1be32530c9c8011f38820d36431c8a62e8674ca37140f0"
6+ license "GPL-2.0-or-later"
7+
8+ bottle do
9+ sha256 cellar : :any_skip_relocation , x86_64_linux : "497141bb3d6078b8b285ea1267f50ae2e0fd66004c623e16bf1d8aca6a2cbebb"
10+ end
11+
12+ depends_on "elfutils"
13+
14+ def install
15+ system "./configure" , "--disable-silent-rules" , *std_configure_args
16+ system "make" , "-C" , "src" , "execstack"
17+ bin . install "src/execstack"
18+ end
19+
20+ test do
21+ cp test_fixtures ( "elf/hello" ) , testpath
22+ assert_match "- " , shell_output ( "#{ bin } /execstack -q #{ testpath } /hello" )
23+ system bin /"execstack" , "-s" , testpath /"hello"
24+ assert_match "X " , shell_output ( "#{ bin } /execstack -q #{ testpath } /hello" )
25+ system bin /"execstack" , "-c" , testpath /"hello"
26+ assert_match "- " , shell_output ( "#{ bin } /execstack -q #{ testpath } /hello" )
27+ end
28+ end
You can’t perform that action at this time.
0 commit comments