sys-apps/dmidecode: Drop old

Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Mikle Kolyada
2018-05-10 20:15:43 +03:00
parent 1b22a266c1
commit ac181fee8d
2 changed files with 0 additions and 43 deletions

View File

@@ -1,2 +1 @@
DIST dmidecode-3.0.tar.xz 58704 BLAKE2B d3e22cfeb8f537f461523d0927cc5eb5fa6214638b8a9360b2159abff1b9f60c8a8753f24a233a77f7c413b074f9a910f000a0c49ca166ebf3297ad673e9fb93 SHA512 fa31190e43ae7a0b61f6313b45f5eba3ab66390accd587129419e48fca931b631cbb331d6893cf0c1bfca94c86ff8c557215166e0881dee93b3af10a86878eb1
DIST dmidecode-3.1.tar.xz 61204 BLAKE2B 439e265dd3f7b225d61b5d4228c0a77b25dd44b5d3672fdd9bbe432f5ae59ac23d2abd80e40621cda934643c9819b05f34d4f5befc8a75b93ae1840caf717cea SHA512 226557ad5747a2a2eb54a938543373b9ddcff032d330ca3b9a066cc81c0e137028f606ffedc042e0220b523346e2f2f7abb0e4b8b34a8bd173719aa858519de9

View File

@@ -1,42 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit flag-o-matic toolchain-funcs eutils
DESCRIPTION="DMI (Desktop Management Interface) table related utilities"
HOMEPAGE="http://www.nongnu.org/dmidecode/"
SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-solaris"
IUSE="selinux"
RDEPEND="selinux? ( sec-policy/selinux-dmidecode )"
DEPEND=""
src_prepare() {
sed -i \
-e "/^prefix/s:/usr/local:${EPREFIX}/usr:" \
-e "/^docdir/s:dmidecode:${PF}:" \
-e '/^PROGRAMS !=/d' \
Makefile || die
}
src_compile() {
emake \
CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
CC="$(tc-getCC)"
}
pkg_postinst() {
if [[ ${CHOST} == *-solaris* ]] ; then
einfo "dmidecode needs root privileges to read /dev/xsvc"
einfo "To make dmidecode useful, either run as root, or chown and setuid the binary."
einfo "Note that /usr/sbin/ptrconf and /usr/sbin/ptrdiag give similar"
einfo "information without requiring root privileges."
fi
}