Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Cruft
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
XelKarin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 82

PostPosted: Tue Feb 11, 2020 12:38 am    Post subject: Gentoo Cruft Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30894
Location: here

PostPosted: Tue Feb 11, 2020 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum