From: Stefan Briesenick Date: Sun, 2 Oct 2005 23:07:42 +0000 (+0000) Subject: version bump, ebuild and init-scripts enhancements, adding ~amd64 to keywords. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=19fb6a036ed5251485eb22fa1fb3f0f42c1ba248;p=gentoo.git version bump, ebuild and init-scripts enhancements, adding ~amd64 to keywords. Package-Manager: portage-2.0.52-r1 --- diff --git a/net-misc/capi4hylafax/ChangeLog b/net-misc/capi4hylafax/ChangeLog index a9e8183a6377..4e6080ab8bf4 100644 --- a/net-misc/capi4hylafax/ChangeLog +++ b/net-misc/capi4hylafax/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/capi4hylafax # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/ChangeLog,v 1.11 2005/08/11 19:48:28 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/ChangeLog,v 1.12 2005/10/02 23:07:41 sbriesen Exp $ + +*capi4hylafax-01.03.00.3 (02 Oct 2005) + + 02 Oct 2005; Stefan Briesenick + +files/capi4hylafax.confd, +files/capi4hylafax.initd, metadata.xml, + +capi4hylafax-01.03.00.3.ebuild: + version bump, ebuild and init-scripts enhancements, adding ~amd64 to keywords. *capi4hylafax-01.02.03.13 (11 Aug 2005) diff --git a/net-misc/capi4hylafax/Manifest b/net-misc/capi4hylafax/Manifest index 0466e9e922da..dd914f483a3c 100644 --- a/net-misc/capi4hylafax/Manifest +++ b/net-misc/capi4hylafax/Manifest @@ -1,8 +1,12 @@ MD5 81ea5a7f3e7ab1705c153ac8d76d7a0c capi4hylafax-01.02.03.13.ebuild 3104 MD5 14228489378e44808b5ecffc3ad5ef7b capi4hylafax-01.02.03.ebuild 2623 -MD5 fea962c0daa391fb7b1c7030090b8790 ChangeLog 1919 -MD5 d6f473d9cfb90e50b96f35ea0fc748c4 metadata.xml 390 +MD5 c472cf791d6fc0f8ac848a5a1415f8fa capi4hylafax-01.03.00.3.ebuild 4251 +MD5 f0be5e74ec46380f731c178eaf11effc ChangeLog 2201 +MD5 ecbd611a0f7853fdece0bc56afc0710a metadata.xml 471 MD5 49f02a498ca351b1bc02bdbc5b4eb787 capi4hylafax-01.02.03.11.ebuild 2908 +MD5 bceab9f12bad33f29eb8bc6a47714e7d files/digest-capi4hylafax-01.03.00.3 153 +MD5 6fefb76ecf87f585bb2144297b7c28d6 files/capi4hylafax.confd 555 +MD5 c08db6e5447f4a7dcff6d9af93a07932 files/capi4hylafax.initd 1943 MD5 8faea3a1fc9f96eb051503848e502360 files/capi4hylafax 1088 MD5 73fe13d43a9fb6e02eb50f0951b224ee files/digest-capi4hylafax-01.02.03.11 155 MD5 757537dac1b1d35bd5d164eebd62df5a files/digest-capi4hylafax-01.02.03.13 155 diff --git a/net-misc/capi4hylafax/capi4hylafax-01.03.00.3.ebuild b/net-misc/capi4hylafax/capi4hylafax-01.03.00.3.ebuild new file mode 100644 index 000000000000..1199df911452 --- /dev/null +++ b/net-misc/capi4hylafax/capi4hylafax-01.03.00.3.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/capi4hylafax-01.03.00.3.ebuild,v 1.1 2005/10/02 23:07:41 sbriesen Exp $ + +inherit eutils versionator + +FAX_SPOOL_DIR="/var/spool/fax" + +MY_PV="$(get_version_component_range 1-3)" +MY_PP="$(get_version_component_range 4)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="capi4hylafax adds a faxcapi modem to the hylafax enviroment." +SRC_URI="http://ftp.debian.org/debian/pool/main/c/capi4hylafax/${MY_P/-/_}.orig.tar.gz + http://ftp.debian.org/debian/pool/main/c/capi4hylafax/${MY_P/-/_}-${MY_PP}.diff.gz" +HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html" + +S="${WORKDIR}/${MY_P}" + +IUSE="unicode" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="net-dialup/capi4k-utils + media-libs/tiff + media-libs/jpeg + sys-libs/zlib" + +RDEPEND="${DEPEND} + dev-util/dialog" + +src_unpack() { + unpack ${A} + mv "${S}.orig" "${S}" + cd "${S}" + + # apply debian patches + update configs + epatch "${WORKDIR}/${MY_P/-/_}-${MY_PP}.diff" + libtoolize --copy --force + + # fix location of fax spool + for i in config.faxCAPI Readme_src src/defaults.h.in debian/*.1; do + [ -f "${i}" ] && sed -i -e "s:/var/spool/hylafax:${FAX_SPOOL_DIR}:g" "${i}" + done + + # fix location of fax config + sed -i -e "s:/etc/hylafax:${FAX_SPOOL_DIR}/etc:g" setupconffile + + # fix name and location of logfile + sed -i -e "s:/var/spool/fax/log/capi4hylafax:/var/log/${PN}.log:" config.faxCAPI + sed -i -e "s:/tmp/capifax.log:/var/log/${PN}.log:" src/defaults.h.in config.faxCAPI + + # patch man pages + sed -i -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" debian/*.1 + cp -f debian/capi4hylafaxconfig.1 debian/c2faxaddmodem.8 + + # if specified, convert all relevant files from latin1 to UTF-8 + if use unicode; then + for i in config.faxCAPI; do + einfo "Converting ${i} to UTF-8" + iconv -f latin1 -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~" + done + fi +} + +src_compile() { + econf --with-hylafax-spooldir="${FAX_SPOOL_DIR}" || die "econf failed" + emake || die "emake failed" +} + +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}" + + make DESTDIR="${D}" install || die "make install failed" + + # install setup script + newsbin setupconffile c2faxaddmodem + + # install sample config + insinto "${FAX_SPOOL_DIR}/etc" + newins config.faxCAPI config.faxCAPI.default + + # install docs + dodoc AUTHORS ChangeLog Readme_src + newdoc debian/changelog ChangeLog.debian + dohtml README.html LIESMICH.html + + # install man pages + doman debian/c2fax*.[18] + + # install examples + docinto examples + dodoc sample_faxrcvd faxrcvd + newdoc debian/faxsend sample_faxsend + newdoc sample_AVMC4_config.faxCAPI config.faxCAPI_AVMC4 + dodoc config.faxCAPI fritz_pic.tif GenerateFileMail.pl + + # finally install init-script + config + newinitd "${FILESDIR}/${PN}.initd" ${PN} + newconfd "${FILESDIR}/${PN}.confd" ${PN} +} + +pkg_postinst() { + einfo "To use capi4hylafax:" + einfo "Make sure that your isdn/capi devices are owned by" + einfo "the \"uucp\" user (see udev or devfsd config)." + einfo "Modify ${FAX_SPOOL_DIR}/etc/config.faxCAPI" + einfo "to suit your system." + + if [ -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI" ]; then + einfo + einfo "If you're upgrading from a previous version" + einfo "please check for new or changed options." + einfo "A sample default config is installed as:" + einfo "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" + else + # install default config + cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \ + "${FAX_SPOOL_DIR}/etc/config.faxCAPI" + fi + + einfo + einfo "You should also check special options in:" + einfo "/etc/conf.d/${PN}" + einfo + einfo "If you want to use capi4hylafax together with" + einfo "hylafax, then please emerge net-misc/hylafax" + einfo + einfo "Then append the following line to your hylafax" + einfo "config file (${FAX_SPOOL_DIR}/etc/config):" + einfo "SendFaxCmd: /usr/bin/c2faxsend" +} diff --git a/net-misc/capi4hylafax/files/capi4hylafax.confd b/net-misc/capi4hylafax/files/capi4hylafax.confd new file mode 100644 index 000000000000..40aa8cfe603d --- /dev/null +++ b/net-misc/capi4hylafax/files/capi4hylafax.confd @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000000..a1815887e9cf --- /dev/null +++ b/net-misc/capi4hylafax/files/capi4hylafax.initd @@ -0,0 +1,64 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/files/capi4hylafax.initd,v 1.1 2005/10/02 23:07:42 sbriesen Exp $ + +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/files/digest-capi4hylafax-01.03.00.3 b/net-misc/capi4hylafax/files/digest-capi4hylafax-01.03.00.3 new file mode 100644 index 000000000000..d046f8e2aab2 --- /dev/null +++ b/net-misc/capi4hylafax/files/digest-capi4hylafax-01.03.00.3 @@ -0,0 +1,2 @@ +MD5 d37dc652ac80d1525ef8693be55ee67f capi4hylafax_01.03.00.orig.tar.gz 715734 +MD5 75676e36cb5dfd337afd2345822d4527 capi4hylafax_01.03.00-3.diff.gz 57989 diff --git a/net-misc/capi4hylafax/metadata.xml b/net-misc/capi4hylafax/metadata.xml index 0535d11e9b7e..def2073316e8 100644 --- a/net-misc/capi4hylafax/metadata.xml +++ b/net-misc/capi4hylafax/metadata.xml @@ -1,11 +1,14 @@ -comm-fax - - genstef@gentoo.org - Stefan Schweizer - Primary Maintainer - -Fax package for ISDN cards with CAPI capabilities. + comm-fax + + sbriesen@gentoo.org + Stefan Briesenick + + + 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. +