first test of: installtion from scratch related fixies
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6829 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -189,47 +189,47 @@ run_compilation_autotests() {
|
|||||||
if [ "$updated" != "" ] ; then
|
if [ "$updated" != "" ] ; then
|
||||||
echo_warning "some files are not in svn: $updated"
|
echo_warning "some files are not in svn: $updated"
|
||||||
fi
|
fi
|
||||||
compilations \
|
test_compile \
|
||||||
test.0101 oaisim \
|
test.0101 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r8
|
oaisim $tdir/bin/oaisim.r8
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0102 oaisim \
|
test.0102 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r8.nas
|
oaisim $tdir/bin/oaisim.r8.nas
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0103 oaisim \
|
test.0103 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r8.rf
|
oaisim $tdir/bin/oaisim.r8.rf
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0104 dlsim \
|
test.0104 dlsim \
|
||||||
dlsim $tdir/bin/dlsim
|
dlsim $tdir/bin/dlsim
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0104 ulsim \
|
test.0104 ulsim \
|
||||||
ulsim $tdir/bin/ulsim
|
ulsim $tdir/bin/ulsim
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0106 oaisim \
|
test.0106 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r8.itti
|
oaisim $tdir/bin/oaisim.r8.itti
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0107 oaisim \
|
test.0107 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r10
|
oaisim $tdir/bin/oaisim.r10
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0108 oaisim \
|
test.0108 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r10.itti
|
oaisim $tdir/bin/oaisim.r10.itti
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0114 oaisim \
|
test.0114 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r8.itti.ral
|
oaisim $tdir/bin/oaisim.r8.itti.ral
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0115 oaisim \
|
test.0115 oaisim \
|
||||||
oaisim $tdir/bin/oaisim.r10.itti.ral
|
oaisim $tdir/bin/oaisim.r10.itti.ral
|
||||||
|
|
||||||
compilations \
|
test_compile \
|
||||||
test.0102 nasmesh \
|
test.0102 nasmesh \
|
||||||
CMakeFiles/nasmesh/nasmesh.ko $tdir/bin/nasmesh.ko
|
CMakeFiles/nasmesh/nasmesh.ko $tdir/bin/nasmesh.ko
|
||||||
|
|
||||||
@@ -240,9 +240,9 @@ run_compilation_autotests() {
|
|||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
make_one_cert() {
|
make_one_cert() {
|
||||||
openssl genrsa -out $1.key.pem 1024
|
$SUDO openssl genrsa -out $1.key.pem 1024
|
||||||
openssl req -new -batch -out $1.csr.pem -key $1.key.pem -subj /CN=$1.eur/C=FR/ST=PACA/L=Aix/O=Eurecom/OU=CM
|
$SUDO openssl req -new -batch -out $1.csr.pem -key $1.key.pem -subj /CN=$1.eur/C=FR/ST=PACA/L=Aix/O=Eurecom/OU=CM
|
||||||
openssl ca -cert cacert.pem -keyfile cakey.pem -in $1.csr.pem -out $1.cert.pem -outdir . -batch
|
$SUDO openssl ca -cert cacert.pem -keyfile cakey.pem -in $1.csr.pem -out $1.cert.pem -outdir . -batch
|
||||||
}
|
}
|
||||||
|
|
||||||
make_certs(){
|
make_certs(){
|
||||||
@@ -256,17 +256,17 @@ make_certs(){
|
|||||||
cd /usr/local/etc/freeDiameter
|
cd /usr/local/etc/freeDiameter
|
||||||
echo "creating the CA certificate"
|
echo "creating the CA certificate"
|
||||||
echo_warning "erase all existing certificates as long as the CA is regenerated"
|
echo_warning "erase all existing certificates as long as the CA is regenerated"
|
||||||
$SUDO rm -f /usr/local/etc/freeDiameter/
|
$SUDO rm -f /usr/local/etc/freeDiameter/*.pem
|
||||||
|
|
||||||
# CA self certificate
|
# CA self certificate
|
||||||
$SUDO openssl req -new -batch -x509 -days 3650 -nodes -newkey rsa:1024 -out cacert.pem -keyout cakey.pem -subj /CN=eur/C=FR/ST=PACA/L=Aix/O=Eurecom/OU=CM
|
$SUDO openssl req -new -batch -x509 -days 3650 -nodes -newkey rsa:1024 -out cacert.pem -keyout cakey.pem -subj /CN=eur/C=FR/ST=PACA/L=Aix/O=Eurecom/OU=CM
|
||||||
|
|
||||||
# generate hss certificate and sign it
|
# generate hss certificate and sign it
|
||||||
$SUDO make_one_cert hss
|
make_one_cert hss
|
||||||
$SUDO make_one_cert mme
|
make_one_cert mme
|
||||||
|
|
||||||
# legacy config is using a certificate named 'user'
|
# legacy config is using a certificate named 'user'
|
||||||
$SUDO make_one_cert user
|
make_one_cert user
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,6 +277,7 @@ make_certs(){
|
|||||||
install_nettle_from_source() {
|
install_nettle_from_source() {
|
||||||
cd /tmp
|
cd /tmp
|
||||||
echo "Downloading nettle archive"
|
echo "Downloading nettle archive"
|
||||||
|
rm -rf /tmp/nettle-2.5.tar.gz* /tmp/nettle-2.5
|
||||||
wget ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-2.5.tar.gz
|
wget ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-2.5.tar.gz
|
||||||
tar -xzf nettle-2.5.tar.gz
|
tar -xzf nettle-2.5.tar.gz
|
||||||
cd nettle-2.5/
|
cd nettle-2.5/
|
||||||
@@ -291,6 +292,7 @@ install_nettle_from_source() {
|
|||||||
install_gnutls_from_source(){
|
install_gnutls_from_source(){
|
||||||
cd /tmp
|
cd /tmp
|
||||||
echo "Downloading gnutls archive"
|
echo "Downloading gnutls archive"
|
||||||
|
rm -rf /tmp/gnutls-3.1.23.tar.xz* /tmp/gnutls-3.1.23
|
||||||
wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-3.1.23.tar.xz
|
wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-3.1.23.tar.xz
|
||||||
tar -xzf gnutls-3.1.23.tar.xz
|
tar -xzf gnutls-3.1.23.tar.xz
|
||||||
cd gnutls-3.1.23/
|
cd gnutls-3.1.23/
|
||||||
@@ -304,8 +306,9 @@ install_gnutls_from_source(){
|
|||||||
install_freediameter_from_source() {
|
install_freediameter_from_source() {
|
||||||
cd /tmp
|
cd /tmp
|
||||||
echo "Downloading freeDiameter archive"
|
echo "Downloading freeDiameter archive"
|
||||||
|
rm -rf /tmp/1.1.5.tar.gz* /tmp/freeDiameter-1.1.5
|
||||||
wget http://www.freediameter.net/hg/freeDiameter/archive/1.1.5.tar.gz
|
wget http://www.freediameter.net/hg/freeDiameter/archive/1.1.5.tar.gz
|
||||||
tar xf 1.1.5.tar.gz
|
tar xzf 1.1.5.tar.gz
|
||||||
cd freeDiameter-1.1.5
|
cd freeDiameter-1.1.5
|
||||||
patch -p1 < $OPENAIRCN_DIR/S6A/freediameter/freediameter-1.1.5.patch
|
patch -p1 < $OPENAIRCN_DIR/S6A/freediameter/freediameter-1.1.5.patch
|
||||||
mkdir build
|
mkdir build
|
||||||
@@ -330,7 +333,7 @@ check_install_usrp_uhd_driver(){
|
|||||||
check_install_oai_software() {
|
check_install_oai_software() {
|
||||||
|
|
||||||
$SUDO apt-get update
|
$SUDO apt-get update
|
||||||
$SUDO apt-get install -y
|
$SUDO apt-get install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bison \
|
bison \
|
||||||
@@ -357,7 +360,6 @@ check_install_oai_software() {
|
|||||||
iptables-dev \
|
iptables-dev \
|
||||||
libatlas-base-dev \
|
libatlas-base-dev \
|
||||||
libatlas-dev \
|
libatlas-dev \
|
||||||
libblas \
|
|
||||||
libblas3gf \
|
libblas3gf \
|
||||||
libblas-dev \
|
libblas-dev \
|
||||||
libboost-all-dev \
|
libboost-all-dev \
|
||||||
@@ -413,8 +415,9 @@ check_install_oai_software() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_asn1c_from_source(){
|
install_asn1c_from_source(){
|
||||||
mkdir /tmp/asn1c-r1516
|
mkdir -p /tmp/asn1c-r1516
|
||||||
cd /tmp/asn1c-r1516
|
cd /tmp/asn1c-r1516
|
||||||
|
rm -rf /tmp/asn1c-r1516/*
|
||||||
svn co https://github.com/vlm/asn1c/trunk /tmp/asn1c-r1516 -r 1516
|
svn co https://github.com/vlm/asn1c/trunk /tmp/asn1c-r1516 -r 1516
|
||||||
patch -p0 < $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1cpatch.p0
|
patch -p0 < $OPENAIRCN_DIR/S1AP/MESSAGES/ASN1/asn1cpatch.p0
|
||||||
./configure
|
./configure
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ do
|
|||||||
echo_info "Will install the config file $CONFIG_FILE"
|
echo_info "Will install the config file $CONFIG_FILE"
|
||||||
shift 2;;
|
shift 2;;
|
||||||
-I | --install-external-packages)
|
-I | --install-external-packages)
|
||||||
INSTALL_EXTERNAL
|
INSTALL_EXTERNAL=1
|
||||||
echo_info "Will install external packages"
|
echo_info "Will install external packages"
|
||||||
shift;;
|
shift;;
|
||||||
-g | --run-with-gdb)
|
-g | --run-with-gdb)
|
||||||
|
|||||||
Reference in New Issue
Block a user