more stage3 fixes/updates, added libelf package (required for ?trace)
[hdw-linux/hdw-linux.git] / packages / security / openssl / openssl
1 # hdw-linux openssl extensions
2
3 # author: hackbard
4
5 # [S] 3-1
6 # [V] 0.9.8
7 # [D] openssl-0.9.8.tar.gz http://www.openssl.org/source/
8
9 build_main()    {
10         case "$hdw_arch_opt" in
11                 i?86)   trg=linux-elf ;;
12                 *)      echo "target not supported"
13                         exit 1 ;;
14         esac
15
16         ./Configure --prefix=$root/usr --openssldir=$root/etc/ssl $trg shared
17         mkdir -p $root/etc/ssl ; rm -rf $root/etc/ssl/{man,lib,include}
18         rm -rf $docdir ; mkdir -p $docdir ; cp -rv doc $docdir
19         ln -svf $root/usr/{lib,include} $root/etc/ssl
20         ln -vfs $prefix/man $docdir/man
21         ln -vfs $docdir/man $root/etc/ssl/man
22         make $make_conf install
23                 }