diff --git a/build.profile b/build.profile index c082c9e..8fe6caa 100644 --- a/build.profile +++ b/build.profile @@ -1,17 +1,17 @@ -BUILD_TAG=2.6.1 +BUILD_TAG=2.6.3 . build.local -PAPERLESS_LOGGING_DIR=${PROJECT}/log - DEVSHM=/dev/shm/${USER}/${BUILD_TAG} PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin NPROC=$(nproc) XDG_CACHE_HOME=${PREFIX}/cache TMPDIR=${TMPDIR:-/tmp/${USER}/${BUILD_TAG}} +LOGDIR=${PROJECT}/log BUILD_sqlite=sqlite-3.45.1 +BUILD_redis=redis-7.2.4 BUILD_python=Python-3.11.8 BUILD_node=node-20.11.0 BUILD_ffmpeg=ffmpeg-6.1.1 @@ -25,4 +25,4 @@ BUILD_jbig2enc=jbig2enc-0.28-17-gea05019 BUILD_jbig2dec=jbig2dec-0.20 BUILD_libfontttf=liberation-fonts-ttf-2.1.5 -BUILD_paperless=paperless-ngx-2.6.2 +BUILD_paperless=paperless-ngx-2.6.3 diff --git a/buildall.sh b/buildall.sh index 709199b..03fac53 100755 --- a/buildall.sh +++ b/buildall.sh @@ -58,8 +58,10 @@ ln -fs "${logfile}" "${LOGS}/build.log" { ./profile.build.sh -./startstop-paperless.build.sh +./startstop.build.sh [ -d "${BUILD_sqlite}" ] || ./sqlite.build.sh +[ -d "${BUILD_redis}" ] || ./redis.build.sh +./redis.startstop.build.sh [ -d "${BUILD_python}" ] || ./Python.build.sh [ -d "${BUILD_node}" ] || ./node.build.sh [ -d "${BUILD_ffmpeg}" ] || ./ffmpeg.build.sh @@ -73,7 +75,9 @@ ln -fs "${logfile}" "${LOGS}/build.log" [ -d "${BUILD_libfontttf}" ] || ./liberation-fonts-ttf.build.sh [ -d "${BUILD_nginx}" ] || ./nginx.build.sh ./nginx.conf.build.sh +./nginx.startstop.build.sh [ -d "$PROJECT/${BUILD_paperless}" ] || ./paperless-ngx.build.sh +./paperless-gunicorn.startstop.build.sh } 2>&1 | tee "$logfile" 2>&1 diff --git a/cleanall.sh b/cleanall.sh index 337a674..880a613 100644 --- a/cleanall.sh +++ b/cleanall.sh @@ -18,6 +18,7 @@ RMRF=( "${BUILD_paperless}" "${BUILD_pngquant}" "${BUILD_python}" + "${BUILD_redis}" "${BUILD_sqlite}" "${BUILD_tesseract}" "${BUILD_unpaper}" diff --git a/profile.build.sh b/profile.build.sh index 78a8e92..b5d3f21 100755 --- a/profile.build.sh +++ b/profile.build.sh @@ -17,6 +17,7 @@ PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin . ${PROJECT}/${BUILD_sqlite}/profile . ${PROJECT}/${BUILD_python}/profile . ${PROJECT}/${BUILD_node}/profile +. ${PROJECT}/${BUILD_redis}/profile . ${PROJECT}/${BUILD_nginx}/profile . ${PROJECT}/${BUILD_unpaper}/profile . ${PROJECT}/${BUILD_ffmpeg}/profile diff --git a/redis.build.sh b/redis.build.sh new file mode 100755 index 0000000..26312cc --- /dev/null +++ b/redis.build.sh @@ -0,0 +1,36 @@ +#!/bin/bash +{ +set -x +set -e +set -u + +. build.profile + +function B_REDIS { + +SRCURL="https://download.redis.io/releases/redis-7.2.4.tar.gz" + +BUILD_PKG=${BUILD_redis} + +PREFIX=${PREFIX}/${BUILD_PKG} + +mkdir -p $PREFIX + +cat >$PREFIX/profile <<-EOF +PATH=$PREFIX/bin:\$PATH +# PKG_CONFIG_PATH=${PROJECT}/${BUILD_PKG}/lib/pkgconfig\${PKG_CONFIG_PATH:+:}\$PKG_CONFIG_PATH +EOF + + +test -e ${BUILD_PKG}.tar.gz || wget -nv ${SRCURL} -O ${BUILD_PKG}.tar.gz +test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}.tar.gz --strip-components=1 -C ${BUILD_PKG} + +cd ${BUILD_PKG} + +make -j "${NPROC}" install PREFIX="${PREFIX}" + +} + +B_REDIS + +}