IGNOREPATH=/boot:/cdrom:/dev:/home:/mnt:/proc:/root:/tmp:/usr/src:/var/ax25:/var/log:/var/spool/cron

STRIPLIB=y
STRIPBIN=y

VERSION=0.0.6
PROGNAME="ax25_apps"
DESC="AX.25 applications $VERSION \n\
 \n\
These are the essential applications for use with AX.25 \n\
packet radio. \n\
Requires libax25 to be installed. \n\
The configuration files are included, but this packages \n\
will not overwrite any existing config files."

ARCH=i486
BUILD=3
MAINTAINER="Arno Verhoeven <pe1icq@sharon.esrac.ele.tue.nl>"
SOURCE="http://prdownloads.sourceforge.net/ax25/"
LOCATION="http://sharon.esrac.ele.tue.nl/pub/slackware/slackware-current/extra/ham/"

# package name
PKGNAME=ax25_apps-$VERSION-$ARCH-$BUILD

compile() {
   cd $TMP
   tar zxvf $CWD/ax25-apps-$VERSION.tar.gz
   cd ax25-apps-$VERSION
   ./configure --prefix=/usr --datadir=/usr --sysconfdir=/etc --localstatedir=/var
   make
}

install() {
   cd $TMP/ax25-apps-$VERSION
   make install
   make installconf
   /usr/bin/install -g root -o root -m 1777 -d /var/spool/ax25
   mkdir -p /usr/doc/ax25-apps
   cp AUTHORS ChangeLog INSTALL NEWS README /usr/doc/ax25-apps
}

attributes() {
   chmod 1777 $PKG/var/spool/ax25
}

special() {
   # Generate a slack-desc file

   # output the package name first
   for a in 1 2 3 4 5 6 7 8 9 10 11
   do
      echo "$PROGNAME:" >> $TMP/leftside
   done

   # now place the description in a file
   echo -e "$DESC" > $TMP/rightside

   # combine the two
   paste -d ' ' $TMP/leftside $TMP/rightside > $CTL/slack-desc
   rm -rf $TMP/leftside $TMP/rightside
}
                                                                                                  
subpacks() {
   echo "no sub-packages..."
}
      
