Skip to content

Commit

Permalink
sf-pwgen: fallback to C-based version
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Aug 14, 2024
1 parent 78c9362 commit 21378d4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
15 changes: 8 additions & 7 deletions security/sf-pwgen/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
PortSystem 1.0
PortGroup github 1.0

github.setup anders pwgen 1.5
github.setup anders pwgen 7e1f76312901987d57593d406b2be95bb5f9195e
version 1.1.1

name sf-pwgen
categories security
Expand All @@ -17,17 +18,17 @@ long_description ${description} \
A command line tool that generates passwords using \
macOS's SecurityFoundation framework.

checksums rmd160 b1a7c50fb49dd75e694e951203c93360edf4caff \
sha256 65633b914fe61725dfe9da5ff29b8cca769ff59a382a3c8fa56bb9f71ee97e7f \
size 8668
checksums rmd160 455fd7e87a3ad513ddc8a379b6953182a1a9c044 \
sha256 69bc7d6003b341f979573427997eb9e746062db80d5fd090853d31ef2df869e5 \
size 2941

patchfiles-append patch-fix-build.diff

use_configure no
build.target ""

destroot {
xinstall -m 0755 -W ${worksrcpath} \
sf-pwgen \
${destroot}${prefix}/bin
move ${worksrcpath}/pwgen ${destroot}${prefix}/bin/sf-pwgen
}

notes "
Expand Down
9 changes: 9 additions & 0 deletions security/sf-pwgen/files/patch-fix-build.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- Makefile.orig 2013-03-02 12:24:52.000000000 +0800
+++ Makefile 2024-08-14 16:57:24.000000000 +0800
@@ -1,5 +1,4 @@
-CC=clang
-CFLAGS=-arch x86_64 -arch i386 -Wall -Wextra -O2 -g
+CFLAGS=-std=c99 -Wall -Wextra -O2 -g
TARGET=pwgen
SRC=pwgen.c
OBJ=$(SRC:.c=.o)

0 comments on commit 21378d4

Please sign in to comment.