IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/mnt:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=1.3.25
PROGNAME="devfsd $VERSION"
DESC="\
devfsd (Device Filesystem Daemon)                                      \n\
                                                                       \n\
This package contains the devfsd daemon, which provides intelligent    \n\
management of device entries in the Device Filesystem (devfs).         \n\
                                                                       \n\
devfs and devfsd are the work of Richard Gooch (rgooch@atnf.csiro.au)."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/
PKGNAME=devfsd-$VERSION-s390-$BUILD
TAG=ADD

compile() {
   tar -zxvf $CWD/devfsd-v$VERSION.tar.gz
   cd devfsd/
   make
}

install() {
   make install PREFIX=/package-devfsd

   mkdir -p /package-devfsd/usr/doc/devfsd-v$VERSION
   ( cd /package-devfsd/usr/doc/devfsd-v$VERSION
     wget http://www.atnf.csiro.au/~rgooch/linux/docs/devfs.html
   )

   mv /package-devfsd/etc/devfsd.conf /package-devfsd/etc/devfsd.conf.new

   rm -rf /package-devfsd/usr/man/man5

   gzip -9f /package-devfsd/usr/man/man8/*.8
}

attributes() {
   chown -R root.bin $PKG/package-devfsd/sbin
}

special() {
   cd $PKG
   mv package-devfsd/* ./
   rmdir package-devfsd

   cd $CTL
   cat $CWD/config.sh >> doinst.sh
   echo config etc/devfsd.conf.new >> doinst.sh

   cat $CWD/slack-desc > slack-desc
}

