summaryrefslogtreecommitdiff
path: root/net-misc/capi4hylafax
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /net-misc/capi4hylafax
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'net-misc/capi4hylafax')
-rw-r--r--net-misc/capi4hylafax/Manifest6
-rw-r--r--net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20-r2.ebuild156
-rw-r--r--net-misc/capi4hylafax/files/capi4hylafax.confd19
-rw-r--r--net-misc/capi4hylafax/files/capi4hylafax.initd63
-rw-r--r--net-misc/capi4hylafax/metadata.xml17
5 files changed, 0 insertions, 261 deletions
diff --git a/net-misc/capi4hylafax/Manifest b/net-misc/capi4hylafax/Manifest
deleted file mode 100644
index 7848fa8ee25f..000000000000
--- a/net-misc/capi4hylafax/Manifest
+++ /dev/null
@@ -1,6 +0,0 @@
-AUX capi4hylafax.confd 555 BLAKE2B 1660a0ac02e1762e589cc04e8683ca660ad7c9cc21509f4064226000ab8d364a0596e18eca5ac0e55497a14dc0c29e1db23716d565f5f75778e8730bcc25b096 SHA512 357504c887bb12a3b93e0ab8a4e7a7789e2848b831f27fba653e3fd9bf62b694edfb758d82693b61b992de834e9d5a0d1e4a8aa1e50dbd6e2d0649c9581e9821
-AUX capi4hylafax.initd 1821 BLAKE2B 4b21a9a97f84df8f6b028c95012e987d79cf1493b45a6a6fc1193621490aaab0a870ac991fe6bffc6cb1c8726095c03548b13b92b74fc94b3def0912476645bd SHA512 bd5d427631b825b886f1e56ff118c795bd04868df459cc8dc0a66d87004a36748eb8f55978bda64af19db3706f7be96b55739da43f28c762a6cd69ed91fd70c5
-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
-EBUILD capi4hylafax-01.03.00.99.300.20-r2.ebuild 4266 BLAKE2B ecf56cd0f640aa705e8ce87f54eb90314b95e04879f6c51cab76fec95476f048931c56f27439ebd927966d005347c9f6770b4e8befce1401d1ea4848686d9bcd SHA512 ee69069923cacad3e21a23e6d4ce3fe10dc7d1510534f5560d65950b3d293de3fd11ec1a08519be20fbcfeb6db950cf85f03701244f736dc2d230b3c0c140cd3
-MISC metadata.xml 680 BLAKE2B aeb003ea54883d6778dffd9cec6916e618bf6e5bd4d3f624004c64ffbbac9ca250f4f0d63a3c7cb845553c22e83c1e7ccda7a8a0d52f3add8d3125233aa5b941 SHA512 c27851901f9af6dc6d30cf3fe0c9133b9a2f9fa97b488a763d7eb2208a1829bd4bd16c7c8581257b9367142ca458d330b0ec8507b0e0160760506e3a180e31aa
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 50cce3b04057..000000000000
--- a/net-misc/capi4hylafax/capi4hylafax-01.03.00.99.300.20-r2.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2020 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() {
- einfo
- 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
- elog "The following optional dependency is also available:"
- 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"
- einfo
-}
-
-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 40aa8cfe603d..000000000000
--- 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 08c3917f6f8f..000000000000
--- 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 b5d05033d344..000000000000
--- 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>