Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2014 13:56:47 +0000 (UTC)
From:      "Helmut Schneider" <jumper99@gmx.de>
To:        freebsd-ports@freebsd.org
Subject:   autoplist
Message-ID:  <xn0j2gy6v7tau3000@news.gmane.org>

next in thread | raw e-mail | index | archive | help
Hi,

I'm trying to replace my pkg-plist (www/typo3*, 12k lines) with
autoplist.

do-install:
        ${MKDIR}
${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}
        ${CP} -R ${WRKDIR}/${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/
        ${LN} -fs ../${TYPO3SRC}
${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/typo3_src
        ${LN} -fs typo3_src/index.php
${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/index.php
        ${LN} -fs typo3_src/typo3
${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/typo3
        ${CP} ${WRKDIR}/${TYPO3SRC}/_.htaccess
${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/.h
taccess
        ${CHOWN} -R ${WWWOWN}:${WWWGRP}
${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}

post-install:
#       cd ${STAGEDIR}${PREFIX}/${TYPO3WWW}
        @${FIND} ${STAGEDIR}${PREFIX}/${TYPO3WWW} \( -type f -or -type
l \) | \
                ${SED} -ne 's#^${WRKSRC}#${TYPO3WWW}#p' | ${SORT} >>
${TMPPLIST}
        @${FIND} ${STAGEDIR}${PREFIX}/${TYPO3WWW} -type d | \
                ${SED} -ne 's#^${WRKSRC}#@dirrm ${TYPO3WWW}#p' |
${SORT} >> ${TMPPLIST}
#       @${FIND} * \( -type f -or -type l \) | ${SORT} >> ${TMPPLIST}
#       @${FIND} * -type d | ${SORT} | \
#               ${SED} -ne 's#^#@dirrm #p' | >> ${TMPPLIST}

Unfortunately it doesn't work, either nothing is installed, or:

[...]
pkg-static:
lstat(/usr/ports/www/typo3-lts/work/stage/typo3_src-6.2.3/typo3/sysext/w
orkspaces/Tests/Functional/Service/): No such file or directory
pkg-static:
lstat(/usr/ports/www/typo3-lts/work/stage/typo3_src-6.2.3/typo3/sysext/w
orkspaces/Tests/Functional/Service/Fixtures/): No such file or directory
[...]

I tried so many things without success, could anyone please point me to
the right direction?

Thanks, Helmut




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xn0j2gy6v7tau3000>