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