diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2011-05-10 11:11:14 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-05-10 11:11:14 -0500 |
commit | b8d4f05bbc0ba1841cd0bcc50da536f66e202d27 (patch) | |
tree | e5d27a13d0f12afa947e26917dbd9eb23f5f52a5 /system/hdapsd/hdapsd.SlackBuild | |
parent | a2ecab12c1ff62b13b456198191d8e315e4e88e3 (diff) | |
download | slackbuilds-b8d4f05bbc0ba1841cd0bcc50da536f66e202d27.tar.gz |
system/hdapsd: Updated for version 20090401.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/hdapsd/hdapsd.SlackBuild')
-rw-r--r-- | system/hdapsd/hdapsd.SlackBuild | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/system/hdapsd/hdapsd.SlackBuild b/system/hdapsd/hdapsd.SlackBuild index c4efbe52c9..34e5e6602e 100644 --- a/system/hdapsd/hdapsd.SlackBuild +++ b/system/hdapsd/hdapsd.SlackBuild @@ -25,18 +25,17 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Modified by Robby Workman <rworkman@slackbuilds.org> +# Updated by Antonio Hernández Blas <hba.nihilismus@gmail.com> for hdapsd-20090401 PRGNAM=hdapsd -VERSION=${VERSION:-20090328} +VERSION=${VERSION:-20090401} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -66,12 +65,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -./autogen.sh +# From hdapsd's git repository: +# http://repo.or.cz/w/hdapsd.git/commitdiff/3a35d05a1a7260de9f3adefdbfb34ed8c9b5f577 +patch -p1 < $CWD/patches/hdapsd-20090401-fix-manpage.patch || exit 1 CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -87,13 +88,10 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man -find . -type f -exec gzip -9 {} \; -for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; # Install a sample config file and init script mkdir -p $PKG/etc/rc.d @@ -102,8 +100,8 @@ cat $CWD/rc.hdapsd > $PKG/etc/rc.d/rc.hdapsd.new chmod 0755 $PKG/etc/rc.d/rc.hdapsd.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -# ChangeLog NEWS README are empty -cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION +# NEWS file is empty. +cp -a AUTHORS COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE find $PKG/usr/doc -type f -exec chmod 644 {} \; |