diff options
-rw-r--r-- | www/srg/Makefile | 11 | ||||
-rw-r--r-- | www/srg/distinfo | 4 | ||||
-rw-r--r-- | www/srg/files/patch-resolver-test-cpp | 35 | ||||
-rw-r--r-- | www/srg/pkg-plist | 11 |
4 files changed, 19 insertions, 42 deletions
diff --git a/www/srg/Makefile b/www/srg/Makefile index da8d288ab982..e28c70003aed 100644 --- a/www/srg/Makefile +++ b/www/srg/Makefile @@ -6,8 +6,7 @@ # PORTNAME= srg -PORTVERSION= 1.0 -PORTREVISION= 1 +PORTVERSION= 1.1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://mirror.crc.net.nz/pub/srg/ @@ -25,12 +24,6 @@ NO_INSTALL_MANPAGES= yes MAKE_ENV= CC="${CC}" CXX="${CXX}" \ CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -PLIST_FILES= bin/srg -.for i in footer.php header.php ip2user.txt srg.conf -PLIST_FILES+= share/examples/srg/${i} -.endfor -PLIST_DIRS= share/examples/srg - post-patch: ${REINPLACE_CMD} -e 's|-g |${CFLAGS} ${CPPFLAGS} |' ${WRKSRC}/Makefile \ ${WRKSRC}/lib/Makefile @@ -38,7 +31,9 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/srg ${PREFIX}/bin +.if !defined(NOPORTDOCS) ${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} +.endif .include <bsd.port.mk> diff --git a/www/srg/distinfo b/www/srg/distinfo index 392d8ea62890..6cfe20957814 100644 --- a/www/srg/distinfo +++ b/www/srg/distinfo @@ -1,2 +1,2 @@ -MD5 (srg-1.0.tar.bz2) = ff9b5d19397500445b1f3ef82d43fbb8 -SIZE (srg-1.0.tar.bz2) = 62434 +MD5 (srg-1.1.tar.bz2) = e4cb56edceabad25d9b9c0270735cfaf +SIZE (srg-1.1.tar.bz2) = 69798 diff --git a/www/srg/files/patch-resolver-test-cpp b/www/srg/files/patch-resolver-test-cpp index c4053d39c2cb..b8714a2c33a1 100644 --- a/www/srg/files/patch-resolver-test-cpp +++ b/www/srg/files/patch-resolver-test-cpp @@ -1,40 +1,11 @@ ---- resolver-test.cpp.orig Mon Jun 7 08:37:17 2004 -+++ resolver-test.cpp Tue Jul 6 16:16:12 2004 -@@ -1,12 +1,15 @@ +--- resolver-test.cpp.orig Thu Oct 28 10:31:59 2004 ++++ resolver-test.cpp Thu Oct 28 10:33:18 2004 +@@ -1,5 +1,7 @@ -#include "resolver.hh" +#include <sys/param.h> -+ #include <assert.h> + +#include "resolver.hh" /* Originally Written by John MacPherson <jrm21@cs.waikato.ac.nz> - */ - - // grrr... stupid intel little endian! --#define dottedquad(a,b,c,d) (a) + (b << 8) + (c << 16) + (d << 24); -+#define dottedquad(a,b,c,d) htonl((d) + (c << 8) + (b << 16) + (a << 24)); - - int main(void) { - -@@ -32,16 +35,16 @@ - } - - /* Use Root Servers because they are unlikey to change IP */ -- i.s_addr = dottedquad(128,9,0,107); -+ i.s_addr = dottedquad(192,228,79,201); - t = r.get_name(i); - if (t) { - if (strcasecmp(t, "b.root-servers.net")!=0) { -- fprintf(stderr, "FAILED: 128.9.0.107 resolves to %s" -+ fprintf(stderr, "FAILED: 192.228.79.201 resolves to %s" - " expected b.root-servers.net please check " - "your resolver!\n", t); - } - } else { -- fprintf(stderr, "FAILED: Unable to resolve 128.9.0.107\n"); -+ fprintf(stderr, "FAILED: Unable to resolve 192.228.79.201\n"); - } - - i.s_addr = dottedquad(192,203,230,10); diff --git a/www/srg/pkg-plist b/www/srg/pkg-plist new file mode 100644 index 000000000000..8fa17b083964 --- /dev/null +++ b/www/srg/pkg-plist @@ -0,0 +1,11 @@ +bin/srg +%%PORTDOCS%%%%EXAMPLESDIR%%/footer.php +%%PORTDOCS%%%%EXAMPLESDIR%%/header.php +%%PORTDOCS%%%%EXAMPLESDIR%%/ip2user.txt +%%PORTDOCS%%%%EXAMPLESDIR%%/srg.conf +%%PORTDOCS%%%%EXAMPLESDIR%%/srg.daily +%%PORTDOCS%%%%EXAMPLESDIR%%/srg.js +%%PORTDOCS%%%%EXAMPLESDIR%%/srg.monthly +%%PORTDOCS%%%%EXAMPLESDIR%%/srg.weekly +%%PORTDOCS%%%%EXAMPLESDIR%%/style.css +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |