Index: head/sysutils/tuptime/Makefile =================================================================== --- head/sysutils/tuptime/Makefile (revision 402217) +++ head/sysutils/tuptime/Makefile (revision 402218) @@ -1,32 +1,38 @@ # Created by: Jeremy Johnston # $FreeBSD$ PORTNAME= tuptime +PORTREVISION= 1 DISTVERSIONPREFIX= v DISTVERSION= 3.2.01 CATEGORIES= sysutils MAINTAINER= jeremy@smart-serv.net COMMENT= Historical and statistical system running time report tool LICENSE= GPLv2 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7:${PORTSDIR}/databases/py-sqlite3 -USES= python shebangfix +USES= python:run shebangfix USE_GITHUB= yes GH_ACCOUNT= rfrail3 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: head/sysutils/tuptime/files/pkg-message.in =================================================================== --- head/sysutils/tuptime/files/pkg-message.in (revision 402217) +++ head/sysutils/tuptime/files/pkg-message.in (revision 402218) @@ -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: - - 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 + %%EXAMPLESDIR%%/db-tuptime-migrate.sh + %%EXAMPLESDIR%%/db-tuptime-migrate-3.0-to-3.1.sh ======================================================================