summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/1password-client/Makefile40
-rw-r--r--security/1password-client/distinfo7
-rw-r--r--security/1password-client/pkg-descr4
-rw-r--r--security/Makefile1
-rw-r--r--security/op/Makefile1
5 files changed, 53 insertions, 0 deletions
diff --git a/security/1password-client/Makefile b/security/1password-client/Makefile
new file mode 100644
index 000000000000..04b42ce5f0ee
--- /dev/null
+++ b/security/1password-client/Makefile
@@ -0,0 +1,40 @@
+# Created by: Adam Weinberger <adamw@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= 1password-client
+PORTVERSION= 0.1
+CATEGORIES= security
+MASTER_SITES= https://cache.agilebits.com/dist/1P/op/pkg/v${PORTVERSION}/
+
+MAINTAINER= adamw@FreeBSD.org
+COMMENT= 1Password CLI client
+
+ONLY_FOR_ARCHS= amd64 arm i386
+
+USES= zip
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+PLIST_FILES= bin/op
+CONFLICTS_INSTALL= security/op
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/op ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+DISTNAME= op_freebsd_amd64_v${PORTVERSION}
+.elif ${ARCH} == "aarch64"
+DISTNAME= op_freebsd_arm_v${PORTVERSION}
+.elif ${ARCH} == "i386"
+DISTNAME= op_freebsd_386_v${PORTVERSION}
+.endif
+
+.if ${.TARGETS} == "makesum"
+DISTFILES= op_freebsd_amd64_v${PORTVERSION}${EXTRACT_SUFX} \
+ op_freebsd_arm_v${PORTVERSION}${EXTRACT_SUFX} \
+ op_freebsd_386_v${PORTVERSION}${EXTRACT_SUFX}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/1password-client/distinfo b/security/1password-client/distinfo
new file mode 100644
index 000000000000..1991e73b98eb
--- /dev/null
+++ b/security/1password-client/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1504738054
+SHA256 (op_freebsd_amd64_v0.1.zip) = ea0272132580269ba515b078024f99200ebcebe039779ee104a4abc1d034a5c5
+SIZE (op_freebsd_amd64_v0.1.zip) = 2190194
+SHA256 (op_freebsd_arm_v0.1.zip) = d0155036027b83e3c2097d9fc84bfbe42abf4ce69a90a66152c969c73e5208cd
+SIZE (op_freebsd_arm_v0.1.zip) = 2044076
+SHA256 (op_freebsd_386_v0.1.zip) = 4ff645ae808aa5332a69c6e124685d6db1ac35b9f9548c2d017f8d20f7e0a7dc
+SIZE (op_freebsd_386_v0.1.zip) = 2028491
diff --git a/security/1password-client/pkg-descr b/security/1password-client/pkg-descr
new file mode 100644
index 000000000000..2cafee44ef3a
--- /dev/null
+++ b/security/1password-client/pkg-descr
@@ -0,0 +1,4 @@
+This is a command-line interface to the 1Password password management
+service.
+
+WWW: https://support.1password.com/command-line-getting-started/
diff --git a/security/Makefile b/security/Makefile
index 711798474ed4..1127fb767968 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -4,6 +4,7 @@
COMMENT = Security tools
SUBDIR += 0d1n
+ SUBDIR += 1password-client
SUBDIR += ADMsmb
SUBDIR += ADMsnmp
SUBDIR += R-cran-ROAuth
diff --git a/security/op/Makefile b/security/op/Makefile
index fcb42f069ce3..d423b54a215d 100644
--- a/security/op/Makefile
+++ b/security/op/Makefile
@@ -15,6 +15,7 @@ LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
+CONFLICTS_INSTALL= security/1password-client
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/op.d