summaryrefslogtreecommitdiff
path: root/net/papaya-plugins/scripts
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-19 09:48:32 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-19 09:48:32 +0000
commit91e2db011f1023828a2a64980beeadfc05157815 (patch)
tree2b539619905ed0ddd14309f0bdc3de5e9195ccf9 /net/papaya-plugins/scripts
parentAdd papaya 0.90, graphical GTK mud client with plugin support. (diff)
Add papaya-plugins 0.90, plugins for papaya, a graphical GTK mud
client. PR: 32958 Submitted by: Edwin Groothuis <edwin@mavetju.org>
Diffstat (limited to 'net/papaya-plugins/scripts')
-rw-r--r--net/papaya-plugins/scripts/add-plugins10
-rw-r--r--net/papaya-plugins/scripts/configure.papaya-plugins45
2 files changed, 55 insertions, 0 deletions
diff --git a/net/papaya-plugins/scripts/add-plugins b/net/papaya-plugins/scripts/add-plugins
new file mode 100644
index 000000000000..23df157c0079
--- /dev/null
+++ b/net/papaya-plugins/scripts/add-plugins
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+files=`ls ${WRKSRC}/o/ | sed -e 's/^.*\/o\///g'`
+
+> pkg-plist
+for f in $files; do
+ echo share/papaya/plugins/$f >> ${WRKSRC}/pkg-plist
+done
+
+echo "@dirrm share/papaya/plugins" >> ${WRKSRC}/pkg-plist
diff --git a/net/papaya-plugins/scripts/configure.papaya-plugins b/net/papaya-plugins/scripts/configure.papaya-plugins
new file mode 100644
index 000000000000..d76e65adac71
--- /dev/null
+++ b/net/papaya-plugins/scripts/configure.papaya-plugins
@@ -0,0 +1,45 @@
+#!/bin/sh
+# $FreeBSD$
+
+tempfile=`mktemp -t checklist`
+
+if [ "${BATCH}" = "yes" ]; then
+ set \"common\"
+else
+ /usr/bin/dialog --title "Postfix configuration options" --clear \
+ --checklist "\n\
+Please select desired options:" -1 -1 8 \
+common "Enable common generic plugins" ON \
+extra "Enable extra generic plugins" OFF \
+turf "Enable the TurfProtocol plugin" OFF \
+turf-common "Enable common Turf plugins" OFF \
+turf-extra "Enable extra Turf plugins" OFF \
+python "Enable the Python interpreter" OFF \
+all "Overrides above" OFF \
+debugging "Compile with debugging symbols" OFF \
+2> $tempfile
+
+ retval=$?
+
+ if [ -s $tempfile ]; then
+ set `cat $tempfile`
+ fi
+ rm -f $tempfile
+
+ case $retval in
+ 0) if [ -z "$*" ]; then
+ echo "Nothing selected"
+ fi
+ ;;
+ 1) echo "Cancel pressed."
+ exit 1
+ ;;
+ esac
+fi
+
+exec > ${WRKDIR}/Makefile.inc
+
+while [ "$1" ]; do
+ echo "CONFIGURE_ARGS+= --enable-`echo $1 | sed -e 's/"//g'`"
+ shift
+done