network/roger-router: Specify OUTPUT + LIBDIRSUFFIX variable.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2015-04-05 10:40:45 +07:00
parent 846f7f25c8
commit a4db56a3c9
1 changed files with 8 additions and 10 deletions

View File

@ -24,7 +24,7 @@
PRGNAM=roger-router
VERSION=${VERSION:-1.8.11}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -68,7 +68,7 @@ fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
@ -78,7 +78,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
./autogen.sh
CXXFLAGS="$SLKCFLAGS" \
@ -112,17 +112,15 @@ sed \
-i $PKG/usr/share/roger/install-fax.sh
# content of /usr/share/roger/install-fax.sh
mkdir -p $PKG/var/spool/roger/ $PKG/usr/lib/cups/backend/
mkdir -p $PKG/var/spool/roger/ $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/
chown lp:fax $PKG/var/spool/roger
chmod 2770 $PKG/var/spool/roger/
cp $PKG/usr/share/roger/roger-cups $PKG/usr/lib/cups/backend/
chown root:root $PKG/usr/lib/cups/backend/roger-cups
chmod 0755 $PKG/usr/lib/cups/backend/roger-cups
cp $PKG/usr/share/roger/roger-cups $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/
chown root:root $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/roger-cups
chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/roger-cups
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild