commit: bc8dcbb4159948d50118f4f9d55a7eaa4a128328 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sun Apr 4 23:56:40 2021 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sun Apr 4 23:56:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc8dcbb4
net-misc/capi4hylafax: last-rite Closes: https://bugs.gentoo.org/724790 Closes: https://bugs.gentoo.org/715868 Closes: https://bugs.gentoo.org/520494 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> net-misc/capi4hylafax/Manifest | 2 - .../capi4hylafax-01.03.00.99.300.20-r2.ebuild | 156 --------------------- net-misc/capi4hylafax/files/capi4hylafax.confd | 19 --- net-misc/capi4hylafax/files/capi4hylafax.initd | 63 --------- net-misc/capi4hylafax/metadata.xml | 17 --- profiles/package.mask | 5 - 6 files changed, 262 deletions(-) diff --git a/net-misc/capi4hylafax/Manifest b/net-misc/capi4hylafax/Manifest deleted file mode 100644 index c9e5f4d7f99..00000000000 --- a/net-misc/capi4hylafax/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST capi4hylafax_01.03.00.99.svn.300-20.debian.tar.gz 546271 BLAKE2B 5318d9c1d69edfc7d5157975ecbb0311fb756e9dcb36741dd927096f882a1f2fa3b0a994f6553c8166dd5c20d62d1f1d5a916c5b69c6d416f9f521b62915997e SHA512 a0c1e64d783150abf80feecca07a3eebead95a982133ac9601b204b73933468c61fa39863be8c93ea2bf52c5262b9944b4d5c4a8795475d3a5ca17e481401b8e -DIST capi4hylafax_01.03.00.99.svn.300.orig.tar.gz 533410 BLAKE2B 22a8c5f40f0bf61518ad7a7d901f56fc296aa07114e1a0d8279a2dfd2ed364a1b375f1b3c9da799a122b913543719bfe2253eab696ef6c6bbb19d7b5eca75099 SHA512 c01063bcdf7d5dfbeef0eadd94a0714b5f34f442c19e5287a0fa40ce3ecbbad53afaddeb093435952367fb7b503dd9c637002d954a58175df3920d9d2966c468 diff --git a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20-r2.ebuild b/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20-r2.ebuild deleted file mode 100644 index 8332aaea224..00000000000 --- a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20-r2.ebuild +++ /dev/null @@ -1,156 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools epatch optfeature versionator - -FAX_SPOOL_DIR="${ROOT}/var/spool/fax" - -MY_PV1="$(get_version_component_range 1-4)" -MY_PV2="$(get_version_component_range 5)" -MY_PV3="$(get_version_component_range 6)" -MY_P="${PN}_${MY_PV1}.svn.${MY_PV2}" - -DESCRIPTION="capi4hylafax adds a faxcapi modem to the hylafax enviroment" -HOMEPAGE="https://packages.qa.debian.org/c/capi4hylafax.html" -SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz - mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.debian.tar.gz" - -S="${WORKDIR}/${PN}-svn" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="amd64 ppc x86" - -DEPEND=" - app-shells/bash:0 - media-libs/tiff:0 - net-libs/libcapi - sys-libs/zlib - virtual/jpeg:0 -" -RDEPEND=" - ${DEPEND} - dev-util/dialog -" - -DOCS=( AUTHORS ChangeLog Readme_src ) -HTML_DOCS=( README.html LIESMICH.html ) - -src_prepare() { - EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \ - EPATCH_FORCE="yes" epatch - - eapply_user - - eautoreconf - - mv ../debian . || die - - # fix location of fax spool - sed -e "s:/var/spool/hylafax:${FAX_SPOOL_DIR}:g" \ - -i config.faxCAPI \ - -i Readme_src \ - -i src/defaults.h.in \ - -i debian/*.1 || die - - # fix location of fax config - sed -i -e "s:/etc/hylafax:${FAX_SPOOL_DIR}/etc:g" setupconffile || die - - # fix name and location of logfile - sed -e "s:/var/spool/fax/log/capi4hylafax:/var/log/${PN}.log:" \ - -i config.faxCAPI || die - - sed -e "s:/tmp/capifax.log:/var/log/${PN}.log:" \ - -i src/defaults.h.in config.faxCAPI || die - - # patch man pages - sed -e "s:/usr/share/doc/capi4hylafax/:/usr/share/doc/${PF}/html/:g" \ - -e "s:c2send:c2faxsend:g" \ - -e "s:c2recv:c2faxrecv:g" \ - -e "s:CAPI4HYLAFAXCONFIG \"1\":C2FAXADDMODEM \"8\":g" \ - -e "s:capi4hylafaxconfig:c2faxaddmodem:g" \ - -i debian/*.1 || die - - cp -f debian/capi4hylafaxconfig.1 debian/c2faxaddmodem.8 || die -} - -src_configure() { - econf --with-hylafax-spooldir="${FAX_SPOOL_DIR}" -} - -src_install() { - keepdir "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status} - fowners uucp:uucp "${FAX_SPOOL_DIR}" "${FAX_SPOOL_DIR}"/{etc,recvq,pollq,log,status} - fperms 0700 "${FAX_SPOOL_DIR}" - - default - - # install setup script - newsbin setupconffile c2faxaddmodem - - # install sample config - insinto "${FAX_SPOOL_DIR}/etc" - newins config.faxCAPI config.faxCAPI.default - - # install docs - newdoc debian/changelog ChangeLog.debian - - # install man pages - doman debian/c2fax*.[18] - - # install examples - insinto /usr/share/doc/${PF}/examples - doins sample_faxrcvd config.faxCAPI fritz_pic.tif GenerateFileMail.pl - newins sample_AVMC4_config.faxCAPI config.faxCAPI_AVMC4 - newins debian/faxsend sample_faxsend - - # finally install init-script + config - newinitd "${FILESDIR}/${PN}.initd" ${PN} - newconfd "${FILESDIR}/${PN}.confd" ${PN} -} - -pkg_postinst() { - elog - elog "To use capi4hylafax:" - elog "Make sure that your isdn/capi devices are owned by" - elog "the \"uucp\" user (see udev or devfsd config)." - elog "Modify ${FAX_SPOOL_DIR}/etc/config.faxCAPI" - elog "to suit your system." - - if [ -n "${REPLACING_VERSIONS}" ]; then - elog - elog "If you're upgrading from a previous version" - elog "please check for new or changed options." - elog "A sample default config is installed as:" - elog "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" - else - elog - elog "Please run package config to install a default configuration." - fi - - elog - elog "You should also check special options in:" - elog "/etc/conf.d/${PN}" - elog - optfeature "hylafax integration" net-misc/hylafax - elog - elog "Then append the following line to your hylafax" - elog "config file (${FAX_SPOOL_DIR}/etc/config):" - elog "SendFaxCmd: /usr/bin/c2faxsend" - elog -} - -pkg_config() { - local config_file="${FAX_SPOOL_DIR}/etc/config.faxCAPI" - if [ -e "${config_file}" ]; then - eerror "The configuration file already exists. Please either update" - eerror "or remove this file and re-run package configuration." - eerror "Configuration file location: ${config_file}" - else - elog "Installing template configuration file to ${config_file}" - cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \ - "${config_file}" || die - fi -} diff --git a/net-misc/capi4hylafax/files/capi4hylafax.confd b/net-misc/capi4hylafax/files/capi4hylafax.confd deleted file mode 100644 index 40aa8cfe603..00000000000 --- a/net-misc/capi4hylafax/files/capi4hylafax.confd +++ /dev/null @@ -1,19 +0,0 @@ -# configuraton file for /etc/init.d/capi4hylafax - -# Activate Logging (Filename have to be specified in the config file). -#ACTIVATE_LOGGING="yes" - -# Specify the output format. Allowed types are: -# HYLAFAX (default), TIFF, SFF, G3 -#OUTPUT_FORMAT="HYLAFAX" - -# Virtual device name only needed for Hylafax. -#VIRTUAL_DEVICE="faxCAPI" - -# Name and path of the config file -#CONFIG_FILE="/var/spool/fax/etc/config.faxCAPI" - -# Directory where received faxes are to be stored. -# Do not set it in Hylafax mode (see OUTPUT_FORMAT)! -#RECEIVE_DIR="/var/spool/fax/recvq" - diff --git a/net-misc/capi4hylafax/files/capi4hylafax.initd b/net-misc/capi4hylafax/files/capi4hylafax.initd deleted file mode 100644 index 08c3917f6f8..00000000000 --- a/net-misc/capi4hylafax/files/capi4hylafax.initd +++ /dev/null @@ -1,63 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need capi -} - -checkconfig() { - local DEFAULT_OUTPUT_FORMAT="HYLAFAX" - local DEFAULT_VIRTUAL_DEVICE="faxCAPI" - local DEFAULT_RECEIVE_DIR="/var/spool/fax" - local DEFAULT_CONFIG_FILE="/var/spool/fax/etc/config.faxCAPI" - - [ -n "${CONFIG_FILE}" ] || CONFIG_FILE="${DEFAULT_CONFIG_FILE}" - [ -n "${OUTPUT_FORMAT}" ] || OUTPUT_FORMAT="${DEFAULT_OUTPUT_FORMAT}" - [ -n "${VIRTUAL_DEVICE}" ] || VIRTUAL_DEVICE="${DEFAULT_VIRTUAL_DEVICE}" - [ "${OUTPUT_FORMAT}" = "HYLAFAX" ] || DEFAULT_RECEIVE_DIR="/var/spool/fax/recvq" - [ -n "${RECEIVE_DIR}" ] || RECEIVE_DIR="${DEFAULT_RECEIVE_DIR}" - - if [ ! -f "${CONFIG_FILE}" ]; then - eerror "You're missing ${CONFIG_FILE}" - return 1 - fi - - OPTIONS="" - PIDFILE="/var/run/c2faxrecv.pid" - - [ "${ACTIVATE_LOGGING}" = "yes" ] && OPTIONS="${OPTIONS} -L" - - [ "${OUTPUT_FORMAT}" = "${DEFAULT_OUTPUT_FORMAT}" ] || \ - OPTIONS="${OPTIONS} -f ${OUTPUT_FORMAT}" - - [ "${CONFIG_FILE}" = "${DEFAULT_CONFIG_FILE}" ] || \ - OPTIONS="${OPTIONS} -C ${CONFIG_FILE}" - - [ "${OUTPUT_FORMAT}" = "HYLAFAX" -a "${RECEIVE_DIR}" = "${DEFAULT_RECEIVE_DIR}" ] || \ - OPTIONS="${OPTIONS} -q ${RECEIVE_DIR}" - - if [ "${VIRTUAL_DEVICE}" != "${DEFAULT_VIRTUAL_DEVICE}" ]; then - PIDFILE="/var/run/c2faxrecv.${VIRTUAL_DEVICE}.pid" - OPTIONS="${OPTIONS} ${VIRTUAL_DEVICE}" - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting CAPI4HylaFAX for ${VIRTUAL_DEVICE}" - start-stop-daemon -b -m --quiet --start --pidfile ${PIDFILE} \ - --exec /usr/bin/c2faxrecv -- ${OPTIONS} - eend $? -} - -stop() { - checkconfig || return 1 - - ebegin "Stopping CAPI4HylaFAX for ${VIRTUAL_DEVICE}" - start-stop-daemon >/dev/null --quiet --stop --pidfile ${PIDFILE} --retry 10 && \ - /bin/rm -f ${PIDFILE} - eend $? -} - diff --git a/net-misc/capi4hylafax/metadata.xml b/net-misc/capi4hylafax/metadata.xml deleted file mode 100644 index b5d05033d34..00000000000 --- a/net-misc/capi4hylafax/metadata.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <longdescription lang="en"> - capi4hylafax adds a faxcapi modem to the hylafax enviroment. So you can - send and receive FAX documents with CAPI 2.0 fax controllers via a - hylafax server. - </longdescription> - <longdescription lang="ja"> - capi4hylafax は hylafax 環境に faxcopi - モデムを加えます。つまり hylafax - サーバに対して CAPI 2.0 fax コントローラ経由で FAX - ドキュメントを送信したり - 受信したりできるようになります。 - </longdescription> -</pkgmetadata> diff --git a/profiles/package.mask b/profiles/package.mask index 6a87b73db37..433b2698dda 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -322,11 +322,6 @@ sys-apps/newrelic-sysmond # Removal in 30 days. app-mobilephone/smsclient -# Conrad Kostecki <[email protected]> (2021-03-05) -# Dead upstream, multiple bugs open and unmaintained. -# Removal in 30 days. -net-misc/capi4hylafax - # Sam James <[email protected]> (2021-03-03) # Declared abandoned upstream and stuck # on Python 3.7.
