Skip to content

Commit

Permalink
[jsk_unitree_startup/cross] Install postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Sep 1, 2022
1 parent d6ab28a commit 67830ec
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jsk_unitree_robot/cross/repos/ros1_dependencies.repos
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,12 @@ repositories:
mailutils/debian:
type: tar
url: http://archive.ubuntu.com/ubuntu/pool/universe/m/mailutils/mailutils_3.4-1.debian.tar.xz
openssl:
type: tar
url: https://www.openssl.org/source/openssl-1.1.1q.tar.gz
libsasl:
type: tar
url: https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.27/cyrus-sasl-2.1.27.tar.gz
postfix:
type: tar
url: http://mirror.postfix.jp/postfix-release/official/postfix-3.4.3.tar.gz
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -xeu -o pipefail

SOURCE_DIR=/home/user/ros1_dependencies_sources/src/openssl/openssl-1.1.1q

cd ${SOURCE_DIR}

./config --prefix=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies --openssldir=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies/openssl

make
make install
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -xeu -o pipefail

SOURCE_DIR=/home/user/ros1_dependencies_sources/src/libsasl/cyrus-sasl-2.1.27

cd ${SOURCE_DIR}

./configure --prefix=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies

make install
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/bin/bash
set -xeu -o pipefail

SOURCE_DIR=/home/user/ros1_dependencies_sources/src/postfix/postfix-3.4.3

cd ${SOURCE_DIR}

INSTALL_DIR=/opt/jsk/${INSTALL_ROOT}/ros1_dependencies

make makefiles \
install_root=${INSTALL_DIR} \
command_directory=${INSTALL_DIR}/sbin \
config_directory=${INSTALL_DIR}/etc/postfix \
daemon_directory=${INSTALL_DIR}/libexec/postfix \
mailq_path=${INSTALL_DIR}/bin/mailq \
manpage_directory=${INSTALL_DIR}/man \
meta_directory=${INSTALL_DIR}/etc/postfix \
newaliases_path=${INSTALL_DIR}/bin/newaliases \
sendmail_path=${INSTALL_DIR}/sbin/sendmail \
CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_TLS -DNO_DB \
-I${INSTALL_DIR}/include/sasl \
-I${INSTALL_DIR}/include/openssl" \
AUXLIBS="-L${INSTALL_DIR}/lib -L${INSTALL_DIR}/lib/sasl2 -L${INSTALL_DIR}/openssl -lsasl2 -lssl -lcrypto -lz -lm"

export LD_LIBRARY_PATH="${INSTALL_DIR}"/lib
make
expect -c "
set timeout 100
spawn make install
expect install_root:
send ${INSTALL_DIR}\n
expect tempdir:
send \n
expect config_directory:
send \n
expect command_directory:
send \n
expect daemon_directory:
send \n
expect data_directory:
send \n
expect html_directory:
send \n
expect mail_owner:
send \n
expect mailq_path:
send \n
expect manpage_directory:
send \n
expect newaliases_path:
send \n
expect queue_directory:
send \n
expect readme_directory:
send \n
expect sendmail_path:
send \n
expect setgid_group:
send \n
expect shlib_directory:
send \n
expect meta_directory:
send \n
expect EOF
"

0 comments on commit 67830ec

Please sign in to comment.