diff --git a/security/git-secret/Makefile b/security/git-secret/Makefile new file mode 100644 index 000000000000..0df2e38ddca4 --- /dev/null +++ b/security/git-secret/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= git-secret +DISTVERSION= 0.2.5 +CATEGORIES= security + +MAINTAINER= mail@sobolevn.me +COMMENT= Bash tool to store your private data inside a git repository + +LICENSE= MIT +#MASTER_SITES= https://github.com/sobolevn/git-secret/archive/ + +RUN_DEPENDS= gawk:lang/gawk git:devel/git gpg2:security/gnupg bash:shells/bash + +USE_GITHUB= yes +GH_ACCOUNT= sobolevn +GH_PROJECT= git-secret +GH_TAGNAME= 94d5ae4 + +SCRIPTS= git-secret +ALL_TARGET= git-secret + +post-extract: + @cd ${WRKSRC} && ${CAT} src/version.sh src/_utils/*.sh src/commands/*.sh src/main.sh > git-secret + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/git-secret ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/man/man1/*.1 ${STAGEDIR}${PREFIX}/man/man1/ + ${INSTALL_MAN} ${WRKSRC}/man/man7/*.7 ${STAGEDIR}${PREFIX}/man/man7/ + +.include diff --git a/security/git-secret/NOTES.md b/security/git-secret/NOTES.md new file mode 100644 index 000000000000..22d34249ef22 --- /dev/null +++ b/security/git-secret/NOTES.md @@ -0,0 +1,13 @@ +# Notes for freebsd ports package of git-secret + +## See FreeBSD Porters Handbook + +## From section 3.4 Testing the Port, Recommended Test Ordering + +- make stage (OK) +- make check-orphans (OK) +- make package (OK) +- make install (OK) +- make deinstall (OK) +- make package (as user) (NOT TESTED, expected to work) + diff --git a/security/git-secret/README.md b/security/git-secret/README.md new file mode 100644 index 000000000000..3c6e7f46e6e2 --- /dev/null +++ b/security/git-secret/README.md @@ -0,0 +1,56 @@ +# git-secret freebsd port development + + +Output of tests in /usr/ports/security/git-secret + +```` +freebsd2# make stage +===> License MIT accepted by the user +===> git-secret-0.2.5 depends on file: /usr/local/sbin/pkg - found +===> Fetching all distfiles required by git-secret-0.2.5 for building +===> Extracting for git-secret-0.2.5 +=> SHA256 Checksum OK for sobolevn-git-secret-0.2.5-94d5ae4_GH0.tar.gz. +===> Patching for git-secret-0.2.5 +===> Configuring for git-secret-0.2.5 +===> Building for git-secret-0.2.5 +`git-secret' is up to date. +===> Staging for git-secret-0.2.5 +===> git-secret-0.2.5 depends on executable: gawk - found +===> git-secret-0.2.5 depends on executable: git - found +===> git-secret-0.2.5 depends on executable: gpg2 - found +===> Generating temporary packing list +install -m 555 /home/user/freebsd-ports/security/git-secret/work/git-secret-94d5ae4/git-secret /home/user/freebsd-ports/security/git-secret/work/stage/usr/local/bin/ +install -m 444 /home/user/freebsd-ports/security/git-secret/work/git-secret-94d5ae4/man/man1/*.1 /home/user/freebsd-ports/security/git-secret/work/stage/usr/local/man/man1/ +install -m 444 /home/user/freebsd-ports/security/git-secret/work/git-secret-94d5ae4/man/man7/*.7 /home/user/freebsd-ports/security/git-secret/work/stage/usr/local/man/man7/ +====> Compressing man pages (compress-man) + +freebsd2# make check-orphans +====> Checking for pkg-plist issues (check-plist) +===> Parsing plist +===> Checking for items in STAGEDIR missing from pkg-plist +===> Checking for items in pkg-plist which are not in STAGEDIR +===> No pkg-plist issues found (check-plist) + +freebsd2# make package +===> Building package for git-secret-0.2.5 + +freebsd2# make install +===> Installing for git-secret-0.2.5 +===> Checking if git-secret already installed +===> Registering installation for git-secret-0.2.5 +Installing git-secret-0.2.5... + +freebsd2# make deinstall +===> Deinstalling for git-secret +===> Deinstalling git-secret-0.2.5 +Updating database digests format: 100% +Checking integrity... done (0 conflicting) +Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): + +Installed packages to be REMOVED: + git-secret-0.2.5 + +Number of packages to be removed: 1 +[1/1] Deinstalling git-secret-0.2.5... +[1/1] Deleting files for git-secret-0.2.5: 100% +```` diff --git a/security/git-secret/distinfo b/security/git-secret/distinfo new file mode 100644 index 000000000000..afcdc6b0ee8e --- /dev/null +++ b/security/git-secret/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1547673384 +SHA256 (sobolevn-git-secret-0.2.5-94d5ae4_GH0.tar.gz) = 7be13bb5710c8f6e77a53153957e6352b67886432b35dbf10c8d0b92fbe29bea +SIZE (sobolevn-git-secret-0.2.5-94d5ae4_GH0.tar.gz) = 73704 diff --git a/security/git-secret/pkg-descr b/security/git-secret/pkg-descr new file mode 100644 index 000000000000..d508fd7c9800 --- /dev/null +++ b/security/git-secret/pkg-descr @@ -0,0 +1,11 @@ +git-secret is a bash tool which stores private data inside a git repo. +git-secret encrypts tracked files with public keys for users whom you +trust using gpg, allowing permitted users to access encrypted data +using their secret keys. With git-secret, changes to access rights are +made easy and private-public key issues are handled for you. Passwords +do not need to be changed with git-secret when someone's permission +is revoked - just remove their key from the keychain using git secret +killperson their@email.com, and re-encrypt the files, and they won't +be able to decrypt secrets anymore. + +WWW: https://git-secret.io/ diff --git a/security/git-secret/pkg-plist b/security/git-secret/pkg-plist new file mode 100644 index 000000000000..75038f676176 --- /dev/null +++ b/security/git-secret/pkg-plist @@ -0,0 +1,15 @@ +@(root,root,555) bin/git-secret +@(root,root,444) man/man7/git-secret.7.gz +@(root,root,444) man/man1/git-secret-add.1.gz +@(root,root,444) man/man1/git-secret-clean.1.gz +@(root,root,444) man/man1/git-secret-changes.1.gz +@(root,root,444) man/man1/git-secret-hide.1.gz +@(root,root,444) man/man1/git-secret-usage.1.gz +@(root,root,444) man/man1/git-secret-cat.1.gz +@(root,root,444) man/man1/git-secret-whoknows.1.gz +@(root,root,444) man/man1/git-secret-init.1.gz +@(root,root,444) man/man1/git-secret-reveal.1.gz +@(root,root,444) man/man1/git-secret-killperson.1.gz +@(root,root,444) man/man1/git-secret-remove.1.gz +@(root,root,444) man/man1/git-secret-list.1.gz +@(root,root,444) man/man1/git-secret-tell.1.gz