This file is indexed.

/usr/bin/syncbbdb-bootstrap is in syncbbdb 2.3-6.2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/perl -w
use strict;

require SyncUtil::SyncEngine;
require SyncUtil::StandAloneHost;
require SyncUtil::localHash;
require SyncBBDB::localBBDB;
require SyncBBDB::pilotBBDB;
require SyncBBDB::pilotBBDBTranslate;

my $port = $ENV{'PILOTPORT'} || "/dev/pilot";
my $bbdb = $ENV{'HOME'}. "/.bbdb";
my $ids  = undef;
my $trans = undef;

for (my $i = 0; $i < @ARGV; ++$i) {
  if ($ARGV[$i] =~ m/-port/) {
    $port = $ARGV[++$i];
  } elsif ($ARGV[$i] =~ m/-bbdb/) {
    $bbdb = $ARGV[++$i];
  } elsif ($ARGV[$i] =~ m/-ids/) {
    $ids = $ARGV[++$i];
  } elsif ($ARGV[$i] =~ m/-trans/) {
    $trans = $ARGV[++$i];
  } elsif ($ARGV[$i] =~ m/-help/) {
      usage();
  }
}

my $abort = undef;
$abort .= "Location of 'ids' file must be provided: '-ids <file>'\n"
    if (!defined $ids);

$abort .= "Location of 'translation' file must be provided: '-trans <file>'\n"
    if (!defined $trans);

die $abort if (defined $abort);

my $host    = new StandAloneHost("bbdb", $port);
my $translate = new pilotBBDBTranslate($host, $trans);
my $hash    = new localHash($host, $ids);
my $localDB = new localBBDB($host, $hash, $bbdb, $translate);
my $pilotDB = new pilotBBDB($host, $host->{'dlp'}, $host->{'info'}, 
			    $hash, $translate);

my $engine  = new SyncEngine($host, $localDB, $pilotDB);

$engine->start();

$hash->finish();
$host->finish();
$translate->finish();

sub usage {
    print STDERR
	("usage: bootstrap -ids <ids file> -trans <trans file>\n"          .
	 "                 [-port <pilot port>] [-bbdb <bbdb file>]\n\n"   .
	 "    -ids : 	 The location of the ids file. This file is used to\n".
	 "           	 track changes in BBDB and Pilot (especially for a\n" .
	 "           	 full sync).  If you aren't using PilotManager this\n".
	 "           	 can be any name but it should always be the\n"       .
	 "           	 same file (eg. ~/.bbdb.ids)\n"	.
	 "    -trans : The translation file. This file provides a mapping\n".
	 "             between the fields in the bbdb records and fields\n".
	 "             in the pilot records.\n".
	 "             The format is one entry per line:\n".
	 "               <pilot name> <bbdb name>\n".
	 "             It _is_ case sensitive\n".
	 "    -port  : Port for pilot (defaults to /dev/pilot, or\n".
	 "             the environment variable PILOTPORT if set).\n".
	 "    -bbdb  : The location of your bbdb file (defaults to\n".
	 "             ~/.bbdb).\n"
	 );
    exit(0);
}