mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
o Uphold port style tradition: handle post extraction duties in
post-extract instead of pre-install o Handle per installation transient files in PKG{,DE}INSTALL instead of PLIST o Do not install corrupted binary o Do not @ prefix inside PKG{,DE}INSTALL PR: 32645 Submitted by: Kuang-che Wu <kcwu@ck.tp.edu.tw> (PR), maintainer (most of the fix)
This commit is contained in:
parent
791383e0d0
commit
c05f72127c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51300
@ -54,7 +54,7 @@ TEMP_EXMPDIR= ${TEMP_PREFIX}/share/examples
|
||||
PLIST_SUB= LIBDIR=${LIBDIR}
|
||||
|
||||
# install staging area
|
||||
pre-install:
|
||||
post-extract:
|
||||
@${TAR} xf ${WRKSRC}/binary.tar --directory ${WRKSRC}
|
||||
@${TAR} xf ${WRKSRC}/sources.tar --directory ${WRKSRC}
|
||||
@${MKDIR} ${TEMP_PREFIX}
|
||||
@ -66,7 +66,6 @@ pre-install:
|
||||
@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
|
||||
--files-from ${FILESDIR}/tar-xlist \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
@${RM} -f ${TEMP_EXECDIR}/ppc386
|
||||
#unpack units
|
||||
@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfclfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@ -97,8 +96,9 @@ pre-install:
|
||||
@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_EXMPDIR}
|
||||
@${MV} ${TEMP_EXMPDIR}/src/fpc-${PORTVERSION} \
|
||||
${TEMP_PREFIX}/share/examples
|
||||
@${RM} -rfd ${TEMP_EXMPDIR}/src
|
||||
.endif
|
||||
|
||||
do-patch:
|
||||
#unpack and patch sample (working) configuration file
|
||||
@${PATCH} --dir ${TEMP_LIBDIR} < ${FILESDIR}/fix-samplecfg
|
||||
|
||||
|
@ -5,19 +5,31 @@
|
||||
PKGNAME=$1
|
||||
ACTION=$2
|
||||
|
||||
FILES_DELETE="bin/ppc386 etc/ppc386.cfg etc/ppc386.cfg.orig"
|
||||
|
||||
LIBDIR=${PKG_PREFIX}/lib/fpc/${PKGNAME##fpc-}
|
||||
|
||||
CHMOD=/bin/chmod
|
||||
LN=/bin/ln
|
||||
RM=/bin/rm
|
||||
SH=/bin/sh
|
||||
|
||||
case "$ACTION" in
|
||||
|
||||
POST-INSTALL)
|
||||
@${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
||||
@${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
||||
${CHMOD} 0555 ${LIBDIR}/ppc386
|
||||
${CHMOD} 0555 ${LIBDIR}/samplecfg
|
||||
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
||||
${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
||||
;;
|
||||
|
||||
DEINSTALL)
|
||||
for file in ${FILES_DELETE}
|
||||
do
|
||||
if [ -f ${PKG_PREFIX}/${file} ]; then
|
||||
${RM} ${PKG_PREFIX}/${file}
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
||||
PRE-INSTALL|POST-DEINSTALL)
|
||||
|
@ -8,15 +8,12 @@ bin/fprcp
|
||||
bin/h2pas
|
||||
bin/plex
|
||||
bin/postw32
|
||||
bin/ppc386
|
||||
bin/ppdep
|
||||
bin/ppudump
|
||||
bin/ppufiles
|
||||
bin/ppumove
|
||||
bin/ptop
|
||||
bin/pyacc
|
||||
bin/rstconv
|
||||
etc/ppc386.cfg
|
||||
lib/fpc/1.0.4/msg/errord.msg
|
||||
lib/fpc/1.0.4/msg/errore.msg
|
||||
lib/fpc/1.0.4/msg/errores.msg
|
||||
|
@ -54,7 +54,7 @@ TEMP_EXMPDIR= ${TEMP_PREFIX}/share/examples
|
||||
PLIST_SUB= LIBDIR=${LIBDIR}
|
||||
|
||||
# install staging area
|
||||
pre-install:
|
||||
post-extract:
|
||||
@${TAR} xf ${WRKSRC}/binary.tar --directory ${WRKSRC}
|
||||
@${TAR} xf ${WRKSRC}/sources.tar --directory ${WRKSRC}
|
||||
@${MKDIR} ${TEMP_PREFIX}
|
||||
@ -66,7 +66,6 @@ pre-install:
|
||||
@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
|
||||
--files-from ${FILESDIR}/tar-xlist \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
@${RM} -f ${TEMP_EXECDIR}/ppc386
|
||||
#unpack units
|
||||
@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfclfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@ -97,8 +96,9 @@ pre-install:
|
||||
@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_EXMPDIR}
|
||||
@${MV} ${TEMP_EXMPDIR}/src/fpc-${PORTVERSION} \
|
||||
${TEMP_PREFIX}/share/examples
|
||||
@${RM} -rfd ${TEMP_EXMPDIR}/src
|
||||
.endif
|
||||
|
||||
do-patch:
|
||||
#unpack and patch sample (working) configuration file
|
||||
@${PATCH} --dir ${TEMP_LIBDIR} < ${FILESDIR}/fix-samplecfg
|
||||
|
||||
|
@ -5,19 +5,31 @@
|
||||
PKGNAME=$1
|
||||
ACTION=$2
|
||||
|
||||
FILES_DELETE="bin/ppc386 etc/ppc386.cfg etc/ppc386.cfg.orig"
|
||||
|
||||
LIBDIR=${PKG_PREFIX}/lib/fpc/${PKGNAME##fpc-}
|
||||
|
||||
CHMOD=/bin/chmod
|
||||
LN=/bin/ln
|
||||
RM=/bin/rm
|
||||
SH=/bin/sh
|
||||
|
||||
case "$ACTION" in
|
||||
|
||||
POST-INSTALL)
|
||||
@${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
||||
@${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
||||
${CHMOD} 0555 ${LIBDIR}/ppc386
|
||||
${CHMOD} 0555 ${LIBDIR}/samplecfg
|
||||
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
||||
${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
||||
;;
|
||||
|
||||
DEINSTALL)
|
||||
for file in ${FILES_DELETE}
|
||||
do
|
||||
if [ -f ${PKG_PREFIX}/${file} ]; then
|
||||
${RM} ${PKG_PREFIX}/${file}
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
||||
PRE-INSTALL|POST-DEINSTALL)
|
||||
|
@ -8,15 +8,12 @@ bin/fprcp
|
||||
bin/h2pas
|
||||
bin/plex
|
||||
bin/postw32
|
||||
bin/ppc386
|
||||
bin/ppdep
|
||||
bin/ppudump
|
||||
bin/ppufiles
|
||||
bin/ppumove
|
||||
bin/ptop
|
||||
bin/pyacc
|
||||
bin/rstconv
|
||||
etc/ppc386.cfg
|
||||
lib/fpc/1.0.4/msg/errord.msg
|
||||
lib/fpc/1.0.4/msg/errore.msg
|
||||
lib/fpc/1.0.4/msg/errores.msg
|
||||
|
Loading…
Reference in New Issue
Block a user