mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Add new _FORCE_POST_PATTERNS which is a pkgng only macro containing a list of command
that if found in a @(un)exec pkgng will force to push them in post_deinstallation script. This allows not to hardcode anymore those in the pkgng binary.
This commit is contained in:
parent
13fa766047
commit
9c08e72240
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315444
@ -17,6 +17,11 @@ PKGPOSTDEINSTALL?= ${PKGDIR}/pkg-post-deinstall
|
||||
PKGPREUPGRADE?= ${PKGDIR}/pkg-pre-upgrade
|
||||
PKGPOSTUPGRADE?= ${PKGDIR}/pkg-post-upgrade
|
||||
PKGUPGRADE?= ${PKGDIR}/pkg-upgrade
|
||||
_FORCE_POST_PATTERNS= rmdir kldxref mkfontscale mkfontdir fc-cache \
|
||||
fonts.dir fonst.scale gtk-update-icon-cache \
|
||||
gio-querymodules \
|
||||
update-desktop-database update-mime-database
|
||||
|
||||
PLIST_REINPLACE:= ${PLIST_REINPLACE:Ndirrmtry}
|
||||
PLIST_REINPLACE:= ${PLIST_REINPLACE:Nstopdaemon}
|
||||
|
||||
@ -139,9 +144,9 @@ fake-pkg:
|
||||
@[ -f ${MTREE_FILE} ] && ${CP} ${MTREE_FILE} ${METADIR}/+MTREE_DIRS || return 0
|
||||
.endif
|
||||
.if defined(INSTALLS_DEPENDS)
|
||||
@${PKG_CMD} -d -l -m ${METADIR} -f ${TMPPLIST}
|
||||
@${SETENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CMD} -d -l -m ${METADIR} -f ${TMPPLIST}
|
||||
.else
|
||||
@${PKG_CMD} -l -m ${METADIR} -f ${TMPPLIST}
|
||||
@${SETENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CMD} -l -m ${METADIR} -f ${TMPPLIST}
|
||||
.endif
|
||||
@${RM} -rf ${METADIR}
|
||||
.else
|
||||
|
Loading…
Reference in New Issue
Block a user