diff options
author | barner <barner@FreeBSD.org> | 2006-09-05 15:20:39 +0800 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2006-09-05 15:20:39 +0800 |
commit | ccf30729fd18057759c18846c0c7284ba3ddf992 (patch) | |
tree | 9343d7962ed32d95d7ee7190e150d9a0235c76ec /sysutils | |
parent | 9ba57678f9def8c1c41be712ced33ff16b7c3ba4 (diff) | |
download | freebsd-ports-gnome-ccf30729fd18057759c18846c0c7284ba3ddf992.tar.gz freebsd-ports-gnome-ccf30729fd18057759c18846c0c7284ba3ddf992.tar.zst freebsd-ports-gnome-ccf30729fd18057759c18846c0c7284ba3ddf992.zip |
- Use proper mechanisms for pkg-message and rc script
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
PR: ports/102005
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/fvcool/Makefile | 20 | ||||
-rw-r--r-- | sysutils/fvcool/files/fvcool.sh.in (renamed from sysutils/fvcool/scripts/fvcool.sh) | 0 | ||||
-rw-r--r-- | sysutils/fvcool/files/pkg-message.in (renamed from sysutils/fvcool/pkg-message) | 0 |
3 files changed, 4 insertions, 16 deletions
diff --git a/sysutils/fvcool/Makefile b/sysutils/fvcool/Makefile index d1b83f202486..1bf650465825 100644 --- a/sysutils/fvcool/Makefile +++ b/sysutils/fvcool/Makefile @@ -17,35 +17,23 @@ 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: diff --git a/sysutils/fvcool/scripts/fvcool.sh b/sysutils/fvcool/files/fvcool.sh.in index e33398997d47..e33398997d47 100644 --- a/sysutils/fvcool/scripts/fvcool.sh +++ b/sysutils/fvcool/files/fvcool.sh.in diff --git a/sysutils/fvcool/pkg-message b/sysutils/fvcool/files/pkg-message.in index b825562157ae..b825562157ae 100644 --- a/sysutils/fvcool/pkg-message +++ b/sysutils/fvcool/files/pkg-message.in |