summaryrefslogtreecommitdiff
path: root/misc/jitterbug/pkg
diff options
context:
space:
mode:
authorwennmach <wennmach@pkgsrc.org>1999-10-05 12:37:18 +0000
committerwennmach <wennmach@pkgsrc.org>1999-10-05 12:37:18 +0000
commit7964798b55c8b6e9323e8d66bccba276aa3e1cb8 (patch)
tree7d2a6e31d11fda9321e0ecfaa9015885c686b730 /misc/jitterbug/pkg
parent22d4a43f07e3cba35840f49d4edf192624bb8e9f (diff)
downloadpkgsrc-7964798b55c8b6e9323e8d66bccba276aa3e1cb8.tar.gz
Initial import of jitterbug-1.6.2: a web-oriented bug-tracking tool
Diffstat (limited to 'misc/jitterbug/pkg')
-rw-r--r--misc/jitterbug/pkg/COMMENT1
-rw-r--r--misc/jitterbug/pkg/DESCR5
-rw-r--r--misc/jitterbug/pkg/PLIST37
-rw-r--r--misc/jitterbug/pkg/REQ79
4 files changed, 122 insertions, 0 deletions
diff --git a/misc/jitterbug/pkg/COMMENT b/misc/jitterbug/pkg/COMMENT
new file mode 100644
index 00000000000..32ed1c41a0b
--- /dev/null
+++ b/misc/jitterbug/pkg/COMMENT
@@ -0,0 +1 @@
+a web-oriented bug-tracking tool
diff --git a/misc/jitterbug/pkg/DESCR b/misc/jitterbug/pkg/DESCR
new file mode 100644
index 00000000000..79328560cf9
--- /dev/null
+++ b/misc/jitterbug/pkg/DESCR
@@ -0,0 +1,5 @@
+JitterBug is a cgi-bin tool for problem reporting and tracking developed
+by Andrew Tridgell for the Samba Team.
+
+If you want to see some examples of what JitterBug can do then have a
+look at http://samba.anu.edu.au/cgi-bin/jitterbug
diff --git a/misc/jitterbug/pkg/PLIST b/misc/jitterbug/pkg/PLIST
new file mode 100644
index 00000000000..7d9918b7794
--- /dev/null
+++ b/misc/jitterbug/pkg/PLIST
@@ -0,0 +1,37 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/10/05 12:37:19 wennmach Exp $
+@JB_USER@/config/footer.html
+@exec [ -f %D/@JB_DATADIR@/footer.html ] || /bin/cp -p %D/%F %D/@JB_DATADIR@/footer.html
+@JB_USER@/config/guest.prefs
+@exec [ -f %D/@JB_DATADIR@/guest.prefs ] || /bin/cp -p %D/%F %D/@JB_DATADIR@/guest.prefs
+@JB_USER@/config/guestintro.html
+@exec [ -f %D/@JB_DATADIR@/guestintro.html ] || /bin/cp -p %D/%F %D/@JB_DATADIR@/guestintro.html
+@JB_USER@/config/intro.html
+@exec [ -f %D/@JB_DATADIR@/intro.html ] || /bin/cp -p %D/%F %D/@JB_DATADIR@/intro.html
+@JB_USER@/config/reportform.html
+@exec [ -f %D/@JB_DATADIR@/reportform.html ] || /bin/cp -p %D/%F %D/@JB_DATADIR@/reportform.html
+@JB_USER@/config/users
+@exec [ -f %D/@JB_DATADIR@/users ] || /bin/cp -p %D/%F %D/@JB_DATADIR@/users
+@JB_USER@/config/jitterbug.config
+@exec [ -f %D/etc/jitterbug/@JB_PACKAGE@ ] || /bin/cp -p %D/%F %D/etc/jitterbug/@JB_PACKAGE@
+@exec [ -f %D/etc/jitterbug/@JB_PACKAGE@.private ] || /bin/cp -p %D/%F %D/etc/jitterbug/@JB_PACKAGE@.private
+@exec [ -f %D/@JB_USER@/etc/jitterbug.auth ] || /bin/echo "@JB_USER@:*************" > %D/@JB_USER@/etc/jitterbug.auth
+@JB_USER@/bin/new_message
+@JB_USER@/bin/jitterbug
+@JB_USER@/doc/POSTINSTALL
+@JB_USER@/doc/NEWPACKAGE
+@JB_USER@/doc/CONFIG.txt
+@JB_USER@/doc/INSTALL
+@JB_USER@/doc/JitterBug.txt
+@dirrm @JB_USER@/bin
+@dirrm @JB_USER@/doc
+@dirrm @JB_USER@/config
+@CGIBINDIR@/@JB_PACKAGE@
+@CGIBINDIR@/@JB_PACKAGE@.private
+@unexec echo "If you are removing jitterbug permanently, you may wish to"
+@unexec echo " - remove user @JB_USER@"
+@unexec echo " - remove group @JB_GROUP@"
+@unexec echo " - rm -rf %D/@JB_USER@"
+@unexec echo " - rm -rf %D/etc/jitterbug"
+@unexec echo " - remove entries in %D/etc/httpd/httpd.conf"
+@unexec echo " - remove mail alias for @JB_PACKAGE@-bugs in /etc/aliases"
+@unexec echo " and run newaliases"
diff --git a/misc/jitterbug/pkg/REQ b/misc/jitterbug/pkg/REQ
new file mode 100644
index 00000000000..45e012a6077
--- /dev/null
+++ b/misc/jitterbug/pkg/REQ
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+JB_USER=@JB_USER@
+JB_USERID=@JB_USERID@
+JB_GROUP=@JB_GROUP@
+JB_GROUPID=@JB_GROUPID@
+JB_LOCALMAIL=@JB_LOCALMAIL@
+JB_PACKAGE=@JB_PACKAGE@
+PREFIX=@PREFIX@
+ADDNERD=@LOCALBASE@/sbin/addnerd
+FILESDIR=@FILESDIR@
+
+PKG=$1
+STAGE=$2
+
+if [ "$STAGE" != "INSTALL" ];
+then
+ exit 0
+fi
+
+# Add group first
+#
+# NB: Ahem, this will not work with NIS, kerberos or hesiod.
+# Will have to rework this, e.g. using finger (wennmach)
+
+if grep "^${JB_GROUP}:" /etc/group 2>&1 >/dev/null
+then
+ echo "Group '$JB_GROUP' already exists, proceeding."
+else
+ if awk -F: '$3 == $JB_GROUPID {print "notfree"}' /etc/group | grep notfree >/dev/null
+then
+ echo "Error: group id $JB_GROUPID already in use in /etc/group"
+ echo "Please add group '$JB_GROUP' to /etc/group manually, then restart."
+ exit 1
+else
+ echo "Adding group $JB_GROUP (gid $JB_GROUPID) to /etc/group ..."
+ echo "$JB_GROUP:*:$JB_GROUPID:" >> /etc/group
+fi
+fi
+
+# use finger to be able to use NIS, ...
+if finger ${JB_USER} 2>&1 | grep >/dev/null "no such user"
+then
+ echo "Creating '$JB_USER' user ..."
+ ${ADDNERD} -h ${PREFIX} -u ${JB_USERID} -g ${JB_GROUP} ${JB_USER}
+ echo Done.
+else
+ echo "User '$JB_USER' already exists, proceeding."
+fi
+
+if grep "^${JB_LOCALMAIL}:" /etc/aliases 2>&1 >/dev/null
+then
+ echo "'${JB_LOCALMAIL}' alias already exists, proceeding."
+else
+ echo "Adding alias ${JB_LOCALMAIL} to /etc/aliases ..."
+ echo "" >> /etc/aliases
+ echo "# entry for jitterbug" >> /etc/aliases
+ echo "${JB_LOCALMAIL}: \"|${PREFIX}/${JB_USER}/bin/new_message\"" >> /etc/aliases
+ echo "Running newaliases ..."
+ newaliases
+fi
+
+if grep "^# jitterbug config for package ${JB_PACKAGE}" ${PREFIX}/etc/httpd/httpd.conf 2>&1 >/dev/null
+then
+ echo "config lines for ${JB_PACKAGE} already in ${PREFIX}/etc/httpd/httpd.conf, proceeding."
+else
+ echo "Adding config lines for ${JB_PACKAGE} to ${PREFIX}/etc/httpd/httpd.conf ..."
+ sed \
+ -e 's|%JB_PACKAGE%|@JB_PACKAGE@|g' \
+ -e 's|%JB_USER%|@JB_USER@|g' \
+ -e 's|%PREFIX%|@PREFIX@|g' \
+ < ${FILESDIR}/httpd.conf \
+ >> ${PREFIX}/etc/httpd/httpd.conf
+ if [ -e /var/run/httpd.pid ]; then
+ echo -n "Restarting httpd ..."
+ kill -USR1 `cat /var/run/httpd.pid` 2>&1 >/dev/null || echo -n " failed."
+ echo " "
+ fi
+fi