Index: head/sysutils/fvcool/scripts/fvcool.sh =================================================================== --- head/sysutils/fvcool/scripts/fvcool.sh (revision 172279) +++ head/sysutils/fvcool/scripts/fvcool.sh (nonexistent) @@ -1,48 +0,0 @@ -#!/bin/sh -# -# @(#) $FreeBSD$ - -# PROVIDE: %%PORTNAME%% -# REQUIRE: LOGIN abi -# BEFORE: securelevel -# KEYWORD: shutdown - -# Add the following line to /etc/rc.conf to enable `%%PORTNAME%%': -# -#%%PORTNAME%%_enable="YES" -# -# Other rc.conf variables: -# -# %%PORTNAME%%_flags Set to "-v" for verbose mode. -# - -. %%RC_SUBR%% - -name="%%PORTNAME%%" -rcvar=`set_rcvar` - -command="%%PREFIX%%/sbin/%%PORTNAME%%" -command_args="-e" - -# %%PORTNAME%% is a command to be run during startup and shutdown, not a -# long running daemon process. There's no pidfile to check, and it's -# hard to tell if %%PORTNAME%% is enabled or not -- just run '%%PORTNAME%% -e' to -# force enable it, '%%PORTNAME%% -d' to disable. - -stop_cmd="stop_cmd" -stop_cmd() -{ - $command -d -} - -status_cmd="status_cmd" -status_cmd() -{ - echo "Can't check %%PORTNAME%% status" -} - -load_rc_config "$name" -: ${%%PORTNAME%%_enable="NO"} -: ${%%PORTNAME%%_flags=""} - -run_rc_command "$1" Property changes on: head/sysutils/fvcool/scripts/fvcool.sh ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.2 \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: head/sysutils/fvcool/pkg-message =================================================================== --- head/sysutils/fvcool/pkg-message (revision 172279) +++ head/sysutils/fvcool/pkg-message (nonexistent) @@ -1,21 +0,0 @@ -===> How to enable the %%PORTNAME%% package - - If you want to invoke %%PORTNAME%% automatically on system startup, - add the following line to /etc/rc.conf: - - fvcool_enable="YES" - - See %%PREFIX%%/etc/rc.d/%%PORTNAME%%.sh for more details. - -===> WARNING - - This software can have a negative impact on system stability. In - particular while doing heavy duty work such as encoding music, - under certain conditions the system can freeze. - - Don't use this software in production or mission-critical - environments! - - Also note that this software is supposed to be used with AMD - Athlon (XP) an AMD Duron processors only. - Property changes on: head/sysutils/fvcool/pkg-message ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.3 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/sysutils/fvcool/Makefile =================================================================== --- head/sysutils/fvcool/Makefile (revision 172279) +++ head/sysutils/fvcool/Makefile (revision 172280) @@ -1,59 +1,47 @@ # New ports collection makefile for: fvcool # Date created: 5 October 2002 # Whom: Frerich Raabe # # $FreeBSD$ # PORTNAME= fvcool PORTVERSION= 1.0.4 CATEGORIES= sysutils MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/fvcool/ \ http://www.infracaninophile.co.uk/fvcool/ DISTNAME= FVCool${PORTVERSION:S/.//g} MAINTAINER= m.seaman@infracaninophile.co.uk COMMENT= VCool for FreeBSD - Cooling software for AMD Athlon/Duron CPUs ONLY_FOR_ARCHS= i386 GNU_CONFIGURE= yes -USE_RC_SUBR= yes +USE_RC_SUBR= fvcool.sh +SUB_FILES= pkg-message +SUB_LIST+= "PORTNAME=${PORTNAME}" ALL_TARGET= fvcool PLIST_SUB+= DOCSDIR=${DOCSDIR:S,^${PREFIX}/,,} -MSG_FILE= ${PKGDIR}/pkg-message -PKGMESSAGE= ${WRKDIR}/pkg-message -SED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \ - -e 's,%%PORTNAME%%,${PORTNAME},g' \ - -e 's,%%PREFIX%%,${PREFIX},g' - PORTDOCS= ReadMe ReadMe.jp ReadMe.tech_KT133 -PLIST_FILES= sbin/fvcool etc/rc.d/fvcool.sh +PLIST_FILES= sbin/fvcool post-patch: @${REINPLACE_CMD} -e 's|@CC@|& ${CFLAGS}|; \ s|-O3||g ; s| -s | |g' ${BUILD_WRKSRC}/Makefile.in -post-build: - @${SED} ${SED_SCRIPT} ${SCRIPTDIR}/${PORTNAME}.sh \ - > ${WRKDIR}/${PORTNAME}.sh - @${SED} ${SED_SCRIPT} ${MSG_FILE} \ - > ${PKGMESSAGE} - do-install: install-doc ${INSTALL_PROGRAM} ${WRKSRC}/fvcool ${PREFIX}/sbin/fvcool post-install: - @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh \ - ${PREFIX}/etc/rc.d/${PORTNAME}.sh @${CAT} ${PKGMESSAGE} install-doc: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif .include Property changes on: head/sysutils/fvcool/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.8 \ No newline at end of property +1.9 \ No newline at end of property Index: head/sysutils/fvcool/files/fvcool.sh.in =================================================================== --- head/sysutils/fvcool/files/fvcool.sh.in (nonexistent) +++ head/sysutils/fvcool/files/fvcool.sh.in (revision 172280) @@ -0,0 +1,48 @@ +#!/bin/sh +# +# @(#) $FreeBSD$ + +# PROVIDE: %%PORTNAME%% +# REQUIRE: LOGIN abi +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable `%%PORTNAME%%': +# +#%%PORTNAME%%_enable="YES" +# +# Other rc.conf variables: +# +# %%PORTNAME%%_flags Set to "-v" for verbose mode. +# + +. %%RC_SUBR%% + +name="%%PORTNAME%%" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/%%PORTNAME%%" +command_args="-e" + +# %%PORTNAME%% is a command to be run during startup and shutdown, not a +# long running daemon process. There's no pidfile to check, and it's +# hard to tell if %%PORTNAME%% is enabled or not -- just run '%%PORTNAME%% -e' to +# force enable it, '%%PORTNAME%% -d' to disable. + +stop_cmd="stop_cmd" +stop_cmd() +{ + $command -d +} + +status_cmd="status_cmd" +status_cmd() +{ + echo "Can't check %%PORTNAME%% status" +} + +load_rc_config "$name" +: ${%%PORTNAME%%_enable="NO"} +: ${%%PORTNAME%%_flags=""} + +run_rc_command "$1" Property changes on: head/sysutils/fvcool/files/fvcool.sh.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/sysutils/fvcool/files/pkg-message.in =================================================================== --- head/sysutils/fvcool/files/pkg-message.in (nonexistent) +++ head/sysutils/fvcool/files/pkg-message.in (revision 172280) @@ -0,0 +1,21 @@ +===> How to enable the %%PORTNAME%% package + + If you want to invoke %%PORTNAME%% automatically on system startup, + add the following line to /etc/rc.conf: + + fvcool_enable="YES" + + See %%PREFIX%%/etc/rc.d/%%PORTNAME%%.sh for more details. + +===> WARNING + + This software can have a negative impact on system stability. In + particular while doing heavy duty work such as encoding music, + under certain conditions the system can freeze. + + Don't use this software in production or mission-critical + environments! + + Also note that this software is supposed to be used with AMD + Athlon (XP) an AMD Duron processors only. + Property changes on: head/sysutils/fvcool/files/pkg-message.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property