]> git.cameronkatri.com Git - trustcache.git/commitdiff
Rename to trustcache
authorCameron Katri <me@cameronkatri.com>
Mon, 13 Jun 2022 18:28:49 +0000 (14:28 -0400)
committerCameron Katri <me@cameronkatri.com>
Tue, 14 Jun 2022 02:15:27 +0000 (22:15 -0400)
Linux contains a `tc(8)` that I was unaware of.

https://manpages.debian.org/tc.8

.gitignore
Makefile
README.txt
trustcache.1 [moved from tc.1 with 99% similarity]
trustcache.c [moved from tc.c with 89% similarity]

index 93ac639c824d575360dc489ee368889581ddf3bb..2ee8367d53752f7be5a152cd55e6e4923e6e9845 100644 (file)
@@ -1,5 +1,5 @@
 a.out
 *.o
 *.bin
-tc
+trustcache
 .vscode
index 7eeb0dbbedeed4b9e87bf062295cf54ec2dd426f..7b7aec982af6fbf0496a8f4e2262799aa7d3c496 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-OBJS = tc.o
+OBJS = trustcache.o
 OBJS += append.o create.o info.o remove.o
 OBJS += machoparse/cdhash.o cache_from_tree.o sort.o
 OBJS += uuid/gen_uuid.o uuid/pack.o uuid/unpack.o uuid/parse.o uuid/unparse.o uuid/copy.o
@@ -19,24 +19,24 @@ else
        LIBS   += -lcrypto
 endif
 
-all: tc
+all: trustcache
 
-install: tc tc.1
+install: trustcache trustcache.1
        install -d $(BINDIR)
-       install -m 755 tc $(BINDIR)/
+       install -m 755 trustcache $(BINDIR)/
        install -d $(MANDIR)/man1/
-       install -m 644 tc.1 $(MANDIR)/man1/
+       install -m 644 trustcache.1 $(MANDIR)/man1/
 
 uninstall:
-       rm -i $(BINDIR)/tc $(MANDIR)/man1/tc.1
+       rm -i $(BINDIR)/trustcache $(MANDIR)/man1/trustcache.1
 
-tc: $(OBJS)
+trustcache: $(OBJS)
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
 
-README.txt: tc.1
+README.txt: trustcache.1
        mandoc $^ | col -bx > $@
 
 clean:
-       rm -f tc $(OBJS)
+       rm -f trustcache $(OBJS)
 
 .PHONY: all clean install uninstall
index 54c313d99b1a1f77dd26ce7ba8371dd4aa898f66..12da2b39b47443b5a78f906b0f22239de216a1b7 100644 (file)
@@ -1,18 +1,19 @@
-TC(1)                       General Commands Manual                      TC(1)
+TRUSTCACHE(1)               General Commands Manual              TRUSTCACHE(1)
 
 NAME
-     tc – Create and interact with trustcaches
+     trustcache – Create and interact with trustcaches
 
 SYNOPSIS
-     tc append [-f flags] [-u uuid | 0] infile file ...
-     tc create [-u uuid] [-v version] outfile file ...
-     tc info [-c] [-h] [-e entrynum] file
-     tc remove [-k] file hash ...
+     trustcache append [-f flags] [-u uuid | 0] infile file ...
+     trustcache create [-u uuid] [-v version] outfile file ...
+     trustcache info [-c] [-h] [-e entrynum] file
+     trustcache remove [-k] file hash ...
 
 DESCRIPTION
-     The tc utility is used to get info about and modify Apple trustcaches.
+     The trustcache utility is used to get info about and modify Apple
+     trustcaches.
 
-     The following commands are supported by tc:
+     The following commands are supported by trustcache:
 
      append [-f flags] [-u uuid | 0] infile file ...
              Modify the trustcache at infile to include each signed Mach-O at
@@ -47,12 +48,13 @@ DESCRIPTION
              be printed.
 
 EXIT STATUS
-     The tc utility exits 0 on success, and >0 if an error occurs.
+     The trustcache utility exits 0 on success, and >0 if an error occurs.
 
 SEE ALSO
      cryptex-dump-trust-cache(1), cryptex-generate-trust-cache(1)
 
 HISTORY
-     The tc utility was written by Cameron Katri <me@cameronkatri.com>.
+     The trustcache utility was written by Cameron Katri
+     <me@cameronkatri.com>.
 
 FreeBSD 14.0-CURRENT             May 19, 2022             FreeBSD 14.0-CURRENT
similarity index 99%
rename from tc.1
rename to trustcache.1
index 8c5431bb0f9e2ddb7499d310012a308a2c779496..68ec6e5e014afee8c9268e6b255d382a502ff8ba 100644 (file)
--- a/tc.1
 .\" SUCH DAMAGE.
 .\"
 .Dd May 19, 2022
-.Dt TC 1
+.Dt TRUSTCACHE 1
 .Os
 .Sh NAME
-.Nm tc
+.Nm trustcache
 .Nd Create and interact with trustcaches
 .Sh SYNOPSIS
 .Nm
similarity index 89%
rename from tc.c
rename to trustcache.c
index 6142057c32d1a1cf58f94cc6f90b89a880f2169d..adc594c1461c62aaff81c713cd2184973b3ae619 100644 (file)
--- a/tc.c
@@ -41,11 +41,11 @@ main(int argc, char **argv)
 {
        if (argc < 2) {
 help:
-               fprintf(stderr, "Usage: tc append [-f flags] [-u uuid | 0] infile file ...\n"
-                                                                               "       tc create [-u uuid] [-v version] outfile file ...\n"
-                                                                               "       tc info [-c] [-h] [-e entrynum] file\n"
-                                                                               "       tc remove [-k] file hash ...\n\n"
-                                                                               "See tc(1) for more information\n");
+               fprintf(stderr, "Usage: trustcache append [-f flags] [-u uuid | 0] infile file ...\n"
+                                                                               "       trustcache create [-u uuid] [-v version] outfile file ...\n"
+                                                                               "       trustcache info [-c] [-h] [-e entrynum] file\n"
+                                                                               "       trustcache remove [-k] file hash ...\n\n"
+                                                                               "See trustcache(1) for more information\n");
                exit(1);
        }