1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

Cleanse more RC_SUBR and RC_SUBR_SUFFIX variables

This commit is contained in:
Doug Barton 2010-03-28 05:52:12 +00:00
parent 0450304108
commit 204523bd3c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251603
19 changed files with 15 additions and 34 deletions

View File

@ -19,7 +19,6 @@ MAN8= dnsmasq.8
PORTDOCS= CHANGELOG CHANGELOG.archive FAQ doc.html setup.html
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
SUB_FILES= pkg-message
MAKE_JOBS_SAFE= yes

View File

@ -30,7 +30,6 @@ MAKE_ARGS= MANLANG="${MANLANG}" CDEBUGFLAGS="${CFLAGS}" \
ALL_TARGET= includes all
INSTALL_TARGET= install install.man
SUB_FILES= pkg-install
SUB_LIST= RC_SUBR=${RC_SUBR}
PKGINSTALL= ${WRKDIR}/pkg-install
MAKE_JOBS_UNSAFE= yes

View File

@ -115,7 +115,6 @@ USRLOCAL_FILES_LIB= \
rav-wrapper sophos-autoupdate
USE_RC_SUBR= mailscanner mta
SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
post-extract:
cd ${WRKSRC} && ${TAR} xvzf perl-tar/MailScanner-${PORTVERSION}-${PATCHLEVEL}.tar.gz > /dev/null && ${MV} MailScanner-${PORTVERSION}/* .
@ -146,7 +145,7 @@ do-build:
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/update_virus_scanners.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
@ -155,12 +154,12 @@ do-build:
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/update_phishing_sites.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/usr/bin/sa-update,${LOCALBASE}/bin/sa-update,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/sa-update.cron
${PERL} -pi -e \
's,/etc/MailScanner/MailScanner.conf,${PREFIX}/etc/MailScanner/MailScanner.conf,g;' \

View File

@ -63,7 +63,7 @@ PATH=$PATH:/sbin:/usr/sbin; export PATH
name="mta"
rcvar=`set_rcvar`
_mta_rc_script="%%PREFIX%%/etc/rc.d/mta%%RC_SUBR_SUFFIX%%"
_mta_rc_script="%%PREFIX%%/etc/rc.d/mta"
load_rc_config $name

View File

@ -115,7 +115,6 @@ USRLOCAL_FILES_LIB= \
rav-wrapper sophos-autoupdate
USE_RC_SUBR= mailscanner mta
SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
post-extract:
cd ${WRKSRC} && ${TAR} xvzf perl-tar/MailScanner-${PORTVERSION}-${PATCHLEVEL}.tar.gz > /dev/null && ${MV} MailScanner-${PORTVERSION}-${PATCHLEVEL}/* .
@ -157,7 +156,7 @@ do-build:
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/update_virus_scanners.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
@ -174,17 +173,17 @@ do-build:
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/update_phishing_sites.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/update_bad_phishing_sites.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
s,%%RC_SUBR%%,/etc/rc.subr,g;' \
${WRKSRC}/bin/cron/update_spamassassin.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \

View File

@ -63,7 +63,7 @@ PATH=$PATH:/sbin:/usr/sbin; export PATH
name="mta"
rcvar=`set_rcvar`
_mta_rc_script="%%PREFIX%%/etc/rc.d/mta%%RC_SUBR_SUFFIX%%"
_mta_rc_script="%%PREFIX%%/etc/rc.d/mta"
load_rc_config $name

View File

@ -86,7 +86,6 @@ LDFLAGS+= -L${MILTERLIB}
USE_RC_SUBR= spamass-milter
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
SUB_FILES= pkg-message

View File

@ -16,7 +16,7 @@ COMMENT= Yet Another Bandwidth Meter, somewhat resembles the Linux bwbar
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=/etc/rc.subr
SUB_FILES= pkg-message

View File

@ -114,7 +114,6 @@ for infile in ${SCRIPTDIR}/*.in; do
-e "s|%%FIXED_SERVER%%|${fixed_server}|g" \
-e "s|%%INTERFACE%%|${interface}|g" \
-e "s|%%PD_INTERFACE%%|${pd_interface}|g" \
-e "s|%%RC_SUBR%%|${RC_SUBR}|g" \
-e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%CONF_DIR%%|${CONF_DIR}|g" \
-e "s|%%MD5%%|${MD5}|g" \

View File

@ -21,8 +21,7 @@ USE_RUBY_FEATURES= 1.8
NO_BUILD= yes
USE_RC_SUBR= yes
SED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
-e 's,%%PREFIX%%,${PREFIX},g' \
SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RUBY_WITHOUT_SUFFIX%%,${RUBY_WITHOUT_SUFFIX},g'
pre-install:

View File

@ -29,7 +29,6 @@ USE_RC_SUBR= syslog-ng.sh
GNU_CONFIGURE= yes
USE_GNOME= glib20
SUB_FILES= pkg-message
SUB_LIST= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
USE_OPENSSL= yes

View File

@ -25,5 +25,5 @@ syslog-ng is now installed! To replace FreeBSD's standard syslogd
5. Start syslog-ng:
%%PREFIX%%/etc/rc.d/syslog-ng%%RC_SUBR_SUFFIX%% start
%%PREFIX%%/etc/rc.d/syslog-ng start

View File

@ -29,7 +29,6 @@ USE_RC_SUBR= syslog-ng.sh
GNU_CONFIGURE= yes
USE_GNOME= glib20
SUB_FILES= pkg-message
SUB_LIST= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
USE_OPENSSL= yes

View File

@ -25,5 +25,5 @@ syslog-ng is now installed! To replace FreeBSD's standard syslogd
5. Start syslog-ng:
%%PREFIX%%/etc/rc.d/syslog-ng%%RC_SUBR_SUFFIX%% start
%%PREFIX%%/etc/rc.d/syslog-ng start

View File

@ -29,7 +29,6 @@ USE_RC_SUBR= syslog-ng.sh
GNU_CONFIGURE= yes
USE_GNOME= glib20
SUB_FILES= pkg-message
SUB_LIST= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
USE_OPENSSL= yes

View File

@ -25,5 +25,5 @@ syslog-ng is now installed! To replace FreeBSD's standard syslogd
5. Start syslog-ng:
%%PREFIX%%/etc/rc.d/syslog-ng%%RC_SUBR_SUFFIX%% start
%%PREFIX%%/etc/rc.d/syslog-ng start

View File

@ -21,8 +21,6 @@ USE_PYTHON= 1.6+
PLIST= ${WRKDIR}/pkg-plist
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_RC_SUBR= jetty
APP_NAME= ${PORTNAME}
APP_HOME= ${PREFIX}/${PORTNAME}
PID_FILE?= ${APP_HOME}/${APP_NAME}.pid
@ -35,7 +33,6 @@ LOG_FILE?= ${APP_HOME}/${APP_NAME}.log
SUB_LIST= \
APP_HOME=${APP_HOME} \
APP_NAME=${APP_NAME} \
RC_SUBR=${RC_SUBR} \
JAVA_HOME=${JAVA_HOME} \
JAVA=${JAVA} \
PID_FILE=${PID_FILE} \

View File

@ -34,7 +34,7 @@ PORTDOCS= *
SUB_FILES= pkg-message pkg-install pkg-deinstall 400.polipo
SUB_LIST+= USER=${PUSER} GROUP=${PGRP} DESTDIR=${DESTDIR} PCONFIGDIR=${PCONFIGDIR} \
PCACHEDIR=${PCACHEDIR} PPIDDIR=${PPIDDIR} PPIDFILE=${PPIDFILE} \
PLOGFILE=${PLOGFILE} RC_SUBR=${RC_SUBR}
PLOGFILE=${PLOGFILE}
# polipo installation options, propagated to install scripts
PUSER?= polipo

View File

@ -12,12 +12,6 @@ POLIPOPID=%%PPIDFILE%%
if [ "$2" = "PRE-INSTALL" ]; then
if [ "%%RC_SUBR%%" = "" ]; then
echo "=> Port requires /etc/rc.subr (native or port/sysutils/rc_subr)!"
echo "=> If you want to install without you should modify startup script and pkg-install."
exit 1
fi
if fgrep "polipo" "%%DESTDIR%%/etc/newsyslog.conf" 2>/dev/null 1>&2; then
if ! fgrep "polipo.pid" "%%DESTDIR%%/etc/newsyslog.conf" 2>/dev/null 1>&2; then
echo "==> ERROR: Previous installation left an invalid entry in %%DESTDIR%%/etc/newsyslog.conf."