Belphegor の巣窟 - Linux Zaurus(略) - opensslの作成手順


openssl 0.9.8e

# クロスコンパイル環境用
cd $SOURCE
tar xvzf $ARCHIVE/openssl-0.9.8e.tar.gz
cd openssl-0.9.8e
./config --prefix=$TOOLS/target/$TARGET no-asm shared
mv Makefile Makefile.bak
sed "s/CC= gcc/CC= $TARGET-gcc/" < Makefile.bak | sed "s/-march=pentium //" > Makefile
make all
make install

# ターゲット用
cd $SOURCE
tar xvzf $ARCHIVE/openssl-0.9.8e.tar.gz
cd openssl-0.9.8e
./config --prefix=/opt/QtPalmtop no-asm shared
mv Makefile Makefile.bak
sed "s/CC= gcc/CC= $TARGET-gcc/" < Makefile.bak | sed "s/-march=pentium //" > Makefile
make all
mkdir $SOURCE/openssl-root
make install INSTALL_PREFIX=$SOURCE/openssl-root
# 不要なファイルを削除
rm -fR $SOURCE/openssl-root/opt/QtPalmtop/include
rm -fR $SOURCE/openssl-root/opt/QtPalmtop/ssl/man
rm -f $SOURCE/openssl-root/opt/QtPalmtop/lib/*.a

# コントロールファイルの作成
mkdir $SOURCE/openssl-root/CONTROL
cat > $SOURCE/openssl-root/CONTROL/control << EOF
Package: openssl
Priority: optional
Section: net
Version: 0.9.8e
Architecture: arm
Maintainer: Yasuhiko Kamata (belphegor@belbel.or.jp)
Source: http://www.openssl.org/source/openssl-0.9.8e.tar.gz
Depends: 
Description: Toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols
  The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation.
EOF

# 設定ファイル群の指定
cat > $SOURCE/openssl-root/CONTROL/conffiles << EOF
/opt/QtPalmtop/ssl/openssl.cnf
EOF

# パッケージの作成
cd $SOURCE
ipkg-build openssl-root
# (note)
# tar: --exclude=CONTROL: Cannot stat: No such file or directory
# tar: Error exit delayed from previous errors
# が出る場合は ipkg-build の
# "tar -C $pkg_dir -czf $tmp_dir/data.tar.gz . --exclude=$CONTROL"
# を
# "tar -C $pkg_dir -czf $tmp_dir/data.tar.gz --exclude=$CONTROL ."
# に置き換える
					

Linux Zaurus(略)へ戻る


最終更新日: 2007/08/27 17:48:32