Skip to content
Snippets Groups Projects
Commit c9bc9ac8 authored by Alexandre Detiste's avatar Alexandre Detiste :snowflake:
Browse files

renamy binary cruft-ng -> cruft; provide compat symlink

parent 151be6a8
No related branches found
Tags debian/0.9.44
No related merge requests found
.*.swp
cruft-ng
cruft
cruftlib
cruft.log
cruft.log.old
......
......@@ -2,7 +2,7 @@ CXXFLAGS ?= -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z
CXXFLAGS += -Wall
SHARED_OBJS = cruft.o dpkg_exclude.o explain.o filters.o mlocate.o plocate.o shellexp.o usr_merge.o
all: check cruft-ng
all: check cruft
tests: test_mlocate test_explain test_filters test_excludes test_dpkg cruftlib
cruft.o: cruft.cc explain.h filters.h mlocate.h dpkg.h
......@@ -20,8 +20,8 @@ dpkg_popen.o: dpkg_popen.cc dpkg.h
shellexp.o: shellexp.c
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) -c shellexp.c
cruft-ng: $(SHARED_OBJS) dpkg_popen.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) $(SHARED_OBJS) dpkg_popen.o -o cruft-ng
cruft: $(SHARED_OBJS) dpkg_popen.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) $(SHARED_OBJS) dpkg_popen.o -o cruft
cruftlib: $(SHARED_OBJS) dpkg_lib.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) $(SHARED_OBJS) dpkg_lib.o -o cruftlib
......@@ -40,13 +40,14 @@ test_diversions: test_diversions.cc dpkg_popen.o usr_merge.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS) test_diversions.cc dpkg_popen.o usr_merge.o -o $@
install: all
#install -D -m 2755 -g mlocate cruft-ng $(DESTDIR)/usr/bin/cruft-ng
install -D -m 0755 cruft-ng $(DESTDIR)/usr/bin/cruft-ng
install -D -m 0644 cruft-ng.8 $(DESTDIR)/usr/share/man/man8/cruft-ng.8
install -D -m 0644 README.md $(DESTDIR)/usr/share/doc/cruft-ng/README.md
#install -D -m 2755 -g mlocate cruftg $(DESTDIR)/usr/bin/cruft
install -D -m 0755 cruft $(DESTDIR)/usr/bin/cruft
install -D -m 0644 cruft.8 $(DESTDIR)/usr/share/man/man8/cruft.8
install -D -m 0644 cruft.8 $(DESTDIR)/usr/share/man/man8/cruft-ng.8
install -D -m 0644 README.md $(DESTDIR)/usr/share/doc/cruft/README.md
clean:
rm -f cruft-ng cruftlib test_mlocate test_plocate test_explain test_filters test_excludes test_dpkg test_diversions
rm -f cruft cruftlib test_mlocate test_plocate test_explain test_filters test_excludes test_dpkg test_diversions
rm -f *.o
check:
......
.TH CRUFT-NG 8
.TH CRUFT 8
.SH NAME
cruft-ng \- Check the filesystem for cruft (missing and unexplained files)
cruft \- Check the filesystem for cruft (missing and unexplained files)
.SH SYNOPSIS
.B cruft-ng [ FILE ]
.B cruft [ FILE ]
.\".I "[-h] [-d DRIVES] [--chroots CHROOTS] [--ignore IGNORES] [-r REPORTFILE] [-m ADDRESS]"
.SH "DESCRIPTION"
.\"This manual page documents briefly the
.\".BR cruft
.\".BR cruft
.\"command.
.\"Please see /usr/share/doc/cruft/README.gz for more information.
.\".PP
.B cruft-ng
.B cruft
is a program that goes over the Debian packaging system's database, and
compares the contents of that with the files actually on your system, and
produces a summary of the differences.
......@@ -45,20 +45,20 @@ Without any option, cruft\-ng will analyze the whole system.
.\"absolute paths. Multiple \-\-ignore options are allowed as well.
.\".TP
.\".B \-r \fIREPORTFILE
.\"Output report to
.\"Output report to
.\".I REPORTFILE
.\"instead of standard output.
.\".TP
.\".B \-m \fIADDRESS
.\"Mail report to
.\"Mail report to
.\".I ADDRESS.
.\".TP
.SH "ENVIRONMENT VARIABLES"
It is possible to get some debugging information from cruft-ng by setting the variable
It is possible to get some debugging information from cruft by setting the variable
.B DEBUG.
.SH "SEE ALSO"
Documentation from original cruft package:
/usr/share/doc/cruft-common/README.gz
https://github.com/a-detiste/cruft/blob/master/README
.SH AUTHOR
This manual page was written by Alexandre Detiste <alexandre@detiste.be>,
for the Debian GNU/Linux system (but may be used by others).
......@@ -16,8 +16,8 @@ Depends:
${shlibs:Depends},
${misc:Depends},
plocate,
Breaks: cruft-common
Replaces: cruft-common
Breaks: cruft (<< 0.9.44~), cruft-common
Replaces: cruft (<< 0.9.44~), cruft-common
Description: program that finds any cruft built up on your system
cruft-ng is a program to look over your system for anything that shouldn't
be there, but is; or for anything that should be there, but isn't.
......
/usr/bin/cruft /usr/bin/cruft-ng
# this is intentional, cruft-ng has to know the inners of dpkg
cruft-ng: uses-dpkg-database-directly [usr/bin/cruft-ng]
cruft-ng: uses-dpkg-database-directly [usr/bin/cruft]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment