From 10eaded8f7e18b66b7cd17a9f0cef583f4ea84f6 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Fri, 25 Feb 2022 13:08:43 +0000 Subject: [PATCH] network/quagga: Add autoreconf + -fcommon. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- network/quagga/quagga.SlackBuild | 5 +++-- network/quagga/vtysh_user.c.diff | 7 +++++++ network/quagga/vtysh_user.c.diff.gz | Bin 264 -> 0 bytes 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 network/quagga/vtysh_user.c.diff delete mode 100644 network/quagga/vtysh_user.c.diff.gz diff --git a/network/quagga/quagga.SlackBuild b/network/quagga/quagga.SlackBuild index 1053596a2d..d67f88e61a 100644 --- a/network/quagga/quagga.SlackBuild +++ b/network/quagga/quagga.SlackBuild @@ -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 \ diff --git a/network/quagga/vtysh_user.c.diff b/network/quagga/vtysh_user.c.diff new file mode 100644 index 0000000000..7dfad30861 --- /dev/null +++ b/network/quagga/vtysh_user.c.diff @@ -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); */ diff --git a/network/quagga/vtysh_user.c.diff.gz b/network/quagga/vtysh_user.c.diff.gz deleted file mode 100644 index 4bdc3d84552f4898e8c4591b0000b99c6c458871..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 264 zcmV+j0r&nNiwFn|1Po0819o(Ib7)_6b7gWaV=iQAW@Z3wjzLSqKoEt`=2tueLXyqy zPEuPmrBDeTEkf}ogk`f$f|}H1qxkRLr3#|H!@$hE_sww5F+A7u&3;VnsaEr3Mxn(p zcFkE%wBlLDX#vWL<)T<#3HlZoWkdmE483{(hw(dpT~PifzTJYaD9yoKy@YE|h@*Nz zq=$a8(5)JgcxD{HYcv)cI7g*s+nU~XT3Lh0P1+O`uLA~j2Sna@zQO&?UA2EG%iH}v z_AB5xcD+4B;cl?_$*2X&*61flW3_ZVQOnm^HH{LFedxe0E0eD{qR=0>sNE{{PsM8_ OGWZ0$-3Ibi0RR9u4}R?c