MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 14 as of 2013-07-05 00:38:44
  • Readesm

Readesm

This program takes an ESM file(possible file extensions are .esm, .dd, .tgd or .add), downloaded from a digital tachograph or a driver card (used in the European Union for trucks > 3.5 tons), and converts it into human-readable form, either html or simple plaintext.

Project page http://sourceforge.net/projects/readesm/.

Slackbuild

Run commands:

  • APPNAME=readesm
  • SOURCECODE=readesm-2011.12pre1-Source.tar.bz2
  • cd /tmp
  • mkdir $APPNAME
  • cd $APPNAME
  • wget http://heanet.dl.sourceforge.net/project/readesm/readesm/2011-12/readesm-2011.12pre1-Source.tar.bz2

  • touch $APPNAME.SlackBuild

  • touch slack-desc
  • tar -xvif $SOURCECODE || exit 1

  • nano slack-desc #fill slack-desc
  • nano readesm.SlackBuild #fill readesm.SlackBuild

  • chmod 755 $APPNAME.SlackBuild

  • ./$APPNAME.SlackBuild

  • installpkg /tmp/readesm-2011.12pre1Source-i486-1_SBo.tgz

Content of slack-desc

   1 # HOW TO EDIT THIS FILE:
   2 # The "handy ruler" below makes it easier to edit a package description.  Line
   3 # up the first '|' above the ':' following the base package name, and the '|' on
   4 # the right side marks the last column you can put a character in.  You must make
   5 # exactly 11 lines for the formatting to be correct.  It's also customary to
   6 # leave one space after the ':'.
   7 
   8        |-----handy-ruler------------------------------------------------------|
   9 readesm: readesm - Shows the content of digital tachograph files 
  10 readesm: This program takes an ESM file( file extensions are .esm, .dd, 
  11 readesm: .tgd or .add), downloaded from a digital tachograph or a driver card 
  12 readesm: (used in the European Union for trucks > 3.5 tons), and converts it 
  13 readesm: into human-readable form, either html or simple plaintext.
  14 readesm:
  15 readesm: Homepage: http://readesm.sourceforge.net/
  16 readesm: Homepage: http://sourceforge.net/projects/readesm/
  17 readesm:
  18 readesm:
  19 readesm:

Content of readesm.SlackBuild

   1 #!/bin/sh -e
   2 #V.B. revision date 2013/07/04
   3 #Set initial variables: 
   4 CWD=$(pwd)
   5 if [ "$TMP" = "" ]; then
   6   TMP=/tmp
   7 fi
   8 
   9 # The version which appears in the application's filename
  10 VERSION=2011.12pre1-Source
  11 # If the version conflicts with the Slackware package standard
  12 # The dash character ("-") is not allowed in the VERSION string
  13 # You can set the PKG_VERSION to something else than VERSION
  14 # PKG_VERSION cannot have '-' in it since the package name is composed by $APPNAME-$PKG_VERSION-$ARCH-$BUILD.tgz
  15 PKG_VERSION=2011.12pre1Source # the version which appears in the package name. 
  16 ARCH=${ARCH:-i486} # the architecture on which you want to build your package   
  17 # First digit is the build number, which specifies how many times it has been built.    
  18 # Second string is the short form of the authors name, typical three initials:w
  19 BUILD=${BUILD:-1_SBo}
  20 # The application's name
  21 APP=readesm
  22 # The installation directory of the package (where its actual directory
  23 # structure will be created) 
  24 PKG=$TMP/package-$APP
  25 
  26 if [ "$ARCH" = "i486" ]; then
  27   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  28  elif [ "$ARCH" = "x86_64" ]; then
  29   SLKCFLAGS="-O2 -fPIC"
  30 fi
  31 
  32 # Delete the leftover directories if they exist (due to a previous build)
  33 # and (re)create the packaging directory
  34 rm -rf $PKG 
  35 mkdir -p $TMP $PKG
  36 rm -rf $TMP/$APP-$VERSION
  37 
  38 # Change to the TMP directory
  39 cd $TMP || exit 1
  40  
  41 # Extract the application source in TMP
  42 # Note: if your application comes as a tar.bz2, you need tar -jxvf
  43 tar -xvif $CWD/$APP-$VERSION.tar.bz2 || exit 1
  44 
  45 # Change to the application source directory
  46 cd $APP-$VERSION || exit 1
  47  
  48 # Change ownership and permissions if necessary
  49 # This may not be needed in some source tarballs, but it never hurts
  50 chown -R root:root .
  51 chmod -R u+w,go+r-w,a-s .
  52 
  53 # buils Unix makefiles
  54 cmake -G 'Unix Makefiles'
  55 
  56 echo 'Patching some source files as stated in http://sourceforge.net/p/readesm/bugs/2/'
  57 sed -i 's/Block11Record.h/block11Record.h/g' ./fileformat/DataTypes/block11Record.cpp 
  58 sed -i 's/Block11.h/block11.h/g' ./fileformat/VuBlocks/block11.cpp 
  59 sed -i 's/Block11Record.h/block11Record.h/g' ./fileformat/VuBlocks/block11.h 
  60 sed -i 's/Block13.h/block13.h/g' ./fileformat/VuBlocks/block13.cpp 
  61 sed -i 's/Block11Record.h/block11Record.h/g' ./fileformat/VuBlocks/block13.h 
  62 sed -i 's/Block13.h/block13.h/g' ./fileformat/VuBlocks/vuBlockFactory.cpp 
  63 sed -i 's/Block11.h/block11.h/g' ./fileformat/VuBlocks/vuBlockFactory.cpp 
  64 
  65 # clean the source, but exit if anything goes wrong
  66 make clean || exit
  67 
  68 # compile the source, but exit if anything goes wrong
  69 make || exit
  70  
  71 # Install everything into the package directory, but exit if anything goes wrong
  72 make install DESTDIR=$PKG || exit
  73 
  74 # Create a directory for documentation
  75 mkdir -p $PKG/usr/doc/$APP-$VERSION
  76 
  77 # Copy documentation to the docs directory and fix permissions
  78 cp -a COPYING CHANGELOG README $PKG/usr/doc/$APP-$VERSION
  79 find $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \;
  80 # slackbuild copy
  81 cat $CWD/$APP.SlackBuild > $PKG/usr/doc/$APP-$VERSION/$APP.SlackBuild
  82 
  83 echo "Create the ./install directory and copy the slack-desc into it"
  84 mkdir -p $PKG/install
  85 cat $CWD/slack-desc > $PKG/install/slack-desc
  86 
  87 echo "Add doinst.sh to package (if it exists)"
  88 if [ -e $CWD/doinst.sh.gz ]; then
  89   zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
  90 fi
  91 
  92 echo "Compress man pages if they exist"
  93 if [ -d $PKG/usr/man ]; then
  94   ( cd $PKG/usr/man
  95   find . -type f -exec gzip -9 {} \;
  96   for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
  97   ) 
  98 fi
  99 
 100 echo "Compress info pages if they exist (and remove the dir file)"
 101 if [ -d $PKG/usr/info ]; then
 102   gzip -9 $PKG/usr/info/*.info
 103   rm -f $PKG/usr/info/dir
 104 fi
 105 
 106 echo "Build the package"
 107 cd $PKG
 108 /sbin/makepkg -l y -c n $TMP/$APP-$PKG_VERSION-$ARCH-$BUILD.tgz
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01