diff options
author | Guillermo Bonvehi <gbonvehi@gmail.com> | 2010-05-12 17:45:50 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:45:50 +0200 |
commit | a71ad84af3f9002c19c0caa2295d91b14dbc64d5 (patch) | |
tree | a37e1989d8cb9d6b7617b38a5ffee3807e85b74b /system/pmount/pmount.SlackBuild | |
parent | 3fde92fa42bffef22aee84b95e6aae22e467019e (diff) | |
download | slackbuilds-a71ad84af3f9002c19c0caa2295d91b14dbc64d5.tar.gz |
system/pmount: Updated for version 0.9.19
Diffstat (limited to 'system/pmount/pmount.SlackBuild')
-rw-r--r-- | system/pmount/pmount.SlackBuild | 19 |
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 |