mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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:
parent
abf12ae35b
commit
10eaded8f7
3 changed files with 10 additions and 2 deletions
|
@ -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 \
|
||||
|
|
7
network/quagga/vtysh_user.c.diff
Normal file
7
network/quagga/vtysh_user.c.diff
Normal 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.
Loading…
Reference in a new issue