svn commit: r402218 - in head/sysutils/tuptime: . files
Kurt Jaeger
pi at FreeBSD.org
Sun Nov 22 08:02:43 UTC 2015
Author: pi
Date: Sun Nov 22 08:02:41 2015
New Revision: 402218
URL: https://svnweb.freebsd.org/changeset/ports/402218
Log:
sysutils/tuptime: small fixes
- correct pkg-message and install upgrade scripts for older databases
PR: 204145
Submitted by: ricardo.fraile at gmail.com
Approved by: jeremy at smart-serv.net (maintainer)
Modified:
head/sysutils/tuptime/Makefile
head/sysutils/tuptime/files/pkg-message.in
Modified: head/sysutils/tuptime/Makefile
==============================================================================
--- head/sysutils/tuptime/Makefile Sun Nov 22 07:45:11 2015 (r402217)
+++ head/sysutils/tuptime/Makefile Sun Nov 22 08:02:41 2015 (r402218)
@@ -2,6 +2,7 @@
# $FreeBSD$
PORTNAME= tuptime
+PORTREVISION= 1
DISTVERSIONPREFIX= v
DISTVERSION= 3.2.01
CATEGORIES= sysutils
@@ -13,7 +14,7 @@ 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
@@ -21,12 +22,17 @@ 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 <bsd.port.mk>
Modified: head/sysutils/tuptime/files/pkg-message.in
==============================================================================
--- head/sysutils/tuptime/files/pkg-message.in Sun Nov 22 07:45:11 2015 (r402217)
+++ head/sysutils/tuptime/files/pkg-message.in Sun Nov 22 08:02:41 2015 (r402218)
@@ -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
======================================================================
More information about the svn-ports-all
mailing list