network/quagga: Add autoreconf + -fcommon.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2022-02-25 13:08:43 +00:00 committed by Willy Sudiarto Raharjo
parent abf12ae35b
commit 10eaded8f7
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 10 additions and 2 deletions

View file

@ -98,7 +98,7 @@ USE_PAM=${USE_PAM:-NO}
if [ "$USE_PAM" == 'YES' ]; then
DO_PAM="--with-libpam"
zcat $CWD/vtysh_user.c.diff.gz | patch -p1
cat $CWD/vtysh_user.c.diff.gz | patch -p1
mkdir -p $PKG/etc/pam.d
cat $CWD/quagga.pam > $PKG/etc/pam.d/quagga
else
@ -106,8 +106,9 @@ else
fi
#./bootstrap.sh
autoreconf -fi
CFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS -fcommon" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \

View file

@ -0,0 +1,7 @@
--- old/vtysh/vtysh_user.c.orig 2006-11-03 01:53:58.000000000 +0100
+++ new/vtysh/vtysh_user.c 2006-11-03 01:59:02.000000000 +0100
@@ -60,2 +60,4 @@ vtysh_pam (const char *user)
ret = pam_authenticate (pamh, 0);
+ if (ret != PAM_SUCCESS)
+ printf("Not authenticated. Check /etc/pam.d/quagga.\n");
/* printf ("ret %d\n", ret); */

Binary file not shown.