aboutsummaryrefslogtreecommitdiff
path: root/www/mnogosearch31
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-04-15 08:40:22 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-04-15 08:40:22 +0000
commitfad688d4747227a8e4d2749daa3fdb322c28d09c (patch)
tree95f222b6b85dcfc79f1b5f4d62e099782afc483a /www/mnogosearch31
parentffceecabd320673e7973f890fa7ea15625ffbb92 (diff)
downloadports-fad688d4747227a8e4d2749daa3fdb322c28d09c.tar.gz
ports-fad688d4747227a8e4d2749daa3fdb322c28d09c.zip
Install sample spelld.sh script
Notes
Notes: svn path=/head/; revision=41414
Diffstat (limited to 'www/mnogosearch31')
-rw-r--r--www/mnogosearch31/Makefile2
-rw-r--r--www/mnogosearch31/files/spelld.sh-dist24
-rw-r--r--www/mnogosearch31/pkg-plist1
3 files changed, 27 insertions, 0 deletions
diff --git a/www/mnogosearch31/Makefile b/www/mnogosearch31/Makefile
index fa27ca5614db..f661ee800663 100644
--- a/www/mnogosearch31/Makefile
+++ b/www/mnogosearch31/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mnogosearch
PORTVERSION= 3.1.12
+PORTREVISION= 1
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/
@@ -65,6 +66,7 @@ post-install:
${CHMOD} 700 /var/mnogosearch/cache
${CHOWN} -R nobody.nogroup /var/mnogosearch/
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/mnogosearch
+ ${INSTALL_DATA} ${FILESDIR}/spelld.sh-dist ${PREFIX}/etc/rc.d/
@${ECHO}
@${CAT} ${PKGMESSAGE}
diff --git a/www/mnogosearch31/files/spelld.sh-dist b/www/mnogosearch31/files/spelld.sh-dist
new file mode 100644
index 000000000000..e9f44ae6bf7d
--- /dev/null
+++ b/www/mnogosearch31/files/spelld.sh-dist
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ if [ -x ${PREFIX}/sbin/spelld ]; then
+# Uncomment to disallow access from outside
+# /sbin/ipfw -q add 7001 deny tcp from any to any 7001
+ su -f -m nobody -c "exec ${PREFIX}/sbin/spelld &" > /dev/null 2>&1 && echo -n ' spelld'
+ fi
+ ;;
+stop)
+ killall spelld && echo -n ' spelld'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/www/mnogosearch31/pkg-plist b/www/mnogosearch31/pkg-plist
index 253b3e4c564c..ade4eb6167a1 100644
--- a/www/mnogosearch31/pkg-plist
+++ b/www/mnogosearch31/pkg-plist
@@ -1,6 +1,7 @@
etc/mnogosearch/indexer.conf-dist
etc/mnogosearch/search.htm-dist
etc/mnogosearch/spelld.conf-dist
+etc/rc.d/spelld.sh-dist
include/udm_agent.h
include/udm_alias.h
include/udm_boolean.h