Index: Makefile =================================================================== --- Makefile (revision 400563) +++ Makefile (working copy) @@ -13,7 +13,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7:${PORTSDIR}/databases/py-sqlite3 -USES= python shebangfix +USES= python:run shebangfix USE_GITHUB= yes GH_ACCOUNT= rfrail3 @@ -21,12 +21,17 @@ NO_BUILD= yes USE_RC_SUBR= ${PORTNAME} -SHEBANG_FILES= latest/tuptime +SHEBANG_FILES= ${WRKSRC}/latest/tuptime ${WRKSRC}/scripts/* SUB_FILES= pkg-message -PLIST_FILES= bin/tuptime +PLIST_FILES= bin/tuptime \ + ${EXAMPLESDIR}/db-tuptime-migrate.sh \ + ${EXAMPLESDIR}/db-tuptime-migrate-3.0-to-3.1.sh do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/latest/tuptime ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/latest/tuptime ${STAGEDIR}${PREFIX}/bin/tuptime + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/db-tuptime-migrate.sh ${STAGEDIR}${EXAMPLESDIR}/db-tuptime-migrate.sh + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/db-tuptime-migrate-3.0-to-3.1.sh ${STAGEDIR}${EXAMPLESDIR}/db-tuptime-migrate-3.0-to-3.1.sh .include Index: files/pkg-message.in =================================================================== --- files/pkg-message.in (revision 400563) +++ files/pkg-message.in (working copy) @@ -1,18 +1,12 @@ ====================================================================== -tuptime requires linprocfs(5) mounted under /compat/linux/proc. +tuptime requires the following be added to /etc/crontab: -If you have not done it yet, please do the following: + */5 * * * * root %%PREFIX%%/bin/tuptime -x > /dev/null - mkdir -p /usr/compat/linux/proc; ln -sf usr/compat /compat - mount -t linprocfs linprocfs /compat/linux/proc +If you are upgrading from an older version you need to run the following scripts: -To make it permanent, you need the following lines in /etc/fstab: + %%EXAMPLESDIR%%/db-tuptime-migrate.sh + %%EXAMPLESDIR%%/db-tuptime-migrate-3.0-to-3.1.sh - linproc /compat/linux/proc linprocfs rw,late 0 0 - -tuptime also requires the following be added to /etc/crontab: - - */5 * * * * root test -x %%PREFIX%%/bin/tuptime && %%PREFIX%%/bin/tuptime -x > /dev/null - ======================================================================