source: trunk/initrd/make.d/openssl.rul @ 522

Last change on this file since 522 was 522, checked in by dennis, 9 years ago

Changed back to openssl version 0.9.8

  • Property svn:keywords set to Id URL
File size: 1.8 KB
Line 
1#
2#   $Id: openssl.rul 522 2012-07-17 08:11:04Z dennis $
3#   
4#   /* vi: set noet ts=4: */
5#   
6#   2005.01.31  Brian Elliott Finley
7#   - add to ALL_SOURCE
8#   2005.06.28  Brian Elliott Finley
9#   - don't always rebuild
10#
11
12OPENSSL_VERSION         := 0.9.8r
13OPENSSL_DIR             := $(SRC_DIR)/openssl-$(OPENSSL_VERSION)
14OPENSSL_TARBALL         := openssl-$(OPENSSL_VERSION).tar.gz
15OPENSSL_MD5SUM          := 40b6ea380cc8a5bf9734c2f8bf7e701e
16OPENSSL_TARBALL_TARGET  := $(SRC_DIR)/$(OPENSSL_TARBALL)
17
18#### http://www.openssl.org/source/ ####
19OPENSSL_URL             := ftp://ftp.sara.nl/pub/sali/sources/$(OPENSSL_TARBALL)
20OPENSSL_INFO                    := http://www.openssl.org/
21
22OPENSSL_BINARIES        := $(OPENSSL_DIR)/apps/openssl
23OPENSSL_PATCHES                 := $(shell ls $(PATCH_DIR)/openssl.*.patch 2>/dev/null | sort)
24
25ifeq ($(ARCH),i386)
26        OPENSSL_SYSTEM := linux-elf
27else
28        OPENSSL_SYSTEM := linux-$(ARCH)
29endif
30
31.PHONY: openssl_clean
32openssl_clean: $(OPENSSL_DIR).clean
33
34$(OPENSSL_DIR).build: $(OPENSSL_DIR).verify_stamp $(ZLIB_LIBRARY)
35        rm -rf $(OPENSSL_DIR)
36        ( cd $(SRC_DIR) && tar -xvzf $(OPENSSL_TARBALL) && \
37            (cd $(OPENSSL_DIR) && \
38              (cat $(OPENSSL_PATCHES) < /dev/null | patch -p1)))
39        cd $(OPENSSL_DIR) && \
40          ./Configure --prefix=/usr \
41          -I$(SRC_DIR)/$(ZLIB_DIR) -L$(SRC_DIR)/$(ZLIB_DIR) \
42          no-idea no-mdc2 no-rc5 no-krb5 zlib $(OPENSSL_SYSTEM)
43        $(MAKE) -j $(NCPUS) -C $(OPENSSL_DIR) RPM_OPT_FLAGS="$(RPM_OPT_FLAGS) \
44          -Wa,--noexecstack" depend
45        $(MAKE) -j $(NCPUS) -C $(OPENSSL_DIR) RPM_OPT_FLAGS="$(RPM_OPT_FLAGS) \
46          -Wa,--noexecstack"
47
48        touch $@
49
50$(OPENSSL_DIR).verify_stamp: $(OPENSSL_DIR).get
51        #[ "$(shell md5sum $(OPENSSL_TARBALL_TARGET) | cut -d' ' -f1)" == "$(OPENSSL_MD5SUM)" ]
52
53        touch $@
54
55$(OPENSSL_DIR).get:
56        [ -d $(SRC_DIR) ] || mkdir -p $(SRC_DIR)
57        $(GETSOURCE) $(OPENSSL_URL) $(SRC_DIR)
58
59        touch $@
60
61$(OPENSSL_DIR).clean: initrd_clean
62        rm -rf $(OPENSSL_DIR)*
Note: See TracBrowser for help on using the repository browser.