summaryrefslogtreecommitdiff
path: root/system/pmount/pmount.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/pmount/pmount.SlackBuild')
-rw-r--r--system/pmount/pmount.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/system/pmount/pmount.SlackBuild b/system/pmount/pmount.SlackBuild
index 2dce8b0710..d2233e596f 100644
--- a/system/pmount/pmount.SlackBuild
+++ b/system/pmount/pmount.SlackBuild
@@ -22,11 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by Robby Workman <http://rlworkman.net>
+# Modified by Robby Workman <rworkman@slackbuilds.org>
# No additional license terms added.
PRGNAM=pmount
-VERSION=0.9.17
+VERSION=0.9.19
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,6 +40,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -66,7 +68,7 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
# Give pmount/pumount suid bit.
chown root.plugdev $PKG/usr/bin/pmount $PKG/usr/bin/pumount
@@ -76,8 +78,10 @@ chmod 4750 $PKG/usr/bin/pmount $PKG/usr/bin/pumount
mv $PKG/etc/pmount.allow $PKG/etc/pmount.allow.new
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -86,8 +90,9 @@ mv $PKG/etc/pmount.allow $PKG/etc/pmount.allow.new
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS README* COPYING ChangeLog INSTALL NEWS TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS README* COPYING ChangeLog INSTALL NEWS TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install