Skip to content

Commit c5080cd

Browse files
authored
Merge pull request #229403 from MagicalDrizzle/execstack
execstack 20130503 (new formula)
2 parents cd11d5f + be62e85 commit c5080cd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/e/execstack.rb

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

0 commit comments

Comments
 (0)