1 |
commit: 9d1d7f8246b2c4a610f048c13bfb4b6793e64edf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 1 01:58:54 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 01:58:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d1d7f82 |
7 |
|
8 |
sys-cluster/sanlock: Remove old (py3.6) |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-cluster/sanlock/Manifest | 1 - |
13 |
sys-cluster/sanlock/sanlock-3.6.0.ebuild | 85 -------------------------------- |
14 |
2 files changed, 86 deletions(-) |
15 |
|
16 |
diff --git a/sys-cluster/sanlock/Manifest b/sys-cluster/sanlock/Manifest |
17 |
index 6634867cb77..10286a4b1bf 100644 |
18 |
--- a/sys-cluster/sanlock/Manifest |
19 |
+++ b/sys-cluster/sanlock/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST sanlock-3.6.0.tar.gz 221666 BLAKE2B 7fe95bd6813c13b76993b343a5ad605c7ba642583987ffa5fef583f34c053ee62b0f9e5979f5b5cb9e4fcde53268ae3debc5ec36b04f6651cc4cb902dff52df9 SHA512 59eb2a6f12e95d54886fdf6d56fd9a6814dd20fe11f39664f2bb82a56326fee48c9465ae30e6d04f970c8f1b0d9c2e22b90d21ab1f657c6d6b61ff9f02332443 |
22 |
DIST sanlock-3.8.2.tar.gz 266780 BLAKE2B 5248d08225bcc2a19594a3dcd3872c8c69ca8b217d31f6263f2717e4594180d4ba4685c9679ce2f31b6a2dcb4fe9f3e6a5dd5ac3ed073aea02599e7bbc04390c SHA512 2fa92e16eee4d2f3dac452400522f7e90b93b71349d322564d5957e2d87fb4bd69f0b5617b05f4b296c272d6da9a404fccadbbfff106354a0e302c436593eaac |
23 |
|
24 |
diff --git a/sys-cluster/sanlock/sanlock-3.6.0.ebuild b/sys-cluster/sanlock/sanlock-3.6.0.ebuild |
25 |
deleted file mode 100644 |
26 |
index 1ad17643ac7..00000000000 |
27 |
--- a/sys-cluster/sanlock/sanlock-3.6.0.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,85 +0,0 @@ |
30 |
-# Copyright 1999-2020 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=6 |
34 |
- |
35 |
-PYTHON_COMPAT=( python3_6 ) |
36 |
-inherit linux-info python-r1 systemd user |
37 |
- |
38 |
-DESCRIPTION="shared storage lock manager" |
39 |
-HOMEPAGE="https://pagure.io/sanlock" |
40 |
-SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz" |
41 |
- |
42 |
-LICENSE="LGPL-2+ GPL-2 GPL-2+" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" |
45 |
-IUSE="python" |
46 |
- |
47 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
48 |
- |
49 |
-DEPEND=" |
50 |
- dev-libs/libaio |
51 |
- sys-apps/util-linux |
52 |
- python? ( ${PYTHON_DEPS} ) |
53 |
-" |
54 |
-RDEPEND="${DEPEND}" |
55 |
- |
56 |
-pkg_setup() { |
57 |
- local warning="You need to have CONFIG_SOFT_WATCHDOG enabled in your kernel for wdmd" |
58 |
- if linux_config_exists; then |
59 |
- if ! linux_chkconfig_present SOFT_WATCHDOG; then |
60 |
- ewarn "" |
61 |
- ewarn "$warning" |
62 |
- ewarn "" |
63 |
- fi |
64 |
- else |
65 |
- ewarn "" |
66 |
- ewarn "Could not be checked automatically: $warning" |
67 |
- ewarn "" |
68 |
- fi |
69 |
-} |
70 |
- |
71 |
-pkg_preinst() { |
72 |
- enewgroup sanlock |
73 |
- enewuser sanlock -1 -1 -1 sanlock,disk |
74 |
- |
75 |
-} |
76 |
- |
77 |
-src_compile() { |
78 |
- for d in wdmd src fence_sanlock reset; do |
79 |
- cd $d; emake; cd .. |
80 |
- done |
81 |
- if use python; then |
82 |
- cd python; python_foreach_impl emake; cd .. |
83 |
- fi |
84 |
-} |
85 |
- |
86 |
-src_install() { |
87 |
- for d in wdmd src fence_sanlock reset; do |
88 |
- cd $d; emake DESTDIR="${D}" LIBDIR="${EROOT}usr/$(get_libdir)" install; cd .. |
89 |
- done |
90 |
- if use python; then |
91 |
- cd python; python_foreach_impl emake DESTDIR="${D}" install; cd .. |
92 |
- fi |
93 |
- |
94 |
- # config |
95 |
- dodir /etc/wdmd.d |
96 |
- dodir /etc/sanlock |
97 |
- insinto /etc/sanlock |
98 |
- doins src/sanlock.conf |
99 |
- |
100 |
- # init |
101 |
- newconfd init.d/sanlock.sysconfig sanlock |
102 |
- newconfd init.d/wdmd.sysconfig wdmd |
103 |
- newinitd "${FILESDIR}"/sanlock.initd sanlock |
104 |
- newinitd "${FILESDIR}"/wdmd.initd wdmd |
105 |
- #doinitd ${FILESDIR}/sanlk-resetd.initd |
106 |
- #doinitd ${FILESDIR}/fence_sanlockd.initd |
107 |
- |
108 |
- # systemd |
109 |
- systemd_newunit init.d/sanlock.service.native sanlock.service |
110 |
- sed -i 's,^ExecStartPre=,#ExecStartPre=,' init.d/wdmd.service.native |
111 |
- systemd_newunit init.d/wdmd.service.native wdmd.service |
112 |
- systemd_dounit init.d/sanlk-resetd.service |
113 |
- #systemd_dounit ${FILESDIR}/fence_sanlockd.service |
114 |
-} |