IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.6.1.1 PROGNAME="GNOME VFS $VERSION" DESC="\ gnome-vfs \n\ \n\ This is the GNOME Virtual File System, currently used as one of the \n\ foundations of the Nautilus file manager. \n\ \n\ Also includes gnome-vfs-extras, which contains SMB and Icecast \n\ support." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnome.org/pub/gnome/sources/gnome-vfs/ PKGNAME=gnome-vfs-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/gnome-vfs-$VERSION.tar.bz2 cd gnome-vfs-$VERSION/ chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --enable-static=no \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux cat $CWD/makefile.diff | patch -p1 --backup --suffix=.orig make } install() { cd $TMP/gnome-vfs-$VERSION/ mkdir -p /package-gnome-vfs/etc/gconf/ make install DESTDIR=/package-gnome-vfs mkdir -p /package-gnome-vfs/usr/doc/gnome-vfs-$VERSION cp -a AUTHORS COPYING COPYING.LIB HACKING NEWS README TODO \ /package-gnome-vfs/usr/doc/gnome-vfs-$VERSION # Fix a stupid security exposure introduced by libtool being brain dead ( cd /package-gnome-vfs/usr/lib/gnome-vfs-2.0/modules/ sed -e 's%-L/tmp/[[:graph:]]*% %g' libsmb.la > libsmb.la.new cat libsmb.la.new > libsmb.la rm libsmb.la.new ) # Remove some empty files that Pat doesn't ship rm /package-gnome-vfs/etc/gconf/gconf.xml.defaults/desktop/%gconf.xml \ /package-gnome-vfs/etc/gconf/gconf.xml.defaults/desktop/gnome/%gconf.xml \ /package-gnome-vfs/etc/gconf/gconf.xml.defaults/desktop/gnome/applications/%gconf.xml \ /package-gnome-vfs/etc/gconf/gconf.xml.defaults/schemas/desktop/%gconf.xml \ /package-gnome-vfs/etc/gconf/gconf.xml.defaults/schemas/desktop/gnome/%gconf.xml \ /package-gnome-vfs/etc/gconf/gconf.xml.defaults/schemas/desktop/gnome/applications/%gconf.xml } attributes() { chown -R root.bin $PKG/package-gnome-vfs/usr/bin find $PKG/package-gnome-vfs/etc/gconf/ -name %gconf.xml | xargs chmod 644 } special() { cd $PKG mv package-gnome-vfs/* ./ rmdir package-gnome-vfs/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-gnome-vfs/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }