forked from kyanny/openssh-for-git
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBUILD.txt
More file actions
43 lines (32 loc) · 811 Bytes
/
BUILD.txt
File metadata and controls
43 lines (32 loc) · 811 Bytes
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
Debian Way
----------
# install dependencies and devscripts
sudo apt-get install devscripts
sudo apt-get build-dep openssh-server
# get the source
mkdir openssh
cd openssh
apt-get source openssh-server
# apply patch
cd openssh-?.?p1
# Squeeze
patch -p1 < openssh-5.5p1-debian-authorized-keys-script.diff
# or Wheezy
patch -p1 < openssh-6.0p1-debian-authorized-keys-script.diff
# commit the patch (only on Wheezy)
dpkg-source --commit . authorized-keys-script.patch
# build the package
sudo debuild -us -uc
Standard Way
------------
# download openssh-6.0p1 source
# apply patch
cd openssh-6.0p1
patch -p1 < openssh-6.0p1-authorized-keys-script.diff
# compile
./configure
make -j 4
# choose to do a standard install
make install
# or create a .deb package
sudo checkinstall --fstrans=no make install