1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Generate plist either statically or before do-install phase for

compatibility with upcoming bsd.port.mk patches.

Submitted by:	Sergey Matveychuk <sem@ciam.ru>
This commit is contained in:
Joe Marcus Clarke 2003-07-05 19:01:41 +00:00
parent 14a6960fa4
commit b213c0c4e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84245
11 changed files with 329 additions and 45 deletions

View File

@ -26,21 +26,25 @@ MAN1= secftp.1
PLIST= ${WRKDIR}/.PLIST
pre-install:
@${CP} ${PKGDIR}/pkg-plist.in ${PLIST}.unsorted
@if [ ! -f ${PREFIX}/bin/sftp ]; then \
${ECHO_CMD} bin/sftp >> ${PLIST}.unsorted; \
${ECHO_CMD} man/man1/sftp.1.gz >> ${PLIST}.unsorted; \
fi
@sort -u ${PLIST}.unsorted > ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sftp ${PREFIX}/bin/secftp
${LN} -s ${PREFIX}/bin/secftp ${PREFIX}/bin/rsftp
${INSTALL_PROGRAM} ${WRKSRC}/sftpserv ${PREFIX}/bin/sftpserv
${INSTALL_MAN} ${WRKSRC}/sftp.1 ${PREFIX}/man/man1/secftp.1
${CP} ${PKGDIR}/pkg-plist.in ${PLIST}.unsorted
@if [ ! -f ${PREFIX}/bin/sftp ]; then \
${ECHO} "No other sftp found, linking sftp to secftp"; \
${LN} -s ${PREFIX}/bin/secftp ${PREFIX}/bin/sftp; \
${LN} -s ${PREFIX}/man/man1/secftp.1.gz ${PREFIX}/man/man1/sftp.1.gz; \
${ECHO_CMD} bin/sftp >> ${PLIST}.unsorted; \
${ECHO_CMD} man/man1/sftp.1.gz >> ${PLIST}.unsorted; \
else \
${ECHO} "Other sftp found, not linking sftp to secftp"; \
fi
@sort -u ${PLIST}.unsorted > ${PLIST}
.include <bsd.port.post.mk>

View File

@ -29,12 +29,13 @@ do-build:
${GZIP_CMD} -r ${WRKSRC}/${manpages}/man* || exit 0
.endif
pre-install:
find ${WRKSRC}/${manpages} -type f -print | \
${SED} "s%${WRKSRC}/${manpages}%man/${LANG}%" > ${PLIST}
do-install:
cd ${WRKSRC}/${manpages}; \
${TAR} cf - . | \
(cd ${mandir}; ${TAR} xf - )
find ${WRKSRC}/${manpages} -type f -print | \
${SED} "s%${WRKSRC}/${manpages}%man/${LANG}%" > \
${WRKSRC}/PLIST
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# ex:ts=8 -*-mode: makefile-*-
# ex:ts=8
#
# New ports collection makefile for: mgp-gallery
# Date created: 2002-12-28
@ -30,11 +30,6 @@ USE_X_PREFIX= yes
PKGDATA_SUBDIR= lib/X11/mgp
PKGDATADIR= ${PREFIX}/${PKGDATA_SUBDIR}
PLIST= ${WRKDIR}/plist
post-extract:
${TOUCH} ${PLIST}
do-install:
${MKDIR} ${PKGDATADIR}
.for i in midgard backgrounds solid gradients
@ -43,11 +38,6 @@ do-install:
${INSTALL_DATA} * ${PKGDATADIR}/${i};\
${SCRIPTDIR}/fix-gallery "${INSTALL_DATA}" ${PKGDATADIR}/${i} *.mgp
.endfor # i in midgard backgrounds solid gradient
cd ${PREFIX};\
${RM} -f ${PLIST};\
${FIND} ${PKGDATA_SUBDIR} -type f | sort >>${PLIST};\
${FIND} ${PKGDATA_SUBDIR} -type d | sort -r \
| ${SED} 's|^|@dirrm |' >>${PLIST}
.include <bsd.port.post.mk>

View File

@ -0,0 +1,65 @@
lib/X11/mgp/backgrounds/bg-black-brilliant.jpg
lib/X11/mgp/backgrounds/bg-black-brilliant.mgp
lib/X11/mgp/backgrounds/bg-blue-flares-stripe.jpg
lib/X11/mgp/backgrounds/bg-blue-flares-stripe.mgp
lib/X11/mgp/backgrounds/bg-blue-flares.jpg
lib/X11/mgp/backgrounds/bg-blue-flares.mgp
lib/X11/mgp/backgrounds/bg-blue-tubes.jpg
lib/X11/mgp/backgrounds/bg-blue-tubes.mgp
lib/X11/mgp/backgrounds/bg-fourstripes-deepblue.jpg
lib/X11/mgp/backgrounds/bg-fourstripes-deepblue.mgp
lib/X11/mgp/backgrounds/bg-green-blue.jpg
lib/X11/mgp/backgrounds/bg-green-blue.mgp
lib/X11/mgp/backgrounds/bg-parallel.jpg
lib/X11/mgp/backgrounds/bg-parallel.mgp
lib/X11/mgp/backgrounds/bg-somber.jpg
lib/X11/mgp/backgrounds/bg-somber.mgp
lib/X11/mgp/backgrounds/linux-logo.gif
lib/X11/mgp/backgrounds/linux-logo.jpg
lib/X11/mgp/gradients/gr-00.mgp
lib/X11/mgp/gradients/gr-01.mgp
lib/X11/mgp/gradients/gr-02.mgp
lib/X11/mgp/gradients/gr-03.mgp
lib/X11/mgp/gradients/gr-04.mgp
lib/X11/mgp/gradients/gr-05.mgp
lib/X11/mgp/gradients/gr-06.mgp
lib/X11/mgp/gradients/gr-07.mgp
lib/X11/mgp/gradients/gr-08.mgp
lib/X11/mgp/gradients/gr-09.mgp
lib/X11/mgp/gradients/gr-10.mgp
lib/X11/mgp/gradients/gr-11.mgp
lib/X11/mgp/gradients/gr-12.mgp
lib/X11/mgp/gradients/gr-13.mgp
lib/X11/mgp/gradients/gr-14.mgp
lib/X11/mgp/gradients/gr-15.mgp
lib/X11/mgp/gradients/gr-16.mgp
lib/X11/mgp/gradients/gr-17.mgp
lib/X11/mgp/gradients/gr-18.mgp
lib/X11/mgp/gradients/gr-black-purple.mgp
lib/X11/mgp/gradients/gr-white-purple.mgp
lib/X11/mgp/gradients/linux-logo.gif
lib/X11/mgp/midgard/linux-logo.gif
lib/X11/mgp/midgard/midgard-1999-black.mgp
lib/X11/mgp/midgard/midgard-1999-white.mgp
lib/X11/mgp/midgard/midgard-black-bg.jpg
lib/X11/mgp/midgard/midgard-white-bg.jpg
lib/X11/mgp/solid/bar-danger-white.jpg
lib/X11/mgp/solid/bar-plasma-white.jpg
lib/X11/mgp/solid/bar-squares-white.jpg
lib/X11/mgp/solid/bar-yellow-white.jpg
lib/X11/mgp/solid/black-yellow-white.mgp
lib/X11/mgp/solid/brush-lemonchiffon.jpg
lib/X11/mgp/solid/brush-white.jpg
lib/X11/mgp/solid/linux-logo.gif
lib/X11/mgp/solid/plain-bw.mgp
lib/X11/mgp/solid/tan-darkblue.mgp
lib/X11/mgp/solid/white-brush.mgp
lib/X11/mgp/solid/white-danger-bar.mgp
lib/X11/mgp/solid/white-plasma-bar.mgp
lib/X11/mgp/solid/white-squares-bar.mgp
lib/X11/mgp/solid/white-yellow-bar.mgp
@dirrm lib/X11/mgp/solid
@dirrm lib/X11/mgp/midgard
@dirrm lib/X11/mgp/gradients
@dirrm lib/X11/mgp/backgrounds
@dirrm lib/X11/mgp

View File

@ -38,8 +38,10 @@ ALL_TARGET= depend all
MAN1= ${F77NAME}.1
PLIST= ${WRKDIR}/PLIST
do-install:
pre-install:
@${ECHO_CMD} 'bin/${F77NAME}' > ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/f77 ${PREFIX}/bin/${F77NAME}
@${SED} -e 's/F77/${F77NAME}/g' -e 's/f77/${F77NAME}/g' \
${WRKSRC}/f77.1 > ${WRKSRC}/${F77NAME}.1

View File

@ -63,12 +63,14 @@ pre-fetch:
@${ECHO_MSG}
.endif
pre-install:
@${CAT} ${PLISTS} > ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/biblereader ${PREFIX}/bin/biblereader
${MKDIR} ${PREFIX}/share/biblereader
for file in ${DATAFILES}; do \
${INSTALL_DATA} $${file} ${PREFIX}/share/biblereader; \
done
@${CAT} ${PLISTS} > ${PLIST}
.include <bsd.port.mk>

View File

@ -19,7 +19,6 @@ RUN_DEPENDS= tclsh8.2:${PORTSDIR}/lang/tcl82 \
NO_BUILD= yes
WRKSRC= ${WRKDIR}/tik
PLIST= ${WRKDIR}/PLIST
SORT?= sort
@ -38,31 +37,23 @@ DOCFILES= CHANGES CONTRIBUTORS COPYING LICENSE README-LANG \
# The packing list starts with just bin/tik. As we install things,
# build onto the list.
do-install:
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
.for d in ${SRCDIRS}
@${MKDIR} ${PREFIX}/${d}
@${ECHO_CMD} @dirrm ${d} >> ${PLIST}.dirrm
.endfor
.for f in ${SRCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/tik/${f}
@${ECHO_CMD} share/tik/${f} >> ${PLIST}
.endfor
@${MKDIR} ${PREFIX}/${EGDIR}
@${ECHO_CMD} @dirrm ${EGDIR} >> ${PLIST}.dirrm
.for f in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${EGDIR}/${f}
@${ECHO_CMD} ${EGDIR}/${f} >> ${PLIST}
.endfor
@${SED} 's#@PREFIX@#${PREFIX}#g' < ${FILESDIR}/tik >${WRKDIR}/tik.sh
${INSTALL_SCRIPT} ${WRKDIR}/tik.sh ${PREFIX}/bin/tik
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/${DOCDIR}
@${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}.dirrm
.for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DOCDIR}/${f}
@${ECHO_CMD} ${DOCDIR}/${f} >> ${PLIST}
.endfor
.endif
@${SORT} -r ${PLIST}.dirrm >> ${PLIST} && ${RM} ${PLIST}.dirrm
.include <bsd.port.post.mk>

View File

@ -1 +1,120 @@
bin/tik
%%PORTDOCS%%share/doc/tik/CHANGES
%%PORTDOCS%%share/doc/tik/CONTRIBUTORS
%%PORTDOCS%%share/doc/tik/COPYING
%%PORTDOCS%%share/doc/tik/LICENSE
%%PORTDOCS%%share/doc/tik/NEW-FEATURES
%%PORTDOCS%%share/doc/tik/README-LANG
%%PORTDOCS%%share/doc/tik/TODO
share/examples/tik/example.pkgrc
share/examples/tik/example.tikstrs
share/tik/balloonhelp.tcl
share/tik/buddylist.tcl
share/tik/buddymgmt.tcl
share/tik/callbacks.tcl
share/tik/chat.tcl
share/tik/components/HTTPProxy.tcl
share/tik/components/away.tcl
share/tik/components/bcast.tcl
share/tik/components/beat.tcl
share/tik/components/boxinfo.tcl
share/tik/components/buddylog.tcl
share/tik/components/chatcapture.tcl
share/tik/components/dir.tcl
share/tik/components/filetrans.tcl
share/tik/components/getaway.tcl
share/tik/components/imcapture.tcl
share/tik/components/pounce.tcl
share/tik/components/quickchat.tcl
share/tik/components/remoteadmin.tcl
share/tik/components/remotegui.tcl
share/tik/components/search.tcl
share/tik/components/socksproxy.tcl
share/tik/components/sslproxy.tcl
share/tik/components/ticker.tcl
share/tik/configTool.tcl
share/tik/configandpkg.tcl
share/tik/configdir.tcl
share/tik/im.tcl
share/tik/info.tcl
share/tik/media/AOL.gif
share/tik/media/Admin.gif
share/tik/media/Away.gif
share/tik/media/BuddyArrive.au
share/tik/media/BuddyLeave.au
share/tik/media/DT.gif
share/tik/media/DoorSlam.wav
share/tik/media/Icon.gif
share/tik/media/Idle.gif
share/tik/media/Login.gif
share/tik/media/Logo.gif
share/tik/media/Logout.gif
share/tik/media/Oscar.gif
share/tik/media/Pounce.wav
share/tik/media/Receive.au
share/tik/media/Send.au
share/tik/media/add.gif
share/tik/media/angel.gif
share/tik/media/back.gif
share/tik/media/bigsmile.gif
share/tik/media/block.gif
share/tik/media/bold.gif
share/tik/media/bsmile.gif
share/tik/media/burp.gif
share/tik/media/chat.gif
share/tik/media/close.gif
share/tik/media/color.gif
share/tik/media/crossedlips.gif
share/tik/media/cry.gif
share/tik/media/delete.gif
share/tik/media/dooropen.wav
share/tik/media/downarrow.gif
share/tik/media/embarrassed.gif
share/tik/media/font.gif
share/tik/media/ignore.gif
share/tik/media/im.gif
share/tik/media/imrcv.wav
share/tik/media/imsend.wav
share/tik/media/info.gif
share/tik/media/invite.gif
share/tik/media/italic.gif
share/tik/media/kiss.gif
share/tik/media/moneymouth.gif
share/tik/media/ok.gif
share/tik/media/ring.wav
share/tik/media/sad.gif
share/tik/media/scream.gif
share/tik/media/send.gif
share/tik/media/smile.gif
share/tik/media/smile8.gif
share/tik/media/strike.gif
share/tik/media/think.gif
share/tik/media/tongue.gif
share/tik/media/underline.gif
share/tik/media/uparrow.gif
share/tik/media/warn.gif
share/tik/media/whisper.gif
share/tik/media/wink.gif
share/tik/media/yell.gif
share/tik/packages/control.tcl
share/tik/packages/mynews.tcl
share/tik/popup.tcl
share/tik/prefs.tcl
share/tik/preproc.tcl
share/tik/protocol.tcl
share/tik/proxy.tcl
share/tik/sag.tcl
share/tik/sflap.tcl
share/tik/strs/English.strs
share/tik/tik.tcl
share/tik/toc.tcl
share/tik/ui.tcl
share/tik/util.tcl
share/tik/version.tcl
@dirrm share/tik/strs
@dirrm share/tik/packages
@dirrm share/tik/media
@dirrm share/tik/components
@dirrm share/tik
@dirrm share/examples/tik
@dirrm share/doc/tik

View File

@ -24,20 +24,20 @@ PLIST= ${WRKDIR}/plist
SORT?= /usr/bin/sort
pre-install:
cd ${WRKSRC}; ${FIND} . -type f \
| ${SORT} | ${SED} -e 's|^\.|danamics|' >${PLIST}
cd ${WRKSRC}; ${FIND} . -type d \
| ${SORT} -r | ${SED} -e 's|^\.|@dirrm danamics|' >>${PLIST}
${ECHO} bin/danamics >>${PLIST}
do-install:
${MKDIR} ${PREFIX}/danamics
${CP} -R ${WRKSRC}/* ${PREFIX}/danamics
cd ${PREFIX}; ${FIND} danamics -type f \
| ${SORT} >${PLIST}
cd ${PREFIX}; ${FIND} danamics -type d \
| ${SORT} -r | ${SED} -e 's|^|@dirrm |' >>${PLIST}
${SED} \
-e s,%%PREFIX%%,${PREFIX},g \
< ${FILESDIR}/danamics.sh > ${PREFIX}/bin/danamics; \
${CHMOD} a+x ${PREFIX}/bin/danamics
${ECHO} bin/danamics >>${PLIST}
.include <bsd.port.post.mk>

View File

@ -19,7 +19,6 @@ RUN_DEPENDS= tclsh8.2:${PORTSDIR}/lang/tcl82 \
NO_BUILD= yes
WRKSRC= ${WRKDIR}/tik
PLIST= ${WRKDIR}/PLIST
SORT?= sort
@ -38,31 +37,23 @@ DOCFILES= CHANGES CONTRIBUTORS COPYING LICENSE README-LANG \
# The packing list starts with just bin/tik. As we install things,
# build onto the list.
do-install:
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
.for d in ${SRCDIRS}
@${MKDIR} ${PREFIX}/${d}
@${ECHO_CMD} @dirrm ${d} >> ${PLIST}.dirrm
.endfor
.for f in ${SRCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/tik/${f}
@${ECHO_CMD} share/tik/${f} >> ${PLIST}
.endfor
@${MKDIR} ${PREFIX}/${EGDIR}
@${ECHO_CMD} @dirrm ${EGDIR} >> ${PLIST}.dirrm
.for f in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${EGDIR}/${f}
@${ECHO_CMD} ${EGDIR}/${f} >> ${PLIST}
.endfor
@${SED} 's#@PREFIX@#${PREFIX}#g' < ${FILESDIR}/tik >${WRKDIR}/tik.sh
${INSTALL_SCRIPT} ${WRKDIR}/tik.sh ${PREFIX}/bin/tik
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/${DOCDIR}
@${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}.dirrm
.for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DOCDIR}/${f}
@${ECHO_CMD} ${DOCDIR}/${f} >> ${PLIST}
.endfor
.endif
@${SORT} -r ${PLIST}.dirrm >> ${PLIST} && ${RM} ${PLIST}.dirrm
.include <bsd.port.post.mk>

View File

@ -1 +1,120 @@
bin/tik
%%PORTDOCS%%share/doc/tik/CHANGES
%%PORTDOCS%%share/doc/tik/CONTRIBUTORS
%%PORTDOCS%%share/doc/tik/COPYING
%%PORTDOCS%%share/doc/tik/LICENSE
%%PORTDOCS%%share/doc/tik/NEW-FEATURES
%%PORTDOCS%%share/doc/tik/README-LANG
%%PORTDOCS%%share/doc/tik/TODO
share/examples/tik/example.pkgrc
share/examples/tik/example.tikstrs
share/tik/balloonhelp.tcl
share/tik/buddylist.tcl
share/tik/buddymgmt.tcl
share/tik/callbacks.tcl
share/tik/chat.tcl
share/tik/components/HTTPProxy.tcl
share/tik/components/away.tcl
share/tik/components/bcast.tcl
share/tik/components/beat.tcl
share/tik/components/boxinfo.tcl
share/tik/components/buddylog.tcl
share/tik/components/chatcapture.tcl
share/tik/components/dir.tcl
share/tik/components/filetrans.tcl
share/tik/components/getaway.tcl
share/tik/components/imcapture.tcl
share/tik/components/pounce.tcl
share/tik/components/quickchat.tcl
share/tik/components/remoteadmin.tcl
share/tik/components/remotegui.tcl
share/tik/components/search.tcl
share/tik/components/socksproxy.tcl
share/tik/components/sslproxy.tcl
share/tik/components/ticker.tcl
share/tik/configTool.tcl
share/tik/configandpkg.tcl
share/tik/configdir.tcl
share/tik/im.tcl
share/tik/info.tcl
share/tik/media/AOL.gif
share/tik/media/Admin.gif
share/tik/media/Away.gif
share/tik/media/BuddyArrive.au
share/tik/media/BuddyLeave.au
share/tik/media/DT.gif
share/tik/media/DoorSlam.wav
share/tik/media/Icon.gif
share/tik/media/Idle.gif
share/tik/media/Login.gif
share/tik/media/Logo.gif
share/tik/media/Logout.gif
share/tik/media/Oscar.gif
share/tik/media/Pounce.wav
share/tik/media/Receive.au
share/tik/media/Send.au
share/tik/media/add.gif
share/tik/media/angel.gif
share/tik/media/back.gif
share/tik/media/bigsmile.gif
share/tik/media/block.gif
share/tik/media/bold.gif
share/tik/media/bsmile.gif
share/tik/media/burp.gif
share/tik/media/chat.gif
share/tik/media/close.gif
share/tik/media/color.gif
share/tik/media/crossedlips.gif
share/tik/media/cry.gif
share/tik/media/delete.gif
share/tik/media/dooropen.wav
share/tik/media/downarrow.gif
share/tik/media/embarrassed.gif
share/tik/media/font.gif
share/tik/media/ignore.gif
share/tik/media/im.gif
share/tik/media/imrcv.wav
share/tik/media/imsend.wav
share/tik/media/info.gif
share/tik/media/invite.gif
share/tik/media/italic.gif
share/tik/media/kiss.gif
share/tik/media/moneymouth.gif
share/tik/media/ok.gif
share/tik/media/ring.wav
share/tik/media/sad.gif
share/tik/media/scream.gif
share/tik/media/send.gif
share/tik/media/smile.gif
share/tik/media/smile8.gif
share/tik/media/strike.gif
share/tik/media/think.gif
share/tik/media/tongue.gif
share/tik/media/underline.gif
share/tik/media/uparrow.gif
share/tik/media/warn.gif
share/tik/media/whisper.gif
share/tik/media/wink.gif
share/tik/media/yell.gif
share/tik/packages/control.tcl
share/tik/packages/mynews.tcl
share/tik/popup.tcl
share/tik/prefs.tcl
share/tik/preproc.tcl
share/tik/protocol.tcl
share/tik/proxy.tcl
share/tik/sag.tcl
share/tik/sflap.tcl
share/tik/strs/English.strs
share/tik/tik.tcl
share/tik/toc.tcl
share/tik/ui.tcl
share/tik/util.tcl
share/tik/version.tcl
@dirrm share/tik/strs
@dirrm share/tik/packages
@dirrm share/tik/media
@dirrm share/tik/components
@dirrm share/tik
@dirrm share/examples/tik
@dirrm share/doc/tik