Tuesday, July 24, 2007

Recent CVS Changes

This is a note for myself, so if you're looking for uber-security insights today, please skip this post. If you do stick with me and you can suggest ways to do this better, please share your comments.

Earlier this year I posted TaoSecurity CVS at Sourceforge and Committing Changes to CVS. Since posting my Sguil on FreeBSD scripts at TaoSecurity Sourceforge I needed to make a few changes. The system hosting my original files suffered a lightning strike, so I decided to retrieve cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 files from CVS and make changes.

Checking out cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 scripts can be done anonymously without a password. (Note cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365re are some artificial line breaks in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365se and ocá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365r lines.)

$ cvs -d:pserver:anonymous@taosecurity.cvs.sourceforge.net:/cvsroot/taosecurity
login
Logging in to :pserver:anonymous@taosecurity.cvs.sourceforge.net:2401
/cvsroot/taosecurity
CVS password:
$ cvs -d:pserver:anonymous@taosecurity.cvs.sourceforge.net:/cvsroot/taosecurity
co -P taosecurity_sguil_scripts
cvs checkout: Updating taosecurity_sguil_scripts
U taosecurity_sguil_scripts/README
...truncated...

When I checked out cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365se files cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365y had headers like this:

# $Id: README,v 1.2 2007/03/22 18:40:25 taosecurity Exp $ #

These headers are added by lines like this from cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 original files:

# $Id$ #

In order to turn cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365se new checked out files into files that would have cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 proper headers, I replaced cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365se specific lines in each file with cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 tag # $Id$ #.

I added several files to cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 scripts, but for purposes of documentation I'll show how I added one -- sguild_start.sh. I had to connect via SSH to do this.

$ export CVS_RSH=ssh
$ cvs -d:ext:user@taosecurity.cvs.sf.net:/cvsroot/taosecurity
add sguild_start.sh
user@taosecurity.cvs.sf.net's password:
cvs add: scheduling file `sguild_start.sh' for addition
cvs add: use 'cvs commit' to add this file permanently

$ cvs -d:ext:user@taosecurity.cvs.sf.net:/cvsroot/taosecurity
commit sguild_start.sh
user@taosecurity.cvs.sf.net's password:
RCS file: /cvsroot/taosecurity/taosecurity_sguil_scripts/sguild_start.sh,v
done
Checking in sguild_start.sh;
/cvsroot/taosecurity/taosecurity_sguil_scripts/sguild_start.sh,v <-- sguild_start.sh
initial revision: 1.1
done

I think I could have set a CVSROOT variable instead of specifying everything on cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 command line, perhaps like:

$ export CVSROOT=:ext:user@taosecurity.cvs.sf.net:/cvsroot/taosecurity

Setting that I could ignore cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 entire -d switch.

When I add or commit files I could add a -m "Comment" line to describe cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 change.

Currently my scripts assume installation using FreeBSD 6.2, using cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 packages in cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 packages-6.2-release directory. The only exception is cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 package for tcltls because it was not shipped with 6.2.

3 comments:

Anonymous said...

In my experience you can leave cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 # $Id: README,v 1.2 2007/03/22 18:40:25 taosecurity Exp $ # line in and it will be automatically updated. No need to replace it with # $Id$ #

Richard Bejtlich said...

richard@macmini:~$ export CVS_RSH=ssh
richard@macmini:~$ cvs -z3 -d:ext:taosecurity@taosecurity.cvs.sourceforge.net:/cvsroot/taosecurity co -P taosecurity_sguil_scripts
taosecurity@taosecurity.cvs.sourceforge.net's password:
cvs checkout: Updating taosecurity_sguil_scripts
U taosecurity_sguil_scripts/README
U taosecurity_sguil_scripts/barnyard.conf.patch
U taosecurity_sguil_scripts/barnyard_start.sh
U taosecurity_sguil_scripts/log_packets.sh.crontab
U taosecurity_sguil_scripts/log_packets.sh.patch
U taosecurity_sguil_scripts/sancp
U taosecurity_sguil_scripts/sancp.conf.patch
U taosecurity_sguil_scripts/sensor_agent.conf.patch
U taosecurity_sguil_scripts/sensor_agent_start.sh
U taosecurity_sguil_scripts/sguil_client_install.sh
U taosecurity_sguil_scripts/sguil_database_install_pt1.sh
U taosecurity_sguil_scripts/sguil_database_install_pt2.sh
U taosecurity_sguil_scripts/sguil_sensor_install.sh
U taosecurity_sguil_scripts/sguil_sensor_install_patch.sh
U taosecurity_sguil_scripts/sguil_server_install.sh
U taosecurity_sguil_scripts/sguild_adduser.sh
U taosecurity_sguil_scripts/sguild_start.sh
U taosecurity_sguil_scripts/snort
U taosecurity_sguil_scripts/snort_src_install.sh
richard@macmini:~$ vi taosecurity_sguil_scripts/README
richard@macmini:~$ cd taosecurity_sguil_scripts/
richard@macmini:~/taosecurity_sguil_scripts$ cvs commit
cvs commit: Examining .
taosecurity@taosecurity.cvs.sourceforge.net's password:
Checking in README;
/cvsroot/taosecurity/taosecurity_sguil_scripts/README,v <-- README
new revision: 1.4; previous revision: 1.3
done

Anonymous said...
This comment has been removed by a blog administrator.