diff options
author | edwin <edwin@FreeBSD.org> | 2006-07-20 01:15:03 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2006-07-20 01:15:03 +0000 |
commit | 40591fa770c345985e9072724eb2866dea49aaa4 (patch) | |
tree | 234545af7e3c9290166a96d87e7d4631975c8060 /ports-mgmt/portsnap/Makefile | |
parent | 3ac218bd0e14fad44f36ae7655750aa0dc5a951d (diff) | |
download | FreeBSD-ports-40591fa770c345985e9072724eb2866dea49aaa4.zip FreeBSD-ports-40591fa770c345985e9072724eb2866dea49aaa4.tar.gz |
sysutils/portsnap - cleanup
- move pkg-message to files/pkg-message.in and use SUB_FILES
- move post-extract to post-patch and use REINPLACE_CMD
- replace ${PREFIX} in man-page with %%PREFIX%% and then REINPLACE_CMD
over it.
- Make replacement in former post-extract actually work due to
changed layout of the file.
PR: ports/100584
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Approved by: cperciva@#bsdports
Diffstat (limited to 'ports-mgmt/portsnap/Makefile')
-rw-r--r-- | ports-mgmt/portsnap/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ports-mgmt/portsnap/Makefile b/ports-mgmt/portsnap/Makefile index ccd6fad..dacdc01 100644 --- a/ports-mgmt/portsnap/Makefile +++ b/ports-mgmt/portsnap/Makefile @@ -31,15 +31,12 @@ PLIST_FILES= etc/portsnap.conf.sample sbin/portsnap \ libexec/phttpget \ libexec/make_index portsnap/.package.this.directory PLIST_DIRS= portsnap - +SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message -post-extract: - ${SED} -e "s#PREFIX=/usr/local#PREFIX=${PREFIX}#g" \ - ${WRKSRC}/portsnap > ${WRKSRC}/portsnap.new - ${MV} ${WRKSRC}/portsnap.new ${WRKSRC}/portsnap - @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${PKGDIR}/pkg-message \ - > ${PKGMESSAGE} +post-patch: + ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/portsnap ${WRKSRC}/portsnap.8 do-install: ${INSTALL_SCRIPT} ${WRKSRC}/portsnap ${PREFIX}/sbin |