aboutsummaryrefslogtreecommitdiff
path: root/mail/popa3d
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-08-03 22:46:52 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-08-03 22:46:52 +0000
commit55d3d5197add7316328c931dbc572aeecb27f9c6 (patch)
tree7b6b5694b2e8794f26ea7c89cde057d4c1604e1a /mail/popa3d
parentf1b7c78b28393934cd7b06e8a3a9c03e96a38089 (diff)
downloadports-55d3d5197add7316328c931dbc572aeecb27f9c6.tar.gz
ports-55d3d5197add7316328c931dbc572aeecb27f9c6.zip
Notes
Diffstat (limited to 'mail/popa3d')
-rw-r--r--mail/popa3d/Makefile13
-rw-r--r--mail/popa3d/files/popa3d.sh2
2 files changed, 13 insertions, 2 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile
index 13adad2212dd..7781d144c0bc 100644
--- a/mail/popa3d/Makefile
+++ b/mail/popa3d/Makefile
@@ -61,8 +61,19 @@ EXTRA_PATCHES+= ${FILESDIR}/setproctitle.patch
.endif
.if defined(WITH_STANDALONE_POP3)
+#USE_RC_SUBR= yes
+# does only work when set before bsd.port.pre.mk
+.if ${OSVERSION} < 500037
+RUN_DEPENDS+= ${LOCALBASE}/etc/rc.subr:${PORTSDIR}/sysutils/rc_subr
+RC_SUBR= ${LOCALBASE}/etc/rc.subr
+.else
+RC_SUBR= /etc/rc.subr
+.endif
+
post-extract:
- @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/popa3d.sh \
+ @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \
+ -e "s=%%RC_SUBR%%=${RC_SUBR}=g" \
+ ${FILESDIR}/popa3d.sh \
> ${WRKSRC}/popa3d.sh
.endif
diff --git a/mail/popa3d/files/popa3d.sh b/mail/popa3d/files/popa3d.sh
index d49a811e2630..8e8b94cf1821 100644
--- a/mail/popa3d/files/popa3d.sh
+++ b/mail/popa3d/files/popa3d.sh
@@ -3,7 +3,7 @@
# PROVIDE: popa3d
# REQUIRE: LOGIN cleanvar
-. /etc/rc.subr
+. %%RC_SUBR%%
name="popa3d"
rcvar=`set_rcvar`