svn commit: r457299 - in head/security: . titan titan/files

Yuri Victorovich yuri at FreeBSD.org
Tue Dec 26 18:26:10 UTC 2017


Author: yuri
Date: Tue Dec 26 18:26:08 2017
New Revision: 457299
URL: https://svnweb.freebsd.org/changeset/ports/457299

Log:
  New port: security/titan: Command line password manager and file encryption program
  
  Submitted by:	myself
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13629

Added:
  head/security/titan/
  head/security/titan/Makefile   (contents, props changed)
  head/security/titan/distinfo   (contents, props changed)
  head/security/titan/files/
  head/security/titan/files/patch-Makefile   (contents, props changed)
  head/security/titan/pkg-descr   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Tue Dec 26 18:20:54 2017	(r457298)
+++ head/security/Makefile	Tue Dec 26 18:26:08 2017	(r457299)
@@ -1225,6 +1225,7 @@
     SUBDIR += tinc
     SUBDIR += tinc-devel
     SUBDIR += tinyca
+    SUBDIR += titan
     SUBDIR += titus
     SUBDIR += tls-check
     SUBDIR += tlswrap

Added: head/security/titan/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/titan/Makefile	Tue Dec 26 18:26:08 2017	(r457299)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	titan
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.2
+CATEGORIES=	security
+
+MAINTAINER=	yuri at 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 <bsd.port.mk>

Added: head/security/titan/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/titan/distinfo	Tue Dec 26 18:26:08 2017	(r457299)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1514242207
+SHA256 (nrosvall-titan-v1.2_GH0.tar.gz) = 1d87fac29da00ebb5c9432d3a2007837818b06c653a8559c43112e322a94823b
+SIZE (nrosvall-titan-v1.2_GH0.tar.gz) = 14764

Added: head/security/titan/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/titan/files/patch-Makefile	Tue Dec 26 18:26:08 2017	(r457299)
@@ -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

Added: head/security/titan/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/titan/pkg-descr	Tue Dec 26 18:26:08 2017	(r457299)
@@ -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


More information about the svn-ports-head mailing list