3 changed files with 0 additions and 1395 deletions
@ -1,114 +0,0 @@
|
||||
#!/bin/sh |
||||
# Build GNU screen for Slackware |
||||
# <volkerdi@slackware.com> |
||||
# |
||||
# Modified by Damien Goutte-Gattat <dgouttegattat@incenp.org> |
||||
# to apply the "vertical split" patch by Bill Pursel |
||||
# (http://fungi.yuggoth.org/vsp4s/). |
||||
|
||||
VERSION=${VERSION:-4.0.3} |
||||
ARCH=${ARCH:-i486} |
||||
BUILD=${BUILD:-1} |
||||
|
||||
if [ "$ARCH" = "i386" ]; then |
||||
SLKCFLAGS="-O2 -march=i386 -mcpu=i686" |
||||
elif [ "$ARCH" = "i486" ]; then |
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686" |
||||
elif [ "$ARCH" = "s390" ]; then |
||||
SLKCFLAGS="-O2" |
||||
elif [ "$ARCH" = "x86_64" ]; then |
||||
SLKCFLAGS="-O2" |
||||
fi |
||||
|
||||
CWD=$(pwd) |
||||
TMP=${TMP:-/tmp} |
||||
PKG=$TMP/package-screen |
||||
rm -rf $PKG |
||||
mkdir -p $PKG |
||||
cd $TMP |
||||
rm -rf screen-$VERSION |
||||
tar xjvf $CWD/screen-$VERSION.tar.bz2 |
||||
|
||||
cd screen-$VERSION || exit 1 |
||||
|
||||
chown -R root:root . |
||||
find . -perm 666 -exec chmod 644 {} \; |
||||
find . -perm 664 -exec chmod 644 {} \; |
||||
find . -perm 600 -exec chmod 644 {} \; |
||||
find . -perm 444 -exec chmod 644 {} \; |
||||
find . -perm 400 -exec chmod 644 {} \; |
||||
find . -perm 440 -exec chmod 644 {} \; |
||||
find . -perm 777 -exec chmod 755 {} \; |
||||
find . -perm 775 -exec chmod 755 {} \; |
||||
find . -perm 511 -exec chmod 755 {} \; |
||||
find . -perm 711 -exec chmod 755 {} \; |
||||
find . -perm 555 -exec chmod 755 {} \; |
||||
|
||||
if [ -f $CWD/wrp_vertical_split_0.3_4.0.2.diff ]; then |
||||
cat $CWD/wrp_vertical_split_0.3_4.0.2.diff | patch -p1 |
||||
fi |
||||
|
||||
CFLAGS="$SLKCFLAGS" \ |
||||
./configure --prefix=/usr \ |
||||
--with-sys-screenrc=/etc/screenrc \ |
||||
--with-pty-mode=0620 \ |
||||
--with-pty-group=5 \ |
||||
--enable-telnet \ |
||||
--disable-socket-dir \ |
||||
--enable-locale \ |
||||
--enable-colors256 \ |
||||
--enable-rxvt_osc \ |
||||
$ARCH-slackware-linux |
||||
|
||||
# Substitutions: |
||||
perl -pi -e 's|.*#undef HAVE_BRAILLE.*|#define HAVE_BRAILLE 1|' config.h |
||||
perl -pi -e 's|/usr/local/etc/screenrc|/etc/screenrc|' etc/etcscreenrc doc/* |
||||
perl -pi -e 's|/local/etc/screenrc|/etc/screenrc|' doc/* |
||||
|
||||
# Build screen: |
||||
make || exit 1 |
||||
make install DESTDIR=$PKG || exit 1 |
||||
|
||||
# Prepare package: |
||||
( cd $PKG |
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null |
||||
) |
||||
# Sorry, pal. Not around here. |
||||
chmod 755 $PKG/usr/bin/screen-$VERSION |
||||
mkdir -p $PKG/etc/skel |
||||
cat etc/etcscreenrc > $PKG/etc/screenrc.new |
||||
cat etc/screenrc > $PKG/etc/skel/.screenrc.new |
||||
rm -f $PKG/usr/info/dir |
||||
gzip -9 $PKG/usr/info/* |
||||
gzip -9 $PKG/usr/man/man1/* |
||||
mkdir -p $PKG/usr/doc/screen-$VERSION |
||||
chmod 644 doc/FAQ |
||||
cp -a COPYING ChangeLog INSTALL NEWS README TODO \ |
||||
doc/FAQ doc/README.DOTSCREEN \ |
||||
$PKG/usr/doc/screen-$VERSION |
||||
mkdir -p $PKG/install |
||||
cat $CWD/slack-desc > $PKG/install/slack-desc |
||||
cat << EOF > $PKG/install/doinst.sh |
||||
#!/bin/sh |
||||
config() { |
||||
NEW="\$1" |
||||
OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" |
||||
# If there's no config file by that name, mv it over: |
||||
if [ ! -r \$OLD ]; then |
||||
mv \$NEW \$OLD |
||||
elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then # toss the redundant copy |
||||
rm \$NEW |
||||
fi |
||||
# Otherwise, we leave the .new copy for the admin to consider... |
||||
} |
||||
config etc/screenrc.new |
||||
config etc/skel/.screenrc.new |
||||
# This is probably safer than leaving the hidden .new file... maybe? |
||||
rm -f etc/skel/.screenrc.new |
||||
EOF |
||||
|
||||
# Build package: |
||||
cd $PKG |
||||
makepkg -l y -c n $TMP/screen-$VERSION.vs-$ARCH-$BUILD.tgz |
||||
|
@ -1,19 +0,0 @@
|
||||
# HOW TO EDIT THIS FILE: |
||||
# The "handy ruler" below makes it easier to edit a package description. Line |
||||
# up the first '|' above the ':' following the base package name, and the '|' |
||||
# on the right side marks the last column you can put a character in. You must |
||||
# make exactly 11 lines for the formatting to be correct. It's also |
||||
# customary to leave one space after the ':'. |
||||
|
||||
|-----handy-ruler------------------------------------------------------| |
||||
screen: screen (screen manager with VT100/ANSI terminal emulation) |
||||
screen: |
||||
screen: Screen is a full-screen window manager that multiplexes a physical |
||||
screen: terminal between several processes (typically interactive shells). |
||||
screen: Each virtual terminal provides the functions of a DEC VT100 terminal |
||||
screen: and several control functions from the ISO 6492 (ECMA 48, ANSI X3.64) |
||||
screen: and ISO 2022 standards (e.g. insert/delete line and support for |
||||
screen: multiple character sets). |
||||
screen: |
||||
screen: This package includes Bill Pursell's patch for vertical splitting. |
||||
screen: |
Loading…
Reference in new issue