Revision | 60400e7211505c45bc2482867fb7d8cedecaca30 (tree) |
---|---|
Zeit | 2012-03-18 11:14:44 |
Autor | matsuand <matsuand@user...> |
Commiter | matsuand |
[BLFS] Added krb5.
@@ -0,0 +1,94 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +. ./_blfsset.sh | |
4 | + | |
5 | +VER=1.10 | |
6 | +TARGET=krb5-$VER | |
7 | +TARGETBALL=$TARGET.tar.gz | |
8 | +TARGETDIR=$TARGET | |
9 | + | |
10 | +echo Check Required... | |
11 | +./_checkOptions.sh keyutils openldap dejagnu ntp || exit 1 | |
12 | +if test "$1" == "check"; then | |
13 | + exit 0 | |
14 | +fi | |
15 | + | |
16 | +cd $SRC | |
17 | + | |
18 | +echo $TARGET | |
19 | + | |
20 | +echo \ \ Removing old directory... | |
21 | +rm -fr $TARGETDIR | |
22 | + | |
23 | +. $WRK/_extract.sh | |
24 | + | |
25 | +cd $TARGETDIR | |
26 | + | |
27 | +echo \ \ Configuring... | |
28 | +cd src | |
29 | +./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" \ | |
30 | + --prefix=/usr \ | |
31 | + --localstatedir=/var/lib \ | |
32 | + --with-system-et \ | |
33 | + --with-system-ss \ | |
34 | + --enable-dns-for-realm \ | |
35 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
36 | + | |
37 | +echo \ \ Making... | |
38 | +make \ | |
39 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
40 | + | |
41 | +echo \ \ Installing... | |
42 | +paco -p $TARGET "make install" \ | |
43 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
44 | + | |
45 | +paco -p+ $TARGET "\ | |
46 | +mv -v /usr/bin/ksu /bin" \ | |
47 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
48 | + | |
49 | +chmod -v 755 /bin/ksu | |
50 | +paco -p+ $TARGET "\ | |
51 | +mv -v /usr/lib/libkrb5.so.3* /lib" \ | |
52 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
53 | + | |
54 | +paco -p+ $TARGET "\ | |
55 | +mv -v /usr/lib/libk5crypto.so.3* /lib" \ | |
56 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
57 | + | |
58 | +paco -p+ $TARGET "\ | |
59 | +mv -v /usr/lib/libkrb5support.so.0* /lib" \ | |
60 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
61 | + | |
62 | +paco -p+ $TARGET "\ | |
63 | +ln -v -sf ../../lib/libkrb5.so.3.3 /usr/lib/libkrb5.so" \ | |
64 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
65 | +paco -p+ $TARGET "\ | |
66 | +ln -v -sf ../../lib/libk5crypto.so.3.1 /usr/lib/libk5crypto.so" \ | |
67 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
68 | +paco -p+ $TARGET "\ | |
69 | +ln -v -sf ../../lib/libkrb5support.so.0.1 /usr/lib/libkrb5support.so" \ | |
70 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
71 | + | |
72 | +paco -p+ $TARGET "\ | |
73 | +install -m644 -v ../doc/*.info /usr/share/info" \ | |
74 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
75 | + | |
76 | +for INFOFILE in 5-admin 5-install 5-user; do | |
77 | + paco -p+ $TARGET "\ | |
78 | + install-info --info-dir=/usr/share/info \ | |
79 | + /usr/share/info/krb$INFOFILE.info" \ | |
80 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
81 | + rm ../doc/krb$INFOFILE.info | |
82 | +done | |
83 | + | |
84 | +install -m755 -v -d /usr/share/doc/krb5-$VER | |
85 | + | |
86 | +paco -p+ $TARGET "\ | |
87 | +cp -Rv ../doc/* /usr/share/doc/krb5-$VER" \ | |
88 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
89 | + | |
90 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
91 | + | |
92 | +echo \ \ Removing directory... | |
93 | +cd ../.. && rm -fr $TARGETDIR | |
94 | + |