Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -1225,6 +1225,7 @@ SUBDIR += tinc SUBDIR += tinc-devel SUBDIR += tinyca + SUBDIR += titan SUBDIR += titus SUBDIR += tls-check SUBDIR += tlswrap Index: head/security/titan/Makefile =================================================================== --- head/security/titan/Makefile +++ head/security/titan/Makefile @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= titan +DISTVERSIONPREFIX= v +DISTVERSION= 1.2 +CATEGORIES= security + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Command line password manager and file encryption program + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake localbase:ldflags sqlite ssl +USE_GITHUB= yes +GH_ACCOUNT= nrosvall + +MAKE_ENV= MANDIR=${PREFIX}/man + +PLIST_FILES= bin/titan man/man1/titan.1.gz + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/titan + +.include Index: head/security/titan/distinfo =================================================================== --- head/security/titan/distinfo +++ head/security/titan/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1514242207 +SHA256 (nrosvall-titan-v1.2_GH0.tar.gz) = 1d87fac29da00ebb5c9432d3a2007837818b06c653a8559c43112e322a94823b +SIZE (nrosvall-titan-v1.2_GH0.tar.gz) = 14764 Index: head/security/titan/files/patch-Makefile =================================================================== --- head/security/titan/files/patch-Makefile +++ head/security/titan/files/patch-Makefile @@ -0,0 +1,42 @@ +--- 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 Index: head/security/titan/pkg-descr =================================================================== --- head/security/titan/pkg-descr +++ head/security/titan/pkg-descr @@ -0,0 +1,8 @@ +titan is designed based on the belief that password management belongs +to the command line, deep into the Unix heartland, the shell. + +Titan is more than "just a password manager". It also supports encrypting +individual files, so Titan can be used as a file encryption program as well +as a password manager. + +WWW: https://www.titanpasswordmanager.org