mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-31 09:08:08 -07:00
sys-auth/munge: Drop old
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST munge-0.5.10.tar.bz2 424285 BLAKE2B 07c6423ba799400e9a99e3f33a7dee61ed35b8caa8b290f7da5ffc1e7fbdc37ad985d10101b9a18ccae4ca4274c44999549f9754b0e782cda98976b5f15e3f30 SHA512 b1b780d205d6cfbadfe6096156840d559c70de5b0023cbd604acfc29e1135036c98a949981d5c022e994c77213ee3d8d70e8fe825b645b030ad1adef92ed9479
|
||||
DIST munge-0.5.13.tar.xz 389952 BLAKE2B 67887469dccf0f4e136a3fba12660dd8d0bfbd5d5024582c6be164b7e837959380ee9d09055ea95db2a307b1da75a8e7c643844fceb56b8a35f59ab7b1b811d8 SHA512 2e024c0438f9208379a037daabd1c31f206820ab74a410e2bb69870755e99f9c9fbf60c294c96941008bc43425fbb31dd2374e5f088b7978479e7c65816e9002
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit user
|
||||
|
||||
DESCRIPTION="An authentication service for creating and validating credentials"
|
||||
HOMEPAGE="https://code.google.com/p/munge/"
|
||||
SRC_URI="https://munge.googlecode.com/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
|
||||
IUSE="gcrypt"
|
||||
|
||||
DEPEND="
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
gcrypt? ( dev-libs/libgcrypt:0 )
|
||||
!gcrypt? ( dev-libs/openssl )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup munge
|
||||
enewuser munge -1 -1 /var/lib/munge munge
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local conf=""
|
||||
|
||||
if use gcrypt; then
|
||||
conf="${conf} --with-crypto-lib=libgcrypt"
|
||||
else
|
||||
conf="${conf} --with-crypto-lib=openssl"
|
||||
fi
|
||||
|
||||
econf ${conf} \
|
||||
--localstatedir=/var
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# 450830
|
||||
if [ -d "${D}"/var/run ]; then
|
||||
rm -rf "${D}"/var/run || die
|
||||
fi
|
||||
|
||||
dodir /etc/munge
|
||||
|
||||
[ -d "${D}"/etc/init.d ] && rm -r "${D}"/etc/init.d
|
||||
[ -d "${D}"/etc/default ] && rm -r "${D}"/etc/default
|
||||
[ -d "${D}"/etc/sysconfig ] && rm -r "${D}"/etc/sysconfig
|
||||
|
||||
newconfd "${FILESDIR}"/${PN}d.confd ${PN}d
|
||||
newinitd "${FILESDIR}"/${PN}d.initd ${PN}d
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools user prefix
|
||||
|
||||
DESCRIPTION="An authentication service for creating and validating credentials"
|
||||
HOMEPAGE="https://github.com/dun/munge"
|
||||
SRC_URI="https://github.com/dun/munge/releases/download/munge-${PV}/munge-${PV}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug gcrypt static-libs"
|
||||
|
||||
DEPEND="
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
gcrypt? ( dev-libs/libgcrypt:0 )
|
||||
!gcrypt? ( dev-libs/openssl:0= )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup munge
|
||||
enewuser munge -1 -1 /var/lib/munge munge
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
hprefixify config/x_ac_path_openssl.m4
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--localstatedir="${EPREFIX}"/var \
|
||||
--with-crypto-lib=$(usex gcrypt libgcrypt openssl) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d
|
||||
|
||||
default
|
||||
|
||||
# 450830
|
||||
if [ -d "${ED}"/var/run ]; then
|
||||
rm -rf "${ED}"/var/run || die
|
||||
fi
|
||||
|
||||
dodir /etc/munge
|
||||
|
||||
for d in "init.d" "default" "sysconfig"; do
|
||||
if [ -d "${ED}"/etc/${d} ]; then
|
||||
rm -r "${ED}"/etc/${d} || die
|
||||
fi
|
||||
done
|
||||
|
||||
newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d
|
||||
newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user