| 1 | | |
| | 1 | I edited configure.ac to fix their AC_CHECK_HEADERS, changing that section to: |
| | 2 | {{{ |
| | 3 | AC_CHECK_HEADERS([utmpx.h]) |
| | 4 | AC_CHECK_HEADERS([sys/select.h]) |
| | 5 | AC_CHECK_HEADERS([sys/types.h]) |
| | 6 | AC_CHECK_HEADERS([utmp.h]) |
| | 7 | }}} |
| | 8 | |
| | 9 | Then I added a check for -lnetwork: |
| | 10 | {{{ |
| | 11 | AC_SEARCH_LIBS([socket], [network]) |
| | 12 | }}} |
| | 13 | |
| | 14 | And commented out the gtk-path part: |
| | 15 | {{{ |
| | 16 | #AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"]) |
| | 17 | }}} |
| | 18 | |
| | 19 | In the Makefile I added: |
| | 20 | {{{ |
| | 21 | XLDFLAGS = -lnetwork |
| | 22 | ULDFLAGS = -lnetwork |
| | 23 | }}} |
| | 24 | |
| | 25 | After the install: section I added: |
| | 26 | {{{ |
| | 27 | install-cli: |
| | 28 | $(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink |
| | 29 | $(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp |
| | 30 | $(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp |
| | 31 | $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen |
| | 32 | $(INSTALL_DATA) -m 644 ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1 |
| | 33 | $(INSTALL_DATA) -m 644 ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1 |
| | 34 | $(INSTALL_DATA) -m 644 ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1 |
| | 35 | $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1 |
| | 36 | }}} |
| | 37 | |
| | 38 | This allows for using "make install-cli" to get just the parts that will work built. |
| | 39 | |
| | 40 | I edited uxplink.c to comment out an occurance of O_NDELAY /* O_NDELAY */ and commented out another section near the end of the file where another macro was undefined thus causing a compare to always be false. |
| | 41 | |
| | 42 | unser.c also needed minor patching. |
| | 43 | |
| | 44 | TODO: figure out a better way to patch this one. |
| | 45 | |
| | 46 | run autoconf, then ./configure --prefix=/boot/common, make all-cli, make install-cli |
| | 47 | do not run automake, run "perl ../mkfiles.pl" if you need to generate the Makefile, and then add the fixed listed above. A correct patch will need to figure out how to put these fixes into the mkfile.pl file. |
| | 48 | |
| | 49 | TODO: figure out how to run the tests if any |
| | 50 | |
| | 51 | NOTE: wrote this from memory so might have missed a step or two. |