1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- Respect DESTDIR for all my ports

Reviewed by:	gabor
Approved by:	krion (mentor)
This commit is contained in:
Martin Wilke 2006-08-07 07:58:28 +00:00
parent d526191223
commit 1e48ead47e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169917
9 changed files with 24 additions and 20 deletions

View File

@ -8,7 +8,6 @@
PORTNAME= dact
PORTVERSION= 0.8.41
PORTREVISION= 0
CATEGORIES= archivers
MASTER_SITES= http://www.rkeene.org/files/oss/dact/release/
@ -31,12 +30,17 @@ MAKE_ARGS= CONF=${EXAMPLESDIR}/dact.conf \
MAN1= dact.1
INSTALLS_SHLIB= yes
post-patch:
@${REINPLACE_CMD} -e "s|prefix = @prefix@|prefix = ${TARGETDIR}|" \
-e "s|libdir = @libdir@|libdir = ${TARGETDIR}/lib|" \
${WRKSRC}/Makefile.in
pre-install:
@${MKDIR} ${EXAMPLESDIR}
@${RM} -f ${WRKSRC}/libdact.a
post-install:
@${CP} -n ${EXAMPLESDIR}/dact.conf ${PREFIX}/etc
@${CP} -n ${EXAMPLESDIR}/dact.conf ${TARGETDIR}/etc
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR}

View File

@ -20,8 +20,8 @@ MAKEFILE= makefile
MAN1= robodoc.1 robohdrs.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Source/robodoc ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/Source/robohdrs ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/Source/robodoc ${TARGETDIR}/bin
${INSTALL_PROGRAM} ${WRKSRC}/Source/robohdrs ${TARGETDIR}/bin
${INSTALL_MAN} ${WRKSRC}/Docs/robodoc.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/Docs/robohdrs.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)

View File

@ -30,6 +30,6 @@ post-patch:
@${PERL} -pi -e "s|/usr/bin/perl|${PERL}|g" ${WRKSRC}/springgraph.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/springgraph.pl ${PREFIX}/bin/springgraph
${INSTALL_SCRIPT} ${WRKSRC}/springgraph.pl ${TARGETDIR}/bin/springgraph
.include <bsd.port.mk>

View File

@ -54,7 +54,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|Linux|@VERSION@|g' ${WRKSRC}/doc/quickref.1.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qsf ${PREFIX}/bin/qsf
${INSTALL_PROGRAM} ${WRKSRC}/qsf ${TARGETDIR}/bin/qsf
${INSTALL_MAN} ${WRKSRC}/doc/quickref.1 ${MANPREFIX}/man/man1/qsf.1
.include <bsd.port.post.mk>

View File

@ -33,7 +33,7 @@ post-patch:
-e 's|^CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${TARGETDIR}/bin/
${INSTALL} -d ${DATADIR}
${INSTALL_DATA} ${RAW:S,^,${WRKSRC}/raw.data/,} ${DATADIR}/
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/

View File

@ -34,12 +34,12 @@ CONFIGURE_ARGS+= --disable-ipv6
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${TARGETDIR}/bin
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${MANPREFIX}/man/man1
@${ECHO_MSG} '===> Installing ${PREFIX}/etc/icpld.conf.sample file.'
${INSTALL_DATA} ${WRKSRC}/icpld.conf.sample ${PREFIX}/etc
@${ECHO_MSG} '===> Installing ${PREFIX}/etc/rc.d/icpld.sh.sample'
${INSTALL_SCRIPT} ${WRKSRC}/contrib/icpld.sh.sample ${PREFIX}/etc/rc.d
@${ECHO_MSG} '===> Installing ${TARGETDIR}/etc/icpld.conf.sample file.'
${INSTALL_DATA} ${WRKSRC}/icpld.conf.sample ${TARGETDIR}/etc
@${ECHO_MSG} '===> Installing ${TARGETDIR}/etc/rc.d/icpld.sh.sample'
${INSTALL_SCRIPT} ${WRKSRC}/contrib/icpld.sh.sample ${TARGETDIR}/etc/rc.d
post-install:
.if !defined(NOPORTDOCS)

View File

@ -21,6 +21,6 @@ NO_BUILD= none
USE_PERL5_RUN= yes
do-install:
${INSTALL_SCRIPT} ${DISTDIR}/${DISTNAME} ${PREFIX}/bin
${INSTALL_SCRIPT} ${DISTDIR}/${DISTNAME} ${TARGETDIR}/bin
.include <bsd.port.mk>

View File

@ -16,10 +16,10 @@ COMMENT= An implementation of the UNIX 6th Edition shell
MAN1= fd2.1 goto.1 if.1 osh.1
post-install:
@${ECHO_MSG} "updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/osh /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/osh) > /etc/shells
@${RM} /etc/shells.bak
@${ECHO_MSG} "updating ${DESTDIR}/etc/shells"
@${CP} ${DESTDIR}/etc/shells ${DESTDIR}/etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/osh ${DESTDIR}/etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/osh) > ${DESTDIR}/etc/shells
@${RM} ${DESTDIR}/etc/shells.bak
.include <bsd.port.mk>

View File

@ -2,5 +2,5 @@ bin/fd2
bin/goto
bin/if
bin/osh
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
@exec echo "updating ${DESTDIR}/etc/shells"; cp ${DESTDIR}/etc/shells ${DESTDIR}/etc/shells.bak; (grep -v %D/%F ${DESTDIR}/etc/shells.bak; echo %D/%F) >${DESTDIR}/etc/shells
@unexec echo "updating ${DESTDIR}/etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells