everything in its own place

This commit is contained in:
Kyle Isom 2020-02-14 23:12:10 -08:00
parent 769de599fc
commit 81f4a77333
20 changed files with 0 additions and 192 deletions

View File

@ -1,11 +0,0 @@
SUBDIRS = src tests doc
TESTS = tests/dirlist_test \
tests/dirutils_test \
tests/iniparser-test
dist_noinst_DATA = LICENSE \
testdata \
README \
autobuild.sh
test: check

View File

@ -1,11 +0,0 @@
#!/bin/sh
# performs a full clean, autoreconf, configure with appropriate options,
# make, and make check: it starts from scratch, with a clean dev checkout
# and performs everything necessary to run the unit tests.
echo "[+] performing autobuild" ; \
autoreconf -i && \
./configure && \
make clean && \
make && \
make check

View File

@ -1,19 +0,0 @@
AC_PREREQ([2.59])
AC_INIT([kst], [1.0.0], [kyle@imap.cc],
[libdirutils], [https://hg.sr.ht/~kisom/kst])
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects])
AC_CONFIG_SRCDIR([doc/srm.1])
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile tests/Makefile])
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
NO_CUNIT_MSG="
==============================================
Warning: CUnit was not found; will not be able
to run unit tests!
==============================================
"
AC_SEARCH_LIBS([CU_initialize_registry], [cunit],
[], [AC_MSG_WARN($NO_CUNIT_MSG)])
AC_OUTPUT

View File

@ -1,3 +0,0 @@
dist_man1_MANS = srm.1
dist_man3_MANS = libdirutils.3 libiniparser.3

View File

@ -1,36 +0,0 @@
srm - securely wipe files
--------------------------
srm is a utility to overwrite files with random data in one or more passes.
Dependencies
------------
None.
Compatibility
-------------
srm has been tested on the following operating systems:
* OpenBSD (5.1-snap)
* OS X (10.8)
* Linux (Debian 6.0)
Installation
------------
make build install
Usage
-----
srm [-v] [-n number] file list
options:
-n <number of passes>: specify number of passes
(default is 3 passes)
-v: verbose mode. display list of failures and wiped files after wiping
Known bugs / caveats
--------------------
srm can't recursively remove files, i.e. it can't remove directories.

View File

@ -1,84 +0,0 @@
.Dd $Mdocdate$
.Dt SRM 1
.Os
.Sh NAME
.Nm srm
.Nd securely delete files
.Sh SYNOPSIS
.Nm
.Op Fl h
.Op Fl n Ar number
.Op Fl r
.Op Fl v
.Op Fl V
.Ar files
.Sh DESCRIPTION
.Nm
is a simple secure file deletion tool. It overwrites the file with several
passes of random data before unlinking it. If no options are specified, Nm
defaults to three passes.
.Nm
supports the following options:
.Bl -tag -width .Ds
.It Fl h
Display a brief help message.
.It Fl n Ar number
Specify the number of times to overwrite each target with random data.
.It Fl r
Recursive mode. Delete any directories and all subdirectories underneath.
.It Fl v
Verbose mode. Displays a list of both files that failed to wipe and files that
were successfully wiped.
.It Fl V
Print version information.
.El
.Sh EXIT STATUS
.Ex -std
The exit values are standard
.Xr sysexits 3
values.
.Sh EXAMPLES
Wipe files
.Pa foo
and
.Pa bar
with three passes:
.Dl $ srm foo bar
Wipe files
.Pa baz
and
.Pa quux
with ten passes:
.Dl $ srm -n 10 baz quux
Wipe all PGP keys, i.e. files with extension
.Pa *.asc :
.Dl $ srm *.asc
Recursive deletes aren't implemented yet. A workaround is to use
.Nm
and
.Xr find 1 ,
for example to delete all
.Pa *.pgp
files:
.Dl $ find . -iname '*.pgp' -exec srm '{}' \;
.Sh DIAGNOSTICS
.Nm
uses the standard
.Xr err 3
facilities to report any errors that occur.
.Sh SEE ALSO
The srm page on
.Lk http://www.tyrfingr.is/projects/srm/ "tyrfinger" .
.Sh STANDARDS
.Nm
conforms to
.St -ansiC .
.Sh AUTHORS
.Nm
was written by
.An "Kyle Isom" Aq Mt kyle@tyrfingr.is .
.Sh BUGS
None known. Report bugs to the author.
.Sh LICENSE
.Nm
is released under an ISC license.

View File

@ -1,19 +0,0 @@
CFLAGS := -pedantic -Wall -Werror -Wextra -O2 -std=c99 -g
lib_LIBRARIES := libdirutils.a libiniparser.a
nobase_include_HEADERS := kst/dirutils.h \
kst/iniparser.h
dist_noinst_HEADERS = kst/dirlist.h
bin_PROGRAMS = srm
## programs
srm_SOURCES = srm.c
## libraries
libdirutils_a_SOURCES = dirutils.c dirlist.c dirwalk.c dirlist.h
libiniparser_a_SOURCES = iniparser.c

View File

@ -1,9 +0,0 @@
AM_LDFLAGS = -L/usr/local/lib -lcunit
AM_CFLAGS = -Wall -g -I/usr/local/include -I../src -O0
check_PROGRAMS = dirlist_test dirutils_test iniparser-test
dirlist_test_SOURCES = dirlist_test.c ../src/dirlist.c
dirutils_test_SOURCES = dirutils_test.c ../src/dirlist.c ../src/dirutils.c
iniparser_test_SOURCES = iniparser_test.c ../src/iniparser.c