diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/pbcsig | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/pbcsig')
-rw-r--r-- | homebrew/pbcsig/.beer | 39 | ||||
-rw-r--r-- | homebrew/pbcsig/.make.sh-auto | 3 | ||||
-rw-r--r-- | homebrew/pbcsig/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/pbcsig/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/pbcsig/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/pbcsig/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/pbcsig/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/pbcsig/patches.sh | 13 |
8 files changed, 60 insertions, 0 deletions
diff --git a/homebrew/pbcsig/.beer b/homebrew/pbcsig/.beer new file mode 100644 index 000000000..dee7c1609 --- /dev/null +++ b/homebrew/pbcsig/.beer @@ -0,0 +1,39 @@ +{ + "name": "PbcSig", + "description": "Signatures library", + "url": "https://crypto.stanford.edu/pbc/sig/files/pbc_sig-0.0.8.tar.gz", + "mirror": null, + "homepage": "https://crypto.stanford.edu/pbc/sig/", + "depends": [ + { + "depend": "pbc", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/sig/bbs.c b/sig/bbs.c\n", + "index ed1b437..8aa8331 100644\n", + "--- a/sig/bbs.c\n", + "+++ b/sig/bbs.c\n", + "@@ -1,4 +1,5 @@\n", + " //see Boneh, Boyen and Shacham, \"Short Group Signatures\"\n", + "+#include <stdint.h>\n", + " #include <pbc/pbc_utils.h>\n", + " #include \"pbc_sig.h\"\n", + " #include \"pbc_hash.h\"\n" + ] + } + ], + "install": [ + "system \"./configure\", \"--disable-debug\", \"--disable-dependency-tracking\",", + "\"--prefix=#{prefix}\"", + "system \"make\", \"install\"" + ], + "version": "0.0.8", + "file": "pbc-sig.rb" +}
\ No newline at end of file diff --git a/homebrew/pbcsig/.make.sh-auto b/homebrew/pbcsig/.make.sh-auto new file mode 100644 index 000000000..557a9e0d1 --- /dev/null +++ b/homebrew/pbcsig/.make.sh-auto @@ -0,0 +1,3 @@ +pkg:setup +pkg:configure --disable-dependency-tracking +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/pbcsig/_metadata/description b/homebrew/pbcsig/_metadata/description new file mode 100644 index 000000000..296e1ae1b --- /dev/null +++ b/homebrew/pbcsig/_metadata/description @@ -0,0 +1 @@ +Signatures library diff --git a/homebrew/pbcsig/_metadata/homepage b/homebrew/pbcsig/_metadata/homepage new file mode 100644 index 000000000..828ece802 --- /dev/null +++ b/homebrew/pbcsig/_metadata/homepage @@ -0,0 +1 @@ +https://crypto.stanford.edu/pbc/sig/ diff --git a/homebrew/pbcsig/_metadata/name b/homebrew/pbcsig/_metadata/name new file mode 100644 index 000000000..5a48f344b --- /dev/null +++ b/homebrew/pbcsig/_metadata/name @@ -0,0 +1 @@ +PbcSig diff --git a/homebrew/pbcsig/_metadata/version b/homebrew/pbcsig/_metadata/version new file mode 100644 index 000000000..d169b2f2d --- /dev/null +++ b/homebrew/pbcsig/_metadata/version @@ -0,0 +1 @@ +0.0.8 diff --git a/homebrew/pbcsig/download.sh b/homebrew/pbcsig/download.sh new file mode 100755 index 000000000..9cd00b5cf --- /dev/null +++ b/homebrew/pbcsig/download.sh @@ -0,0 +1 @@ +wget https://crypto.stanford.edu/pbc/sig/files/pbc_sig-0.0.8.tar.gz
\ No newline at end of file diff --git a/homebrew/pbcsig/patches.sh b/homebrew/pbcsig/patches.sh new file mode 100755 index 000000000..2a56db996 --- /dev/null +++ b/homebrew/pbcsig/patches.sh @@ -0,0 +1,13 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/sig/bbs.c b/sig/bbs.c +index ed1b437..8aa8331 100644 +--- a/sig/bbs.c ++++ b/sig/bbs.c +@@ -1,4 +1,5 @@ + //see Boneh, Boyen and Shacham, "Short Group Signatures" ++#include <stdint.h> + #include <pbc/pbc_utils.h> + #include "pbc_sig.h" + #include "pbc_hash.h" +EOF |