aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorjmelo <jmelo@FreeBSD.org>2008-09-04 08:01:25 +0800
committerjmelo <jmelo@FreeBSD.org>2008-09-04 08:01:25 +0800
commit6959adc0ebc037bd27eb3ff1e65e150c14b0d691 (patch)
treeb0c0da73a020701b2b4056d0934bc78fcb4123a5 /security
parent3ec8fe0d7115c8a04693821950bacf050b764878 (diff)
downloadfreebsd-ports-gnome-6959adc0ebc037bd27eb3ff1e65e150c14b0d691.tar.gz
freebsd-ports-gnome-6959adc0ebc037bd27eb3ff1e65e150c14b0d691.tar.zst
freebsd-ports-gnome-6959adc0ebc037bd27eb3ff1e65e150c14b0d691.zip
- Fix mastersite.
- Update to rcNG. PR: ports/127026 Submitted by: Demin Alexander <support@spectrum.ru> (maintainer)
Diffstat (limited to 'security')
-rw-r--r--security/drweb-sendmail/Makefile23
-rw-r--r--security/drweb-sendmail/files/drweb-smf.sh.in19
-rw-r--r--security/drweb-sendmail/pkg-plist2
3 files changed, 27 insertions, 17 deletions
diff --git a/security/drweb-sendmail/Makefile b/security/drweb-sendmail/Makefile
index 093f659233fc..ec637c0bebc7 100644
--- a/security/drweb-sendmail/Makefile
+++ b/security/drweb-sendmail/Makefile
@@ -7,12 +7,10 @@
PORTNAME= drweb-sendmail
PORTVERSION= 4.33
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= security mail
-MASTER_SITES= ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/61/:f61 \
- ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/55/:f55 \
- ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/411/:f411 \
- http://freebsd.spectrum.ru/distfiles/drweb/:f61,f55,f411
+MASTER_SITES= ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/60/:f61 \
+ http://freebsd.spectrum.ru/distfiles/drweb/:f61
DIST_SUBDIR= drweb
MAINTAINER= support@spectrum.ru
@@ -22,15 +20,15 @@ RUN_DEPENDS= ${LOCALBASE}/drweb/drwebd:${PORTSDIR}/security/drweb
IA32_BINARY_PORT= yes
NO_BUILD= yes
+USE_RC_SUBR= drweb-smf.sh
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 601000
-DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd61
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f61
+DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd61
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f61
.else
-DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd55
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f55
+IGNORE= sorry, port is not supported of FreeBSD version < 6.1
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -67,13 +65,6 @@ do-install:
.endif
.endfor
.endfor
- ${SED} -e s#___T_FILTER_PATH___#${INST_PREFIX}/drweb-smf#g \
- -e s#___T_FILTER_UNIX___#yes#g \
- -e s#___T_FILTER_SOCKET___#no#g \
- -e s#___T_FILTER_PARAMS___##g \
- < ${WRKSRC}${LOCALBASE}/drweb/doc/sendmail/template.initscript > \
- ${PREFIX}/etc/rc.d/002.drweb-smf.sh
- ${CHMOD} 750 ${PREFIX}/etc/rc.d/002.drweb-smf.sh
post-install:
.if !defined(NOPORTDOCS)
diff --git a/security/drweb-sendmail/files/drweb-smf.sh.in b/security/drweb-sendmail/files/drweb-smf.sh.in
new file mode 100644
index 000000000000..2e64011b08e9
--- /dev/null
+++ b/security/drweb-sendmail/files/drweb-smf.sh.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# PROVIDE: drweb_smf
+# REQUIRE: DAEMON drwebd
+# BEFORE: mail
+
+. %%RC_SUBR%%
+
+name="drweb_smf"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${drweb_smf_enable="NO"}
+: ${drweb_smf_procname="%%PREFIX%%/drweb/drweb-smf"}
+
+command=$drweb_smf_procname
+
+run_rc_command "$1"
diff --git a/security/drweb-sendmail/pkg-plist b/security/drweb-sendmail/pkg-plist
index 5914ccc1cbc2..a9ae076f7427 100644
--- a/security/drweb-sendmail/pkg-plist
+++ b/security/drweb-sendmail/pkg-plist
@@ -1,6 +1,6 @@
@unexec if [ -e /var/drweb/run/drweb-smf.skt ] ; then %D/etc/rc.d/002.drweb-smf.sh stop ; fi
drweb/drweb-smf
-etc/rc.d/002.drweb-smf.sh
+etc/rc.d/drweb-smf
@unexec if [ -f %D/etc/drweb/addresses.conf ] && cmp -s %D/etc/drweb/addresses.conf %D/etc/drweb/addresses.conf-distr; then rm -f %D/etc/drweb/addresses.conf; fi
etc/drweb/addresses.conf-distr
@exec if [ ! -f %D/etc/drweb/addresses.conf ] ; then cp -p %D/%F %B/addresses.conf; fi