Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Алексей Аляев
nxssh
Commits
95e5f3fc
Commit
95e5f3fc
authored
Nov 08, 2016
by
Stas Korobeynikov
Committed by
Pavel Vainerman
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build scripts
parent
c0e78d53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
153 deletions
+28
-153
Makefile.in
Makefile.in
+12
-152
configure.ac
configure.ac
+16
-1
No files found.
Makefile.in
View file @
95e5f3fc
...
...
@@ -31,6 +31,9 @@ SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@
STRIP_OPT
=
@STRIP_OPT@
TEST_SHELL
=
@TEST_SHELL@
NXCOMPINC
=
@NXCOMPINC@
NXCOMPLIBS
=
@NXCOMPLIBS@
PATHS
=
-DSSHDIR
=
\"
$(sysconfdir)
\"
\
-D_PATH_SSH_PROGRAM
=
\"
$(SSH_PROGRAM)
\"
\
-D_PATH_SSH_ASKPASS_DEFAULT
=
\"
$(ASKPASS_PROGRAM)
\"
\
...
...
@@ -62,7 +65,7 @@ LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
EXEEXT
=
@EXEEXT@
MANFMT
=
@MANFMT@
TARGETS
=
ssh
$(EXEEXT)
sshd
$(EXEEXT)
ssh-add
$(EXEEXT)
ssh-keygen
$(EXEEXT)
ssh-keyscan
${
EXEEXT
}
ssh-keysign
${
EXEEXT
}
ssh-pkcs11-helper
$(EXEEXT)
ssh-agent
$(EXEEXT)
scp
$(EXEEXT)
sftp-server
$(EXEEXT)
sftp
$(EXEEXT)
TARGETS
=
nxssh
$(EXEEXT)
nxsshd
$(EXEEXT)
nxssh-keygen
$(EXEEXT)
LIBOPENSSH_OBJS
=
\
ssh_api.o
\
...
...
@@ -116,8 +119,8 @@ MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out
MANPAGES_IN
=
moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-keysign.8 ssh-pkcs11-helper.8 sshd_config.5 ssh_config.5
MANTYPE
=
@MANTYPE@
CONFIGFILES
=
ssh
d_config.out ssh_config.out moduli
.out
CONFIGFILES_IN
=
ssh
d_config ssh_config moduli
CONFIGFILES
=
ssh
_config.out sshd_config
.out
CONFIGFILES_IN
=
ssh
_config sshd_config
PATHSUBS
=
\
-e
's|/etc/ssh/ssh_config|
$(sysconfdir)
/ssh_config|g'
\
...
...
@@ -149,7 +152,7 @@ $(SSHOBJS): Makefile.in config.h
$(SSHDOBJS)
:
Makefile.in config.h
.c.o
:
$(CC)
$(CFLAGS)
$(CPPFLAGS)
-c
$<
-o
$@
$(CC)
$(CFLAGS)
$(CPPFLAGS)
$(NXCOMPINC)
-c
$<
-o
$@
LIBCOMPAT
=
openbsd-compat/libopenbsd-compat.a
$(LIBCOMPAT)
:
always
...
...
@@ -160,11 +163,11 @@ libssh.a: $(LIBSSH_OBJS)
$(AR)
rv
$@
$(LIBSSH_OBJS)
$(RANLIB)
$@
ssh$(EXEEXT)
:
$(LIBCOMPAT) libssh.a $(SSHOBJS)
$(LD)
-o
$@
$(SSHOBJS)
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(
SSHLIBS)
$(LIBS)
$(GSS
LIBS)
nx
ssh$(EXEEXT)
:
$(LIBCOMPAT) libssh.a $(SSHOBJS)
$(LD)
-o
$@
$(SSHOBJS)
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(
LIBS)
$(GSSLIBS)
$(NXCOMP
LIBS)
sshd$(EXEEXT)
:
libssh.a $(LIBCOMPAT) $(SSHDOBJS)
$(LD)
-o
$@
$(SSHDOBJS)
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(SSHDLIBS)
$(LIBS)
$(GSSLIBS)
$(K5LIBS)
nx
sshd$(EXEEXT)
:
libssh.a $(LIBCOMPAT) $(SSHDOBJS)
$(LD)
-o
$@
$(SSHDOBJS)
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(
LIBWRAP)
$(LIBPAM)
$(LIBSELINUX)
$(
SSHDLIBS)
$(LIBS)
$(GSSLIBS)
$(K5LIBS)
scp$(EXEEXT)
:
$(LIBCOMPAT) libssh.a scp.o progressmeter.o
$(LD)
-o
$@
scp.o progressmeter.o bufaux.o
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(LIBS)
...
...
@@ -175,7 +178,7 @@ ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o
ssh-agent$(EXEEXT)
:
$(LIBCOMPAT) libssh.a ssh-agent.o ssh-pkcs11-client.o
$(LD)
-o
$@
ssh-agent.o ssh-pkcs11-client.o
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(LIBS)
ssh-keygen$(EXEEXT)
:
$(LIBCOMPAT) libssh.a ssh-keygen.o
nx
ssh-keygen$(EXEEXT)
:
$(LIBCOMPAT) libssh.a ssh-keygen.o
$(LD)
-o
$@
ssh-keygen.o
$(LDFLAGS)
-lssh
-lopenbsd-compat
$(LIBS)
ssh-keysign$(EXEEXT)
:
$(LIBCOMPAT) libssh.a ssh-keysign.o readconf.o
...
...
@@ -197,19 +200,6 @@ sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glo
logintest
:
logintest.o $(LIBCOMPAT) libssh.a loginrec.o
$(LD)
-o
$@
logintest.o
$(LDFLAGS)
loginrec.o
-lopenbsd-compat
-lssh
$(LIBS)
$(MANPAGES)
:
$(MANPAGES_IN)
if
test
"
$(MANTYPE)
"
=
"cat"
;
then
\
manpage
=
$(srcdir)
/
`
echo
$@
|
sed
's/\.[1-9]\.out$$/\.0/'
`
;
\
else
\
manpage
=
$(srcdir)
/
`
echo
$@
|
sed
's/\.out$$//'
`
;
\
fi
;
\
if
test
"
$(MANTYPE)
"
=
"man"
;
then
\
$(FIXPATHSCMD)
$$
{
manpage
}
|
$(FIXALGORITHMSCMD)
|
\
$(AWK)
-f
$(srcdir)
/mdoc2man.awk
>
$@
;
\
else
\
$(FIXPATHSCMD)
$$
{
manpage
}
|
$(FIXALGORITHMSCMD)
>
$@
;
\
fi
$(CONFIGFILES)
:
$(CONFIGFILES_IN)
conffile
=
`
echo
$@
|
sed
's/.out$$//'
`
;
\
$(FIXPATHSCMD)
$(srcdir)
/
$$
{
conffile
}
>
$@
...
...
@@ -289,136 +279,6 @@ mrproper: veryclean
realclean
:
veryclean
catman-do
:
@
for
f
in
$(MANPAGES_IN)
;
do
\
base
=
`
echo
$$
f |
sed
's/\..*$$//'
`
;
\
echo
"
$$
f ->
$$
base.0"
;
\
$(MANFMT)
$$
f |
cat
-v
|
sed
-e
's/.\^H//g'
\
>
$$
base.0
;
\
done
distprep
:
catman-do
$(AUTORECONF)
-
rm
-rf
autom4te.cache
install
:
$(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
install-nokeys
:
$(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf
install-nosysconf
:
$(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
check-config
:
-
$(DESTDIR)$(sbindir)
/sshd
-t
-f
$(DESTDIR)$(sysconfdir)
/sshd_config
install-files
:
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(bindir)
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(sbindir)
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(mandir)
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(mandir)
/
$(mansubdir)
1
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(mandir)
/
$(mansubdir)
5
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(mandir)
/
$(mansubdir)
8
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(libexecdir)
(
umask
022
;
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(PRIVSEP_PATH)
)
$(INSTALL)
-m
0755
$(STRIP_OPT)
ssh
$(EXEEXT)
$(DESTDIR)$(bindir)
/ssh
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
scp
$(EXEEXT)
$(DESTDIR)$(bindir)
/scp
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
ssh-add
$(EXEEXT)
$(DESTDIR)$(bindir)
/ssh-add
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
ssh-agent
$(EXEEXT)
$(DESTDIR)$(bindir)
/ssh-agent
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
ssh-keygen
$(EXEEXT)
$(DESTDIR)$(bindir)
/ssh-keygen
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
ssh-keyscan
$(EXEEXT)
$(DESTDIR)$(bindir)
/ssh-keyscan
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
sshd
$(EXEEXT)
$(DESTDIR)$(sbindir)
/sshd
$(EXEEXT)
$(INSTALL)
-m
4711
$(STRIP_OPT)
ssh-keysign
$(EXEEXT)
$(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
ssh-pkcs11-helper
$(EXEEXT)
$(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
sftp
$(EXEEXT)
$(DESTDIR)$(bindir)
/sftp
$(EXEEXT)
$(INSTALL)
-m
0755
$(STRIP_OPT)
sftp-server
$(EXEEXT)
$(DESTDIR)$(SFTP_SERVER)$(EXEEXT)
$(INSTALL)
-m
644 ssh.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh.1
$(INSTALL)
-m
644 scp.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/scp.1
$(INSTALL)
-m
644 ssh-add.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-add.1
$(INSTALL)
-m
644 ssh-agent.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-agent.1
$(INSTALL)
-m
644 ssh-keygen.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-keygen.1
$(INSTALL)
-m
644 ssh-keyscan.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-keyscan.1
$(INSTALL)
-m
644 moduli.5.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
5/moduli.5
$(INSTALL)
-m
644 sshd_config.5.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
5/sshd_config.5
$(INSTALL)
-m
644 ssh_config.5.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
5/ssh_config.5
$(INSTALL)
-m
644 sshd.8.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/sshd.8
$(INSTALL)
-m
644 sftp.1.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/sftp.1
$(INSTALL)
-m
644 sftp-server.8.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/sftp-server.8
$(INSTALL)
-m
644 ssh-keysign.8.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/ssh-keysign.8
$(INSTALL)
-m
644 ssh-pkcs11-helper.8.out
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/ssh-pkcs11-helper.8
install-sysconf
:
if
[
!
-d
$(DESTDIR)$(sysconfdir)
]
;
then
\
$(srcdir)
/mkinstalldirs
$(DESTDIR)$(sysconfdir)
;
\
fi
@
if
[
!
-f
$(DESTDIR)$(sysconfdir)
/ssh_config
]
;
then
\
$(INSTALL)
-m
644 ssh_config.out
$(DESTDIR)$(sysconfdir)
/ssh_config
;
\
else
\
echo
"
$(DESTDIR)$(sysconfdir)
/ssh_config already exists, install will not overwrite"
;
\
fi
@
if
[
!
-f
$(DESTDIR)$(sysconfdir)
/sshd_config
]
;
then
\
$(INSTALL)
-m
644 sshd_config.out
$(DESTDIR)$(sysconfdir)
/sshd_config
;
\
else
\
echo
"
$(DESTDIR)$(sysconfdir)
/sshd_config already exists, install will not overwrite"
;
\
fi
@
if
[
!
-f
$(DESTDIR)$(sysconfdir)
/moduli
]
;
then
\
if
[
-f
$(DESTDIR)$(sysconfdir)
/primes
]
;
then
\
echo
"moving
$(DESTDIR)$(sysconfdir)
/primes to
$(DESTDIR)$(sysconfdir)
/moduli"
;
\
mv
"
$(DESTDIR)$(sysconfdir)
/primes"
"
$(DESTDIR)$(sysconfdir)
/moduli"
;
\
else
\
$(INSTALL)
-m
644 moduli.out
$(DESTDIR)$(sysconfdir)
/moduli
;
\
fi
;
\
else
\
echo
"
$(DESTDIR)$(sysconfdir)
/moduli already exists, install will not overwrite"
;
\
fi
host-key
:
ssh-keygen$(EXEEXT)
@
if
[
-z
"
$(DESTDIR)
"
]
;
then
\
./ssh-keygen
-A
;
\
fi
host-key-force
:
ssh-keygen$(EXEEXT) ssh$(EXEEXT)
if
./ssh
-Q
protocol-version |
grep
'^1$$'
>
/dev/null
;
then
\
./ssh-keygen
-t
rsa1
-f
$(DESTDIR)$(sysconfdir)
/ssh_host_key
-N
""
;
\
fi
./ssh-keygen
-t
dsa
-f
$(DESTDIR)$(sysconfdir)
/ssh_host_dsa_key
-N
""
./ssh-keygen
-t
rsa
-f
$(DESTDIR)$(sysconfdir)
/ssh_host_rsa_key
-N
""
./ssh-keygen
-t
ed25519
-f
$(DESTDIR)$(sysconfdir)
/ssh_host_ed25519_key
-N
""
if
./ssh
-Q
key |
grep
ecdsa
>
/dev/null
;
then
\
./ssh-keygen
-t
ecdsa
-f
$(DESTDIR)$(sysconfdir)
/ssh_host_ecdsa_key
-N
""
;
\
fi
uninstallall
:
uninstall
-
rm
-f
$(DESTDIR)$(sysconfdir)
/ssh_config
-
rm
-f
$(DESTDIR)$(sysconfdir)
/sshd_config
-
rmdir
$(DESTDIR)$(sysconfdir)
-
rmdir
$(DESTDIR)$(bindir)
-
rmdir
$(DESTDIR)$(sbindir)
-
rmdir
$(DESTDIR)$(mandir)
/
$(mansubdir)
1
-
rmdir
$(DESTDIR)$(mandir)
/
$(mansubdir)
8
-
rmdir
$(DESTDIR)$(mandir)
-
rmdir
$(DESTDIR)$(libexecdir)
uninstall
:
-
rm
-f
$(DESTDIR)$(bindir)
/ssh
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(bindir)
/scp
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(bindir)
/ssh-add
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(bindir)
/ssh-agent
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(bindir)
/ssh-keygen
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(bindir)
/ssh-keyscan
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(bindir)
/sftp
$(EXEEXT)
-
rm
-f
$(DESTDIR)$(sbindir)
/sshd
$(EXEEXT)
-
rm
-r
$(DESTDIR)$(SFTP_SERVER)$(EXEEXT)
-
rm
-f
$(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT)
-
rm
-f
$(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT)
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/scp.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-add.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-agent.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-keygen.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/sftp.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
1/ssh-keyscan.1
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/sshd.8
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/sftp-server.8
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/ssh-keysign.8
-
rm
-f
$(DESTDIR)$(mandir)
/
$(mansubdir)
8/ssh-pkcs11-helper.8
regress-prep
:
[
-d
`
pwd
`
/regress
]
||
mkdir
-p
`
pwd
`
/regress
[
-d
`
pwd
`
/regress/unittests
]
||
mkdir
-p
`
pwd
`
/regress/unittests
...
...
configure.ac
View file @
95e5f3fc
...
...
@@ -47,6 +47,18 @@ AC_PATH_PROG([NROFF], [nroff])
AC_PATH_PROG([MANDOC], [mandoc])
AC_SUBST([TEST_SHELL], [sh])
#
# Add the specific NX settings.
#
AC_SUBST(NXCOMPINC)
AC_SUBST(NXCOMPLIBS)
CFLAGS="-g -O3"
NXCOMPINC="-I../nxcomp"
NXCOMPLIBS="-L../nxcomp -lXcomp -lstdc++ -lpng -ljpeg -lz"
dnl select manpage formatter
if test "x$MANDOC" != "x" ; then
MANFMT="$MANDOC"
...
...
@@ -571,7 +583,8 @@ case "$host" in
;;
*-*-cygwin*)
check_for_libcrypt_later=1
LIBS="$LIBS /usr/lib/textreadmode.o"
dont_check_for_resolv=1
LIBS="$LIBS /usr/lib/textmode.o /usr/lib/libminires.a"
AC_DEFINE([HAVE_CYGWIN], [1], [Define if you are on Cygwin])
AC_DEFINE([USE_PIPES], [1], [Use PIPES instead of a socketpair()])
AC_DEFINE([NO_UID_RESTORATION_TEST], [1],
...
...
@@ -4076,6 +4089,7 @@ if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
AC_DEFINE([HAVE_SYS_NERR], [1], [Define if your system defines sys_nerr])
fi
if test "x$dont_check_for_resolv" != "x1"; then
# Check libraries needed by DNS fingerprint support
AC_SEARCH_LIBS([getrrsetbyname], [resolv],
[AC_DEFINE([HAVE_GETRRSETBYNAME], [1],
...
...
@@ -4142,6 +4156,7 @@ return 0;
],
[ AC_MSG_RESULT([no]) ]
)
fi
# Check whether user wants SELinux support
SELINUX_MSG="no"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment