summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-03 14:42:09 +1100
committerDamien Miller <djm@mindrot.org>2000-01-03 14:42:09 +1100
commit645c598d3c6c64f1f20de6fc43d4484033417b4d (patch)
tree23b9a60e18ccb9d7831d1140d594fe1a334fb97f
parent8beab01b493d4b9c683a2a0c5da083c2e9dfd735 (diff)
- Add explicit make rules for files proccessed by fixpaths.
- Fix "make install" in RPM spec files. Report from Tenkou N. Hattori <tnh@kondara.org>
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.in33
-rw-r--r--packages/redhat/openssh.spec4
-rw-r--r--packages/suse/openssh.spec4
4 files changed, 36 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index fe65df016..d2413c161 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,13 @@
120000103
2 - Add explicit make rules for files proccessed by fixpaths.
3 - Fix "make install" in RPM spec files. Report from Tenkou N. Hattori
4 <tnh@kondara.org>
5
120000102 620000102
2 - Prevent multiple inclusion of config.h and defines.h. Suggested 7 - Prevent multiple inclusion of config.h and defines.h. Suggested
3 by Andre Lucas <andre.lucas@dial.pipex.com> 8 by Andre Lucas <andre.lucas@dial.pipex.com>
4 - Properly clean up on exit of ssh-agent. Patch from Dean Gaudet 9 - Properly clean up on exit of ssh-agent. Patch from Dean Gaudet
5 <dgaudet@arctic.org> 10 <dgaudet@arctic.org>
6 - Run fixpaths before install. (Andre Lucas)
7 11
819991231 1219991231
9 - Fix password support on systems with a mixture of shadowed and 13 - Fix password support on systems with a mixture of shadowed and
diff --git a/Makefile.in b/Makefile.in
index 8c875a3c1..d04d22de2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -54,7 +54,11 @@ SSHDOBJS= sshd.o auth-rhosts.o auth-krb4.o auth-pam.o auth-passwd.o \
54 auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o \ 54 auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o \
55 serverloop.o bsd-login.o md5crypt.o 55 serverloop.o bsd-login.o md5crypt.o
56 56
57all: $(OBJS) $(TARGETS) manpages 57MANPAGES=scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
58
59CONFIGFILES=sshd_config ssh_config
60
61all: $(OBJS) $(TARGETS) $(MANPAGES) $(CONFIGFILES)
58 62
59$(OBJS): config.h 63$(OBJS): config.h
60 64
@@ -89,10 +93,31 @@ clean:
89 rm -f *.o $(TARGETS) config.status config.cache config.log core \ 93 rm -f *.o $(TARGETS) config.status config.cache config.log core \
90 *.1 *.8 sshd_config ssh_config 94 *.1 *.8 sshd_config ssh_config
91 95
92manpages: 96scp.1: scp.1.in
93 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/*.[18].in $(srcdir)/ssh*_config.in 97 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} $(srcdir)/scp.1.in
98
99ssh-add.1: ssh-add.1.in
100 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh-add.1.in
101
102ssh-agent.1: ssh-agent.1.in
103 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh-agent.1.in
104
105ssh-keygen.1: ssh-keygen.1.in
106 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh-keygen.1.in
107
108ssh.1: ssh.1.in
109 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh.1.in
110
111sshd.8: sshd.8.in
112 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} sshd.8.in
113
114sshd_config: sshd_config.in
115 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} sshd_config.in
116
117ssh_config: ssh_config.in
118 $(PERL) $(FIXPATHS) -Dsysconfdir=${sysconfdir} ssh_config.in
94 119
95install: manpages all 120install: $(TARGETS)
96 $(INSTALL) -d $(bindir) 121 $(INSTALL) -d $(bindir)
97 $(INSTALL) -d $(sbindir) 122 $(INSTALL) -d $(sbindir)
98 $(INSTALL) -d $(mandir) 123 $(INSTALL) -d $(mandir)
diff --git a/packages/redhat/openssh.spec b/packages/redhat/openssh.spec
index de26c467f..96ac87bd7 100644
--- a/packages/redhat/openssh.spec
+++ b/packages/redhat/openssh.spec
@@ -158,15 +158,13 @@ cd ..
158 158
159%install 159%install
160rm -rf $RPM_BUILD_ROOT 160rm -rf $RPM_BUILD_ROOT
161make install prefix="$RPM_BUILD_ROOT/usr" 161make install prefix="$RPM_BUILD_ROOT/usr" sysconfdir="$RPM_BUILD_ROOT/etc/ssh"
162 162
163install -d $RPM_BUILD_ROOT/etc/ssh 163install -d $RPM_BUILD_ROOT/etc/ssh
164install -d $RPM_BUILD_ROOT/etc/pam.d/ 164install -d $RPM_BUILD_ROOT/etc/pam.d/
165install -d $RPM_BUILD_ROOT/etc/rc.d/init.d 165install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
166install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd 166install -m644 packages/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
167install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd 167install -m755 packages/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
168install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
169install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
170 168
171install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass 169install -s x11-ssh-askpass-%{aversion}/ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/x11-ssh-askpass
172ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass 170ln -s /usr/libexec/ssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
diff --git a/packages/suse/openssh.spec b/packages/suse/openssh.spec
index 6163a180b..9fdcffe5e 100644
--- a/packages/suse/openssh.spec
+++ b/packages/suse/openssh.spec
@@ -148,15 +148,13 @@ make
148 148
149%install 149%install
150rm -rf $RPM_BUILD_ROOT 150rm -rf $RPM_BUILD_ROOT
151make install prefix="$RPM_BUILD_ROOT/usr" 151make install prefix="$RPM_BUILD_ROOT/usr" sysconfdir="$RPM_BUILD_ROOT/etc/ssh"
152install -d $RPM_BUILD_ROOT/etc/ssh/ 152install -d $RPM_BUILD_ROOT/etc/ssh/
153install -d $RPM_BUILD_ROOT/etc/pam.d/ 153install -d $RPM_BUILD_ROOT/etc/pam.d/
154install -d $RPM_BUILD_ROOT/sbin/init.d/ 154install -d $RPM_BUILD_ROOT/sbin/init.d/
155install -d $RPM_BUILD_ROOT/var/adm/fillup-templates 155install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
156install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd 156install -m644 sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
157install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd 157install -m744 packages/suse/rc.sshd $RPM_BUILD_ROOT/sbin/init.d/sshd
158install -m644 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
159install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
160ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd 158ln -s ../../sbin/init.d/sshd $RPM_BUILD_ROOT/usr/sbin/rcsshd
161ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass 159ln -s gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/ssh/ssh-askpass
162install -m744 packages/suse/rc.config.sshd \ 160install -m744 packages/suse/rc.config.sshd \