View previous topic :: View next topic |
Author |
Message |
XelKarin Tux's lil' helper

Joined: 29 Dec 2003 Posts: 85
|
Posted: Tue Feb 11, 2020 12:38 am Post subject: Gentoo Cruft |
|
|
I've put together a new program in Rust that will find cruft on a Gentoo system along the lines of this or what's mentioned here. It's also capable of calculating MD5 sums and mtimes to find modified files. The crates.io page is here: https://crates.io/crates/gentoo-cruft. It's not really well documented yet, but it's workable. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31509 Location: here
|
Posted: Tue Feb 11, 2020 9:27 am Post subject: |
|
|
Ebuild for install app-portage/gentoo-cruft:
app-portage/gentoo-cruft-9999.ebuild: | # Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CRATES=""
inherit cargo git-r3
DESCRIPTION=" Find files not recorded in the Gentoo package database"
HOMEPAGE="https://crates.io/crates/gentoo-cruft https://github.com/xelkarin/gentoo-cruft"
EGIT_REPO_URI="https://github.com/xelkarin/${PN}"
LICENSE="MIT
|| ( Apache-2.0 MIT )
|| ( Apache-2.0 Boost-1.0 )
|| ( Unlicense MIT )"
SLOT="0"
IUSE=""
BDEPEND=">=virtual/rust-1.37.0"
DOCS=( LICENSE README.md config/cruft.yaml )
src_unpack() {
git-r3_src_unpack
cargo_live_src_unpack
}
src_install() {
cargo_src_install
einstalldocs
}
pkg_postinst() {
elog ""
elog "The configuration files /etc/cruft.yaml and \$HOME/.config/cruft.yaml"
elog " will be read if they are available. An example is provided at"
elog "/usr/share/doc/${P}/cruft.yaml.bz2"
elog ""
} |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
|