IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=4.6.0 PROGNAME="Midnight Commander $VERSION" DESC="\ mc (Midnight Commander file manager) \n\ \n\ The Midnight Commander is a Norton Commander clone, a program that \n\ manipulates and manages files and directories. Useful, fast, and has \n\ color displays on the Linux console. Mouse support is provided \n\ through the gpm mouse server. This is a lightweight compilation of \n\ mc for use on the text console or in an xterm. \n\ \n\ mc was written by Miguel de Icaza and Mauricio Plaza." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.ibiblio.org/pub/Linux/utils/file/managers/mc/ PKGNAME=mc-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/mc-$VERSION.tar.bz2 cd mc-$VERSION/ chown -R root.root . find . -perm 664 | xargs chmod 644 find . -perm 777 | xargs chmod 755 find . -perm 775 | xargs chmod 755 # Using --with-included-slang seems to be the magic incantation that builds # a clean, small mc like days of yore # Pat builds mc with "--with-gpm-mouse=/usr", but that results in segfaults on # Linux/390 in the libgpm.so library. So, we build it without gpm. It is not # likely that anyone running Linux/390 is going to miss the support. CFLAGS=-O2 ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-charset \ --without-gpm-mouse \ --with-ext2undel \ --with-x=no \ --with-vfs \ --with-screen=mcslang \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux # Removed due to bug reports. Does anyone use this feature? # Will it be missed? complain to: volkerdi@slackware.com # --with-samba make } install() { make install DESTDIR=/package-mc mkdir -p /package-mc/etc/profile.d cp -a /package-mc/usr/share/mc/bin/mc.csh /package-mc/usr/share/mc/bin/mc.sh \ /package-mc/etc/profile.d/ mkdir -p /package-mc/usr/doc/mc-$VERSION cp -a ABOUT-NLS AUTHORS COPYING FAQ INSTALL* MAINTAINERS NEWS README* \ /package-mc/usr/doc/mc-$VERSION ( cd /package-mc/usr/man/ for dir in man1 es/man1 hu/man1 it/man1 pl/man1 ru/man1; do ( cd $dir rm -f *.gz gzip -9 *.1 ) done ) } attributes() { chown root.bin $PKG/package-mc/usr/sbin/ } special() { cd $PKG mv package-mc/* ./ rmdir package-mc chown -R root.bin usr/bin chmod +x etc/profile.d/mc.sh cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-mc/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }