Use native drweb-sendmail.sh script for both daemon & filter
This commit is contained in:
parent
259327933b
commit
e2ad14bba8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48408
3 changed files with 12 additions and 35 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= drweb_sendmail
|
||||
PORTVERSION= 4.26
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= security mail
|
||||
MASTER_SITES= http://www.drweb.ru/ftp/web_pub/
|
||||
DISTNAME= drwebd-${PORTVERSION}-freebsd4
|
||||
|
@ -79,7 +79,6 @@ post-configure:
|
|||
${ECHO} y; \
|
||||
} | ./configure
|
||||
|
||||
# Not fully used yet
|
||||
pre-install:
|
||||
cd ${WRKSRC}/../sendmail && { \
|
||||
${ECHO} y; \
|
||||
|
@ -115,10 +114,14 @@ do-install:
|
|||
${INSTALL_PROGRAM} ${WRKSRC}/drwebdc ${PREFIX}/drweb/
|
||||
cd ${WRKSRC}/../sendmail; \
|
||||
${INSTALL_DATA} readme.* sendmail.*.addon ${DOC_DIR}
|
||||
${SED} 's#!!PREFIX!!#${PREFIX}#g;s#!!HOSTNAME!!#${WITH_DRWEBSMF_HOSTNAME}#g' \
|
||||
< ${FILESDIR}/drweb-smf.sh >${WRKSRC}/drweb-smf.sh
|
||||
# drwebsmf.sh instead drweb-smf.sh to start after drwebd.sh
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh
|
||||
cd ${WRKSRC}/../sendmail; \
|
||||
${INSTALL_DATA} drweb-sendmail.sh \
|
||||
${PREFIX}/etc/rc.d/drweb-sendmail.sh-dist
|
||||
if [ ! -f ${PREFIX}/etc/rc.d/drweb-sendmail.sh ] ; then \
|
||||
cd ${WRKSRC}/../sendmail; \
|
||||
${INSTALL_SCRIPT} drweb-sendmail.sh \
|
||||
${PREFIX}/etc/rc.d/; \
|
||||
fi
|
||||
|
||||
post-install:
|
||||
@echo
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
drwebfilter='!!PREFIX!!/sbin/drweb-smf'
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $drwebfilter ] ; then
|
||||
echo -n ' drweb-smf'
|
||||
$drwebfilter -u/var/run/drwebd.sock -m/var/run/drweb-smf.sock \
|
||||
-a!!PREFIX!!/drweb/infected.!!! -f/tmp -r -x -h -l \
|
||||
-t 160000 -bt -yt -ka -jr -zd \
|
||||
-gpostmaster -epostmaster@!!HOSTNAME!!
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
/usr/bin/killall drweb-smf
|
||||
/bin/rm -f /var/run/drweb-smf.sock
|
||||
echo -n ' drweb-smf'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -1,5 +1,7 @@
|
|||
drweb/drwebdc
|
||||
etc/rc.d/drwebsmf.sh
|
||||
@unexec if [ -f %D/etc/rc.d/drweb-sendmail.sh ] && cmp -s %D/etc/rc.d/drweb-sendmail.sh %D/etc/rc.d/drweb-sendmail.sh-dist; then rm -f %D/etc/rc.d/drweb-sendmail.sh; fi
|
||||
etc/rc.d/drweb-sendmail.sh-dist
|
||||
@exec if [ ! -f %D/etc/rc.d/drweb-sendmail.sh ] ; then cp -p %D/%F %B/drweb-sendmail.sh; chmod 555 %B/drweb-sendmail.sh; fi
|
||||
sbin/drweb-smf
|
||||
share/doc/drweb-sendmail/readme.sendmail
|
||||
share/doc/drweb-sendmail/readme.sendmail.rus
|
||||
|
|
Loading…
Reference in a new issue