1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

New port: wget4web - wget interface for web.

PR:		ports/77020
Submitted by:	Roman Y. Bogdanov <sam@brj.pp.ru>
This commit is contained in:
Sergey Matveychuk 2005-03-11 16:01:54 +00:00
parent 26fa54f08c
commit 3f04934404
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130898
6 changed files with 94 additions and 0 deletions

View File

@ -739,6 +739,7 @@
SUBDIR += webstats
SUBDIR += webstone
SUBDIR += webstone-ssl
SUBDIR += wget4web
SUBDIR += wiliki
SUBDIR += winhelpcgi
SUBDIR += wml

48
www/wget4web/Makefile Normal file
View File

@ -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>

2
www/wget4web/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (wget4web-1.0.tar.gz) = c3f52ca93b8ee31ab61ef222ade8ca46
SIZE (wget4web-1.0.tar.gz) = 13605

View File

@ -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;

12
www/wget4web/pkg-descr Normal file
View File

@ -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/

14
www/wget4web/pkg-plist Normal file
View File

@ -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