Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.pkgng.mk
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | .endif | ||||
${CP} ${DESCR} ${METADIR}/+DESC; \ | ${CP} ${DESCR} ${METADIR}/+DESC; \ | ||||
[ -f ${PKGMESSAGE} ] && ${CP} ${PKGMESSAGE} ${METADIR}/+DISPLAY || return 0 | [ -f ${PKGMESSAGE} ] && ${CP} ${PKGMESSAGE} ${METADIR}/+DISPLAY || return 0 | ||||
.if !defined(NO_MTREE) | .if !defined(NO_MTREE) | ||||
@[ -f ${MTREE_FILE} ] && ${CP} ${MTREE_FILE} ${METADIR}/+MTREE_DIRS || return 0 | @[ -f ${MTREE_FILE} ] && ${CP} ${MTREE_FILE} ${METADIR}/+MTREE_DIRS || return 0 | ||||
.endif | .endif | ||||
.if !target(fake-pkg) | .if !target(fake-pkg) | ||||
.if defined(NO_STAGE) | |||||
STAGE_ARGS= -l | |||||
.else | |||||
STAGE_ARGS= -i ${STAGEDIR} | STAGE_ARGS= -i ${STAGEDIR} | ||||
.endif | |||||
.if !defined(NO_PKG_REGISTER) | .if !defined(NO_PKG_REGISTER) | ||||
fake-pkg: create-manifest | fake-pkg: create-manifest | ||||
.if defined(INSTALLS_DEPENDS) | .if defined(INSTALLS_DEPENDS) | ||||
@${ECHO_MSG} "===> Registering installation for ${PKGNAME} as automatic" | @${ECHO_MSG} "===> Registering installation for ${PKGNAME} as automatic" | ||||
.else | .else | ||||
@${ECHO_MSG} "===> Registering installation for ${PKGNAME}" | @${ECHO_MSG} "===> Registering installation for ${PKGNAME}" | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | if [ -n "$${conflicts_with}" ]; then \ | ||||
${ECHO_MSG} " Please remove them first with pkg delete."; \ | ${ECHO_MSG} " Please remove them first with pkg delete."; \ | ||||
exit 1; \ | exit 1; \ | ||||
fi | fi | ||||
.endif # defined(DEFER_CONFLICTS_CHECK) | .endif # defined(DEFER_CONFLICTS_CHECK) | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if !target(do-package) | .if !target(do-package) | ||||
.if !defined(NO_STAGE) | |||||
PKG_CREATE_ARGS= -r ${STAGEDIR} -m ${METADIR} -p ${TMPPLIST} | PKG_CREATE_ARGS= -r ${STAGEDIR} -m ${METADIR} -p ${TMPPLIST} | ||||
do-package: create-manifest | do-package: create-manifest | ||||
.endif | |||||
do-package: ${TMPPLIST} | do-package: ${TMPPLIST} | ||||
@if [ -d ${PACKAGES} ]; then \ | @if [ -d ${PACKAGES} ]; then \ | ||||
if [ ! -d ${PKGREPOSITORY} ]; then \ | if [ ! -d ${PKGREPOSITORY} ]; then \ | ||||
if ! ${MKDIR} ${PKGREPOSITORY}; then \ | if ! ${MKDIR} ${PKGREPOSITORY}; then \ | ||||
${ECHO_MSG} "=> Can't create directory ${PKGREPOSITORY}."; \ | ${ECHO_MSG} "=> Can't create directory ${PKGREPOSITORY}."; \ | ||||
exit 1; \ | exit 1; \ | ||||
fi; \ | fi; \ | ||||
fi; \ | fi; \ | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |