diff options
author | marius <marius@FreeBSD.org> | 2006-02-20 20:10:14 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2006-02-20 20:10:14 +0000 |
commit | b6da9671589e10e676e16498e83da589675f8ec6 (patch) | |
tree | 3638c7125c0dc8db90ea09d27b32bc3bf353d0a4 /sysutils/afbinit/Makefile | |
parent | 1e99376fc72c95fdde42f56a7298baed743dfc47 (diff) | |
download | FreeBSD-ports-b6da9671589e10e676e16498e83da589675f8ec6.zip FreeBSD-ports-b6da9671589e10e676e16498e83da589675f8ec6.tar.gz |
- Switch to a rc.d startup script.
- Remove obsolete USE_REINPLACE.
Approved by: netchild
Diffstat (limited to 'sysutils/afbinit/Makefile')
-rw-r--r-- | sysutils/afbinit/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sysutils/afbinit/Makefile b/sysutils/afbinit/Makefile index 287464f..c737a95 100644 --- a/sysutils/afbinit/Makefile +++ b/sysutils/afbinit/Makefile @@ -7,7 +7,7 @@ PORTNAME= afbinit PORTVERSION= 1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils graphics MASTER_SITES= ${MASTER_SITE_DEBIAN} MASTER_SITE_SUBDIR= pool/contrib/a/afbinit @@ -22,18 +22,18 @@ MAINTAINER= marius@FreeBSD.org COMMENT= Sun AFB aka Sun Elite 3D microcode firmware loader ONLY_FOR_ARCHS= sparc64 -USE_REINPLACE= yes +USE_RC_SUBR= afbinit.sh WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} PKGMESSAGE= ${WRKDIR}/pkg-message MAN8= afbinit.8 post-patch: -.for i in afbinit.c debian/afbinit.8 debian/afbinit.init +.for i in afbinit.c debian/afbinit.8 @${REINPLACE_CMD} -E -e 's|\/usr\/lib|${DATADIR}|g; \ s|(\/dev\/fb\[)[0-3]+(\])|\10-7\2|g; \ - s|\/etc\/init.d\/afb|${PREFIX}/etc/afbinit.sh|g; \ - s|\/usr\/sbin|${PREFIX}/sbin|g' ${WRKSRC}/${i} + s|\/etc\/init.d\/afb|${PREFIX}/etc/rc.d/afbinit\{,.sh\}|g' \ + ${WRKSRC}/${i} .endfor @${SED} 's|%%DATADIR%%|${DATADIR}|g' ${PKGDIR}/pkg-message > \ ${WRKDIR}/pkg-message @@ -44,8 +44,6 @@ do-build: do-install: @${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${PREFIX}/sbin @${INSTALL_MAN} ${WRKSRC}/debian/afbinit.8 ${PREFIX}/man/man8 - @${INSTALL_SCRIPT} ${WRKSRC}/debian/afbinit.init \ - ${PREFIX}/etc/rc.d/afbinit.sh @${INSTALL} -d ${DATADIR} post-install: |