aboutsummaryrefslogtreecommitdiffstats
path: root/www/wget4web
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-03-12 00:01:54 +0800
committersem <sem@FreeBSD.org>2005-03-12 00:01:54 +0800
commit44d2906dfc300b14b45219f9d6c1309bc0ba0e72 (patch)
treeefe57ab2c49a6762857e1539031f1e33a82c15ba /www/wget4web
parent4038c9e2ef113118f73d58dc6df21a77befd052d (diff)
downloadfreebsd-ports-gnome-44d2906dfc300b14b45219f9d6c1309bc0ba0e72.tar.gz
freebsd-ports-gnome-44d2906dfc300b14b45219f9d6c1309bc0ba0e72.tar.zst
freebsd-ports-gnome-44d2906dfc300b14b45219f9d6c1309bc0ba0e72.zip
New port: wget4web - wget interface for web.
PR: ports/77020 Submitted by: Roman Y. Bogdanov <sam@brj.pp.ru>
Diffstat (limited to 'www/wget4web')
-rw-r--r--www/wget4web/Makefile48
-rw-r--r--www/wget4web/distinfo2
-rw-r--r--www/wget4web/files/patch-data-info.cgi17
-rw-r--r--www/wget4web/pkg-descr12
-rw-r--r--www/wget4web/pkg-plist14
5 files changed, 93 insertions, 0 deletions
diff --git a/www/wget4web/Makefile b/www/wget4web/Makefile
new file mode 100644
index 000000000000..d46106387e04
--- /dev/null
+++ b/www/wget4web/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: wget4web
+# Date created: Feb 02, 2005
+# Whom: Roman Y. Bogdanov <sam@brj.pp.ru>
+#
+# $FreeBSD$
+
+PORTNAME= wget4web
+PORTVERSION= 1.0
+CATEGORIES= www ftp
+MASTER_SITES= http://irodov.nm.ru/wget4web/
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= sam@brj.pp.ru
+COMMENT= WWW interface for console wget
+
+USE_APACHE= yes
+RUN_DEPENDS= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+# These are tunable
+WEBOWN?= www
+WEBGRP?= www
+LOGSDIR?= /var/log/wget4web
+TASKDIR?= /var/spool/wget4web
+FILESDIR?= /var/spool/wget4web/files
+APACHEDIR?= ${PREFIX}/www/data
+
+INSTALLDIR= ${APACHEDIR}/wget4web
+NO_BUILD= yes
+USE_REINPLACE= yes
+
+PLIST_SUB= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,} \
+ LOGSDIR=${LOGSDIR} TASKDIR=${TASKDIR} FILESDIR=${FILESDIR}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s#%%LOGSDIR%%#${LOGSDIR}#; \
+ s#%%TASKDIR%%#${TASKDIR}#; \
+ s#%%FILESDIR%%#${FILESDIR}#" \
+ ${WRKSRC}/data/info.cgi
+
+do-install:
+ @${MKDIR} ${INSTALLDIR}; \
+ cd ${WRKSRC}; ${FIND} . -name "*.cgi" -o -name "*.lib" \
+ | ${CPIO} -pdm -R ${WEBOWN}:${WEBGRP} ${INSTALLDIR}; \
+ ${MKDIR} -p ${LOGSDIR} ${TASKDIR} ${FILESDIR}; \
+ ${CHOWN} ${WEBOWN}:${WEBGRP} ${LOGSDIR} ${TASKDIR} ${FILESDIR}
+
+.include <bsd.port.mk>
diff --git a/www/wget4web/distinfo b/www/wget4web/distinfo
new file mode 100644
index 000000000000..5e9e5632806b
--- /dev/null
+++ b/www/wget4web/distinfo
@@ -0,0 +1,2 @@
+MD5 (wget4web-1.0.tar.gz) = c3f52ca93b8ee31ab61ef222ade8ca46
+SIZE (wget4web-1.0.tar.gz) = 13605
diff --git a/www/wget4web/files/patch-data-info.cgi b/www/wget4web/files/patch-data-info.cgi
new file mode 100644
index 000000000000..bb78179c2714
--- /dev/null
+++ b/www/wget4web/files/patch-data-info.cgi
@@ -0,0 +1,17 @@
+--- data/info.cgi.orig Fri Mar 11 18:29:17 2005
++++ data/info.cgi Fri Mar 11 18:30:05 2005
+@@ -1,11 +1,11 @@
+ # Directory for Wget logs
+-$logsdir = "/home/download/logs";
++$logsdir = "%%LOGSDIR%%";
+
+ # Directory for tasks for wget
+-$tasksdir = "/home/download/tasks";
++$tasksdir = "%%TASKDIR%%";
+
+ # There save downloading files
+-$filesdir = "/home/download/files";
++$filesdir = "%%FILESDIR%%";
+
+ # Perion of refresh statistic page (in second)
+ $refreshstat = 30;
diff --git a/www/wget4web/pkg-descr b/www/wget4web/pkg-descr
new file mode 100644
index 000000000000..c02efb947091
--- /dev/null
+++ b/www/wget4web/pkg-descr
@@ -0,0 +1,12 @@
+Wget4web allows to add downloads to server, to view information
+about download status and to control it in browser. The program's
+interface is look like interfaces of ReGet and Downloader for X,
+what allow to control download of many files without review Wget
+logs (but if you want to do it, you may watch them in browser window).
+Wget4web writes logs and can generate reports including name and size
+of downloaded files. You can control traffic which was got by each
+user. Users can download files without using shell (Wget4web
+use own user list) what decrease possibility of undesirable
+server usage.
+
+WWW: http://irodov.nm.ru/wget4web/
diff --git a/www/wget4web/pkg-plist b/www/wget4web/pkg-plist
new file mode 100644
index 000000000000..286d0692e68a
--- /dev/null
+++ b/www/wget4web/pkg-plist
@@ -0,0 +1,14 @@
+%%INSTALLDIR%%/add.cgi
+%%INSTALLDIR%%/admin.lib
+%%INSTALLDIR%%/admincenter.cgi
+%%INSTALLDIR%%/admindel.cgi
+%%INSTALLDIR%%/adminfiles.cgi
+%%INSTALLDIR%%/data/info.cgi
+%%INSTALLDIR%%/data/users.cgi
+%%INSTALLDIR%%/progress.cgi
+%%INSTALLDIR%%/showlog.cgi
+@dirrm %%INSTALLDIR%%/data
+@dirrm %%INSTALLDIR%%
+@unexec rmdir %%LOGSDIR%% 2> /dev/null | true
+@unexec rmdir %%FILESDIR%% 2> /dev/null | true
+@unexec rmdir %%TASKDIR%% 2> /dev/null | true