summaryrefslogtreecommitdiff
path: root/sysutils/est/Makefile
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2006-03-18 00:32:05 +0000
committerColin Percival <cperciva@FreeBSD.org>2006-03-18 00:32:05 +0000
commit8968cce14b6595cda2b8ba2899a8417ededf3f75 (patch)
treefca7b78f0a4143b5bda80bfa495b945e74d5b589 /sysutils/est/Makefile
parentUpdate to 4.6.6 fixing four security issues. See http://drupal.org/security (diff)
A much-needed cleanup of the portification of this code:
Remove PREFIX/modules directory if it doesn't contain other modules; use static plist (new file: pkg-plist). Switch to a modern USE_RC_SUBR (moved file: files/est.sh --> files/est.in). Silence install here and there. Fix IGNORE message. IGNORE if no kernel sources installed. Bump PORTREVISION for plist change. PR: ports/93985 Submitted by: itetcu (who really needs to get a commit bit soon...)
Notes
Notes: svn path=/head/; revision=157513
Diffstat (limited to 'sysutils/est/Makefile')
-rw-r--r--sysutils/est/Makefile21
1 files changed, 8 insertions, 13 deletions
diff --git a/sysutils/est/Makefile b/sysutils/est/Makefile
index e95b920d7185..fec868900ed6 100644
--- a/sysutils/est/Makefile
+++ b/sysutils/est/Makefile
@@ -7,7 +7,7 @@
PORTNAME= est
PORTVERSION= 0.7.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://www.daemonology.net/freebsd-est/
@@ -18,27 +18,22 @@ ONLY_FOR_ARCHS= i386
KMODDIR= ${PREFIX}/modules
MAKE_ARGS= KMODDIR="${KMODDIR}"
-USE_RC_SUBR= yes
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-
-PLIST_FILES= modules/est.ko \
- etc/rc.d/est.sh
+USE_RC_SUBR= ${PORTNAME}
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 600015
-IGNORE= est now contained in the base system (see cpufreq(4))
+IGNORE= is now contained in the base system (see cpufreq(4))
.endif
-post-extract:
- ${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/est.sh > ${WRKDIR}/est.sh
+.if !exists(${SRC_BASE}/sys/Makefile)
+IGNORE= needs kernel source files
+.endif
pre-install:
- ${MKDIR} ${KMODDIR}
+ @${MKDIR} ${KMODDIR}
post-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/est.sh ${PREFIX}/etc/rc.d/est.sh
- ${CAT} ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>