Skip to content

Commit 505319a

Browse files
execstack 20130503 (new formula)
1 parent c35a6d2 commit 505319a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Formula/e/execstack.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

0 commit comments

Comments
 (0)