ports/72101: sysutils/fvcool -- update to 1.0.4, take maintainership
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sun Sep 26 13:40:09 UTC 2004
>Number: 72101
>Category: ports
>Synopsis: sysutils/fvcool -- update to 1.0.4, take maintainership
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 26 13:40:08 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Matthew Seaman
>Release: FreeBSD 4.10-STABLE i386
>Organization:
Infracaninophile
>Environment:
System: FreeBSD happy-idiot-talk.infracaninophile.co.uk 4.10-STABLE FreeBSD 4.10-STABLE #83: Tue Sep 21 12:22:54 BST 2004 root at happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386
>Description:
- Update to version 1.0.4
- Add rc.subr compatible initialization script
- Take maintainership.
Release notes for version 1.0.4 may be found here:
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/README-FVCool104.html
Files/Directories changed with this PR:
Added:
files
files/fvcool.sh
Changed:
Makefile
distinfo
pkg-message
pkg-plist
>How-To-Repeat:
>Fix:
--- fvcool.diff begins here ---
diff -Nur /usr/ports/sysutils/fvcool/Makefile fvcool/Makefile
--- /usr/ports/sysutils/fvcool/Makefile Mon Jul 28 23:42:55 2003
+++ fvcool/Makefile Sun Sep 26 14:23:16 2004
@@ -6,30 +6,45 @@
#
PORTNAME= fvcool
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/
DISTNAME= FVCool${PORTVERSION:S/.//g}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= m.seaman at infracaninophile.co.uk
COMMENT= VCool for FreeBSD - Cooling software for AMD Athlon/Duron CPUs
ONLY_FOR_ARCHS= i386
USE_REINPLACE= yes
GNU_CONFIGURE= yes
+USE_RC_SUBR= yes
ALL_TARGET= fvcool
PLIST_SUB+= DOCSDIR=${DOCSDIR:S,^${PREFIX}/,,}
+MSG_FILE= ${PKGDIR}/pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
-DOC_FILES= 00README.txt 00READMEj.txt 00READMEkt133.txt
+SED_SCRIPT= -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
+ -e 's,%%PORTNAME%%,${PORTNAME},g' \
+ -e 's,%%PREFIX%%,${PREFIX},g'
+
+DOC_FILES= ReadMe ReadMe.jp ReadMe.tech_KT133
post-patch:
@${REINPLACE_CMD} -e 's|@CC@|& ${CFLAGS}|; \
s|-O3||g ; s| -s | |g' ${BUILD_WRKSRC}/Makefile.in
+post-build:
+ @${SED} ${SED_SCRIPT} ${FILESDIR}/${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:
diff -Nur /usr/ports/sysutils/fvcool/distinfo fvcool/distinfo
--- /usr/ports/sysutils/fvcool/distinfo Fri Jan 30 11:15:06 2004
+++ fvcool/distinfo Sun Sep 26 13:41:27 2004
@@ -1,2 +1,2 @@
-MD5 (FVCool103.tar.gz) = d5e56d9d79ca7d642f54f94a7b8eb696
-SIZE (FVCool103.tar.gz) = 51712
+MD5 (FVCool104.tar.gz) = c42222059abd57a430d9828fe19ff6bf
+SIZE (FVCool104.tar.gz) = 54611
diff -Nur /usr/ports/sysutils/fvcool/files/fvcool.sh fvcool/files/fvcool.sh
--- /usr/ports/sysutils/fvcool/files/fvcool.sh Thu Jan 1 01:00:00 1970
+++ fvcool/files/fvcool.sh Sun Sep 26 14:33:10 2004
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+# @(#) $FreeBSD$
+
+# PROVIDE: %%PORTNAME%%
+# REQUIRE: LOGIN abi
+# BEFORE: securelevel
+# KEYWORD: FreeBSD 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"
diff -Nur /usr/ports/sysutils/fvcool/pkg-message fvcool/pkg-message
--- /usr/ports/sysutils/fvcool/pkg-message Fri Nov 29 17:40:54 2002
+++ fvcool/pkg-message Sun Sep 26 14:25:39 2004
@@ -1,8 +1,21 @@
-WARNING: This software can have a negative impact on the system's
-stability, in particular while doing heavy duty work such as encoding
-music the system can freeze under certain conditions!
+===> How to enable the %%PORTNAME%% package
-Don't use this software in production or mission-critical environments!
+ 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.
-Also note that this software is supposed to be used with AMD Athlon (XP) an
-AMD Duron processors only!
diff -Nur /usr/ports/sysutils/fvcool/pkg-plist fvcool/pkg-plist
--- /usr/ports/sysutils/fvcool/pkg-plist Sun Oct 13 08:12:53 2002
+++ fvcool/pkg-plist Sun Sep 26 14:10:00 2004
@@ -1,5 +1,6 @@
sbin/fvcool
-%%PORTDOCS%%%%DOCSDIR%%/00README.txt
-%%PORTDOCS%%%%DOCSDIR%%/00READMEj.txt
-%%PORTDOCS%%%%DOCSDIR%%/00READMEkt133.txt
+etc/rc.d/fvcool.sh
+%%PORTDOCS%%%%DOCSDIR%%/ReadMe
+%%PORTDOCS%%%%DOCSDIR%%/ReadMe.jp
+%%PORTDOCS%%%%DOCSDIR%%/ReadMe.tech_KT133
%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- fvcool.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list