Skip to content

Commit

Permalink
[mod] Makefile: move fetch image to port Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
leafoliage committed Mar 4, 2024
1 parent 8d38a72 commit ef78e46
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ SUB_LIST+= EXT_IF=${GATE}
_SUB_LIST_EXP= ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
_SCRIPT_SRC= sbin/dockerbox

IMG_TAR_SUM= f1b04cd0f4bb9366ce2e5d111ce22082428e3fb0f81ec796d9607038cd8c8c4e

install: image
${MKDIR} -p ${BINDIR}
${SED} ${_SUB_LIST_EXP} ${_SCRIPT_SRC} > ${BINDIR}/dockerbox
Expand All @@ -75,14 +73,7 @@ install: image
${SED} ${_SUB_LIST_EXP} rc.d/dockerbox > ${RCDIR}/dockerbox
${CHMOD} 555 ${RCDIR}/dockerbox

dockerbox-img.tar.gz:
${FETCH} https://github.com/leafoliage/freebsd-dockerbox/releases/download/disk-0.1.0/dockerbox-img.tar.gz

verify: dockerbox-img.tar.gz
DOWNLOAD_TAR_SUM="$$(${SHA256SUM} dockerbox-img.tar.gz | ${AWK} '{print $$1}')" && \
if [ "$${DOWNLOAD_TAR_SUM}" != '${IMG_TAR_SUM}' ]; then echo Error$: checksum not match; exit 1; fi

image: dockerbox-img.tar.gz verify
image: dockerbox-img.tar.gz
${MKDIR} -p ${SHAREDIR}/dockerbox
${TAR} -xf dockerbox-img.tar.gz -C ${SHAREDIR}/dockerbox

Expand Down

0 comments on commit ef78e46

Please sign in to comment.