Update EAPI for drbd-utils
This commit is contained in:
parent
9f9bcdfade
commit
1517ccd308
@ -4,9 +4,5 @@ AUX 9.15.1_run-lock.patch 741 SHA256 7a6dad5b9f1c1793b984b3b20b5f4618e7f1a1c7271
|
|||||||
AUX drbd-utils-8.0.rc 3073 SHA256 6c81121e5d1543b8ab8ec4aa525bb5afe18f853748c8a8f3d14a697aecc735fc SHA512 9cd9de6d41552f080f3d590630ecd1686ea32b9e9db3b78a132e7fb55318a338331c09af5d80ba885d48a001ee3f7a6f791ddd806e834d2a7c72f01a00ec2f6c WHIRLPOOL 9dda501dff640fd1bfe432711f89dea87ef4ed225413cd51481a71ff2817ab3072084deed64767d170d76ea5b43828a19e9a85ca0ec3558a40c9f22c6f8c9fe9
|
AUX drbd-utils-8.0.rc 3073 SHA256 6c81121e5d1543b8ab8ec4aa525bb5afe18f853748c8a8f3d14a697aecc735fc SHA512 9cd9de6d41552f080f3d590630ecd1686ea32b9e9db3b78a132e7fb55318a338331c09af5d80ba885d48a001ee3f7a6f791ddd806e834d2a7c72f01a00ec2f6c WHIRLPOOL 9dda501dff640fd1bfe432711f89dea87ef4ed225413cd51481a71ff2817ab3072084deed64767d170d76ea5b43828a19e9a85ca0ec3558a40c9f22c6f8c9fe9
|
||||||
AUX drbd-utils-9.0.rc 3070 SHA256 315b5c12356871198b4509ab92b087dbe7c0177dda9e612714f6b651d16a7cef SHA512 fc4765424f6a1cf5b6157f105e099a6ffa91d6db2017ceb887608c4b0ed410d9e26beddba203e96880d85535511f830e36ce95a45da8e9c3e830d86be01c715a WHIRLPOOL 4bf211aaa0fc269ae00f6e02ebdccf9401b95361fb23a48adf1f80099a10ab80cd6ce7223a3485cec24120c6c86b5d54b3cde5f90970e0d7fba80ad6c5f1e17b
|
AUX drbd-utils-9.0.rc 3070 SHA256 315b5c12356871198b4509ab92b087dbe7c0177dda9e612714f6b651d16a7cef SHA512 fc4765424f6a1cf5b6157f105e099a6ffa91d6db2017ceb887608c4b0ed410d9e26beddba203e96880d85535511f830e36ce95a45da8e9c3e830d86be01c715a WHIRLPOOL 4bf211aaa0fc269ae00f6e02ebdccf9401b95361fb23a48adf1f80099a10ab80cd6ce7223a3485cec24120c6c86b5d54b3cde5f90970e0d7fba80ad6c5f1e17b
|
||||||
AUX run-lock.patch 564 SHA256 37e9485d4bf647fa11a78631965350a3dc0f0e8de1624170dd393a3da7743939 SHA512 779ad53c9f019b9dcc748177d6017ca06f1b450bf0889307c9660c574c09414964e4c5e4d6f2f3e8fc540ba14a1d489d09991b813af1581b2f6cd4ba491455ab WHIRLPOOL 3a361d18c9d83759f121ffb744158f75d8cf2c78400f646d77ac8da4b9d8433b4b0ee37dea0bdb61f21d41c1aa2cb9ba7930dfbf13a09b66ba4b48e63fed7169
|
AUX run-lock.patch 564 SHA256 37e9485d4bf647fa11a78631965350a3dc0f0e8de1624170dd393a3da7743939 SHA512 779ad53c9f019b9dcc748177d6017ca06f1b450bf0889307c9660c574c09414964e4c5e4d6f2f3e8fc540ba14a1d489d09991b813af1581b2f6cd4ba491455ab WHIRLPOOL 3a361d18c9d83759f121ffb744158f75d8cf2c78400f646d77ac8da4b9d8433b4b0ee37dea0bdb61f21d41c1aa2cb9ba7930dfbf13a09b66ba4b48e63fed7169
|
||||||
DIST drbd-utils-9.12.2.tar.gz 1204980 SHA256 caedaa8545cfc94f40e63e4a29f53324732878dd0d10320989d38de1c0114dc1 SHA512 051c2b7c2b1804a70a48b7784e80e49604b910027b67f1cb6041069f94ad31468c038f505a3bc20e22b11f76e69cf5a8ae623ee1913c5dc410f146fc03da677e WHIRLPOOL 57c97916933d86603fcd13746dc0cc044541354ae218ee7367d71ec1676843fcc398218e2fa1f024ce8da0509682a6b6d89c514d313ad41b774c771f59af6070
|
|
||||||
DIST drbd-utils-9.15.1.tar.gz 1229196 SHA256 315c3e9341d8e2bef28b4047ca0a977bf7ebd8f2ac3be3639273e27c2d5f22e1 SHA512 bf9c46335500c0dd7afdc160221acaf8fd053afc453cb26cd76ef085c41580be5a62021ef1f1a57eac9df70d1158a008f489d1a8bb5c3329c5a187f79e4942de WHIRLPOOL 488ccfd98bbb328c39e4803b631e040db8b9dde2536ed3458e295c8ae9709940ecee7fc00442d35295899144aa22e1da736c77bf716d8084af8dca70676bc7d5
|
|
||||||
DIST drbd-utils-9.26.0.tar.gz 1417392 SHA256 0f68ed4ef1f1dd315e55d1ac5c5583ad4d547e401d55bb1dc2df5e8912d2e26e SHA512 0b286b109a1e5cd938baddb2dcec5fc95c75c8a7adc46edf8a0bafc5e747168bc09718b0252f92766845bf0301635837aab690fc40d8955ac2a7c72a7c1a90d8 WHIRLPOOL 5fed70fc8a29cf4b5f58b1d9d4cb3a445337ea84daa768adeb7777ded5fb086a89c7acbd39875026f0091cf57e235847d5fbb408d35a86e0d920f78fdae7725e
|
DIST drbd-utils-9.26.0.tar.gz 1417392 SHA256 0f68ed4ef1f1dd315e55d1ac5c5583ad4d547e401d55bb1dc2df5e8912d2e26e SHA512 0b286b109a1e5cd938baddb2dcec5fc95c75c8a7adc46edf8a0bafc5e747168bc09718b0252f92766845bf0301635837aab690fc40d8955ac2a7c72a7c1a90d8 WHIRLPOOL 5fed70fc8a29cf4b5f58b1d9d4cb3a445337ea84daa768adeb7777ded5fb086a89c7acbd39875026f0091cf57e235847d5fbb408d35a86e0d920f78fdae7725e
|
||||||
EBUILD drbd-utils-9.12.2.ebuild 2793 SHA256 1701643ebf118e233129edb01507a4ae3701fe6d180afd85b9874fdf926b5e1a SHA512 c9def674afa09f9d88ec2014b795450bed11878539f139e9deaffeeb8c5baacfd78f6c7c472e5d36f85e9f82dc1dc708d84815ed2da24e1c640b23e61ee53b33 WHIRLPOOL bc0b8d812466a3687acf4320edc61386581a307d0a6260cc409696b5acca19e6d5f643c371ee71d45fcfad6b415b3e72fa84afde150cec19cca5da390646363d
|
EBUILD drbd-utils-9.26.0.ebuild 2539 SHA256 acd054536f22bdc4662c8988ef69cd518378fbc97b02922488116899c7dc806b SHA512 8a7337e2269fbb1acdafa3111e641c9645d5a55e865afebaa399f3f8bea8f4e582724248ac325deb4e681a9cd7d1df7f71d7cb4d269b6b3eafb47b3870006386 WHIRLPOOL 257545451f2f9b37a48d94bda448c70ba425cbad886426e807f2fdeb13236b3d35cb3e96959c2359556bee6f2d344573a8c8fb54f5e216a7f6b93f24b1526a2d
|
||||||
EBUILD drbd-utils-9.15.1.ebuild 2539 SHA256 dbe7d5746f9cda6a787aafb4fc68c43544b64729ea28103acd58b4e7d21256c5 SHA512 7e1029601458fce8abbda9af8078c8939a644a901daca67c42434741fafea013da51d0388e055900c62ebefe83f1964ed1c275defa1a0fc15b6d2700874103f0 WHIRLPOOL 1a5eb3c7137076fe37fcab7fcf08881e468c91f192d5752dde05826f406f6bf1e0bd74d325df98d12a730f025d1bcaff80bcd7e6f3e80581f671ec034b2b71d9
|
|
||||||
EBUILD drbd-utils-9.26.0.ebuild 2539 SHA256 d50a2c082778ac36845a6b7c4b1f5a3b14d6f81481a0cbbdfdf4bb4dbca42c9f SHA512 6ac28d2cacf41d726081247d011be07bf15faa3150dcef1ea8c29268833f72090d9e4d9d8151c7b8f559fcd94eccbb080b297e31c71c40f4d19c962d65ee81f0 WHIRLPOOL 8e3e9e7c4d268fef21c937736e2b3d79b8d1fd94e5a1e0a621c2fe4d51c07a7f9570fdb9a260c349d7c04e9e11c1eb5e1aef1246d4226a0d4ccf7c0c9ea10f34
|
|
||||||
|
|||||||
@ -1,107 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit bash-completion-r1 eutils flag-o-matic multilib udev
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
DESCRIPTION="mirror/replicate block-devices across a network-connection"
|
|
||||||
SRC_URI="http://www.linbit.com/downloads/drbd/utils/${P}.tar.gz"
|
|
||||||
HOMEPAGE="http://www.drbd.org"
|
|
||||||
|
|
||||||
KEYWORDS="amd64 ~x86"
|
|
||||||
IUSE="bash-completion heartbeat pacemaker +udev xen"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
COMMON_DEPEND="heartbeat? ( sys-cluster/heartbeat )
|
|
||||||
pacemaker? ( sys-cluster/pacemaker )
|
|
||||||
udev? ( virtual/udev )
|
|
||||||
!!sys-cluster/drbd"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
sys-devel/flex
|
|
||||||
"
|
|
||||||
RDEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if ! test-flag-CXX -std=c++11 ; then
|
|
||||||
die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# respect LDFLAGS, #453442
|
|
||||||
sed -e "s/\$(CC) -o/\$(CC) \$(LDFLAGS) -o/" \
|
|
||||||
-e "/\$(DESTDIR)\$(localstatedir)\/lock/d" \
|
|
||||||
-i user/*/Makefile.in || die
|
|
||||||
|
|
||||||
# respect multilib
|
|
||||||
sed -i -e "s:/lib/:/$(get_libdir)/:g" \
|
|
||||||
Makefile.in scripts/{Makefile.in,global_common.conf,drbd.conf.example} || die
|
|
||||||
sed -e "s:@prefix@/lib:@prefix@/$(get_libdir):" \
|
|
||||||
-e "s:(DESTDIR)/lib:(DESTDIR)/$(get_libdir):" \
|
|
||||||
-i user/*/Makefile.in || die
|
|
||||||
|
|
||||||
# correct install paths (really correct this time)
|
|
||||||
sed -i -e "s:\$(sysconfdir)/bash_completion.d:$(get_bashcompdir):" \
|
|
||||||
scripts/Makefile.in || die
|
|
||||||
|
|
||||||
# don't participate in user survey bug 360483
|
|
||||||
sed -i -e '/usage-count/ s/yes/no/' scripts/global_common.conf || die
|
|
||||||
sed -i -e "s:\$(sysconfdir)/udev:$(get_udevdir):" scripts/Makefile.in || die
|
|
||||||
|
|
||||||
# fix buggy C++11 detection
|
|
||||||
sed -i -e 's/-z "\$ac_ct_CXX" -o//' configure.ac
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/run-lock.patch
|
|
||||||
|
|
||||||
autoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--without-rgmanager \
|
|
||||||
$(use_with udev) \
|
|
||||||
$(use_with xen) \
|
|
||||||
$(use_with pacemaker) \
|
|
||||||
$(use_with heartbeat) \
|
|
||||||
$(use_with bash-completion bashcompletion) \
|
|
||||||
--with-distro=gentoo
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# only compile the tools
|
|
||||||
emake OPTFLAGS="${CFLAGS}" tools doc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# only install the tools and man pages
|
|
||||||
emake DESTDIR="${D}" install-tools install-doc
|
|
||||||
dodoc README.md ChangeLog
|
|
||||||
|
|
||||||
# install our own init script
|
|
||||||
newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN/-utils/}
|
|
||||||
|
|
||||||
dodoc scripts/drbd.conf.example
|
|
||||||
|
|
||||||
dosym ../../usr/sbin/drbdadm /sbin/drbdadm
|
|
||||||
keepdir "/var/lib/drbd"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo
|
|
||||||
einfo "Please copy and gunzip the configuration file:"
|
|
||||||
einfo "from /usr/share/doc/${PF}/${PN/-utils/}.conf.example.bz2 to /etc/${PN/-utils/}.conf"
|
|
||||||
einfo "and edit it to your needs. Helpful commands:"
|
|
||||||
einfo "man 5 drbd.conf"
|
|
||||||
einfo "man 8 drbdsetup"
|
|
||||||
einfo "man 8 drbdadm"
|
|
||||||
einfo "man 8 drbddisk"
|
|
||||||
einfo "man 8 drbdmeta"
|
|
||||||
einfo
|
|
||||||
elog "Remember to enable drbd support in kernel."
|
|
||||||
}
|
|
||||||
@ -1,101 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit bash-completion-r1 multilib udev
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
DESCRIPTION="mirror/replicate block-devices across a network-connection"
|
|
||||||
SRC_URI="https://www.linbit.com/downloads/drbd/utils/${P/_/}.tar.gz"
|
|
||||||
HOMEPAGE="https://www.linbit.com/drbd/"
|
|
||||||
|
|
||||||
KEYWORDS="amd64 ~x86"
|
|
||||||
IUSE="bash-completion heartbeat pacemaker +udev xen"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
DEPEND="heartbeat? ( sys-cluster/heartbeat )
|
|
||||||
pacemaker? ( sys-cluster/pacemaker )
|
|
||||||
udev? ( virtual/udev )
|
|
||||||
!!sys-cluster/drbd"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PV}_run-lock.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P/_/}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# respect LDFLAGS, #453442
|
|
||||||
sed -e "s/\$(CC) -o/\$(CC) \$(LDFLAGS) -o/" \
|
|
||||||
-e "/\$(DESTDIR)\$(localstatedir)\/lock/d" \
|
|
||||||
-i user/*/Makefile.in || die
|
|
||||||
|
|
||||||
# respect multilib
|
|
||||||
sed -i -e "s:/lib/:/$(get_libdir)/:g" \
|
|
||||||
Makefile.in scripts/{Makefile.in,global_common.conf,drbd.conf.example} || die
|
|
||||||
sed -e "s:@prefix@/lib:@prefix@/$(get_libdir):" \
|
|
||||||
-e "s:(DESTDIR)/lib:(DESTDIR)/$(get_libdir):" \
|
|
||||||
-i user/*/Makefile.in || die
|
|
||||||
|
|
||||||
# correct install paths (really correct this time)
|
|
||||||
sed -i -e "s:\$(sysconfdir)/bash_completion.d:$(get_bashcompdir):" \
|
|
||||||
scripts/Makefile.in || die
|
|
||||||
|
|
||||||
# don't participate in user survey bug 360483
|
|
||||||
sed -i -e '/usage-count/ s/yes/no/' scripts/global_common.conf || die
|
|
||||||
sed -i -e "s:\$(sysconfdir)/udev:$(get_udevdir):" scripts/Makefile.in || die
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
# rm -rf .git
|
|
||||||
|
|
||||||
autoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--without-rgmanager \
|
|
||||||
$(use_with udev) \
|
|
||||||
$(use_with xen) \
|
|
||||||
$(use_with pacemaker) \
|
|
||||||
$(use_with heartbeat) \
|
|
||||||
$(use_with bash-completion bashcompletion) \
|
|
||||||
--with-distro=gentoo
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
# only compile the tools
|
|
||||||
emake OPTFLAGS="${CFLAGS}" tools doc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# only install the tools
|
|
||||||
emake DESTDIR="${D}" install-tools install-doc
|
|
||||||
dodoc README.md ChangeLog
|
|
||||||
|
|
||||||
# install our own init script
|
|
||||||
newinitd "${FILESDIR}"/${PN}-9.0.rc ${PN/-utils/}
|
|
||||||
|
|
||||||
dodoc scripts/drbd.conf.example
|
|
||||||
|
|
||||||
dosym ../usr/sbin/drbdadm /sbin/drbdadm
|
|
||||||
keepdir "/var/lib/drbd"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo
|
|
||||||
einfo "Please copy and gunzip the configuration file:"
|
|
||||||
einfo "from /usr/share/doc/${PF}/${PN/-utils/}.conf.example.bz2 to /etc/${PN/-utils/}.conf"
|
|
||||||
einfo "and edit it to your needs. Helpful commands:"
|
|
||||||
einfo "man 5 drbd.conf"
|
|
||||||
einfo "man 8 drbdsetup"
|
|
||||||
einfo "man 8 drbdadm"
|
|
||||||
einfo "man 8 drbddisk"
|
|
||||||
einfo "man 8 drbdmeta"
|
|
||||||
einfo
|
|
||||||
elog "Remember to enable drbd support in kernel."
|
|
||||||
}
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=6
|
EAPI=8
|
||||||
|
|
||||||
inherit bash-completion-r1 multilib udev
|
inherit bash-completion-r1 multilib udev
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user