File: Install.sh

package info (click to toggle)
bastille 1:1.3.0-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,576 kB
  • ctags: 397
  • sloc: perl: 8,407; sh: 1,879; ansic: 638; makefile: 203; csh: 17
file content (80 lines) | stat: -rw-r--r-- 4,427 bytes parent folder | download
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
76
77
78
79
80
#!/bin/sh

umask 077
RPM_BUILD_ROOT=""

mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/Curses
mkdir -p $RPM_BUILD_ROOT/usr/lib/Bastille
mkdir -p $RPM_BUILD_ROOT/usr/share/Bastille
mkdir -p $RPM_BUILD_ROOT/usr/share/Bastille/Psad.pm
mkdir -p $RPM_BUILD_ROOT/var/log/psad
mkdir -p $RPM_BUILD_ROOT/etc/psad
 
install -m 755 AutomatedBastille $RPM_BUILD_ROOT/usr/sbin/
install -m 755 BastilleBackEnd $RPM_BUILD_ROOT/usr/sbin
install -m 644 Bastille_Curses.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl
install -m 644 Bastille_Tk.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl
install -m 644 Curses/Widgets.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/Curses
install -m 644 Default_Workstation $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 Default_Workstation_plus_Firewall $RPM_BUILD_ROOT/usr/share/Bastille
install -m 755 InteractiveBastille $RPM_BUILD_ROOT/usr/sbin
install -m 644 Questions.txt $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 Credits $RPM_BUILD_ROOT/usr/share/Bastille
install -m 755 UndoBastille $RPM_BUILD_ROOT/usr/sbin
install -m 755 bastille-firewall $RPM_BUILD_ROOT/usr/share/Bastille
install -m 755 bastille-firewall-reset $RPM_BUILD_ROOT/usr/share/Bastille
install -m 755 bastille-firewall-schedule $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-tmpdir-defense.sh $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-tmpdir.csh $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-tmpdir.sh $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-firewall.cfg $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-ipchains $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-netfilter $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-firewall-early.sh $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 bastille-firewall-pre-audit.sh $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/psad $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/psadwatchd $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/kmsgsd $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/diskmond $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/psad-init $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/Psad.pm/???* $RPM_BUILD_ROOT/usr/share/Bastille/Psad.pm
install -m 644 psad/psad.8 $RPM_BUILD_ROOT/usr/man/man8
mknod -m 600 $RPM_BUILD_ROOT/var/log/psadfifo p
make -C psad/whois-4.5.6
install -m 644 psad/whois-4.5.6/whois $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 psad/psad_signatures $RPM_BUILD_ROOT/etc/psad
install -m 644 psad/psad_auto_ips $RPM_BUILD_ROOT/etc/psad
install -m 644 psad/psad.conf $RPM_BUILD_ROOT/etc/psad
PWDTMP=`pwd`
cd $RPM_BUILD_ROOT/usr/share/Bastille/Psad.pm
perl Makefile.PL
make
make test
make install
cd $PWDTMP
install -m 644 ifup-local $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 hosts.allow $RPM_BUILD_ROOT/usr/share/Bastille
install -m 644 Bastille/AccountSecurity.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/Apache.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/API.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/BootSecurity.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/ConfigureMiscPAM.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/DisableUserTools.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/DNS.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/FilePermissions.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/FTP.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/Firewall.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/HP_API.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/HP_UX.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/Patches.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/Logging.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/MiscellaneousDaemons.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/PatchDownload.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/Printing.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/PSAD.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/RemoteAccess.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/SecureInetd.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/Sendmail.pm $RPM_BUILD_ROOT/usr/lib/Bastille
install -m 644 Bastille/TMPDIR.pm $RPM_BUILD_ROOT/usr/lib/Bastille