Ticket #9439: bla

File bla, 4.2 KB (added by pipping@…, 17 years ago)

here's a patch for 1.4 - some stuff is still missing (CPP-/LDFLAGS for -lcrypt e.g.)

Line 
1Index: files/patch-Makefile.in
2===================================================================
3--- files/patch-Makefile.in     (revision 22968)
4+++ files/patch-Makefile.in     (working copy)
5@@ -1,39 +1,35 @@
6---- Makefile.in.orig   Sat Dec 18 14:08:43 2004
7-+++ Makefile.in        Sat Dec 18 14:12:10 2004
8-@@ -9,7 +9,7 @@
9- bindir=               @bindir@
10+--- Makefile.in.2      2007-03-22 02:40:10.000000000 +0100
11++++ Makefile.in        2007-03-22 02:47:19.000000000 +0100
12+@@ -20,7 +20,11 @@
13 
14- html_dir=     @html_dir@
15--script_dir=   ${prefix}/shelltests
16-+script_dir=   @script_dir@
17+ TARGETS=      nefu
18 
19- SRC=          main.c parse.c token.c machine.c ll.c test.c report.c \
20-               order.c depmap.c schedule.c time.c ttable.c monitor.c \
21-@@ -48,21 +48,21 @@
22-               -c main.c
23+-CREATE_DIRS=  ${bindir} ${html_dir} ${script_dir}
24++CREATE_DIRS_OLD=${bindir} ${html_dir} ${script_dir}
25++CREATE_DIRS= 
26++for i in ${CREATE_DIRS_OLD}; do \
27++      CREATE_DIRS=${CREATE_DIRS} $(DESTDIR)$$i; \
28++done
29+ MAN1TARGETS=  nefu.1
30+ MAN4TARGETS=  nefu.conf.4
31 
32- install : all FRC
33--      -mkdir -p ${bindir}
34--      -mkdir -p ${script_dir}
35--      -mkdir -p ${html_dir}
36+@@ -46,17 +50,17 @@
37+       for i in ${CREATE_DIRS}; do \
38+           mkdir -p $$i; \
39+       done
40 -      ${INSTALL} -m 0444 -c small_nefu_logo.png ${html_dir}
41-+      -mkdir -p $(DESTDIR)${bindir}
42-+      -mkdir -p $(DESTDIR)${script_dir}
43-+      -mkdir -p $(DESTDIR)${html_dir}
44 +      ${INSTALL} -m 0444 -c small_nefu_logo.png $(DESTDIR)${html_dir}
45        for i in ${TARGETS}; do \
46 -          ${INSTALL} -m 0755 -c $$i ${bindir}/; \
47 +          ${INSTALL} -m 0755 -c $$i $(DESTDIR)${bindir}/; \
48        done
49--      -mkdir -p ${mandir}
50--      -mkdir ${mandir}/man1
51-+      -mkdir -p $(DESTDIR)${mandir}
52+-      -mkdir -p ${mandir}/man1
53 +      -mkdir -p $(DESTDIR)${mandir}/man1
54        for i in ${MAN1TARGETS}; do \
55 -          ${INSTALL} -m 0644 -c $$i ${mandir}/man1/; \
56 +          ${INSTALL} -m 0644 -c $$i $(DESTDIR)${mandir}/man1/; \
57        done
58--      -mkdir ${mandir}/man4
59+-      -mkdir -p ${mandir}/man4
60 +      -mkdir -p $(DESTDIR)${mandir}/man4
61        for i in ${MAN4TARGETS}; do \
62 -          ${INSTALL} -m 0644 -c $$i ${mandir}/man4/; \
63Index: files/patch-configure.ac
64===================================================================
65--- files/patch-configure.ac    (revision 22968)
66+++ files/patch-configure.ac    (working copy)
67@@ -1,21 +0,0 @@
68---- configure.ac       2002/12/09 23:43:15     1.14
69-+++ configure.ac       2003/11/20 18:34:51     1.15
70-@@ -10,7 +10,17 @@
71-
72- # Local Stuff
73- AC_PREFIX_DEFAULT(/usr/local/nefu)
74--AC_SUBST(html_dir, [\${prefix}/public_html])
75-+AC_ARG_WITH(htmldir,
76-+    [  --with-htmldir[=PATH] directory where HTML will be written],
77-+    html_dir=$with_htmldir,
78-+    html_dir=[\${prefix}/public_html])
79-+AC_ARG_WITH(scriptdir,
80-+    [  --with-scriptdir[=PATH] directory where shell tests are stored],
81-+    script_dir=$with_scriptdir,
82-+    script_dir=[\${prefix}/shelltests])
83-+
84-+AC_SUBST(html_dir, [${html_dir}])
85-+AC_SUBST(script_dir, [${script_dir}])
86- AC_ARG_ENABLE(html,
87-       [AC_HELP_STRING([--disable-html],
88-               [do not output html or install html files])],
89Index: Portfile
90===================================================================
91--- Portfile    (revision 22968)
92+++ Portfile    (working copy)
93@@ -2,8 +2,7 @@
94 PortSystem             1.0
95 
96 name                   nefu
97-version                        0.9.7
98-revision               2
99+version                        1.4.0
100 categories             net
101 maintainers            nomaintainer@macports.org
102 description            A network monitoring daemon.
103@@ -14,21 +13,23 @@
104                                        failure.
105 homepage               http://rsug.itd.umich.edu/software/${name}
106 master_sites   ${homepage}/files/
107-checksums              md5 41827023db2d909309a99e4c10619cb4
108+checksums              md5 f0953b21cdb5eb327e40d4b215110b71 \
109+                               sha1 799d5573ab6d30f32cdc36bfee09a04de0f33bf8 \
110+                               rmd160 712b637b3c9126c2a218f5ec0eb74497f7e6ea59
111+extract.suffix  .tgz
112 platforms              darwin
113 
114 depends_build  bin:bison:bison \
115-                               bin:flex:flex
116-depends_lib            lib:libssl.0.9:openssl
117+                               # bin:flex:flex
118+depends_lib            port:openssl
119 
120 patchfiles             patch-Makefile.in \
121-                               patch-aclocal.m4 \
122-                               patch-configure.ac
123+                               patch-aclocal.m4
124 
125 use_autoconf   yes
126 configure.args --mandir='\${prefix}/share/man' \
127-                               --with-htmldir='\${prefix}/share/${name}/public_html' \
128-                               --with-scriptdir='\${prefix}/share/${name}/shelltests'
129+                               --with-html=${prefix}/share/${name}/public_html \
130+                               --with-shelltests=${prefix}/share/${name}/shelltests
131 
132 build.args             DEFS=-DBIND_8_COMPAT
133 post-build {