commit: 2d21569610c98e67468f14bb3d5d904ca01ed50c
parent: d5db16740fa88a1696fe99ae02f3b63abb676298
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 11 Dec 2019 03:13:33 +0100
go-deblob.1: New file
Diffstat:
3 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -0,0 +1,20 @@
+.POSIX:
+
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/share/man
+
+EXE = go-deblob
+
+all: go-build
+
+.PHONY: go-build
+go-build:
+ go build
+
+.PHONY: install
+install:
+ mkdir -p $(DESTDIR)$(BINDIR)
+ cp -p $(EXE) $(DESTDIR)$(BINDIR)/$(EXE)
+ mkdir -p $(DESTDIR)$(MANDIR)/man1
+ cp -p $(EXE).1 $(DESTDIR)$(MANDIR)/man1/
diff --git a/go-deblob.1 b/go-deblob.1
@@ -0,0 +1,29 @@
+.\" This file is part of https://hacktivis.me/git/go-deblob
+.\" Copyright © 2019 Haelwenn (lanodan) Monnier <contact+go-deblob-notice@hacktivis.me>
+.\" SPDX-License-Identifier: CC-BY-4.0
+.Dd 2019-12-11
+.Dt go-deblob 1
+.Os
+.Sh NAME
+.Nm go-deblob
+.Nd remove binary blobs from a directory
+.Sh SYNOPSIS
+.Nm
+.Ar directory
+.Sh DESCRIPTION
+Done for cleaning a tarball extracted at
+.Ar directory
+from binary blobs, to be sure that a package actually builds from source. Scanning for blobs inside source files is considered to be out-of-scope for now as
+.Lk https://www.fsfla.org/svn/fsfla/software/linux-libre/scripts/ linux-libre deblob script
+already exists.
+.Pp
+For now it only scans for:
+.Bl -dash -compact
+.It
+ELF files by the magic-header
+.It
+.Xr ar 1
+files by the magic-header
+.El
+.Sh AUTHORS
+.An Haelwenn (lanodan) Monnier Aq Mt contact+go-deblob-mdoc@hacktivis.me
diff --git a/go-deblob.go b/go-deblob.go
@@ -64,7 +64,7 @@ func checkDir(dirname string) {
func main() {
if len(os.Args) != 2 {
- fmt.Printf("Usage: go-deblog [workdir containing blobs]\n")
+ fmt.Printf("Usage: go-deblog [directory]\n")
os.Exit(1)
}