Skip to content
Permalink
update-mpfr-402
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 72 lines (56 sloc) 1.25 KB
#!/bin/env beesh
#
# ./tsm-6.3.0.0-0.bee --no-archive-build -c
#
# BEE_VERSION tsm-molgen-1.0-1
SRCURL[0]=""
SRC="/project/admin/tsm"
PATCHURL[0]=""
PREFIX=/usr/local/tsm
PGRP=( uncategorized )
BEE_CONFIGURE=none
# EXCLUDE=""
mee_extract() {
:
}
mee_patch() {
:
}
mee_configure() {
:
}
mee_build() {
hostname=`hostname`
for h in void.molgen.mpg.de; do
if [ ${hostname} == $h ]; then
if [ -d ${PREFIX} ]; then
TSMPWD=${SRC}/TSM.PWD
echo "TSM client detected. password-file update"
md5=( `md5sum ${TSMPWD}` );
if [ ! -e ${TSMPWD}.${md5} ]; then
cp -v ${TSMPWD} ${TSMPWD}.${md5}
fi
cp ${TSMPWD} ${PREFIX}/
cp ${SRC}/dsm.sys ${PREFIX}/
dsmc q se # generate/add password to TSM.PWD and /etc/
if [ $? = 0 ]; then
cp ${PREFIX}/TSM.PWD ${SRC}/TSM.PWD
else
echo "dsmc failed."
exit 1
fi
else
echo "need and already installed tsm/dsmc binary"
fi
fi
done
}
mee_install() {
mkdir -pv ${D}${PREFIX}/etc
cp -v ${SRC}/TSM.PWD ${D}${PREFIX}
cp -v ${SRC}/dsm.sys ${D}${PREFIX}
cp -v ${SRC}/dsm.opt ${D}${PREFIX}
mkdir -pv ${D}/var/run/tsm
mkdir -pv ${D}/etc
ln -vs /var/run/tsm/TIVGUID ${D}/etc/TIVGUID
}