diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2017-08-19 07:16:19 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-26 07:20:29 +0700 |
commit | 61329dad6903953a03efc925072fa8ab0a13cf30 (patch) | |
tree | 38c3ae579c267156871bbdc20febdd25dcc89b88 /network/newsbeuter/newsbeuter.SlackBuild | |
parent | 8ac2bf7fb5b06e9eaa6ce6905accac983b1dbd61 (diff) | |
download | slackbuilds-61329dad6903953a03efc925072fa8ab0a13cf30.tar.gz |
network/newsbeuter: Apply security fix and support current.
Diffstat (limited to 'network/newsbeuter/newsbeuter.SlackBuild')
-rw-r--r-- | network/newsbeuter/newsbeuter.SlackBuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/network/newsbeuter/newsbeuter.SlackBuild b/network/newsbeuter/newsbeuter.SlackBuild index aa3ddf2607..e73f4e2367 100644 --- a/network/newsbeuter/newsbeuter.SlackBuild +++ b/network/newsbeuter/newsbeuter.SlackBuild @@ -7,11 +7,11 @@ PRGNAM=newsbeuter VERSION=${VERSION:-2.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -21,8 +21,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -50,6 +50,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/newsbeuter-2.9-security-fix.patch +patch -p1 < $CWD/newsbeuter-2.9-ncursesw-fix.patch + CXXFLAGS="$SLKCFLAGS" \ make \ prefix=/usr \ |