Skip to content

Commit

Permalink
Edit evil-winrm PKGBUILD (#4205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vz0n authored Sep 11, 2024
1 parent fb89628 commit 2c3add9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
evil-winrm
5 changes: 3 additions & 2 deletions packages/evil-winrm/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ package() {
sed -zi "s/\[provider_sect\]\ndefault = default_sect/\[provider_sect\]\ndefault = default_sect\nlegacy = legacy_sect/" "$pkgdir/usr/share/$pkgname/openssl.cnf"
sed -zi "s/\[default_sect\]\n# activate = 1/\[default_sect\]\nactivate = 1\n\[legacy_sect\]\nactivate = 1/" "$pkgdir/usr/share/$pkgname/openssl.cnf"

# Specify bundle's gemfile environment variable to avoid changing directories when running the program.
cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
cd /usr/share/$pkgname
OPENSSL_CONF=/usr/share/$pkgname/openssl.cnf exec bundle exec $pkgname.rb "\$@"
OPENSSL_CONF=/usr/share/$pkgname/openssl.cnf BUNDLE_GEMFILE=/usr/share/$pkgname/Gemfile exec bundle exec /usr/share/$pkgname/$pkgname.rb "\$@"
EOF

chmod +x "$pkgdir/usr/bin/$pkgname"
Expand Down

0 comments on commit 2c3add9

Please sign in to comment.