diff options
author | ume <ume@FreeBSD.org> | 2003-08-31 18:27:18 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-08-31 18:27:18 +0800 |
commit | f493652ff5d9c8d1d3d7a67339c8920a10a5e688 (patch) | |
tree | 608d95830a75cb6cf310a707dd9ea4858b3d7ff0 /sysutils/gkrellm2/Makefile | |
parent | bbec9441b64ee7250ba8c89cde4a1acf00f0656b (diff) | |
download | freebsd-ports-gnome-f493652ff5d9c8d1d3d7a67339c8920a10a5e688.tar.gz freebsd-ports-gnome-f493652ff5d9c8d1d3d7a67339c8920a10a5e688.tar.zst freebsd-ports-gnome-f493652ff5d9c8d1d3d7a67339c8920a10a5e688.zip |
Use USE_RC_SUBR.
Diffstat (limited to 'sysutils/gkrellm2/Makefile')
-rw-r--r-- | sysutils/gkrellm2/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile index a90d17dd318d..438ab60fcc6b 100644 --- a/sysutils/gkrellm2/Makefile +++ b/sysutils/gkrellm2/Makefile @@ -16,6 +16,8 @@ MASTER_SITE_SUBDIR= ume MAINTAINER= ume@FreeBSD.org COMMENT= A GTK based system monitor +USE_RC_SUBR= YES + WRKSRC= ${WRKDIR}/${DISTNAME:C/[a-z]$//} .if defined(GKRELLM_SERVER_ONLY) @@ -62,6 +64,9 @@ CFLAGS+= -DSYSTEM_THEMES_DIR='\"${X11BASE}/share/gkrellm2/themes\"' \ -DSYSTEM_PLUGINS_DIR='\"${X11BASE}/libexec/gkrellm2/plugins\"' \ -DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"' +RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ + RC_SUBR=${RC_SUBR} + pre-everything:: .if !defined(GKRELLM_SERVER_ONLY) @${ECHO} "" @@ -77,9 +82,9 @@ post-install: @${CHMOD} 2511 ${X11BASE}/bin/gkrellm .endif @${CHMOD} 2511 ${PREFIX}/sbin/gkrellmd - @${SED} -e "s;%%PREFIX%%;${PREFIX};g" \ - ${FILESDIR}/gkrellmd.sh > ${PREFIX}/etc/rc.d/gkrellmd.sh.sample - @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/gkrellmd.sh.sample + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/gkrellmd.sh > ${PREFIX}/etc/rc.d/gkrellmd.sh + @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/gkrellmd.sh ${INSTALL_DATA} ${WRKSRC}/server/gkrellmd.conf \ ${PREFIX}/etc/gkrellmd.conf.sample if [ ! -f ${PREFIX}/etc/gkrellmd.conf ]; then \ |