diff options
author | pav <pav@FreeBSD.org> | 2010-04-16 15:18:28 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2010-04-16 15:18:28 +0800 |
commit | 676dc73be4ebfa9a0e0cc4ba14be93021458ba4d (patch) | |
tree | bcd1c884e6d50ff1ec6f65062814c505d40dc07a /Mk | |
parent | 6a3d12fa620028fb9b5c63cebca71b7d201c4105 (diff) | |
download | freebsd-ports-gnome-676dc73be4ebfa9a0e0cc4ba14be93021458ba4d.tar.gz freebsd-ports-gnome-676dc73be4ebfa9a0e0cc4ba14be93021458ba4d.tar.zst freebsd-ports-gnome-676dc73be4ebfa9a0e0cc4ba14be93021458ba4d.zip |
- Desupport RC_SUBR and RC_SUBR_SUFFIX macros, they have been replaced with
literal "/etc/rc.subr" and "" values.
PR: ports/145092
Submitted by: dougb
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 9c4de5912865..0edfa18ef189 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -519,8 +519,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # Implies inclusion of bsd.xorg.mk. ## # USE_RC_SUBR - If set, the ports startup/shutdown script uses the common -# routines found in etc/rc.subr and may need to -# depend on the sysutils/rc_subr port. +# routines found in /etc/rc.subr. # If this is set to a list of files, these files will be # automatically added to ${SUB_FILES}, some %%VAR%%'s will # automatically be expanded, they will be installed in @@ -528,10 +527,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_RCORDER - List of rc.d startup scripts to be called early in the boot # process. This acts exactly like USE_RC_SUBR except that # scripts are installed in /etc/rc.d. -# RC_SUBR - Set to path of rc.subr. -# Default: ${LOCALBASE}/etc/rc.subr. -# RC_SUBR_SUFFIX -# - Contains the suffix of installed rc.subr scripts. +# Because local rc.d scripts are included in the base rcorder +# this option is not needed unless the port installs in the base. ## # USE_APACHE - If set, this port relies on an apache webserver. # @@ -1637,7 +1634,7 @@ SUB_LIST+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \ PLIST_REINPLACE+= dirrmtry stopdaemon rmtry PLIST_REINPLACE_DIRRMTRY=s!^@dirrmtry \(.*\)!@unexec rmdir %D/\1 2>/dev/null || true! PLIST_REINPLACE_RMTRY=s!^@rmtry \(.*\)!@unexec rm -f %D/\1 2>/dev/null || true! -PLIST_REINPLACE_STOPDAEMON=s!^@stopdaemon \(.*\)!@unexec %D/etc/rc.d/\1${RC_SUBR_SUFFIX} forcestop 2>/dev/null || true! +PLIST_REINPLACE_STOPDAEMON=s!^@stopdaemon \(.*\)!@unexec %D/etc/rc.d/\1 forcestop 2>/dev/null || true! # kludge to strip trailing whitespace from CFLAGS; # sub-configure will not # survive double space @@ -1867,21 +1864,13 @@ IGNORE= cannot be built with unknown FAM system: ${FAM_SYSTEM} .endif .endif # USE_FAM -.if defined(USE_RC_SUBR) || defined(USE_RCORDER) -RC_SUBR= /etc/rc.subr -SUB_LIST+= RC_SUBR=${RC_SUBR} .if defined(USE_RC_SUBR) && ${USE_RC_SUBR:U} != "YES" SUB_FILES+= ${USE_RC_SUBR} .endif + .if defined(USE_RCORDER) SUB_FILES+= ${USE_RCORDER} .endif -.if (${OSVERSION} >= 700007 || ${OSVERSION} < 700000) -RC_SUBR_SUFFIX?= -.else -RC_SUBR_SUFFIX?= .sh -.endif -.endif .if defined(USE_LDCONFIG) && ${USE_LDCONFIG:L} == "yes" USE_LDCONFIG= ${PREFIX}/lib @@ -5944,8 +5933,8 @@ install-rc-script: @${ECHO_MSG} "===> Installing rc.d startup script(s)" @${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST} @for i in ${USE_RC_SUBR}; do \ - ${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}${RC_SUBR_SUFFIX}; \ - ${ECHO_CMD} "etc/rc.d/$${i%.sh}${RC_SUBR_SUFFIX}" >> ${TMPPLIST}; \ + ${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}; \ + ${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \ done .endif .else |