diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-04-15 08:40:22 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-04-15 08:40:22 +0000 |
commit | fad688d4747227a8e4d2749daa3fdb322c28d09c (patch) | |
tree | 95f222b6b85dcfc79f1b5f4d62e099782afc483a /www/mnogosearch | |
parent | ffceecabd320673e7973f890fa7ea15625ffbb92 (diff) | |
download | ports-fad688d4747227a8e4d2749daa3fdb322c28d09c.tar.gz ports-fad688d4747227a8e4d2749daa3fdb322c28d09c.zip |
Notes
Diffstat (limited to 'www/mnogosearch')
-rw-r--r-- | www/mnogosearch/Makefile | 2 | ||||
-rw-r--r-- | www/mnogosearch/files/spelld.sh-dist | 24 | ||||
-rw-r--r-- | www/mnogosearch/pkg-plist | 1 |
3 files changed, 27 insertions, 0 deletions
diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile index fa27ca5614db..f661ee800663 100644 --- a/www/mnogosearch/Makefile +++ b/www/mnogosearch/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/mnogosearch/files/spelld.sh-dist b/www/mnogosearch/files/spelld.sh-dist new file mode 100644 index 000000000000..e9f44ae6bf7d --- /dev/null +++ b/www/mnogosearch/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/mnogosearch/pkg-plist b/www/mnogosearch/pkg-plist index 253b3e4c564c..ade4eb6167a1 100644 --- a/www/mnogosearch/pkg-plist +++ b/www/mnogosearch/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 |