From f10e8f65b9ba06c71dc0b84020230556e74268ec Mon Sep 17 00:00:00 2001 From: Jim Date: Wed, 21 Jan 2015 09:23:46 -0800 Subject: [PATCH 1/7] add rawaes recipe --- haiku-apps/rawaes/licenses/rawaes | 9 +++++ haiku-apps/rawaes/rawaes-1.1.recipe | 53 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 haiku-apps/rawaes/licenses/rawaes create mode 100644 haiku-apps/rawaes/rawaes-1.1.recipe diff --git a/haiku-apps/rawaes/licenses/rawaes b/haiku-apps/rawaes/licenses/rawaes new file mode 100644 index 000000000..58f6030d6 --- /dev/null +++ b/haiku-apps/rawaes/licenses/rawaes @@ -0,0 +1,9 @@ + rawaes 1.1 for BeOS (Matthew Badger, (c) 2000) + Encrypts files using the Advanced Encryption Standard + Makes use of code written by Dr. B. R. Gladman; this + code can be found in the sub directory "aes". + + This program may be freely compiled and distributed, + if and only if the program's source is also + distributed. The author assumes no responsibility + for damaged caused due to the use of this program. diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe new file mode 100644 index 000000000..840caff12 --- /dev/null +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -0,0 +1,53 @@ +DESCRIPTION="Rawaes encrypts a file using the Advandced Encryption Standard (AES). AES uses the Rijndael Algorithm, a 128-bit block cipher, to encrypt. Since the encryption requires 16-byte blocks, rawaes will pad any uneven blocks with 0s, possibly increasing the size of the file upto 15 bytes." + +SUMMARY="Command-line encryption utility" + +LICENSE="rawaes" + +COPYRIGHT="2000 Matthew Badger" + +HOMEPAGE="https://github.com/bbjimmy/rawaes" +SRC_URI="https://github.com/bbjimmy/rawaes/archive/1.1.tar.gz" +CHECKSUM_SHA256="d61578c2ede9b25e80cd9c682238d290572262ad1273a036da39e086f6a06302" + + +REVISION="1" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + haiku + " + + +BUILD_PREREQUIRES=" + haiku + cmd:make + cmd:mkdepend + makefile_engine + cmd:gcc$secondaryArchSuffix + " +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + rawaes = $portVersion + cmd:rawaes = $portVersion + " + +BUILD() +{ + make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` +} + +INSTALL() +{ + mkdir -p $binDir + mkdir -p $developDir/sources/rawaes + mkdir -p $developDir/sources/rawaes/aes + cp rawaes.* $developDir/sources/rawaes/ + cp aes/*.* $developDir/sources/rawaes/aes/ + cd objects.* + cp rawaes $binDir + + + +} \ No newline at end of file From fa72961572d1e78981f2ed6ff4d732c53b79ed22 Mon Sep 17 00:00:00 2001 From: Jim Date: Sun, 25 Jan 2015 21:21:15 -0800 Subject: [PATCH 2/7] update recipe and license --- haiku-apps/rawaes/licenses/{rawaes => Rawaes} | 5 ++ haiku-apps/rawaes/rawaes-1.1.recipe | 56 +++++++++---------- 2 files changed, 30 insertions(+), 31 deletions(-) rename haiku-apps/rawaes/licenses/{rawaes => Rawaes} (68%) diff --git a/haiku-apps/rawaes/licenses/rawaes b/haiku-apps/rawaes/licenses/Rawaes similarity index 68% rename from haiku-apps/rawaes/licenses/rawaes rename to haiku-apps/rawaes/licenses/Rawaes index 58f6030d6..712521d96 100644 --- a/haiku-apps/rawaes/licenses/rawaes +++ b/haiku-apps/rawaes/licenses/Rawaes @@ -7,3 +7,8 @@ if and only if the program's source is also distributed. The author assumes no responsibility for damaged caused due to the use of this program. + + Rawaes may be ported to other platforms or used as a + basis for another freely available program as long as it + is not claimed that the author/developer of the new + software is Matthew Badger. diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe index 840caff12..5acf45733 100644 --- a/haiku-apps/rawaes/rawaes-1.1.recipe +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -1,53 +1,47 @@ -DESCRIPTION="Rawaes encrypts a file using the Advandced Encryption Standard (AES). AES uses the Rijndael Algorithm, a 128-bit block cipher, to encrypt. Since the encryption requires 16-byte blocks, rawaes will pad any uneven blocks with 0s, possibly increasing the size of the file upto 15 bytes." - SUMMARY="Command-line encryption utility" - -LICENSE="rawaes" - +DESCRIPTION="Rawaes encrypts a file using the Advandced Encryption Standard (AES). AES uses the Rijndael Algorithm, a 128-bit block cipher, to encrypt. Since the encryption requires 16-byte blocks, rawaes will pad any uneven blocks with 0s, possibly increasing the size of the file upto 15 bytes." +HOMEPAGE="https://github.com/bbjimmy/rawaes" +SRC_URI="https://github.com/bbjimmy/rawaes/archive/Final.tar.gz" +CHECKSUM_SHA256="b60d5c7af7f8952d47d8d212f504ec550ae44bf65290e10971af81084ed22e80" +SOURCE_DIR="rawaes-Final" +REVISION="1" +LICENSE="Rawaes" COPYRIGHT="2000 Matthew Badger" -HOMEPAGE="https://github.com/bbjimmy/rawaes" -SRC_URI="https://github.com/bbjimmy/rawaes/archive/1.1.tar.gz" -CHECKSUM_SHA256="d61578c2ede9b25e80cd9c682238d290572262ad1273a036da39e086f6a06302" - - -REVISION="1" - -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel - haiku - " - - -BUILD_PREREQUIRES=" - haiku - cmd:make - cmd:mkdepend - makefile_engine - cmd:gcc$secondaryArchSuffix - " -ARCHITECTURES="x86 x86_gcc2" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" PROVIDES=" rawaes = $portVersion cmd:rawaes = $portVersion " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " + +BUILD_PREREQUIRES=" + haiku + cmd:make + cmd:mkdepend + makefile_engine + cmd:gcc + " + BUILD() { - make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` + make $jobArgs } INSTALL() { mkdir -p $binDir - mkdir -p $developDir/sources/rawaes mkdir -p $developDir/sources/rawaes/aes cp rawaes.* $developDir/sources/rawaes/ cp aes/*.* $developDir/sources/rawaes/aes/ cd objects.* cp rawaes $binDir - - - } \ No newline at end of file From d5b247191372659b72e1e3e2a12e4ff58bbfde8c Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 26 Jan 2015 08:41:36 -0800 Subject: [PATCH 3/7] upsate recipe --- haiku-apps/rawaes/rawaes-1.1.recipe | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe index 5acf45733..870f63880 100644 --- a/haiku-apps/rawaes/rawaes-1.1.recipe +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -1,5 +1,8 @@ SUMMARY="Command-line encryption utility" -DESCRIPTION="Rawaes encrypts a file using the Advandced Encryption Standard (AES). AES uses the Rijndael Algorithm, a 128-bit block cipher, to encrypt. Since the encryption requires 16-byte blocks, rawaes will pad any uneven blocks with 0s, possibly increasing the size of the file upto 15 bytes." +DESCRIPTION="Rawaes encrypts a file using the Advandced Encryption Standard (AES). AES \ +uses the Rijndael Algorithm, a 128-bit block cipher, to encrypt. Since the \ +encryption requires 16-byte blocks, rawaes will pad any uneven blocks with 0s, \ +possibly increasing the size of the file upto 15 bytes." HOMEPAGE="https://github.com/bbjimmy/rawaes" SRC_URI="https://github.com/bbjimmy/rawaes/archive/Final.tar.gz" CHECKSUM_SHA256="b60d5c7af7f8952d47d8d212f504ec550ae44bf65290e10971af81084ed22e80" @@ -24,16 +27,14 @@ BUILD_REQUIRES=" " BUILD_PREREQUIRES=" - haiku - cmd:make - cmd:mkdepend - makefile_engine cmd:gcc + cmd:make + makefile_engine " BUILD() { - make $jobArgs + make $jobArgs OBJ_DIR=objects } INSTALL() @@ -42,6 +43,5 @@ INSTALL() mkdir -p $developDir/sources/rawaes/aes cp rawaes.* $developDir/sources/rawaes/ cp aes/*.* $developDir/sources/rawaes/aes/ - cd objects.* - cp rawaes $binDir + cp objects/rawaes $binDir } \ No newline at end of file From f59f32e490ddf15a37e0adb71735e4c1e6a73a97 Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 26 Jan 2015 10:34:01 -0800 Subject: [PATCH 4/7] change the install section --- haiku-apps/rawaes/rawaes-1.1.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe index 870f63880..3aac704f6 100644 --- a/haiku-apps/rawaes/rawaes-1.1.recipe +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -40,8 +40,8 @@ BUILD() INSTALL() { mkdir -p $binDir - mkdir -p $developDir/sources/rawaes/aes + mkdir -p $developDir/sources/rawaes cp rawaes.* $developDir/sources/rawaes/ - cp aes/*.* $developDir/sources/rawaes/aes/ + cp -r aes $developDir/sources/rawaes/ cp objects/rawaes $binDir } \ No newline at end of file From 19acfead56e311ceb0b5ce688a36f39d55ec0678 Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 26 Jan 2015 11:09:31 -0800 Subject: [PATCH 5/7] remove .proj file frosource --- haiku-apps/rawaes/rawaes-1.1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe index 3aac704f6..85711b4ed 100644 --- a/haiku-apps/rawaes/rawaes-1.1.recipe +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -41,7 +41,7 @@ INSTALL() { mkdir -p $binDir mkdir -p $developDir/sources/rawaes - cp rawaes.* $developDir/sources/rawaes/ + cp rawaes.cpp rawaes.h -t $developDir/sources/rawaes/ cp -r aes $developDir/sources/rawaes/ cp objects/rawaes $binDir } \ No newline at end of file From 6624750a4c3706d4ce8493504a83286320ba7927 Mon Sep 17 00:00:00 2001 From: Jim Date: Tue, 27 Jan 2015 07:57:43 -0800 Subject: [PATCH 6/7] replace upto with up to --- haiku-apps/rawaes/rawaes-1.1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe index 85711b4ed..e5604a2e9 100644 --- a/haiku-apps/rawaes/rawaes-1.1.recipe +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -2,7 +2,7 @@ SUMMARY="Command-line encryption utility" DESCRIPTION="Rawaes encrypts a file using the Advandced Encryption Standard (AES). AES \ uses the Rijndael Algorithm, a 128-bit block cipher, to encrypt. Since the \ encryption requires 16-byte blocks, rawaes will pad any uneven blocks with 0s, \ -possibly increasing the size of the file upto 15 bytes." +possibly increasing the size of the file up to 15 bytes." HOMEPAGE="https://github.com/bbjimmy/rawaes" SRC_URI="https://github.com/bbjimmy/rawaes/archive/Final.tar.gz" CHECKSUM_SHA256="b60d5c7af7f8952d47d8d212f504ec550ae44bf65290e10971af81084ed22e80" From fafd6ab01155ecf6c4dcf9212d27913996d40000 Mon Sep 17 00:00:00 2001 From: Jim Date: Wed, 4 Feb 2015 12:01:33 -0800 Subject: [PATCH 7/7] add secondaryArchSuffix modify ARCHITECTURES --- haiku-apps/rawaes/rawaes-1.1.recipe | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/haiku-apps/rawaes/rawaes-1.1.recipe b/haiku-apps/rawaes/rawaes-1.1.recipe index e5604a2e9..31687f6d5 100644 --- a/haiku-apps/rawaes/rawaes-1.1.recipe +++ b/haiku-apps/rawaes/rawaes-1.1.recipe @@ -11,10 +11,10 @@ REVISION="1" LICENSE="Rawaes" COPYRIGHT="2000 Matthew Badger" -ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +ARCHITECTURES="x86_gcc2 x86 ?x86_64" PROVIDES=" - rawaes = $portVersion + rawaes$secondaryArchSuffix = $portVersion cmd:rawaes = $portVersion " @@ -23,11 +23,11 @@ REQUIRES=" " BUILD_REQUIRES=" - haiku_devel + haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" - cmd:gcc + cmd:gcc$secondaryArchSuffix cmd:make makefile_engine "