From 7f0ccc917c7abe6223784c703d86cd14755691fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 3 Jul 2021 22:39:47 +0100 Subject: gentoo resync : 03.07.2021 --- sys-block/Manifest.gz | Bin 10528 -> 10530 bytes sys-block/partimage/Manifest | 2 +- sys-block/partimage/partimage-0.6.9-r1.ebuild | 142 ------------------------- sys-block/partimage/partimage-0.6.9-r2.ebuild | 143 ++++++++++++++++++++++++++ 4 files changed, 144 insertions(+), 143 deletions(-) delete mode 100644 sys-block/partimage/partimage-0.6.9-r1.ebuild create mode 100644 sys-block/partimage/partimage-0.6.9-r2.ebuild (limited to 'sys-block') diff --git a/sys-block/Manifest.gz b/sys-block/Manifest.gz index dfdb8f5bc144..ee8eb968f827 100644 Binary files a/sys-block/Manifest.gz and b/sys-block/Manifest.gz differ diff --git a/sys-block/partimage/Manifest b/sys-block/partimage/Manifest index a0e13357c258..ff6a0e711d29 100644 --- a/sys-block/partimage/Manifest +++ b/sys-block/partimage/Manifest @@ -6,5 +6,5 @@ AUX partimaged.init.2 628 BLAKE2B 872f72a4407ca0f923220e2c313779a0e52b6179b75356 AUX partimaged.pam.2 249 BLAKE2B e40a15c5fe4dc394cbcf9c478c3c764e67ec317f31c039738c87b90fec79577a191ae85ad0b774e8b415b79bd29460c929f094e4e3210660989a7bdb9939fe8a SHA512 ad55a61e574dc44cdda723bb5a46349d15e50353dcdb99474b9acafd56c93bc6ffdd75f5b0d9e80849d9bebf5c7b9a2f84c7cefc5f0a86f54f9477a0962794cd AUX servercert.cnf 980 BLAKE2B 0660f9b92fe422754e36d6ce1889e8b8feb40954b36b3e00e58f5e534b85171ac42e66f74020a55dd1b14d56d7764c94427b8d1d112ca1a878dff388ac3ea787 SHA512 8aa0592ce0be3f08124880b823db59aa167e7d509ea1a9b48d9f895482f96e99a6e4df330c567b9ce331eed43cb4f1a70b1b7727878972a8b074265898b1e557 DIST partimage-0.6.9.tar.bz2 666522 BLAKE2B d9a240f82a7b6ae73997df46c964fdddf8dddea9e3bd9548252d9409a526358714908316c52864b60bc9fcc1113a5e1c6cf294faff6845a183c7ffe1012475a6 SHA512 252885921b23933fdcdf0bb6efa4b82066b08ca95cc653296912d384ae875b421c1d39f347a90115315139176d4eab4a930c24919c2d38cf00ed29c764cd14d9 -EBUILD partimage-0.6.9-r1.ebuild 3466 BLAKE2B 05687d4467715479cd6edeb1982f4fb598fa33c603bb4ed9bc92e989daf8dd6400c3ac18422bc348964262c326d43ad4e30ec94da04cf8014094c02fc8e46d52 SHA512 e1243e05cd427cd1552e14a25d1724f52db6845c6122335f1e750fef8489ea8a24d5da303660572388b7e588e1453a3848b4bab2f2ea2cdfb0d765f7709a2fa8 +EBUILD partimage-0.6.9-r2.ebuild 3500 BLAKE2B 8735b26e63996373fbb287c5564ac609454e65c2e627f4dd2f867d5cbfe2517a519a8196d2bbdb06294a77b1d702f6070160a680fa23ea0f54f506c8ac4cd12a SHA512 57043a175429f8abc743bfdaf3c891e577f519a8997b6d684cb67e357c246d625ece803a921b3109a88123f1e422685dd3d83379d7b30119723c646f64011157 MISC metadata.xml 427 BLAKE2B 33870f2fc393bed75dcdbda1bb16d6cc947cfa4f7321e7f219338cab014be901eca6d3e2dc11c0ecd50be28922f0f1a746a8756c3d860d8f10549098c3479cad SHA512 e5e5377e9f6cf6337b93ea8609424ce4b9514b0b0d9628ef22999537af616f24e4882a915cf6249f8d0e721b5e25e0a50f5e046b8ac9991c130b4f5892298e67 diff --git a/sys-block/partimage/partimage-0.6.9-r1.ebuild b/sys-block/partimage/partimage-0.6.9-r1.ebuild deleted file mode 100644 index 60d1e2982bd6..000000000000 --- a/sys-block/partimage/partimage-0.6.9-r1.ebuild +++ /dev/null @@ -1,142 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit autotools flag-o-matic pam user - -DESCRIPTION="Console-based application to efficiently save raw partition data to image file" -HOMEPAGE="http://www.partimage.org/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ~sparc x86" -IUSE="nls nologin pam ssl static" - -LIBS_DEPEND="app-arch/bzip2 - >=dev-libs/newt-0.52 - >=sys-libs/slang-2 - sys-libs/zlib:= - ssl? ( dev-libs/openssl:0= )" -PAM_DEPEND="!static? ( pam? ( sys-libs/pam ) )" -RDEPEND="${PAM_DEPEND} - !static? ( ${LIBS_DEPEND} )" -DEPEND="${PAM_DEPEND} - ${LIBS_DEPEND} - nls? ( sys-devel/gettext )" - -pkg_setup() { - enewgroup partimag 91 - enewuser partimag 91 -1 /var/lib/partimage partimag -} - -src_prepare() { - eapply -p0 "${FILESDIR}"/${P}-zlib-1.2.5.2.patch #405323 - eapply "${FILESDIR}"/${P}-minor-typo.patch #580290 - eapply "${FILESDIR}"/${P}-openssl-1.1-compatibility.patch - - eapply_user - - eautoreconf -} - -src_configure() { - # XXX: Do we still need these? - filter-flags -fno-exceptions - use ppc && append-flags -fsigned-char - - local myconf - - use nologin && myconf="${myconf} --disable-login" - - if use pam && ! use static; then - myconf="${myconf} --enable-pam" - fi - - econf \ - $(use_enable nls) \ - $(use_enable ssl) \ - --disable-pam \ - $(use_enable static all-static) \ - --with-log-dir="${EPREFIX}"/var/log/partimage \ - ${myconf} -} - -src_install() { - default - - keepdir /var/lib/partimage - keepdir /var/log/partimage - - newinitd "${FILESDIR}"/partimaged.init.2 partimaged - newconfd "${FILESDIR}"/partimaged.conf partimaged - - if use ssl; then - insinto /etc/partimaged - doins "${FILESDIR}"/servercert.cnf - fi - - if use pam; then - newpamd "${FILESDIR}"/partimaged.pam.2 partimaged - fi -} - -confdir=${EROOT%/}/etc/partimaged -privkey=${confdir}/partimaged.key -cnf=${confdir}/servercert.cnf -csr=${confdir}/partimaged.csr -cert=${confdir}/partimaged.cert - -pkg_config() { - if use ssl; then - ewarn "Please customize /etc/partimaged/servercert.cnf before you continue!" - ewarn "Press Ctrl-C to break now for it, or press enter to continue." - read - if [ ! -f ${privkey} ]; then - einfo "Generating unencrypted private key: ${privkey}" - openssl genrsa -out ${privkey} 1024 || die - else - einfo "Private key already exists: ${privkey}" - fi - if [ ! -f ${csr} ]; then - einfo "Generating certificate request: ${csr}" - openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die - else - einfo "Certificate request already exists: ${csr}" - fi - if [ ! -f ${cert} ]; then - einfo "Generating self-signed certificate: ${cert}" - openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die - else - einfo "Self-signed certifcate already exists: ${cert}" - fi - einfo "Setting permissions" - partimagesslperms || die - einfo "Done" - else - einfo "SSL is disabled, not building certificates" - fi -} - -partimagesslperms() { - local ret=0 - chmod 600 ${privkey} 2>/dev/null - ret=$((${ret}+$?)) - chown partimag:0 ${privkey} 2>/dev/null - ret=$((${ret}+$?)) - chmod 644 ${cert} ${csr} 2>/dev/null - ret=$((${ret}+$?)) - chown root:0 ${cert} ${csr} 2>/dev/null - ret=$((${ret}+$?)) - return $ret -} - -pkg_postinst() { - if use ssl; then - einfo "To create the required SSL certificates, please do:" - einfo "emerge --config =${PF}" - partimagesslperms - return 0 - fi - chown partimag:0 "${EROOT%/}"/etc/partimaged/partimagedusers || die -} diff --git a/sys-block/partimage/partimage-0.6.9-r2.ebuild b/sys-block/partimage/partimage-0.6.9-r2.ebuild new file mode 100644 index 000000000000..e2fe1d3a98af --- /dev/null +++ b/sys-block/partimage/partimage-0.6.9-r2.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools flag-o-matic pam user + +DESCRIPTION="Console-based application to efficiently save raw partition data to image file" +HOMEPAGE="http://www.partimage.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="nls nologin pam ssl static" + +LIBS_DEPEND="app-arch/bzip2 + >=dev-libs/newt-0.52 + >=sys-libs/slang-2 + sys-libs/zlib:= + !nologin? ( virtual/libcrypt:= ) + ssl? ( dev-libs/openssl:0= )" +PAM_DEPEND="!static? ( pam? ( sys-libs/pam ) )" +RDEPEND="${PAM_DEPEND} + !static? ( ${LIBS_DEPEND} )" +DEPEND="${PAM_DEPEND} + ${LIBS_DEPEND} + nls? ( sys-devel/gettext )" + +pkg_setup() { + enewgroup partimag 91 + enewuser partimag 91 -1 /var/lib/partimage partimag +} + +src_prepare() { + eapply -p0 "${FILESDIR}"/${P}-zlib-1.2.5.2.patch #405323 + eapply "${FILESDIR}"/${P}-minor-typo.patch #580290 + eapply "${FILESDIR}"/${P}-openssl-1.1-compatibility.patch + + eapply_user + + eautoreconf +} + +src_configure() { + # XXX: Do we still need these? + filter-flags -fno-exceptions + use ppc && append-flags -fsigned-char + + local myconf + + use nologin && myconf="${myconf} --disable-login" + + if use pam && ! use static; then + myconf="${myconf} --enable-pam" + fi + + econf \ + $(use_enable nls) \ + $(use_enable ssl) \ + --disable-pam \ + $(use_enable static all-static) \ + --with-log-dir="${EPREFIX}"/var/log/partimage \ + ${myconf} +} + +src_install() { + default + + keepdir /var/lib/partimage + keepdir /var/log/partimage + + newinitd "${FILESDIR}"/partimaged.init.2 partimaged + newconfd "${FILESDIR}"/partimaged.conf partimaged + + if use ssl; then + insinto /etc/partimaged + doins "${FILESDIR}"/servercert.cnf + fi + + if use pam; then + newpamd "${FILESDIR}"/partimaged.pam.2 partimaged + fi +} + +confdir=${EROOT%/}/etc/partimaged +privkey=${confdir}/partimaged.key +cnf=${confdir}/servercert.cnf +csr=${confdir}/partimaged.csr +cert=${confdir}/partimaged.cert + +pkg_config() { + if use ssl; then + ewarn "Please customize /etc/partimaged/servercert.cnf before you continue!" + ewarn "Press Ctrl-C to break now for it, or press enter to continue." + read + if [ ! -f ${privkey} ]; then + einfo "Generating unencrypted private key: ${privkey}" + openssl genrsa -out ${privkey} 1024 || die + else + einfo "Private key already exists: ${privkey}" + fi + if [ ! -f ${csr} ]; then + einfo "Generating certificate request: ${csr}" + openssl req -new -x509 -outform PEM -out ${csr} -key ${privkey} -config ${cnf} || die + else + einfo "Certificate request already exists: ${csr}" + fi + if [ ! -f ${cert} ]; then + einfo "Generating self-signed certificate: ${cert}" + openssl x509 -in ${csr} -out ${cert} -signkey ${privkey} || die + else + einfo "Self-signed certifcate already exists: ${cert}" + fi + einfo "Setting permissions" + partimagesslperms || die + einfo "Done" + else + einfo "SSL is disabled, not building certificates" + fi +} + +partimagesslperms() { + local ret=0 + chmod 600 ${privkey} 2>/dev/null + ret=$((${ret}+$?)) + chown partimag:0 ${privkey} 2>/dev/null + ret=$((${ret}+$?)) + chmod 644 ${cert} ${csr} 2>/dev/null + ret=$((${ret}+$?)) + chown root:0 ${cert} ${csr} 2>/dev/null + ret=$((${ret}+$?)) + return $ret +} + +pkg_postinst() { + if use ssl; then + einfo "To create the required SSL certificates, please do:" + einfo "emerge --config =${PF}" + partimagesslperms + return 0 + fi + chown partimag:0 "${EROOT%/}"/etc/partimaged/partimagedusers || die +} -- cgit v1.2.3