|
|
@ -105,6 +105,12 @@ fi
|
|
|
|
if [ "${TYPE}" = 'dir' ]; then
|
|
|
|
if [ "${TYPE}" = 'dir' ]; then
|
|
|
|
cp -rT "${BUILD_DIR}" "${OUT}"
|
|
|
|
cp -rT "${BUILD_DIR}" "${OUT}"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
CONFIG_FILES=$(cd "${BUILD_DIR}" && \
|
|
|
|
|
|
|
|
find etc/ \
|
|
|
|
|
|
|
|
! -path 'etc/one-context.d/*' \
|
|
|
|
|
|
|
|
! -path 'etc/init*' \
|
|
|
|
|
|
|
|
-type f -printf '--config-files %p ')
|
|
|
|
|
|
|
|
|
|
|
|
fpm --name "${NAME}" --version "${VERSION}" --iteration "${RELEASE_FULL}" \
|
|
|
|
fpm --name "${NAME}" --version "${VERSION}" --iteration "${RELEASE_FULL}" \
|
|
|
|
--architecture all --license "${LICENSE}" \
|
|
|
|
--architecture all --license "${LICENSE}" \
|
|
|
|
--vendor "${VENDOR}" --maintainer "${MAINTAINER}" \
|
|
|
|
--vendor "${VENDOR}" --maintainer "${MAINTAINER}" \
|
|
|
@ -117,6 +123,8 @@ else
|
|
|
|
${DEPENDS:+ --depends ${DEPENDS// / --depends }} \
|
|
|
|
${DEPENDS:+ --depends ${DEPENDS// / --depends }} \
|
|
|
|
--replaces "${REPLACES}" \
|
|
|
|
--replaces "${REPLACES}" \
|
|
|
|
--conflicts "${REPLACES}" \
|
|
|
|
--conflicts "${REPLACES}" \
|
|
|
|
|
|
|
|
--deb-no-default-config-files \
|
|
|
|
|
|
|
|
${CONFIG_FILES} \
|
|
|
|
--package "${OUT}"
|
|
|
|
--package "${OUT}"
|
|
|
|
# --provides "${REPLACES}" \
|
|
|
|
# --provides "${REPLACES}" \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|