aboutsummaryrefslogtreecommitdiff
path: root/security/krb5-17
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2006-07-16 17:49:46 +0000
committerCy Schubert <cy@FreeBSD.org>2006-07-16 17:49:46 +0000
commitb6bd33935129cf23c599c969d81427c0d573e8ab (patch)
tree534c4006b64df680ac707c1254cfc78cae2ec321 /security/krb5-17
parenta0a040a95c680ee581d332ae847147560c4975a3 (diff)
downloadports-b6bd33935129cf23c599c969d81427c0d573e8ab.tar.gz
ports-b6bd33935129cf23c599c969d81427c0d573e8ab.zip
Notes
Diffstat (limited to 'security/krb5-17')
-rw-r--r--security/krb5-17/Makefile1
-rw-r--r--security/krb5-17/files/patch-lib-krb5-os-localaddr.c75
2 files changed, 76 insertions, 0 deletions
diff --git a/security/krb5-17/Makefile b/security/krb5-17/Makefile
index 7f5491440310..795c2fcd2e1e 100644
--- a/security/krb5-17/Makefile
+++ b/security/krb5-17/Makefile
@@ -7,6 +7,7 @@
PORTNAME= krb5
PORTVERSION= 1.5
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-signed
diff --git a/security/krb5-17/files/patch-lib-krb5-os-localaddr.c b/security/krb5-17/files/patch-lib-krb5-os-localaddr.c
new file mode 100644
index 000000000000..9e701ba97985
--- /dev/null
+++ b/security/krb5-17/files/patch-lib-krb5-os-localaddr.c
@@ -0,0 +1,75 @@
+--- lib/krb5/os/localaddr.c.orig Wed Apr 13 09:55:43 2005
++++ lib/krb5/os/localaddr.c Sun Jul 16 09:29:05 2006
+@@ -436,12 +436,14 @@
+ #endif
+ if ((ifp->ifa_flags & IFF_UP) == 0)
+ continue;
++#if 0
+ if (ifp->ifa_flags & IFF_LOOPBACK) {
+ /* Pretend it's not up, so the second pass will skip
+ it. */
+ ifp->ifa_flags &= ~IFF_UP;
+ continue;
+ }
++#endif
+ if (ifp->ifa_addr == NULL) {
+ /* Can't use an interface without an address. Linux
+ apparently does this sometimes. [RT ticket 1770 from
+@@ -459,8 +461,10 @@
+ for (ifp2 = ifp_head; ifp2 && ifp2 != ifp; ifp2 = ifp2->ifa_next) {
+ if ((ifp2->ifa_flags & IFF_UP) == 0)
+ continue;
++#if 0
+ if (ifp2->ifa_flags & IFF_LOOPBACK)
+ continue;
++#endif
+ if (addr_eq (ifp->ifa_addr, ifp2->ifa_addr)) {
+ match = 1;
+ ifp->ifa_flags &= ~IFF_UP;
+@@ -583,6 +587,7 @@
+ }
+ /*@=moduncon@*/
+
++#if 0
+ #ifdef IFF_LOOPBACK
+ /* None of the current callers want loopback addresses. */
+ if (lifreq.lifr_flags & IFF_LOOPBACK) {
+@@ -590,6 +595,7 @@
+ goto skip;
+ }
+ #endif
++#endif
+ /* Ignore interfaces that are down. */
+ if ((lifreq.lifr_flags & IFF_UP) == 0) {
+ Tprintf ((" down\n"));
+@@ -755,6 +761,7 @@
+ }
+ /*@=moduncon@*/
+
++#if 0
+ #ifdef IFF_LOOPBACK
+ /* None of the current callers want loopback addresses. */
+ if (lifreq.iflr_flags & IFF_LOOPBACK) {
+@@ -762,6 +769,7 @@
+ goto skip;
+ }
+ #endif
++#endif
+ /* Ignore interfaces that are down. */
+ if ((lifreq.iflr_flags & IFF_UP) == 0) {
+ Tprintf ((" down\n"));
+@@ -971,12 +979,14 @@
+ }
+ /*@=moduncon@*/
+
++#if 0
+ #ifdef IFF_LOOPBACK
+ /* None of the current callers want loopback addresses. */
+ if (ifreq.ifr_flags & IFF_LOOPBACK) {
+ Tprintf ((" loopback\n"));
+ goto skip;
+ }
++#endif
+ #endif
+ /* Ignore interfaces that are down. */
+ if ((ifreq.ifr_flags & IFF_UP) == 0) {