File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-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+ depends_on "elfutils"
9+
10+ def install
11+ system "./configure" , "--disable-silent-rules" , *std_configure_args
12+ system "make" , "-C" , "src" , "execstack"
13+ bin . install "src/execstack"
14+ end
15+
16+ test do
17+ cp test_fixtures ( "elf/hello" ) , testpath
18+ assert_match "- " , shell_output ( "#{ bin } /execstack -q #{ testpath } /hello" )
19+ system bin /"execstack" , "-s" , testpath /"hello"
20+ assert_match "X " , shell_output ( "#{ bin } /execstack -q #{ testpath } /hello" )
21+ system bin /"execstack" , "-c" , testpath /"hello"
22+ assert_match "- " , shell_output ( "#{ bin } /execstack -q #{ testpath } /hello" )
23+ end
24+ end
You can’t perform that action at this time.
0 commit comments