diff options
| author | John Vogel <jvogel@stygian.me> | 2024-12-14 00:40:59 -0500 |
|---|---|---|
| committer | John Vogel <jvogel@stygian.me> | 2024-12-14 00:40:59 -0500 |
| commit | aba880f759d649bddbc1bafef9c4a8b7486b8d10 (patch) | |
| tree | 486299c85163c9fad6493f8a53a492455dd7c112 /cvsps/fix-makefile.patch | |
| parent | 7ee4e89dd35826f5ca04309ae1368f2967356d76 (diff) | |
| download | my-aports-aba880f759d649bddbc1bafef9c4a8b7486b8d10.tar.gz | |
local/cvsps: new aport
Diffstat (limited to 'cvsps/fix-makefile.patch')
| -rw-r--r-- | cvsps/fix-makefile.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cvsps/fix-makefile.patch b/cvsps/fix-makefile.patch new file mode 100644 index 0000000..66c90f6 --- /dev/null +++ b/cvsps/fix-makefile.patch @@ -0,0 +1,27 @@ +Description: - Fix upstream Makefile and add hardening. + - Fix destination install directory. +Author: Giovani Agusuto Ferreira <giovani@riseup.net> +Last-Update: 2015-09-07Index: cvsps-2.1/Makefile +=================================================================== +Index: cvsps-2.1/Makefile +=================================================================== +--- cvsps-2.1.orig/Makefile ++++ cvsps-2.1/Makefile +@@ -3,7 +3,7 @@ MINOR=1 + CC?=gcc + CFLAGS?=-g -O2 -Wall + CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\" +-prefix?=/usr/local ++prefix?=/usr + OBJS=\ + cbtcommon/debug.o\ + cbtcommon/hash.o\ +@@ -21,7 +21,7 @@ OBJS=\ + all: cvsps + + cvsps: $(OBJS) +- $(CC) -o cvsps $(OBJS) -lz ++ $(CC) $(LDFLAGS) -o cvsps $(OBJS) -lz + + install: + [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin |
