From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- net-dialup/mgetty/Manifest | 2 +- net-dialup/mgetty/mgetty-1.2.1-r3.ebuild | 181 ------------------------------- net-dialup/mgetty/mgetty-1.2.1-r4.ebuild | 181 +++++++++++++++++++++++++++++++ 3 files changed, 182 insertions(+), 182 deletions(-) delete mode 100644 net-dialup/mgetty/mgetty-1.2.1-r3.ebuild create mode 100644 net-dialup/mgetty/mgetty-1.2.1-r4.ebuild (limited to 'net-dialup/mgetty') diff --git a/net-dialup/mgetty/Manifest b/net-dialup/mgetty/Manifest index 47b443b6f0ac..835fb0f22bc0 100644 --- a/net-dialup/mgetty/Manifest +++ b/net-dialup/mgetty/Manifest @@ -7,5 +7,5 @@ AUX mgetty-1.2.1-aarch64.patch 400 BLAKE2B 07d2d0f1bbadd487fb5a8531584af45d25047 AUX mgetty-1.2.1-gentoo.patch 4020 BLAKE2B fa9f609cc93cbc2287e415888bfcafc3f4069ba0ed6a2be93a952010f6a91bb2383948b62a407c37aa738be70aaaaf4715e578f51a9115837f3944c65f39f9d7 SHA512 24c3d98e43d8f573e395f65a500ea6379e6b27c020db81e00f4c3ea5d203d4ad344a29b6540575fd94c9462fdf51ecadff13a703568d51de3dc4fd815e462143 AUX mgetty.service 203 BLAKE2B d7bd55ab0f1acc02541cb19ed372faeb2ba1b88dae1d1114677ef955cc91006c7ff5e78f71d8ba3da1aecde111f9bbc4ae916c5c19df20061200731eaab038ac SHA512 c766385d101005980fd992d2e721ffb90a7b756afbd4ea24a55e828f39bd6106a0722461b581736816685c6d5dc3fbc4ebe5fca3faf1c1373d7e0c6658c80a8d DIST mgetty-1.2.1.tar.gz 1077415 BLAKE2B 09d48c6cb7917a3dbbfc97c1d32ce43b9a3e64e8a44c8a3a7bfdd168421c287357a9d43504fb4d1b354ffb0f8e2a9c52b56ac3464f196f56064d96a7651e0d6e SHA512 2a82dfb782044d9daf8d41158fa10e991dbd7bd37ab43ea44422166554dd790e989ac49e4ff471d168d1cbb49edc5bedb8762ab61884e4653650686d1bbc2a9b -EBUILD mgetty-1.2.1-r3.ebuild 4763 BLAKE2B 02101b680ab5cf92fd951f159922112fa8d7401aae26944fa9ebd77e0f24746362c4c4b8301dfdd412bc4b6f8fd114d2563ab22434cc6de50b8a71d32aa18d72 SHA512 ae077735d91afd6e5fdc4abd05f9992efa0914e095835e8612c47a66fcdc0645e35d4a8cf57729dd8906370297a9d4ebd364f6da019b2e590b73c3215be42b55 +EBUILD mgetty-1.2.1-r4.ebuild 4763 BLAKE2B f37a526bd87f42bcf5080e28cef619a3ce2d698bfa0e8a0cd96f11d2d4ab87da40cb8a4965400bcca86d04d2fedfc4ec6ea892fd701d0c7d21f3592b287c8f4a SHA512 c6feed140665b07bc1b5405bbbb13ba7f2bbfd1ed2e2da51fd3a82e59df87d165a132b92e5e61034dd2aba4adc0ffec8b8fb251edf104663f44b709789877bca MISC metadata.xml 590 BLAKE2B 40b9f40755b60ca842ab1e9af8678f0aa209534f8ff333e12dd80877e9284a903f8e0fb0d385eaa998ae17a192dd878043bcf7c5db319a83bf4c9e180076056a SHA512 13d49a0f90003c64d70ef5c302dbe2f3a8488f5d3a9e3358d93568cfd9f07d2c3b2b223b9c71ea97c20b1cb662dd4f7e79a7169c25de73699faee41fabbdad2a diff --git a/net-dialup/mgetty/mgetty-1.2.1-r3.ebuild b/net-dialup/mgetty/mgetty-1.2.1-r3.ebuild deleted file mode 100644 index 7e4e261c8daf..000000000000 --- a/net-dialup/mgetty/mgetty-1.2.1-r3.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic systemd toolchain-funcs - -DESCRIPTION="A programm for sending and receiving fax and voice" -HOMEPAGE="http://mgetty.greenie.net/" -SRC_URI="ftp://mgetty.greenie.net/pub/mgetty/source/$(ver_cut 1-2)/${P}.tar.gz" - -DEPEND=" - dev-lang/perl - sys-apps/groff - sys-apps/texinfo - virtual/awk - fax? ( !net-misc/efax ) -" - -RDEPEND=" - ${DEPEND} - acct-group/fax - acct-user/fax - fax? ( - app-text/ghostscript-gpl - media-libs/netpbm - ) -" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 -riscv ~s390 sparc x86" -IUSE="+fax fidonet split-usr" - -PATCHES=( - "${FILESDIR}"/${PN}-1.1.36-callback.patch - "${FILESDIR}"/${PN}-1.1.36-tmpfile.patch - "${FILESDIR}"/${PN}-1.1.37-qa-fixes.patch - "${FILESDIR}"/${PN}-1.2.1-Lucent.c.patch - "${FILESDIR}"/${PN}-1.2.1-gentoo.patch - "${FILESDIR}"/${PN}-1.2.1-aarch64.patch -) - -src_prepare() { - default - - chmod +x mkidirs || die - - # don't install fax related files - bug #195467 - use fax || eapply "${FILESDIR}/${PN}-1.1.37-nofax.patch" - - sed -i -e 's:/usr/local/lib/mgetty+sendfax:/etc/mgetty+sendfax:' faxrunq.config || die 'changing mgetty config dir failed' - sed -i -e 's:/usr/local/bin/g3cat:/usr/bin/g3cat:' faxrunq.config fax/faxspool.rules || die 'changing g3cat path failed' - - sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \ - -i doc/Makefile || die 'first sed on doc/Makefile failed' - - sed -i \ - -e 's:^CC=:CC?=:g' \ - -e 's:^CFLAGS=:CFLAGS?=:g' \ - {,*/}Makefile || die - sed -i \ - -e 's:^AR=:AR?=:g' \ - -e 's:^CFLAGS=:CFLAGS+= -I..:g' \ - -e 's:^RANLIB=:RANLIB?=:g' \ - */Makefile || die -} - -src_configure() { - tc-export AR CC RANLIB - use fidonet && append-cppflags "-DFIDO" - append-cppflags "-DAUTO_PPP" - - sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \ - -e 's:var/log/sendfax:var/log/mgetty/sendfax:' \ - -e 's:\/\* \(\#define CNDFILE "dialin.config"\) \*\/:\1:' \ - -e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \ - policy.h-dist > policy.h || die 'creating policy.h failed' - - sed -i \ - -e "s/\$(CFLAGS) -o newslock/${CFLAGS} ${LDFLAGS} -Wall -o newslock/" \ - -e "s/\$(LDLAGS)/${LDFLAGS}/" \ - {,fax/}Makefile || die -} - -src_compile() { - local target - for target in mgetty sedscript all vgetty;do - VARTEXFONTS="${T}"/fonts emake prefix=/usr \ - CONFDIR=/etc/mgetty+sendfax \ - CFLAGS="${CFLAGS} ${CPPFLAGS}" \ - LDFLAGS="${LDFLAGS}" \ - ${target} - done -} - -src_install() { - # parallelization issue: vgetty-install target fails if install target - # isn't finished - local target - for target in install "vgetty-install install-callback"; do - emake prefix="${D}/usr" \ - INFODIR="${D}/usr/share/info" \ - CONFDIR="${D}/etc/mgetty+sendfax" \ - MAN1DIR="${D}/usr/share/man/man1" \ - MAN4DIR="${D}/usr/share/man/man4" \ - MAN5DIR="${D}/usr/share/man/man5" \ - MAN8DIR="${D}/usr/share/man/man8" \ - SBINDIR="${D}/usr/sbin" \ - BINDIR="${D}/usr/bin" \ - VOICE_DIR="${D}/var/spool/voice" \ - PHONE_GROUP=fax \ - PHONE_PERMS=755 \ - spool="${D}/var/spool" \ - ${target} - done - - keepdir /var/log/mgetty - - # Install mgetty into /sbin (#119078) - if use split-usr; then - dodir /sbin - mv "${D}"/usr/sbin/mgetty "${D}"/sbin || die - dosym ../../sbin/mgetty /usr/sbin/mgetty - fi - - # Don't install ct (#106337) - rm "${D}"/usr/bin/ct || die "failed to remove useless ct program" - - dodoc BUGS ChangeLog README.1st Recommend THANKS TODO \ - doc/*.txt doc/modems.db - doinfo doc/mgetty.info - - docinto vgetty - dodoc voice/{Readme,Announce,ChangeLog,Credits} - - docinto vgetty/doc - dodoc voice/doc/* - - if use fax; then - mv samples/new_fax.all samples_new_fax.all || die "move failed." - docinto samples - dodoc samples/* - - docinto samples/new_fax - dodoc samples_new_fax.all/* - fi - - if ! use fax; then - insinto /usr/share/${PN}/frontends - doins -r frontends/{voice,network} - else - insinto /usr/share/${PN} - doins -r frontends - fi - insinto /usr/share/${PN} - doins -r patches - insinto /usr/share/${PN}/voice - doins -r voice/{contrib,Perl,scripts} - - diropts -m 0750 -o fax -g fax - dodir /var/spool/voice - keepdir /var/spool/voice/incoming - keepdir /var/spool/voice/messages - if use fax; then - dodir /var/spool/fax - dodir /var/spool/fax/outgoing - keepdir /var/spool/fax/outgoing/locks - keepdir /var/spool/fax/incoming - fi - - systemd_newunit "${FILESDIR}"/mgetty.service mgetty@.service -} - -pkg_postinst() { - elog "Users who wish to use the fax or voicemail capabilities must be members" - elog "of the group fax in order to access files" - elog - elog "If you want to grab voice messages from a remote location, you must save" - elog "the password in /var/spool/voice/.code file" -} diff --git a/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild b/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild new file mode 100644 index 000000000000..8ccbf6fb0ed1 --- /dev/null +++ b/net-dialup/mgetty/mgetty-1.2.1-r4.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic systemd toolchain-funcs + +DESCRIPTION="A programm for sending and receiving fax and voice" +HOMEPAGE="http://mgetty.greenie.net/" +SRC_URI="ftp://mgetty.greenie.net/pub/mgetty/source/$(ver_cut 1-2)/${P}.tar.gz" + +DEPEND=" + dev-lang/perl + sys-apps/groff + sys-apps/texinfo + virtual/awk + fax? ( !net-misc/efax ) +" + +RDEPEND=" + ${DEPEND} + acct-group/fax + acct-user/fax + fax? ( + app-text/ghostscript-gpl + media-libs/netpbm + ) +" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 -riscv ~s390 sparc x86" +IUSE="+fax fidonet split-usr" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.36-callback.patch + "${FILESDIR}"/${PN}-1.1.36-tmpfile.patch + "${FILESDIR}"/${PN}-1.1.37-qa-fixes.patch + "${FILESDIR}"/${PN}-1.2.1-Lucent.c.patch + "${FILESDIR}"/${PN}-1.2.1-gentoo.patch + "${FILESDIR}"/${PN}-1.2.1-aarch64.patch +) + +src_prepare() { + default + + chmod +x mkidirs || die + + # don't install fax related files - bug #195467 + use fax || eapply "${FILESDIR}/${PN}-1.1.37-nofax.patch" + + sed -i -e 's:/usr/local/lib/mgetty+sendfax:/etc/mgetty+sendfax:' faxrunq.config || die 'changing mgetty config dir failed' + sed -i -e 's:/usr/local/bin/g3cat:/usr/bin/g3cat:' faxrunq.config fax/faxspool.rules || die 'changing g3cat path failed' + + sed -e "/^doc-all:/s/mgetty.asc mgetty.info mgetty.dvi mgetty.ps/mgetty.info/" \ + -i doc/Makefile || die 'first sed on doc/Makefile failed' + + sed -i \ + -e 's:^CC=:CC?=:g' \ + -e 's:^CFLAGS=:CFLAGS?=:g' \ + {,*/}Makefile || die + sed -i \ + -e 's:^AR=:AR?=:g' \ + -e 's:^CFLAGS=:CFLAGS+= -I..:g' \ + -e 's:^RANLIB=:RANLIB?=:g' \ + */Makefile || die +} + +src_configure() { + tc-export AR CC RANLIB + use fidonet && append-cppflags "-DFIDO" + append-cppflags "-DAUTO_PPP" + + sed -e 's:var/log/mgetty:var/log/mgetty/mgetty:' \ + -e 's:var/log/sendfax:var/log/mgetty/sendfax:' \ + -e 's:\/\* \(\#define CNDFILE "dialin.config"\) \*\/:\1:' \ + -e 's:\(\#define FAX_NOTIFY_PROGRAM\).*:\1 "/etc/mgetty+sendfax/new_fax":' \ + policy.h-dist > policy.h || die 'creating policy.h failed' + + sed -i \ + -e "s/\$(CFLAGS) -o newslock/${CFLAGS} ${LDFLAGS} -Wall -o newslock/" \ + -e "s/\$(LDLAGS)/${LDFLAGS}/" \ + {,fax/}Makefile || die +} + +src_compile() { + local target + for target in mgetty sedscript all vgetty;do + VARTEXFONTS="${T}"/fonts emake prefix=/usr \ + CONFDIR=/etc/mgetty+sendfax \ + CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + ${target} + done +} + +src_install() { + # parallelization issue: vgetty-install target fails if install target + # isn't finished + local target + for target in install "vgetty-install install-callback"; do + emake prefix="${D}/usr" \ + INFODIR="${D}/usr/share/info" \ + CONFDIR="${D}/etc/mgetty+sendfax" \ + MAN1DIR="${D}/usr/share/man/man1" \ + MAN4DIR="${D}/usr/share/man/man4" \ + MAN5DIR="${D}/usr/share/man/man5" \ + MAN8DIR="${D}/usr/share/man/man8" \ + SBINDIR="${D}/usr/sbin" \ + BINDIR="${D}/usr/bin" \ + VOICE_DIR="${D}/var/spool/voice" \ + PHONE_GROUP=fax \ + PHONE_PERMS=755 \ + spool="${D}/var/spool" \ + ${target} + done + + keepdir /var/log/mgetty + + # Install mgetty into /sbin (#119078) + if use split-usr; then + dodir /sbin + mv "${D}"/usr/sbin/mgetty "${D}"/sbin || die + dosym ../../sbin/mgetty /usr/sbin/mgetty + fi + + # Don't install ct (#106337) + rm "${D}"/usr/bin/ct || die "failed to remove useless ct program" + + dodoc BUGS ChangeLog README.1st Recommend THANKS TODO \ + doc/*.txt doc/modems.db + doinfo doc/mgetty.info + + docinto vgetty + dodoc voice/{Readme,Announce,ChangeLog,Credits} + + docinto vgetty/doc + dodoc voice/doc/* + + if use fax; then + mv samples/new_fax.all samples_new_fax.all || die "move failed." + docinto samples + dodoc samples/* + + docinto samples/new_fax + dodoc samples_new_fax.all/* + fi + + if ! use fax; then + insinto /usr/share/${PN}/frontends + doins -r frontends/{voice,network} + else + insinto /usr/share/${PN} + doins -r frontends + fi + insinto /usr/share/${PN} + doins -r patches + insinto /usr/share/${PN}/voice + doins -r voice/{contrib,Perl,scripts} + + diropts -m 0750 -o fax -g fax + dodir /var/spool/voice + keepdir /var/spool/voice/incoming + keepdir /var/spool/voice/messages + if use fax; then + dodir /var/spool/fax + dodir /var/spool/fax/outgoing + keepdir /var/spool/fax/outgoing/locks + keepdir /var/spool/fax/incoming + fi + + systemd_newunit "${FILESDIR}"/mgetty.service mgetty@.service +} + +pkg_postinst() { + elog "Users who wish to use the fax or voicemail capabilities must be members" + elog "of the group fax in order to access files" + elog + elog "If you want to grab voice messages from a remote location, you must save" + elog "the password in /var/spool/voice/.code file" +} -- cgit v1.2.3