security/titan: Update 1.2 -> 1.3

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2018-09-06 00:35:56 +00:00
parent 9668491b6f
commit 268c70b0c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=479071
3 changed files with 4 additions and 46 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= titan
DISTVERSIONPREFIX= v
DISTVERSION= 1.2
DISTVERSION= 1.3
CATEGORIES= security
MAINTAINER= yuri@FreeBSD.org

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1514242207
SHA256 (nrosvall-titan-v1.2_GH0.tar.gz) = 1d87fac29da00ebb5c9432d3a2007837818b06c653a8559c43112e322a94823b
SIZE (nrosvall-titan-v1.2_GH0.tar.gz) = 14764
TIMESTAMP = 1536193675
SHA256 (nrosvall-titan-v1.3_GH0.tar.gz) = 85425b60ee9f20d88a2d9e87c3f5db39dcfa00025793027f4d8868588f47cc9a
SIZE (nrosvall-titan-v1.3_GH0.tar.gz) = 15156

View file

@ -1,42 +0,0 @@
--- Makefile.orig 2017-11-13 07:48:52 UTC
+++ Makefile
@@ -1,6 +1,8 @@
-CC=gcc
-override CFLAGS+=-std=c99 -Wall -g
-PREFIX=/usr/
+CC?=gcc
+CFLAGS?=-std=c99 -Wall -g
+CFLAGS+=-std=c99 -Wall
+PREFIX?=/usr/
+MANDIR?=$(PREFIX)/share/man
LIBS=-lcrypto -lsqlite3 -lrt
PROG=titan
OBJS=$(patsubst %.c, %.o, $(wildcard *.c))
@@ -12,20 +14,20 @@ all: $(PROG)
$(CC) $(CFLAGS) -c $< -o $@
$(PROG): $(OBJS)
- $(CC) $(OBJS) $(LIBS) -o $@
+ $(CC) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
clean:
rm -f *.o
rm -f $(PROG)
install: all
- if [ ! -d $(PREFIX)/share/man/man1 ];then \
- mkdir -p $(PREFIX)/share/man/man1; \
+ if [ ! -d $(DESTDIR)$(MANDIR)/man1 ];then \
+ mkdir -p $(DESTDIR)$(MANDIR)/man1; \
fi
- cp titan.1 $(PREFIX)/share/man/man1/
- gzip -f $(PREFIX)/share/man/man1/titan.1
- cp titan $(PREFIX)/bin/
+ cp titan.1 $(DESTDIR)$(MANDIR)/man1/
+ gzip -f $(DESTDIR)$(MANDIR)/man1/titan.1
+ cp titan $(DESTDIR)$(PREFIX)/bin/
uninstall:
rm $(PREFIX)/bin/titan
- rm $(PREFIX)/share/man/man1/titan.1.gz
+ rm $(DESTDIR)$(MANDIR)/man1/titan.1.gz