freebsd-ports/security/ssl-admin/files/patch-ssl-admin
Dan Langille da1328032e security/ssl-admin: Use the right tarball
The developer has indicated the correcdt tarball supplied in the assets,
not the tagged Github tarball. The Github tarball will provide the wrong
VERSION in the app.

Not mentioned in my previous commit: this release adds a new feature:

C) Generate new Certificate Revokation List (CRL)

While here:

* run portfmt
* remove dependency on archivers/zip by patching to use bsdtar from base
  (credit to diizzy@ for patch and help with this commit)

Approved by:	maintainer (via Github discussions)
2023-08-20 14:37:04 +00:00

14 lines
648 B
Text

--- ssl-admin.orig 2023-08-20 13:30:11 UTC
+++ ssl-admin
@@ -476,9 +476,9 @@ sub menu_handler {
chomp($yn = <>);
} until $yn =~ m/^[yn]$/;
if ($yn eq "n"){
- $zip_cmd = "cd $working_dir/packages/ && zip $cn.zip client.crt client.key ca.crt";
+ $zip_cmd = "cd $working_dir/packages/ && bsdtar -a -cf $cn.zip client.crt client.key ca.crt";
} else {
- $zip_cmd = "cd $working_dir/packages/ && zip $cn.zip client.crt client.key ca.crt client.ovpn";
+ $zip_cmd = "cd $working_dir/packages/ && bsdtar -a -cf $cn.zip client.crt client.key ca.crt client.ovpn";
}
print "=================> Zipping File\n";
system($zip_cmd);