- Convert the port to be compliant with DESTDIR

This commit is contained in:
Sergey Matveychuk 2006-08-06 07:09:17 +00:00
parent 5b13a6298f
commit 686d94e44b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169800

View file

@ -30,8 +30,8 @@ MAN5= frox.conf.5
PORTDOCS= SECURITY CREDITS ChangeLog FAQ.html FAQ-1.html FAQ-2.html \
FAQ-3.html FAQ-4.html FAQ-5.html FAQ-6.html FAQ-7.html \
FAQ-8.html
PLIST_FILES= sbin/frox ${EXAMPLESDIR:S,${PREFIX}/,,}/frox.conf
PLIST_DIRS= ${EXAMPLESDIR:S,${PREFIX}/,,}
PLIST_FILES= sbin/frox ${EXAMPLESDIR:S,${TARGETDIR}/,,}/frox.conf
PLIST_DIRS= ${EXAMPLESDIR:S,${TARGETDIR}/,,}
PKGMESSAGE= ${WRKDIR}/pkg-message
@ -73,11 +73,11 @@ CONFIGURE_ARGS+= --enable-run-as-root
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/frox ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/src/frox ${TARGETDIR}/sbin
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/src/frox.conf ${EXAMPLESDIR}/frox.conf
${INSTALL_MAN} ${WRKSRC}/doc/frox.man ${PREFIX}/man/man1/frox.1
${INSTALL_MAN} ${WRKSRC}/doc/frox.conf.man ${PREFIX}/man/man5/frox.conf.5
${INSTALL_MAN} ${WRKSRC}/doc/frox.man ${MANPREFIX}/man/man1/frox.1
${INSTALL_MAN} ${WRKSRC}/doc/frox.conf.man ${MANPREFIX}/man/man5/frox.conf.5
post-install:
.if !defined(NOPORTDOCS)
@ -86,8 +86,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.endif
@${STRIP_CMD} ${PREFIX}/sbin/frox; \
${ECHO_MSG} "Install ${RC_DIR}/frox${RC_SUFX} startup file."; \
@${STRIP_CMD} ${TARGETDIR}/sbin/frox; \
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>