Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/schroot/
Date: Wed, 26 May 2021 22:08:30
Message-Id: 1622066893.903486585acab02cf77b2347584ae3dc5f0dde16.gyakovlev@gentoo
1 commit: 903486585acab02cf77b2347584ae3dc5f0dde16
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 26 22:05:49 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed May 26 22:08:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90348658
7
8 dev-util/schroot: add 1.6.10_p12
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 dev-util/schroot/Manifest | 1 +
13 dev-util/schroot/schroot-1.6.10_p12.ebuild | 130 +++++++++++++++++++++++++++++
14 2 files changed, 131 insertions(+)
15
16 diff --git a/dev-util/schroot/Manifest b/dev-util/schroot/Manifest
17 index 3f59ccd6e4e..85b6be19aba 100644
18 --- a/dev-util/schroot/Manifest
19 +++ b/dev-util/schroot/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST schroot_1.6.10-12.debian.tar.xz 83636 BLAKE2B 0289848f7e64983c06f47a70346e06d7024722c643034ac24745fe4548311b893053ec28891f39264cb0894c12236f4e8523b70cd83553d1a7179cbfc63cbfa3 SHA512 77ae2d758593de505e9381e4800eb17a9e14fb949a5bdb07b9235671ae4bd18c668aa9c35a1ba6340af93b308b5c3798afc83f14165e4b19e7cebab92b83fc52
22 DIST schroot_1.6.10-7.debian.tar.xz 82524 BLAKE2B 664ee356f8de1215c761a771cc0700d25ff6c0513124f4d84d5b33a046cac6ff194b62dded1e8f966a922a013644edd3d9424b0d577a8bb2b371e23e8dd88ed5 SHA512 ee362cce46ec804cd0ad6bfe3c7dec37fdeffe56941d51aec9e9622057a4d2a94e47f7530d28862c948233c6623cfa4b4721c27f293e31a28ec0320ffe02a47a
23 DIST schroot_1.6.10.orig.tar.xz 797328 BLAKE2B 1f91531f22c5b0a75e5bb74effc660efe4819acc59b007355c12a01c0a1de12674881dd0fbbcab00575a02629662fca799d48f5b967eb527812ed8c08ff9ad28 SHA512 25155989c7811ab4c7bf3cdceaa8d0ffb12f08388143891def96fcd205f1cc401dad9a74f0e9a9ef8610d50174ff8319a8368401431dc87e1a11c0241e61fcbe
24
25 diff --git a/dev-util/schroot/schroot-1.6.10_p12.ebuild b/dev-util/schroot/schroot-1.6.10_p12.ebuild
26 new file mode 100644
27 index 00000000000..f994341d52a
28 --- /dev/null
29 +++ b/dev-util/schroot/schroot-1.6.10_p12.ebuild
30 @@ -0,0 +1,130 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit bash-completion-r1 cmake pam tmpfiles
37 +
38 +MY_P=${PN}_${PV/_p/-}
39 +
40 +DESCRIPTION="Utility to execute commands in a chroot environment"
41 +HOMEPAGE="https://packages.debian.org/source/sid/schroot"
42 +SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${MY_P/%-*/}.orig.tar.xz
43 + mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}.debian.tar.xz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
48 +IUSE="btrfs +dchroot debug doc lvm nls pam test zfs"
49 +RESTRICT="!test? ( test )"
50 +
51 +COMMON_DEPEND="
52 + >=dev-libs/boost-1.42.0:=
53 + >=sys-apps/util-linux-2.16
54 + btrfs? ( >=sys-fs/btrfs-progs-0.19-r2 )
55 + lvm? ( sys-fs/lvm2 )
56 + pam? ( sys-libs/pam )
57 + zfs? ( sys-fs/zfs )
58 +"
59 +
60 +DEPEND="${COMMON_DEPEND}
61 + app-arch/xz-utils
62 + sys-apps/groff
63 + doc? (
64 + app-doc/doxygen
65 + media-gfx/graphviz
66 + )
67 + nls? (
68 + >=app-text/po4a-0.40
69 + sys-devel/gettext
70 + )
71 + test? ( >=dev-util/cppunit-1.10.0 )
72 +"
73 +RDEPEND="${COMMON_DEPEND}
74 + sys-apps/debianutils
75 + dchroot? ( !sys-apps/dchroot )
76 + nls? ( virtual/libintl )
77 +"
78 +
79 +S="${WORKDIR}/${PN}-${PV/%_p*/}"
80 +
81 +src_unpack() {
82 + unpack ${MY_P/%-*/}.orig.tar.xz
83 + cd "${S}"
84 + unpack ${MY_P}.debian.tar.xz
85 +}
86 +
87 +src_prepare() {
88 + sed -i -e 's/warn(/message(WARNING /' man/CMakeLists.txt || die
89 + eapply "${S}"/debian/patches/*.patch
90 + cmake_src_prepare
91 +}
92 +
93 +src_configure() {
94 + local mycmakeargs=(
95 + -Dbtrfs-snapshot=$(usex btrfs)
96 + -Ddchroot=$(usex dchroot)
97 + -Ddchroot-dsa=$(usex dchroot)
98 + -Ddebug=$(usex debug)
99 + -Ddoxygen=$(usex doc)
100 + -Dlvm-snapshot=$(usex lvm)
101 + -Dnls=$(usex nls)
102 + -Dpam=$(usex pam)
103 + -Dtest=$(usex test)
104 + -Dzfs-snapshot=$(usex zfs)
105 + -Dbash_completion_dir="$(get_bashcompdir)"
106 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
107 + -DCMAKE_INSTALL_LOCALSTATEDIR="${EPREFIX}/var"
108 + -DSCHROOT_MOUNT_DIR="${EPREFIX}/run/${PN}/mount"
109 + -DBoost_NO_BOOST_CMAKE=ON
110 + )
111 + if ! use nls; then
112 + mycmakeargs+=(-DPO4A_EXECUTABLE=NOTFOUND)
113 + fi
114 +
115 + cmake_src_configure
116 +}
117 +
118 +src_compile() {
119 + cmake_src_compile all $(usev doc)
120 +}
121 +
122 +src_test() {
123 + if [[ $EUID -ne 0 ]]; then
124 + ewarn "Disabling tests because you are not root"
125 + return 0
126 + fi
127 +
128 + cmake_src_test
129 +}
130 +
131 +src_install() {
132 + cmake_src_install
133 +
134 + keepdir /var/lib/schroot/{session,unpack,union/{overlay,underlay}}
135 +
136 + docinto /usr/share/doc/${PF}/contrib/setup.d
137 + dodoc contrib/setup.d/05customdir contrib/setup.d/09fsck contrib/setup.d/10mount-ssh
138 +
139 + newdoc debian/schroot.NEWS NEWS.debian
140 +
141 + newinitd "${FILESDIR}"/schroot.initd schroot
142 + newconfd "${FILESDIR}"/schroot.confd schroot
143 + newtmpfiles "${FILESDIR}"/schroot.tmpfilesd schroot.conf
144 +
145 + if use doc; then
146 + docinto html/sbuild
147 + dodoc "${BUILD_DIR}"/doc/sbuild/html/*
148 + docinto html/schroot
149 + dodoc "${BUILD_DIR}"/doc/schroot/html/*
150 + fi
151 +
152 + if use pam; then
153 + rm -f "${ED}"/etc/pam.d/schroot
154 + pamd_mimic_system schroot auth account session
155 + fi
156 +}
157 +
158 +pkg_postinst() {
159 + tmpfiles_process ${PN}.conf
160 +}