build_screen() { HERE=`pwd` BUILDDEPS="compiletc.tcz" #DEPS= . ./ncurses-sc.inc || exit 1 mkdir -p "$PKGPATH"/var/run/screen chmod 777 "$PKGPATH"/var/run/screen for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi tar xvf screen-4.0.3.tar.gz || exit 1 cd screen-4.0.3 || exit 1 patch -p0 < ../wrp_vertical_split_0.3_4.0.2.diff || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin --with-socket-dir=/apps/screen/var/run/screen \ --with-pty-group=4 --with-sys-screenrc=/etc/screenrc || exit 1 make || exit 1 make install || exit 1 [ -d /apps/screen/etc ] || mkdir -p /apps/screen/etc install -m 644 etc/etcscreenrc "$PKGPATH"/etc/screenrc mv "$PKGPATH"/bin/screen-4.0.3 "$PKGPATH"/localbin/ chown tc:staff "$PKGPATH"/localbin/screen-4.0.3 cd "$HERE" touch "$TMPDIR"/screen }