freebsd-ports/security/git-crypt/Makefile
Ashish SHUKLA b76e5f6bb5 git-crypt enables transparent encryption and decryption of files in a
git repository. Files which you choose to protect are encrypted when
committed, and decrypted when checked out. git-crypt lets you freely
share a repository containing a mix of public and private
content. git-crypt gracefully degrades, so developers without the
secret key can still clone and commit to a repository with encrypted
files. This lets you store your secret material (such as keys or
passwords) in the same repository as your code, without requiring you
to lock down your entire repository.

WWW: https://www.agwa.name/projects/git-crypt/
2017-02-05 21:21:18 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$
PORTNAME= git-crypt
PORTVERSION= 0.5.0
CATEGORIES= security
MASTER_SITES= https://www.agwa.name/projects/git-crypt/downloads/ \
LOCAL/ashish/
MAINTAINER= ashish@FreeBSD.org
COMMENT= Transparent file encryption in git
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= git:devel/git \
gpg:security/gnupg
OPTIONS_DEFINE= DOCS
LDFLAGS+= -L${OPENSSLLIB}
MAKE_ENV+= PREFIX=${PREFIX} "CXXFLAGS=${CXXFLAGS}" \
"LDFLAGS=${LDFLAGS}"
DOCS_BUILD_DEPENDS= xsltproc:textproc/libxslt \
docbook-xsl>=0:textproc/docbook-xsl
DOCS_MAKE_ARGS= ENABLE_MAN=yes \
MANDIR=${MANPREFIX}/man \
DOCBOOK_XSL=${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
DOCS_PLIST_FILES= man/man1/${PORTNAME}.1.gz
USES= gmake ssl
PLIST_FILES= bin/${PORTNAME}
post-extract:
@${GREP} -Rl '"gpg"' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e 's,"gpg","${LOCALBASE}/bin/gpg",'
@${GREP} -Rl '"git"' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -e 's,"git","${LOCALBASE}/bin/git",'
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/git-crypt
.include <bsd.port.mk>