aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-01-16 22:14:47 +0800
committeredwin <edwin@FreeBSD.org>2003-01-16 22:14:47 +0800
commit71583abc121000f1cd7be2531e8d6ee429f7a0ec (patch)
tree6d9e47ca820334ea8476733634e17f612b6b28e0 /devel
parenta84c81a4bc3904ff1a4a105fe6568dda968efac8 (diff)
downloadfreebsd-ports-graphics-71583abc121000f1cd7be2531e8d6ee429f7a0ec.tar.gz
freebsd-ports-graphics-71583abc121000f1cd7be2531e8d6ee429f7a0ec.tar.zst
freebsd-ports-graphics-71583abc121000f1cd7be2531e8d6ee429f7a0ec.zip
New port devel/whups: a web-based bug tracking system
PR: ports/35520 Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/whups/Makefile66
-rw-r--r--devel/whups/distinfo1
-rw-r--r--devel/whups/files/httpd.conf.whups31
-rw-r--r--devel/whups/files/patch-config_conf.php.dist12
-rw-r--r--devel/whups/pkg-comment1
-rw-r--r--devel/whups/pkg-descr8
-rw-r--r--devel/whups/pkg-message29
-rw-r--r--devel/whups/pkg-plist66
9 files changed, 215 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index cbc38f1b298..fd2a705cff5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -862,6 +862,7 @@
SUBDIR += veepee
SUBDIR += viewcvs
SUBDIR += vtcl
+ SUBDIR += whups
SUBDIR += wizard
SUBDIR += xmake
SUBDIR += xparam
diff --git a/devel/whups/Makefile b/devel/whups/Makefile
new file mode 100644
index 00000000000..2561e3d8f32
--- /dev/null
+++ b/devel/whups/Makefile
@@ -0,0 +1,66 @@
+# Ports collection makefile for: WHUPS
+# Date created: Sun Mar 03, 2002
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= whups
+PORTVERSION= 0.0.1.020303
+CATEGORIES= devel www
+MASTER_SITES= http://pompo.net/horde/whups/
+
+MAINTAINER= thierry@pompo.net
+
+RUN_DEPENDS= ${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde2
+
+NO_BUILD= yes
+
+DOCS= LICENSE docs/CHANGES
+CONFFILE= conf.php html.php prefs.php
+SUB_DIRS= config graphics lib locale po scripts templates
+
+LHORDEDIR?= www/horde
+LWHUPSDIR?= ${LHORDEDIR}/whups
+
+PLIST_SUB= HORDEDIR=${LHORDEDIR} WHUPSDIR=${LWHUPSDIR}
+
+HORDEDIR= ${PREFIX}/${LHORDEDIR}
+WHUPSDIR= ${PREFIX}/${LWHUPSDIR}
+CONFDIR= ${WHUPSDIR}/config
+
+HORDE_INC= ${LOCALBASE}/etc/horde
+
+do-install:
+ @${RM} -f ${WRKSRC}/config/conf.php.dist.orig
+ @${MKDIR} ${WHUPSDIR}
+.for REP in ${SUB_DIRS}
+ @${CP} -Rp ${WRKSRC}/${REP} ${WHUPSDIR}
+.endfor
+ @${CP} -p ${WRKSRC}/*.php ${WHUPSDIR}
+.for FILE in ${CONFFILE}
+ @if [ ! -f ${CONFDIR}/${FILE} ]; then \
+ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
+ fi
+.endfor
+ @${CHOWN} -R www:www ${WHUPSDIR}
+ @${CHMOD} -R o-rwx ${CONFDIR}
+ @${CP} -p ${FILESDIR}/httpd.conf.whups ${HORDE_INC}
+ @${PERL} -pi -e "s:/home/httpd/html/horde/whups:${WHUPSDIR}:g" \
+ ${HORDE_INC}/httpd.conf.whups
+ @${PERL} -pi -e "s://UNCOMMENTWHENINSTWHUPS::" ${HORDEDIR}/config/registry.php
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | \
+ ${SED} -e "s:%%WHUPSDIR%%:${WHUPSDIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g;s:%%HORDEDIR%%:${HORDEDIR}:"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/devel/whups/distinfo b/devel/whups/distinfo
new file mode 100644
index 00000000000..b8095bf62a3
--- /dev/null
+++ b/devel/whups/distinfo
@@ -0,0 +1 @@
+MD5 (whups-0.0.1.020303.tar.gz) = 74f3267b93936b75e23530c982843051
diff --git a/devel/whups/files/httpd.conf.whups b/devel/whups/files/httpd.conf.whups
new file mode 100644
index 00000000000..c927a54ec67
--- /dev/null
+++ b/devel/whups/files/httpd.conf.whups
@@ -0,0 +1,31 @@
+# This is included in Apache's httpd.conf for WHUPS
+#
+# For security, don't serve pages from the WHUPS configuration and
+# library directories.
+#
+<Directory "/home/httpd/html/horde/whups/config">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/whups/lib">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/whups/locale">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/whups/po">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/whups/scripts">
+ order deny,allow
+ deny from all
+</Directory>
+<Directory "/home/httpd/html/horde/whups/templates">
+ order deny,allow
+ deny from all
+</Directory>
+# End of WHUPS configuration ================
+
diff --git a/devel/whups/files/patch-config_conf.php.dist b/devel/whups/files/patch-config_conf.php.dist
new file mode 100644
index 00000000000..1c8d4fb0c20
--- /dev/null
+++ b/devel/whups/files/patch-config_conf.php.dist
@@ -0,0 +1,12 @@
+--- config/conf.php.dist.orig Sun Mar 3 17:50:25 2002
++++ config/conf.php.dist Sun Mar 3 21:58:46 2002
+@@ -16,7 +16,8 @@
+ $conf['driver']['type'] = 'sql';
+
+ //
+-$conf['driver']['dsn'] = 'mysql://user:pass@localhost/whups';
++//$conf['driver']['dsn'] = 'mysql://user:pass@localhost/database';
++$conf['driver']['dsn'] = 'mysql://hordemgr:hordemgr@localhost/horde';
+
+ //
+ $conf['mail']['contact_addr'] = 'Whups Administrator <root@localhost>';
diff --git a/devel/whups/pkg-comment b/devel/whups/pkg-comment
new file mode 100644
index 00000000000..296cecedd17
--- /dev/null
+++ b/devel/whups/pkg-comment
@@ -0,0 +1 @@
+WHUPS is a web-based bug tracking system
diff --git a/devel/whups/pkg-descr b/devel/whups/pkg-descr
new file mode 100644
index 00000000000..5b2440fc49d
--- /dev/null
+++ b/devel/whups/pkg-descr
@@ -0,0 +1,8 @@
+WHUPS is the Web-based Horde Unified Project System, a PHP-based project
+management system and a component of the Horde Project.
+
+WHUPS will integrate a bug-tracking system and a FAQ manager.
+
+WHUPS is still in development.
+
+WWW: http://horde.org/whups/
diff --git a/devel/whups/pkg-message b/devel/whups/pkg-message
new file mode 100644
index 00000000000..7a79810329b
--- /dev/null
+++ b/devel/whups/pkg-message
@@ -0,0 +1,29 @@
+************************************************************************
+Whups has been installed in %%WHUPSDIR%% with your blank
+configuration files.
+
+Horde must be configured; if not, see:
+- %%PORTSDIR%%/www/horde2/pkg-message
+
+Then, you have to create the tables required by Whups, from the SQL script
+%%WHUPSDIR%%/scripts/drivers/whups.sql,
+in the horde database or in a special database.
+For example, if your database is MySQL, you may run
+mysql --user=hordemgr --password=yourpass horde < whups.sql
+(If you run another database server, see
+ %%HORDEDIR%%/scripts/db/README
+ for more explanations.)
+
+Finally, you may have to tune the configuration files located in
+%%CONFDIR%%/, specially the files conf.php.
+In the file %%HORDEDIR%%/config/horde.php,
+at least one user should be defined as an admin:
+$conf['auth']['admins'] = array('admin', 'insert_user_login');
+
+Go to the <URL:http://localhost/horde/>;, log in with this user,
+and click on "Administration" to define your parameters.
+
+N.B.: permissions are not yet implemented!
+
+To protect your configuration files, you have to restart Apache.
+************************************************************************
diff --git a/devel/whups/pkg-plist b/devel/whups/pkg-plist
new file mode 100644
index 00000000000..d9fea832d1f
--- /dev/null
+++ b/devel/whups/pkg-plist
@@ -0,0 +1,66 @@
+%%PORTDOCS%%share/doc/whups/LICENSE
+%%PORTDOCS%%share/doc/whups/CHANGES
+%%WHUPSDIR%%/config/conf.php.dist
+%%WHUPSDIR%%/config/html.php.dist
+%%WHUPSDIR%%/config/prefs.php.dist
+%%WHUPSDIR%%/config/conf.php
+%%WHUPSDIR%%/config/html.php
+%%WHUPSDIR%%/config/prefs.php
+%%WHUPSDIR%%/graphics/continue.gif
+%%WHUPSDIR%%/graphics/last.gif
+%%WHUPSDIR%%/graphics/middle.gif
+%%WHUPSDIR%%/graphics/spacer.gif
+%%WHUPSDIR%%/graphics/whups.gif
+%%WHUPSDIR%%/lib/Driver/sql.php
+%%WHUPSDIR%%/lib/Create.php
+%%WHUPSDIR%%/lib/Driver.php
+%%WHUPSDIR%%/lib/Forms.php
+%%WHUPSDIR%%/lib/Query.php
+%%WHUPSDIR%%/lib/Search.php
+%%WHUPSDIR%%/lib/Whups.php
+%%WHUPSDIR%%/lib/WhupsVars.php
+%%WHUPSDIR%%/lib/api.php
+%%WHUPSDIR%%/lib/base.php
+%%WHUPSDIR%%/lib/version.php
+%%WHUPSDIR%%/lib/Admin.php
+%%WHUPSDIR%%/locale/de_DE/LC_MESSAGES/whups.mo
+%%WHUPSDIR%%/po/Makefile
+%%WHUPSDIR%%/po/README
+%%WHUPSDIR%%/po/de_DE.po
+%%WHUPSDIR%%/po/extract.pl
+%%WHUPSDIR%%/po/shtool
+%%WHUPSDIR%%/po/xgettext.sh
+%%WHUPSDIR%%/scripts/drivers/whups.sql
+%%WHUPSDIR%%/templates/index/css.inc
+%%WHUPSDIR%%/templates/index/notconfigured.inc
+%%WHUPSDIR%%/templates/actions.inc
+%%WHUPSDIR%%/templates/comment.inc
+%%WHUPSDIR%%/templates/common.inc
+%%WHUPSDIR%%/templates/formrenderer.inc
+%%WHUPSDIR%%/templates/headerbar.inc
+%%WHUPSDIR%%/templates/page.inc
+%%WHUPSDIR%%/templates/queryrenderer.inc
+%%WHUPSDIR%%/templates/searchresults.inc
+%%WHUPSDIR%%/templates/useractions.inc
+%%WHUPSDIR%%/templates/actionresult.inc
+%%WHUPSDIR%%/search.php
+%%WHUPSDIR%%/query.php
+%%WHUPSDIR%%/index.php
+%%WHUPSDIR%%/details.php
+%%WHUPSDIR%%/create.php
+%%WHUPSDIR%%/admin.php
+%%PORTDOCS%%@dirrm share/doc/whups
+@dirrm %%WHUPSDIR%%/config
+@dirrm %%WHUPSDIR%%/graphics
+@dirrm %%WHUPSDIR%%/lib/Driver
+@dirrm %%WHUPSDIR%%/lib
+@dirrm %%WHUPSDIR%%/locale/de_DE/LC_MESSAGES
+@dirrm %%WHUPSDIR%%/locale/de_DE
+@dirrm %%WHUPSDIR%%/locale
+@dirrm %%WHUPSDIR%%/po
+@dirrm %%WHUPSDIR%%/scripts/backend
+@dirrm %%WHUPSDIR%%/scripts/drivers
+@dirrm %%WHUPSDIR%%/scripts
+@dirrm %%WHUPSDIR%%/templates/index
+@dirrm %%WHUPSDIR%%/templates
+@dirrm %%WHUPSDIR%%