• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision61bdae00702dd301018ca6f0cfd15b148427409d (tree)
l'heure2012-02-25 22:27:53
Auteurmatsuand <matsuand@user...>
Commitermatsuand

Message de Log

Added openssh.sh.

Change Summary

Modification

--- /dev/null
+++ b/openssh.sh
@@ -0,0 +1,73 @@
1+#!/bin/sh
2+
3+. ./_blfsset.sh
4+
5+VER=5.9p1
6+TARGET=openssh-$VER
7+TARGETBALL=$TARGET.tar.gz
8+TARGETDIR=$TARGET
9+
10+echo Check Required...
11+./_checkRequired.sh openssl || 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+echo \ \ Extracting...
24+if ! test -f $DLD/$TARGETBALL; then
25+ echo \ \ Tarball not found: $TARGETBALL && exit 1
26+else
27+ tar xf $DLD/$TARGETBALL
28+fi
29+
30+cd $TARGETDIR
31+
32+paco -p $TARGET "install -v -m700 -d /var/lib/sshd"
33+paco -p+ $TARGET "chown -v root:sys /var/lib/sshd"
34+groupadd -g 50 sshd &&
35+useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd \
36+ -s /bin/false -u 50 sshd
37+
38+sed -i 's@-lcrypto@/usr/lib/libcrypto.a -ldl@' configure
39+
40+echo \ \ Configuring...
41+sed -i.bak '/K5LIBS=/s/ -ldes//' configure
42+./configure --prefix=/usr --sysconfdir=/etc/ssh --datadir=/usr/share/sshd \
43+ --libexecdir=/usr/lib/openssh --with-md5-passwords \
44+ --with-privsep-path=/var/lib/sshd \
45+ 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1
46+
47+echo \ \ Making...
48+make \
49+ 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1
50+
51+#echo \ \ Testing...
52+#make tests \
53+# 1> $LOG/$TARGET.3_test.log 2>&1 || echo Error occured in testing
54+
55+#echo \ \ Result of Testing
56+#grep FATAL $LOG/$TARGET.3_test.log
57+
58+echo \ \ Installing...
59+paco -p+ $TARGET "make install" \
60+ 1> $LOG/$TARGET.4_install.log 2>&1 || exit 1
61+
62+echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none
63+
64+paco -p+ $TARGET "install -v -m755 -d /usr/share/doc/openssh-$VER" \
65+ 1>> $LOG/$TARGET.4_install.log 2>&1 || exit 1
66+paco -p+ $TARGET "install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
67+ /usr/share/doc/openssh-$VER" \
68+ 1>> $LOG/$TARGET.4_install.log 2>&1 || exit 1
69+
70+echo \ \ Removing directory...
71+cd .. && rm -fr $TARGETDIR
72+
73+