diff --git a/net/ifdepd/Makefile b/net/ifdepd/Makefile index 9a431f215dc9..e86d794685cf 100644 --- a/net/ifdepd/Makefile +++ b/net/ifdepd/Makefile @@ -1,20 +1,21 @@ # Created by: Alexander Hausner PORTNAME= ifdepd PORTVERSION= 20110412 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://alex.bmg.gv.at/programs/ MAINTAINER= alex@hugo.bmg.gv.at COMMENT= Interface Dependency daemon USE_RC_SUBR= ${PORTNAME} PLIST_FILES= bin/ifdepd \ man/man8/ifdepd.8.gz do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ifdepd ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/ifdepd.8 ${STAGEDIR}${PREFIX}/man/man8 .include diff --git a/net/ifdepd/files/patch-ifdepd.c b/net/ifdepd/files/patch-ifdepd.c new file mode 100644 index 000000000000..f6836dabd96a --- /dev/null +++ b/net/ifdepd/files/patch-ifdepd.c @@ -0,0 +1,44 @@ +--- ifdepd.c.orig 2011-04-12 13:24:48 UTC ++++ ifdepd.c +@@ -188,7 +188,7 @@ void int_down(int_name if_name) { + } + } + +-inline void cleanup() { ++static inline void cleanup() { + if (s_opt != NULL) + free(s_opt); + if (d_opt != NULL) +@@ -204,7 +204,7 @@ void usage(const char *progname) { + progname); + } + +-inline int del_count(const char *s, const char d) { ++static inline int del_count(const char *s, const char d) { + int cnt=0, a; + for (a=0; s[a] != '\0'; a++) + if (s[a] == d) +@@ -415,9 +415,10 @@ int main(int argc, char *argv[]) { + if (!ints_exists(s_ints, s_cnt)) { + free(s_opt); + free(s_ints); +- if (D) ++ if (D) { + free(d_opt); + free(d_ints); ++ } + exit(1); + } + break; +@@ -429,9 +430,10 @@ int main(int argc, char *argv[]) { + if (!ints_exists(d_ints, d_cnt)) { + free(d_opt); + free(d_ints); +- if (S) ++ if (S) { + free(s_opt); + free(s_ints); ++ } + exit(1); + } + break;