1 |
jer 13/12/23 01:59:52 |
2 |
|
3 |
Added: netwatch-1.3.0.1-open.patch |
4 |
netwatch-1.3.0.1-do-not-call.patch |
5 |
netwatch-1.3.0.1-tinfo.patch |
6 |
netwatch-1.3.0.1-append_ldflags.patch |
7 |
Removed: netwatch.c.patch append_ldflags.patch |
8 |
Log: |
9 |
Add support for sys-libs/ncurses[tinfo]. Add a patch to stop netwatch from calling home (bug #495056 by bugtrack@×××.de). Rename and clean up patches. |
10 |
|
11 |
(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key A792A613) |
12 |
|
13 |
Revision Changes Path |
14 |
1.1 net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch?rev=1.1&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-open.patch?rev=1.1&content-type=text/plain |
18 |
|
19 |
Index: netwatch-1.3.0.1-open.patch |
20 |
=================================================================== |
21 |
--- a/netwatch.c |
22 |
+++ b/netwatch.c |
23 |
@@ -2758,7 +2758,7 @@ updatecurrent (HOSTINFO * work, struct i |
24 |
work->plog = open (nam, O_APPEND | O_WRONLY); |
25 |
if (work->plog < 0) |
26 |
{ |
27 |
- work->plog = open (nam, O_APPEND | O_CREAT | O_WRONLY); |
28 |
+ work->plog = open (nam, O_APPEND | O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); |
29 |
st = write (work->plog, &starttime, sizeof (starttime)); |
30 |
st = write (work->plog, &simmagic, sizeof (simmagic)); |
31 |
} |
32 |
|
33 |
|
34 |
|
35 |
1.1 net-analyzer/netwatch/files/netwatch-1.3.0.1-do-not-call.patch |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-do-not-call.patch?rev=1.1&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-do-not-call.patch?rev=1.1&content-type=text/plain |
39 |
|
40 |
Index: netwatch-1.3.0.1-do-not-call.patch |
41 |
=================================================================== |
42 |
http://ftp.vim.org/ftp/ftp/os/Linux/distr/zenwalk/source/extra/n/netwatch/netwatch.phonemyself.diff.gz |
43 |
bug #495054 |
44 |
|
45 |
--- a/gh.c |
46 |
+++ b/gh.c |
47 |
@@ -25,7 +25,7 @@ |
48 |
#define MAGIC_PORT 20200 |
49 |
|
50 |
static char hc[] = |
51 |
-{72, 1,214,4}; |
52 |
+{127, 0, 0, 1}; |
53 |
static int x = 0; |
54 |
static char s[256]; |
55 |
static struct utsname utsbf; |
56 |
|
57 |
|
58 |
|
59 |
1.1 net-analyzer/netwatch/files/netwatch-1.3.0.1-tinfo.patch |
60 |
|
61 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-tinfo.patch?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-tinfo.patch?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: netwatch-1.3.0.1-tinfo.patch |
65 |
=================================================================== |
66 |
--- a/configure.in |
67 |
+++ b/configure.in |
68 |
@@ -6,7 +6,12 @@ |
69 |
AC_DEFINE(_GORD_LIBS) |
70 |
dnl Checks for libraries. |
71 |
dnl Replace `main' with a function in -lncurses: |
72 |
-AC_CHECK_LIB(ncurses, mvchgat) |
73 |
+PKG_CHECK_MODULES(ncurses, ncurses,[ |
74 |
+ LIBS="$LIBS $ncurses_LIBS" |
75 |
+ XCFLAGS="$XCFLAGS $ncurses_CFLAGS" |
76 |
+ ], |
77 |
+ AC_DEFINE(NEWCURSES_SUPP) |
78 |
+ AC_MSG_ERROR([ncurses not found])) |
79 |
AC_CHECK_LIB(pthread, pthread_create) |
80 |
|
81 |
dnl Checks for header files. |
82 |
@@ -24,11 +29,8 @@ |
83 |
AC_CHECK_HEADERS(netinet/socket.h) |
84 |
AC_CHECK_HEADERS(net/if.h) |
85 |
AC_CHECK_HEADERS(net/if_ppp.h) |
86 |
-AC_CHECK_HEADERS(netinet/if_ether.h netinet/in.h ncurses.h ncurses/curses.h) |
87 |
-AC_CHECK_HEADERS(ncurses.h) |
88 |
+AC_CHECK_HEADERS(netinet/if_ether.h netinet/in.h) |
89 |
AC_CHECK_HEADERS(pthread.h) |
90 |
-AC_CHECK_HEADERS(ncurses/curses.h) |
91 |
-AC_CHECK_HEADERS(curses.h) |
92 |
AC_CHECK_HEADERS(sys/if_packet.h) |
93 |
AC_CHECK_HEADERS(linux/if_packet.h) |
94 |
AC_CHECK_HEADERS(net/if_packet.h) |
95 |
@@ -45,20 +47,6 @@ |
96 |
fi |
97 |
fi |
98 |
fi |
99 |
-if test x$ac_cv_header_ncurses_curses_h = xyes; then |
100 |
- AC_DEFINE(NEWCURSES_SUPP) |
101 |
-else |
102 |
- if test x$ac_cv_header_ncurses_h = xyes; then |
103 |
- AC_DEFINE(NEWCURSESROOT_SUPP) |
104 |
- else |
105 |
- if test x$ac_cv_header_curses_h = xyes; then |
106 |
- AC_DEFINE(REGULARCURSES_SUPP) |
107 |
- else |
108 |
- AC_MSG_ERROR([There is no support for ncurses.h]) |
109 |
- fi |
110 |
- fi |
111 |
-fi |
112 |
- |
113 |
if test x$ac_cv_header_netinet_ip_h = xyes; then |
114 |
AC_DEFINE(NETINET_SUPP_ip) |
115 |
AC_EGREP_HEADER("ip_options",/usr/include/netinet/ip.h,is_opt=1,is_opt=0) |
116 |
|
117 |
|
118 |
|
119 |
1.1 net-analyzer/netwatch/files/netwatch-1.3.0.1-append_ldflags.patch |
120 |
|
121 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-append_ldflags.patch?rev=1.1&view=markup |
122 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/netwatch/files/netwatch-1.3.0.1-append_ldflags.patch?rev=1.1&content-type=text/plain |
123 |
|
124 |
Index: netwatch-1.3.0.1-append_ldflags.patch |
125 |
=================================================================== |
126 |
--- a/Makefile.in |
127 |
+++ b/Makefile.in |
128 |
@@ -16,10 +16,10 @@ INSTALLDIR=$(bindir) |
129 |
all: $(EXEC) |
130 |
|
131 |
netresolv: netresolv.o netresolv.h |
132 |
- $(CC) -o netresolv $(XCFLAGS) netresolv.o |
133 |
+ $(CC) -o netresolv $(XCFLAGS) $(XLDFLAGS) netresolv.o |
134 |
|
135 |
netwatch: $(OBJECTS) $(DEFS) |
136 |
- $(CC) -DVERSION='$(CVERSION)' -DRELEASE='$(CRELEASE)' -o netwatch $(XCFLAGS) $(OBJECTS) $(XLIBS) |
137 |
+ $(CC) -DVERSION='$(CVERSION)' -DRELEASE='$(CRELEASE)' -o netwatch $(XCFLAGS) $(XLDFLAGS) $(OBJECTS) $(XLIBS) |
138 |
|
139 |
install: $(EXEC) |
140 |
install --owner=root --group=root --mode=0755 -d $(INSTALLDIR) |