mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
Install sample spelld.sh script
This commit is contained in:
parent
ffceecabd3
commit
fad688d474
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41414
@ -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}
|
||||
|
||||
|
24
www/mnoGoSearch-current/files/spelld.sh-dist
Normal file
24
www/mnoGoSearch-current/files/spelld.sh-dist
Normal file
@ -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
|
@ -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
|
||||
|
@ -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}
|
||||
|
||||
|
24
www/mnogosearch/files/spelld.sh-dist
Normal file
24
www/mnogosearch/files/spelld.sh-dist
Normal file
@ -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
|
@ -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
|
||||
|
@ -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}
|
||||
|
||||
|
24
www/mnogosearch31/files/spelld.sh-dist
Normal file
24
www/mnogosearch31/files/spelld.sh-dist
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user