diff options
Diffstat (limited to 'network/irda-utils/irda-utils.SlackBuild')
-rw-r--r-- | network/irda-utils/irda-utils.SlackBuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/network/irda-utils/irda-utils.SlackBuild b/network/irda-utils/irda-utils.SlackBuild index d272bcc25d..8df11c56c5 100644 --- a/network/irda-utils/irda-utils.SlackBuild +++ b/network/irda-utils/irda-utils.SlackBuild @@ -42,7 +42,7 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP || exit 1 rm -rf $PRGNAM-$VERSION tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 cd $PRGNAM-$VERSION || exit 1 @@ -53,13 +53,12 @@ chmod -R u+w,go+r-w,a-s . patch -p0 < $CWD/Makefile.irnetd.diff || exit 1 # Patch smcinit's Makefile to link libz -# Otherwise, it fails to build on -current (this still works under with 11.0) patch -p0 < $CWD/Makefile.smcinit.diff || exit 1 # Now that we have declared $SLKCFLAGS, lets use it find . -name Makefile | \ while read i; do - OLDCFLAGS="`grep -m 1 CFLAGS $i`" + OLDCFLAGS="$(grep -m 1 CFLAGS $i)" if [ -n "$OLDCFLAGS" ]; then sed -i "s#\($OLDCFLAGS\)#\1 $SLKCFLAGS#" $i fi @@ -78,11 +77,12 @@ make install ROOT=$PKG MANDIR=$PKG/usr/man || exit 1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION find . -name README | \ while read i; do - install -m 0644 $i $PKG/usr/doc/$PRGNAM-$VERSION/`basename README.$(dirname $i | cut -f2 -d/ -s) .` + install -m 0644 $i $PKG/usr/doc/$PRGNAM-$VERSION/$(basename README.$(dirname $i | cut -f2 -d/ -s) .) done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/etc/rc.d +# Use a BSD-style init script (emphasise is put on "style" ;) ) +mkdir -p $PKG/etc/rc.d && rm -rf $PKG/etc/rc.d/init.d cat $CWD/rc.irda.new > $PKG/etc/rc.d/rc.irda.new mkdir -p $PKG/install |