freebsd-ports/security/putty/files/patch-unix_Makefile.gtk
Matthias Andree 4c5a117abd Update security/putty to 0.71 security fix release
Unfortunately, this new release breaks GSSAPI_NONE, which is removed
for now. Bug has been reported upstream.

Changelog: https://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html

MFH:		2019Q1
Security:	46e1ece5-48bd-11e9-9c40-080027ac955c
2019-03-17 14:17:26 +00:00

80 lines
3.6 KiB
Text

--- unix/Makefile.gtk.orig 2019-03-16 12:26:40 UTC
+++ unix/Makefile.gtk
@@ -109,7 +109,7 @@ GTK_CONFIG = sh -c 'pkg-config gtk+-3.0 x11 $$0 2>/dev
unexport CFLAGS # work around a weird issue with krb5-config
-CFLAGS = -O2 -Wall -Werror -std=gnu99 -Wvla -g -I.././ -I../charset/ \
+CFLAGS := $(CFLAGS) -Wall -Werror -std=gnu99 -Wvla -I.././ -I../charset/ \
-I../windows/ -I../unix/ $(shell $(GTK_CONFIG) --cflags) -D _FILE_OFFSET_BITS=64
XLDFLAGS = $(LDFLAGS) $(shell $(GTK_CONFIG) --libs)
ULDFLAGS = $(LDFLAGS)
@@ -136,8 +136,13 @@ man1dir=$(mandir)/man1
.SUFFIXES:
+ifdef PUTTY_WITH_GTK
all: cgtest fuzzterm osxlaunch pageant plink pscp psftp pterm ptermapp putty \
puttyapp puttygen puttytel testcrypt testsc testzlib uppity
+else
+all: cgtest fuzzterm osxlaunch plink pscp psftp \
+ puttygen testcrypt testsc testzlib uppity
+endif
cgtest: cgtest.o conf.o ecc.o import.o marshal.o memory.o misc.o mpint.o \
notiming.o sshaes.o sshauxcrypt.o sshbcrypt.o sshblowf.o \
@@ -497,15 +502,15 @@ testsc: ecc.o marshal.o memory.o mpint.o sshaes.o ssha
sshblowf.o sshccp.o sshcrc.o sshcrcda.o sshdes.o sshdh.o \
sshdss.o sshecc.o sshhmac.o sshmac.o sshmd5.o sshrsa.o \
sshsh256.o sshsh512.o sshsha.o testsc.o tree234.o utils.o \
- uxutils.o wildcard.o
+ uxutils.o wildcard.o uxmisc.o
$(CC) -o $@ ecc.o marshal.o memory.o mpint.o sshaes.o ssharcf.o \
sshauxcrypt.o sshblowf.o sshccp.o sshcrc.o sshcrcda.o \
sshdes.o sshdh.o sshdss.o sshecc.o sshhmac.o sshmac.o \
sshmd5.o sshrsa.o sshsh256.o sshsh512.o sshsha.o testsc.o \
- tree234.o utils.o uxutils.o wildcard.o $(ULDFLAGS)
+ tree234.o utils.o uxutils.o wildcard.o uxmisc.o $(ULDFLAGS)
-testzlib: marshal.o memory.o sshzlib.o testzlib.o utils.o
- $(CC) -o $@ marshal.o memory.o sshzlib.o testzlib.o utils.o \
+testzlib: marshal.o memory.o sshzlib.o testzlib.o utils.o uxmisc.o
+ $(CC) -o $@ marshal.o memory.o sshzlib.o testzlib.o utils.o uxmisc.o \
$(ULDFLAGS)
uppity: be_misc.o be_none.o callback.o conf.o cproxy.o ecc.o errsock.o \
@@ -1602,10 +1607,12 @@ xpmputty.o: ../unix/xpmputty.c
install:
mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
- $(INSTALL_PROGRAM) -m 755 pageant $(DESTDIR)$(bindir)/pageant
$(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink
$(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp
$(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp
+ $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen
+ifdef PUTTY_WITH_GTK
+ $(INSTALL_PROGRAM) -m 755 pageant $(DESTDIR)$(bindir)/pageant
$(INSTALL_PROGRAM) -m 755 pterm $(DESTDIR)$(bindir)/pterm
if test -n "$(UTMP_GROUP)"; then \
chgrp $(UTMP_GROUP) $(DESTDIR)$(bindir)/pterm && \
@@ -1615,16 +1622,18 @@ install:
chmod 4755 $(DESTDIR)$(bindir)/pterm; \
fi
$(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty
- $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen
$(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel
$(INSTALL_DATA) -m 644 ../doc/pageant.1 $(DESTDIR)$(man1dir)/pageant.1
+endif
$(INSTALL_DATA) -m 644 ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1
$(INSTALL_DATA) -m 644 ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1
$(INSTALL_DATA) -m 644 ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1
+ $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
+ifdef PUTTY_WITH_GTK
$(INSTALL_DATA) -m 644 ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1
$(INSTALL_DATA) -m 644 ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
- $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
$(INSTALL_DATA) -m 644 ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
+endif
install-strip:
$(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s"