Commits

Rodrigo Bistolfi committed ecb45d4

aircrack-ng: Fix some issues in the SB

This fixes some issues in the original SlackBuild:

* Fix bad version number (illegal character)
* Add sqlite for extra functionality
* Install to /usr instead /usr/local
* Fix missing documentation files
* Fix and complete slack-desc

  • Participants
  • Parent commits b3b2439

Comments (0)

Files changed (1)

File var/vabs/aircrack-ng/src/aircrack-ng.SlackBuild

 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
-MAKEDEPENDS=${MAKEDEPENDS:-"openssl zlib"} #Add deps needed TO BUILD this package here.
+MAKEDEPENDS=${MAKEDEPENDS:-"openssl zlib sqlite"} #Add deps needed TO BUILD this package here.
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
 
 echo "Configuring source..."
 
-make || exit 1
+make sqlite=true || exit 1
 
-make install DESTDIR=$PKG || exit 1
+make install sqlite=true prefix=/usr DESTDIR=$PKG || exit 1
 
 
 #######################################################################
 
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \
-$PKG/usr/doc/$NAME-$VERSION
+cp -a AUTHORS ChangeLog INSTALLING LICENSE LICENSE.OpenSSL README VERSION \
+	$PKG/usr/doc/$NAME-$VERSION
 cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
 
 #----------------------------------------------------------------------
 
 if [ -d $PKG/usr/share/man ];then
-mkdir -p $PKG/usr/man
-mv $PKG/usr/share/man/* $PKG/usr/man
-rm -rf $PKG/usr/share/man
+  mkdir -p $PKG/usr/man
+  mv $PKG/usr/share/man/* $PKG/usr/man
+  rm -rf $PKG/usr/share/man
 fi
 find $PKG/usr/man -type f -exec gzip -9 {} \;
 
-if [ -d $PKG/usr/share/info ];then
-mkdir -p $PKG/usr/info
-mv $PKG/usr/share/info/* $PKG/usr/info
-rm -rf $PKG/usr/share/info
-fi 
-find $PKG/usr/info -type f -exec gzip -9 {} \;
-
 mkdir -p $PKG/install
-if [ -d $PKG/usr/info ];then
-cat >> $PKG/install/doinst.sh << EOF
-CWD=\$(pwd)
-cd usr/info
-if [ -f dir ];then
-    rm dir
-fi
-if [ -f dir.gz ];then
-    rm dir.gz
-fi
-for i in *.info.gz;do
-    install-info \$i dir
-done
-cd \$CWD
-EOF
-fi
-
-# Add schemas install to the doinst.sh if schemas are found.
-if [ -d $PKG/etc/gconf/schemas ];then
-# Make sure we have gconftool installed
-echo "if [ -x usr/bin/gconftool-2 ]; then" >> $PKG/install/doinst.sh
-( cd $PKG/etc/gconf/schemas
-for schema in *.schemas; do
- # Install schemas
- echo "GCONF_CONFIG_SOURCE=\"xml::etc/gconf/gconf.xml.defaults\" \
-   usr/bin/gconftool-2 --makefile-install-rule \
-   etc/gconf/schemas/${schema} >/dev/null 2>&1" \
-   >> $PKG/install/doinst.sh
-done;
-)
-# Finish off gconf block
-echo "fi" >> $PKG/install/doinst.sh
-fi
-
 
 #if there is a slack-desc in src dir use it
 if test -f $CWD/slack-desc; then
-cp $CWD/slack-desc $RELEASEDIR/slack-desc
+  cp $CWD/slack-desc $RELEASEDIR/slack-desc
 else
 # This creates the white space in front of "handy-ruler" in slack-desc below.
 
 # customary to leave one space after the ':'.
 
 $SHIM|-----handy-ruler------------------------------------------------------|
-$NAME: $NAME ()
+$NAME: An 802.11 WEP and WPA-PSK keys cracking program   
 $NAME:
 $NAME: Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program 
 $NAME: that can recover keys once enough data packets have been captured.
 $NAME: 
 $NAME:
 $NAME:
-$NAME:
-$NAME: 
-$NAME
+$NAME: Website: http://www.aircrack-ng.org/
+$NAME: Authors: tdotreppe@aircrack-ng.org
+$NAME: License: GPLv2 / BSD 3 Clause / OpenSSL
 
 EOF
 fi
 echo "Finding dependencies..."
 ADD="$ADDRB" EXCLUDE="$EXRB" requiredbuilder -v -y -s $RELEASEDIR $PKG
 echo "Creating package $NAME-$VERSION-$ARCH-$BUILD.txz"
-makepkg -l y -c n $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.txz
+makepkg -l y -c n $RELEASEDIR/$NAME-$VER-$ARCH-$BUILD.txz
 
 cd $CWD
 echo "Cleaning up temp files..." && rm -rf $TMP