diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-02 10:05:11 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-02 10:05:11 +0000 |
commit | e0374a6fc28239d8dcf63a82e0cca5f583eb7bc9 (patch) | |
tree | c3fbb03df51f82a73264c4be82ea5aa8311ed963 /net/cvsup-mirror/pkg-deinstall | |
parent | eda716f458d05e1aeffd8c8d82543c9eab0a51e8 (diff) | |
download | ports-e0374a6fc28239d8dcf63a82e0cca5f583eb7bc9.tar.gz ports-e0374a6fc28239d8dcf63a82e0cca5f583eb7bc9.zip |
[PATCH] net/cvsup-mirror: add some install time options for update.sh
Add following install time options for update.sh
- Whether or not /var/log/cvsup.log is rotated when update.sh
is invoked.
- Maximum number of log files.
- Wheter or not old log file is gzipped after rotated.
PR: ports/81598
Submitted by: KIMURA Yasuhiro <yasu@utahime.org>
Not objected by: jdp@FreeBSD.org
Notes
Notes:
svn path=/head/; revision=152571
Diffstat (limited to 'net/cvsup-mirror/pkg-deinstall')
-rw-r--r-- | net/cvsup-mirror/pkg-deinstall | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/cvsup-mirror/pkg-deinstall b/net/cvsup-mirror/pkg-deinstall index de1a3a908617..695b7874751e 100644 --- a/net/cvsup-mirror/pkg-deinstall +++ b/net/cvsup-mirror/pkg-deinstall @@ -97,9 +97,10 @@ then echo "Done." fi -if yesno "Do you want me to remove the cvsupd log entry from \ +if yesno "Do you want me to remove the cvsup and cvsupd log entries from \ \"/etc/newsyslog.conf\"" y; then - sed "/cvsupd\.log/d" /etc/newsyslog.conf >${tmp} || exit + sed "/cvsup\.log/d + /cvsupd\.log/d" /etc/newsyslog.conf >${tmp} || exit chmod 644 ${tmp} mv ${tmp} /etc/newsyslog.conf || exit echo "Done." |