author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 42 | b6f829cb6d9e |
permissions | -rw-r--r-- |
0 | 1 |
#!/bin/sh |
2 |
# |
|
3 |
# CDDL HEADER START |
|
4 |
# |
|
5 |
# The contents of this file are subject to the terms of the |
|
6 |
# Common Development and Distribution License (the "License"). |
|
7 |
# You may not use this file except in compliance with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
# |
|
20 |
# CDDL HEADER END |
|
21 |
# |
|
14 | 22 |
# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 23 |
# |
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
24 |
#ident "@(#)install-sfw 1.36 10/08/05 SMI" |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
25 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
26 |
set -e |
0 | 27 |
|
28 |
TOP=`pwd` |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
29 |
PREFIX=${ROOT}/usr |
0 | 30 |
PAMDIR=${ROOT}/usr/lib/security |
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
31 |
PAMDIR64=${ROOT}/usr/lib/security/${MACH64} |
0 | 32 |
BINDIR=${PREFIX}/bin |
33 |
SBINDIR=${PREFIX}/sbin |
|
34 |
LIBDIR=${PREFIX}/lib |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
35 |
LIBDIR64=${PREFIX}/lib/${MACH64} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
36 |
SAMBALIBDIR=${PREFIX}/lib/samba |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
37 |
SAMBALIBDIR64=${PREFIX}/lib/samba/${MACH64} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
38 |
INCLUDEDIR=${PREFIX}/include/samba |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
39 |
SFWINCLUDEDIR=${PREFIX}/sfw/include |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
40 |
SFWLIBDIR=${PREFIX}/sfw/lib |
0 | 41 |
VARDIR=${ROOT}/var/samba |
42 |
SHAREDIR=${PREFIX}/share |
|
43 |
MANDIR=${SHAREDIR}/man |
|
44 |
MAN1DIR=${SHAREDIR}/man/man1 |
|
45 |
MAN4DIR=${SHAREDIR}/man/man4 |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
46 |
MAN5DIR=${SHAREDIR}/man/man5 |
0 | 47 |
MAN1MDIR=${SHAREDIR}/man/man1m |
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
48 |
SWATDIR=${PREFIX}/share/samba/swat |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
49 |
CODEPAGEDIR=${SAMBALIBDIR}/codepages |
0 | 50 |
ETC=${ROOT}/etc |
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
51 |
ETCSMBDIR=${ETC}/samba |
0 | 52 |
|
53 |
. ${SRC}/tools/install.subr |
|
54 |
||
55 |
MANSCRIPT=${TOP}/sunman-stability |
|
56 |
||
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
57 |
# profiles already does exist in Solaris, we have to rename (see PSARC/2009/682) |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
58 |
mv -f ${BINDIR}/profiles ${BINDIR}/smbprofiles |
0 | 59 |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
60 |
# smbtorture |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
61 |
cd ${TOP}/${VER}/source3/bin |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
62 |
_install E smbtorture ${SAMBALIBDIR}/smbtorture 755 |
0 | 63 |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
64 |
# Samba 64 bit shared libraries |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
65 |
cd ${TOP}/${VER64}/source3/bin |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
66 |
${SRC}/tools/install-proto -d -m 0755 ${SAMBALIBDIR64} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
67 |
_install D libtalloc.so ${SAMBALIBDIR64}/libtalloc.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
68 |
_install L libtalloc.so.1 ${SAMBALIBDIR64}/libtalloc.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
69 |
_install D libtdb.so ${SAMBALIBDIR64}/libtdb.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
70 |
_install L libtdb.so.1 ${SAMBALIBDIR64}/libtdb.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
71 |
_install D libwbclient.so ${SAMBALIBDIR64}/libwbclient.so.0 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
72 |
_install L libwbclient.so.0 ${SAMBALIBDIR64}/libwbclient.so |
0 | 73 |
|
74 |
# Samba PAM module(s) |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
75 |
${SRC}/tools/install-proto -d -m 0755 ${PAMDIR} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
76 |
cd ${TOP}/${VER}/source3/bin |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
77 |
_install D pam_winbind.so ${PAMDIR}/pam_winbind.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
78 |
_install L pam_winbind.so.1 ${PAMDIR}/pam_winbind.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
79 |
${SRC}/tools/install-proto -d -m 0755 ${PAMDIR64} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
80 |
cd ${TOP}/${VER64}/source3/bin |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
81 |
_install D pam_winbind.so ${PAMDIR64}/pam_winbind.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
82 |
_install L pam_winbind.so.1 ${PAMDIR64}/pam_winbind.so |
0 | 83 |
|
84 |
# Samba nsswitch modules |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
85 |
cd ${TOP}/${VER}/nsswitch |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
86 |
_install D libnss_wins.so ${LIBDIR}/nss_wins.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
87 |
_install D libnss_winbind.so ${LIBDIR}/nss_winbind.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
88 |
_install L nss_wins.so.1 ${LIBDIR}/nss_wins.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
89 |
_install L nss_winbind.so.1 ${LIBDIR}/nss_winbind.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
90 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
91 |
${SRC}/tools/install-proto -d -m 0755 ${LIBDIR64} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
92 |
cd ${TOP}/${VER64}/nsswitch |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
93 |
_install D libnss_wins.so ${LIBDIR64}/nss_wins.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
94 |
_install D libnss_winbind.so ${LIBDIR64}/nss_winbind.so.1 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
95 |
_install L nss_wins.so.1 ${LIBDIR64}/nss_wins.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
96 |
_install L nss_winbind.so.1 ${LIBDIR64}/nss_winbind.so |
0 | 97 |
|
98 |
||
99 |
# header files deployment - used by other packages built: |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
100 |
${SRC}/tools/install-proto -d -m 0755 ${INCLUDEDIR} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
101 |
cd ${INCLUDEDIR} |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
102 |
mv -f ../libsmbclient.h ../netapi.h ../smb_share_modes.h \ |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
103 |
../talloc.h ../tdb.h ../wbclient.h ../wbc_async.h . |
0 | 104 |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
105 |
################################################################################ |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
106 |
# Application released under GPLv2 can not link GPLv3 libraries so the original |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
107 |
# libsmbclient API from samba 3.0.x released under the GPLv2 should be provided |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
108 |
# for such apps. |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
109 |
# Currently only JDS part called gnome-VFS is using libsmbclient under the |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
110 |
# LSARC/2006/350/commitment.materials/materials/contracts/PSARC-2000-488-samba.txt |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
111 |
# |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
112 |
cd ${TOP}/${VER30}/source |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
113 |
_install N include/libsmbclient.h ${SFWINCLUDEDIR}/libsmbclient.h 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
114 |
_install D bin/libsmbclient.so ${SFWLIBDIR}/libsmbclient.so.0 555 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
115 |
_install L libsmbclient.so.0 ${SFWLIBDIR}/libsmbclient.so |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
116 |
################################################################################ |
0 | 117 |
|
118 |
cd ${TOP} |
|
119 |
||
120 |
# deliver the service files |
|
121 |
||
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
122 |
# Modify smb.conf.default as smb.conf-example for Solaris use. |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
123 |
rm -f ${ETCSMBDIR}/smb.conf-example |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
124 |
sed -f Solaris/smbconf.sed ${VER}/examples/smb.conf.default \ |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
125 |
> ${ETCSMBDIR}/smb.conf-example |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
126 |
chmod 444 ${ETCSMBDIR}/smb.conf-example |
0 | 127 |
|
128 |
# deliver the pam.conf-winbind configuration template |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
129 |
_install N Solaris/pam.conf-winbind ${ROOT}/etc/pam.conf-winbind 444 |
0 | 130 |
|
131 |
# install smf manifests |
|
42
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
132 |
_install N Solaris/wins.xml ${ROOT}/lib/svc/manifest/network/wins.xml 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
133 |
_install N Solaris/samba.xml ${ROOT}/lib/svc/manifest/network/samba.xml 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
134 |
_install N Solaris/swat.xml ${ROOT}/lib/svc/manifest/network/swat.xml 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
135 |
_install N Solaris/winbind.xml ${ROOT}/lib/svc/manifest/network/winbind.xml 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
136 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
137 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
138 |
################################################################################ |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
139 |
# Man pages |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
140 |
################################################################################ |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
141 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
142 |
( |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
143 |
cd ${VER}/docs-xml/output/manpages-3 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
144 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
145 |
for i in *.1 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
146 |
do |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
147 |
case "$i" in |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
148 |
profiles.1) |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
149 |
# Name clash |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
150 |
_install M ${i} ${MAN1DIR}/smb${i} 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
151 |
;; |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
152 |
*) |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
153 |
_install M ${i} ${MAN1DIR}/${i} 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
154 |
;; |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
155 |
esac |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
156 |
done |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
157 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
158 |
# *.7 go to section .5 "facilities" |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
159 |
for i in *.7 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
160 |
do |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
161 |
base=`basename $i 7` |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
162 |
manpage=${base}5 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
163 |
_install M ${i} ${MAN5DIR}/${manpage} 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
164 |
done |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
165 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
166 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
167 |
# Section 5 of the Solaris man pages is normally reserved for |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
168 |
# "Standards, Environments, and Macros". Therefore, any man |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
169 |
# pages describing "File Formats" should be moved to section 4 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
170 |
# as per project requirements described in PSARC/2000/488. |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
171 |
for i in *.5 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
172 |
do |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
173 |
base=`basename $i 5` |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
174 |
manpage=${base}4 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
175 |
_install M ${i} ${MAN4DIR}/${manpage} 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
176 |
done |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
177 |
|
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
178 |
# *.8 goes to section 1m |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
179 |
for i in *.8 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
180 |
do |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
181 |
case "$i" in |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
182 |
mount.cifs.8 | umount.cifs.8 ) |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
183 |
echo Not installing $i |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
184 |
;; |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
185 |
smbd.8) |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
186 |
# Name clash |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
187 |
base=`basename $i 8` |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
188 |
manpage=${base}1m |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
189 |
_install M ${i} ${MAN1MDIR}/smb${manpage} 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
190 |
;; |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
191 |
*) |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
192 |
base=`basename $i 8` |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
193 |
manpage=${base}1m |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
194 |
_install M ${i} ${MAN1MDIR}/${manpage} 444 |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
195 |
;; |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
196 |
esac |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
197 |
done |
b6f829cb6d9e
Import sfw build 147
Cyril Plisko <cyril.plisko@grigale.com>
parents:
14
diff
changeset
|
198 |
) |
0 | 199 |
|
200 |
exit 0 |