diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-01-22 04:47:23 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-01-22 04:47:23 +0000 |
commit | b733011372e80957c1e9d3bbea3cbea90eb6c009 (patch) | |
tree | 58f3e4cf41c353062901bddf4358956fd0290951 /sysutils/bsdsar/pkg-install | |
parent | Update courier to 0.37.2; fix security bugs, update MIME handling, add (diff) |
Add bsdsar, System Activity Reporter for FreeBSD.
PR: ports/33702
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
Reviewed and fixed by: knu
Notes
Notes:
svn path=/head/; revision=53516
Diffstat (limited to 'sysutils/bsdsar/pkg-install')
-rw-r--r-- | sysutils/bsdsar/pkg-install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/bsdsar/pkg-install b/sysutils/bsdsar/pkg-install new file mode 100644 index 000000000000..49338687775e --- /dev/null +++ b/sysutils/bsdsar/pkg-install @@ -0,0 +1,31 @@ +#!/bin/sh +# + +PKG_PREFIX=${PKG_PREFIX:-/usr/local} + +# Verify proper execution +# +if [ $# -ne 2 ]; then + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 +fi + +# Verify/process the command +# +case $2 in + PRE-INSTALL) + : nothing to pre-install for this port + ;; + POST-INSTALL) + echo "Adding 2 lines to /etc/crontab ..." + echo "# bsdsar execution" >> /etc/crontab + echo "20,40 8-18 * * * root $PKG_PREFIX/bin/bsdsar_gather /var/log" >> /etc/crontab + echo "0 * * * * root $PKG_PREFIX/bin/bsdsar_gather /var/log" >> /etc/crontab + ;; + *) + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 + ;; +esac + +exit 0 |