aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorlifanov <lifanov@FreeBSD.org>2017-01-12 03:22:29 +0800
committerlifanov <lifanov@FreeBSD.org>2017-01-12 03:22:29 +0800
commitcb7d48cd69cf2236a3fc958d81c76815e8b4cb56 (patch)
treea5ffca0318ce04d03764660c27141e797fa74962 /sysutils
parentbbd4af6207a07ce956d5a426076c0998cb577f3f (diff)
downloadfreebsd-ports-gnome-cb7d48cd69cf2236a3fc958d81c76815e8b4cb56.tar.gz
freebsd-ports-gnome-cb7d48cd69cf2236a3fc958d81c76815e8b4cb56.tar.zst
freebsd-ports-gnome-cb7d48cd69cf2236a3fc958d81c76815e8b4cb56.zip
new port: sysutils/siegfried
Siegfried is an advanced file identification tool written in Go. It is signature-based, implementing the PRONOM file format signatures and freedesktop.org's MIME-info file format signatures. PR: 209912 Submitted by: Steffen Fritz <steffen@fritz.wtf> Reviewed by: matthew Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D9136
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/siegfried/Makefile26
-rw-r--r--sysutils/siegfried/distinfo3
-rw-r--r--sysutils/siegfried/pkg-descr5
-rw-r--r--sysutils/siegfried/pkg-message1
5 files changed, 36 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 3b89ecc1c01b..b78f625f90f7 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1039,6 +1039,7 @@
SUBDIR += shlock
SUBDIR += shmcat
SUBDIR += showbeastie
+ SUBIDR += siegfried
SUBDIR += sievelog
SUBDIR += skill
SUBDIR += slack
diff --git a/sysutils/siegfried/Makefile b/sysutils/siegfried/Makefile
new file mode 100644
index 000000000000..e6b63131ce3f
--- /dev/null
+++ b/sysutils/siegfried/Makefile
@@ -0,0 +1,26 @@
+# Created by: Steffen Fritz <steffen@fritz.wtf>
+# $FreeBSD$
+
+PORTNAME= siegfried
+PORTVERSION= 1.6.7
+DISTVERSIONPREFIX= v
+CATEGORIES= sysutils
+
+MAINTAINER= steffen@fritz.wtf
+COMMENT= File identification tool
+
+LICENSE= APACHE20
+
+PLIST_FILES= bin/sf
+
+USE_GITHUB= yes
+GH_ACCOUNT= richardlehane
+
+USES= go
+
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME}/cmd/sf
+
+STRIP= # stripping can break go binaries
+
+.include <bsd.port.mk>
diff --git a/sysutils/siegfried/distinfo b/sysutils/siegfried/distinfo
new file mode 100644
index 000000000000..d77a0bec48bd
--- /dev/null
+++ b/sysutils/siegfried/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1484153973
+SHA256 (richardlehane-siegfried-v1.6.7_GH0.tar.gz) = 7518163a4f26a6997d790a24b99ad019ed38427341a61b33ac006ad5442632d8
+SIZE (richardlehane-siegfried-v1.6.7_GH0.tar.gz) = 21531677
diff --git a/sysutils/siegfried/pkg-descr b/sysutils/siegfried/pkg-descr
new file mode 100644
index 000000000000..badbcde39d67
--- /dev/null
+++ b/sysutils/siegfried/pkg-descr
@@ -0,0 +1,5 @@
+Siegfried is a signature-based file format identification tool,
+implementing the National Archives UK's PRONOM file format
+signatures and freedesktop.org's MIME-info file format signatures.
+
+WWW: http://www.itforarchivists.com/siegfried
diff --git a/sysutils/siegfried/pkg-message b/sysutils/siegfried/pkg-message
new file mode 100644
index 000000000000..23bd0c9f818a
--- /dev/null
+++ b/sysutils/siegfried/pkg-message
@@ -0,0 +1 @@
+You should run 'sf -update' to update your local PRONOM database