new nscache port - Netscape cache browser
This commit is contained in:
parent
062983bdbd
commit
ffa6ef5689
25
www/nscache/Makefile
Normal file
25
www/nscache/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# Makefile for: nscache
|
||||
# Version required: 0.2p1
|
||||
# Date created: 14 Dec 1999
|
||||
# Whom: dugsong@openbsd.org
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1999/12/14 17:12:34 dugsong Exp $
|
||||
|
||||
PKGNAME= nscache-0.2p1
|
||||
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= dugsong@monkey.org
|
||||
|
||||
MASTER_SITES= http://www.idata.sk/~ondrej/sw/
|
||||
|
||||
DISTNAME= nscache-0.2pl1
|
||||
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
LIB_DEPENDS= gtk.1.2:${PORTSDIR}/x11/gtk+
|
||||
|
||||
USE_AUTOCONF= yes
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/nscache/files/md5
Normal file
3
www/nscache/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (nscache-0.2pl1.tgz) = b5debcc8ce470be20cef6027f4117b52
|
||||
RMD160 (nscache-0.2pl1.tgz) = abc6274df2db4788bdc3afc333df03f2bebd20a3
|
||||
SHA1 (nscache-0.2pl1.tgz) = 9417f83b86b81efc6c3ce0bc3114a2ebc298f89f
|
11
www/nscache/patches/patch-aa
Normal file
11
www/nscache/patches/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- configure.in.orig Tue Dec 14 04:36:31 1999
|
||||
+++ configure.in Tue Dec 14 04:37:43 1999
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
AC_CHECK_LIB(c, gettext, CFLAGS="$CFLAGS -DHAVE_GETTEXT -DNLS_DIR=\"\\\"\$(prefix)/share/locale\\\"\"";MSUBDIRS="po", AC_CHECK_LIB(intl, gettext, LIBS="$LIBS -lintl";CFLAGS="$CFLAGS -DHAVE_GETTEXT -DNLS_DIR=\"\\\"\$(prefix)/share/locale\\\"\"";MSUBDIRS="po"))
|
||||
|
||||
-AC_CHECK_LIB(db1, dbopen, CFLAGS="$CFLAGS -DHAVE_DBOPEN";LIBS="$LIBS -ldb1", AC_CHECK_LIB(db, dbopen, CFLAGS="$CFLAGS -DHAVE_DBOPEN";LIBS="$LIBS -ldb", AC_MSG_ERROR("Pavuk can\'t work withou clasical Berkeley DB libraries")))
|
||||
+AC_CHECK_LIB(db1, dbopen, CFLAGS="$CFLAGS -DHAVE_DBOPEN";LIBS="$LIBS -ldb1", AC_CHECK_LIB(c, dbopen, CFLAGS="$CFLAGS -DHAVE_DBOPEN";LIBS="$LIBS -lc", AC_MSG_ERROR("Pavuk can\'t work withou clasical Berkeley DB libraries")))
|
||||
|
||||
AC_CHECK_HEADER(db1/db.h, CFLAGS="$CFLAGS -DHAVE_DB1_H", AC_CHECK_HEADER(db.h, CFLAGS="$CFLAGS -DHAVE_DB_H"))
|
||||
|
45
www/nscache/patches/patch-ab
Normal file
45
www/nscache/patches/patch-ab
Normal file
@ -0,0 +1,45 @@
|
||||
--- setup.c.orig Tue Dec 14 04:38:32 1999
|
||||
+++ setup.c Tue Dec 14 04:46:01 1999
|
||||
@@ -2,7 +2,6 @@
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
-#include <getopt.h>
|
||||
|
||||
#include "apassign.h"
|
||||
#include "nls.h"
|
||||
@@ -207,9 +206,9 @@
|
||||
char *prgname;
|
||||
{
|
||||
printf(gettext("Usage: %s [OPTION]\n"), prgname);
|
||||
- printf(gettext(" -f, --db_file=FILENAME set cache file to FILENAME\n"));
|
||||
- printf(gettext(" -v, --version display version information and exit\n"));
|
||||
- printf(gettext(" -h, --help display this help and exit\n"));
|
||||
+ printf(gettext(" -f, set cache file to FILENAME\n"));
|
||||
+ printf(gettext(" -v, display version information and exit\n"));
|
||||
+ printf(gettext(" -h, display this help and exit\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -218,19 +217,9 @@
|
||||
char **argv;
|
||||
{
|
||||
int c;
|
||||
- int index;
|
||||
- struct option options[] =
|
||||
+
|
||||
+ while((c = getopt(argc, argv, "vhf:")) != EOF)
|
||||
{
|
||||
- {"db_file", 1, NULL, 'f'},
|
||||
- {"help", 0, NULL, 'h'},
|
||||
- {"version", 0, NULL, 'v'}
|
||||
- };
|
||||
-
|
||||
- while(1)
|
||||
- {
|
||||
- c = getopt_long(argc, argv, "vhf:", options, &index);
|
||||
- if (c == -1) break;
|
||||
- if (!c) c = options[index].val;
|
||||
switch (c)
|
||||
{
|
||||
case 'v':
|
1
www/nscache/pkg/COMMENT
Normal file
1
www/nscache/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Netscape cache browser
|
22
www/nscache/pkg/DESCR
Normal file
22
www/nscache/pkg/DESCR
Normal file
@ -0,0 +1,22 @@
|
||||
from nscache's README:
|
||||
|
||||
NScache is simple program for viewing and amanging contents of Netscape(tm)
|
||||
browsers cache directory.
|
||||
|
||||
It have very easy user interface writen by using of GTK+1.2 widget libraries.
|
||||
It shows 3 levels tree of cache contents. At first level are protocols, at
|
||||
second level are servers and at third level are regular documents.
|
||||
|
||||
For each document there is shown its URL, name of cache file, its size,
|
||||
MIME type, encoding type, character set for HTML documents, modification
|
||||
time, access time and time when document expires.
|
||||
|
||||
When you press right mouse button inside tree list, you can make any action
|
||||
on selected item. You can save file from cache to other location, you can
|
||||
remove files and entries from chache (one or all entries for server), or you
|
||||
can compute numbers of documents in subtrees and size of all documets in
|
||||
subtree. You can launch any viewer command on cache file or on source URL.
|
||||
The viewers you can assign to any MIME type. You can also copy selected URL
|
||||
to clipboard.
|
||||
|
||||
-d.
|
1
www/nscache/pkg/PLIST
Normal file
1
www/nscache/pkg/PLIST
Normal file
@ -0,0 +1 @@
|
||||
bin/nscache
|
Loading…
Reference in New Issue
Block a user