diff options
Diffstat (limited to 'recipes-security/keynote/keynote-2.3')
3 files changed, 89 insertions, 0 deletions
diff --git a/recipes-security/keynote/keynote-2.3/configure-remove-hardcode-path.patch b/recipes-security/keynote/keynote-2.3/configure-remove-hardcode-path.patch new file mode 100644 index 0000000..af3ef42 --- /dev/null +++ b/recipes-security/keynote/keynote-2.3/configure-remove-hardcode-path.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Remove the hardcoded lib and include dirs | ||
2 | |||
3 | Upstream-Status: Inappropriate [cross compile specific] | ||
4 | |||
5 | written by: Amy Fong <amy.fong@windriver.com> | ||
6 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
7 | |||
8 | --- keynote-2.3/configure.in.orig 2010-05-24 04:44:16.000000000 -0700 | ||
9 | +++ keynote-2.3/configure.in 2010-05-24 04:44:55.000000000 -0700 | ||
10 | @@ -21,27 +21,16 @@ | ||
11 | AC_PATH_PROG(ECHO, echo, /bin/echo) | ||
12 | AC_PATH_PROG(SED, sed, /usr/bin/sed) | ||
13 | |||
14 | -dnl Checks for libraries. | ||
15 | -LIBS="-L/usr/lib -L/usr/local/lib -L/usr/ssl/lib -L/usr/openssl/lib\ | ||
16 | - -L/usr/local/ssl/lib -L/usr/local/openssl/lib -L/usr/pkg/lib -L/pkg/lib" | ||
17 | - | ||
18 | AC_CHECK_LIB(m, floor, LIBS="$LIBS -lm") | ||
19 | AC_CHECK_LIB(rsaref, RSAPrivateDecrypt, LIBS="$LIBS -lrsaref") | ||
20 | AC_CHECK_LIB(crypto, i2a_ASN1_STRING, LIBS="$LIBS -lcrypto") | ||
21 | AC_CHECK_LIB(RSAglue, RSA_ref_private_encrypt, LIBS="$LIBS -lRSAglue") | ||
22 | |||
23 | -dnl Checks for header files. | ||
24 | -CPPFLAGS="-I/usr/include -I/usr/local/include -I/usr/ssl/include\ | ||
25 | - -I/usr/local/ssl/include -I/usr/openssl/include -I/usr/pkg/include\ | ||
26 | - -I/usr/local/openssl/include -I/pkg/include" | ||
27 | - | ||
28 | AC_HEADER_STDC | ||
29 | AC_HEADER_TIME | ||
30 | AC_CHECK_HEADERS(fcntl.h limits.h unistd.h regex.h sys/time.h io.h) | ||
31 | AC_CHECK_HEADERS(ssl/crypto.h openssl/crypto.h crypto.h memory.h) | ||
32 | |||
33 | -dnl Checks for other files | ||
34 | - | ||
35 | dnl Checks for typedefs, structures, and compiler characteristics. | ||
36 | AC_C_CONST | ||
37 | AC_CHECK_TYPE(u_int, unsigned int) | ||
diff --git a/recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch b/recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch new file mode 100644 index 0000000..80d87cf --- /dev/null +++ b/recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Add LDFLAGS variable to Makefile so that extra linker flags can be sent via this variable. | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
6 | |||
7 | diff --git a/Makefile.in b/Makefile.in | ||
8 | index b216648..42b4827 100644 | ||
9 | --- a/Makefile.in | ||
10 | +++ b/Makefile.in | ||
11 | @@ -35,6 +35,7 @@ MKDIR = @MKDIR@ | ||
12 | SED = @SED@ | ||
13 | ECHO = @ECHO@ | ||
14 | TR = @TR@ | ||
15 | +LDFLAGS = @LDFLAGS@ | ||
16 | |||
17 | TARFLAGS = -cvzf ${DISTFILE} | ||
18 | YACCFLAGS2 = -d -p kv -b z | ||
19 | @@ -83,7 +84,7 @@ $(TARGET): $(OBJS) | ||
20 | $(RANLIB) $(TARGET) | ||
21 | |||
22 | $(TARGET2): $(TARGET) $(OBJS2) | ||
23 | - $(CC) $(CFLAGS) -o $(TARGET2) $(OBJS2) $(LIBS) | ||
24 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET2) $(OBJS2) $(LIBS) | ||
25 | |||
26 | k.tab.c: keynote.y header.h keynote.h assertion.h config.h | ||
27 | $(YACC) $(YACCFLAGS) keynote.y | ||
28 | @@ -131,7 +132,7 @@ $(SSLCERT) $(SSLKEY): | ||
29 | -keyout $(SSLKEY) | ||
30 | |||
31 | test-sample: all $(OBJS3) | ||
32 | - $(CC) $(CFLAGS) -o $(TARGET3) $(OBJS3) $(LIBS) | ||
33 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET3) $(OBJS3) $(LIBS) | ||
34 | |||
35 | test-sig: all $(SSLCERT) $(SSLKEY) | ||
36 | $(SED) -e 's/--.*//' < $(SSLCERT) > $(SSLCERT).1 | ||
diff --git a/recipes-security/keynote/keynote-2.3/run-ptest b/recipes-security/keynote/keynote-2.3/run-ptest new file mode 100644 index 0000000..4dc35c9 --- /dev/null +++ b/recipes-security/keynote/keynote-2.3/run-ptest | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd @PTEST_PATH@ | ||
4 | keynote verify -e testsuite/test-env \ | ||
5 | -r false,maybe,probably,true \ | ||
6 | -k testsuite/auth1 -k testsuite/auth2 \ | ||
7 | -k testsuite/auth3 -k testsuite/auth4 \ | ||
8 | -l testsuite/test-assertion1 \ | ||
9 | -l testsuite/test-assertion2 \ | ||
10 | -l testsuite/test-assertion3 \ | ||
11 | -l testsuite/test-assertion4 \ | ||
12 | -l testsuite/test-assertion5 \ | ||
13 | -l testsuite/test-assertion6 \ | ||
14 | -l testsuite/test-assertion7 \ | ||
15 | && echo "PASS: keynote-ptest" \ | ||
16 | || echo "FAIL: keynote-ptest" | ||