blob: dac838f8ed378874ead5f8190169a0ea7ca21bd2 (
plain) (
blame)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
#!/bin/sh
#
# The skip build process actually builds a tree of files
# in the subdirectory SKIPDIR (defined below). So all we
# have to do is install these files, with some slight
# rearrangement, and then deal with the rc script stuff.
#
SKIPDIR="${WRKSRC}/mkpkgs/freebsd/bin.x86/skip"
Report ()
{
echo " " $1
}
install_lkm_files ()
{
LKM_FILES="drv/skip.o"
Report "Installing kernel module in ${PREFIX}/lkm"
${BSD_INSTALL_DATA} ${LKM_FILES} ${PREFIX}/lkm
}
install_etc_files ()
{
ETC_FILES="etc/dh_params \
etc/skipd.conf \
etc/SunICG_CA_selfcert"
RAS_FILES="bin/none.ras \
bin/unknown.ras \
bin/icon_v1.ras \
bin/icon_v2.ras \
bin/skiptool_small.ras \
bin/updated.ras \
bin/nomadic.ras"
SCR_FILES="etc/skip.mkdev \
etc/hosts"
Report "Installing miscellaneous files in ${PREFIX}/etc/skip"
${BSD_INSTALL_DATA} ${ETC_FILES} ${PREFIX}/etc/skip
${BSD_INSTALL_DATA} ${RAS_FILES} ${PREFIX}/etc/skip
${BSD_INSTALL_SCRIPT} ${SCR_FILES} ${PREFIX}/etc/skip
}
install_bin_files ()
{
BIN_FILES="bin/skiptool \
bin/skiphost \
bin/skipstat \
bin/skiplog \
bin/skipstat_ui \
bin/skipvar \
bin/test_key \
bin/skipd \
bin/skipdb \
bin/skipca \
bin/skiplocal \
bin/certreq \
bin/X509toHashCert \
bin/dh_keygen \
bin/print_cert"
SCRIPT_FILES="bin/install_skip_keys \
bin/skipd_restart \
bin/skipif \
bin/skip_conf"
Report "Installing binaries and scripts in ${PREFIX}/bin"
${BSD_INSTALL_PROGRAM} ${BIN_FILES} ${PREFIX}/bin
${BSD_INSTALL_SCRIPT} ${SCRIPT_FILES} ${PREFIX}/bin
}
install_doc_files ()
{
DOC_FILES="doc/SKIP_SOFTWARE_LICENSE \
doc/BN_SOFTWARE_LICENSE \
doc/README.PATENT \
doc/README.FreeBSD \
doc/00README \
doc/INSTALL \
doc/advanced.TOPICS \
doc/usersguide.txt \
doc/usersguide.ps \
doc/usersguide.html \
doc/inet-95.ps"
Report "Installing documentation in ${PREFIX}/share/doc/skip"
${BSD_INSTALL_DATA} ${DOC_FILES} ${PREFIX}/share/doc/skip
}
install_man_files ()
{
MAN1_FILES="man/man1/certreq.1 \
man/man1/skiphost.1 \
man/man1/skipstat.1 \
man/man1/skiptool.1 \
man/man1/skipd.1 \
man/man1/skipdb.1 \
man/man1/skipca.1 \
man/man1/skiplocal.1 \
man/man1/install_skip_keys.1 \
man/man1/skipd_restart.1 \
man/man1/skipif.1 \
man/man1/skip_conf.1 \
man/man1/skiplog.1 \
man/man1/print_cert.1"
MAN4_FILES="man/man4/skipd.conf.4 \
man/man4/raw_keys.4"
Report "Installing man pages in ${PREFIX}/man"
${BSD_INSTALL_MAN} ${MAN1_FILES} ${PREFIX}/man/man1
${BSD_INSTALL_MAN} ${MAN4_FILES} ${PREFIX}/man/man4
}
install_rc_file ()
{
RC_FILE="etc/rc"
Report "Installing startup script in ${PREFIX}/etc/rc.d"
${BSD_INSTALL_SCRIPT} ${RC_FILE} ${PREFIX}/etc/rc.d/skip.sh
}
# main()
cd ${SKIPDIR} || exit 1
install_lkm_files;
install_etc_files;
install_bin_files;
install_doc_files;
install_man_files;
install_rc_file;
|