Version Bump. Changing maintainer to myself. Ebuild thanks to Stefan Briesenick ...
authorStefan Schweizer <genstef@gentoo.org>
Thu, 2 Dec 2004 21:26:14 +0000 (21:26 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Thu, 2 Dec 2004 21:26:14 +0000 (21:26 +0000)
net-misc/capi4hylafax/ChangeLog
net-misc/capi4hylafax/Manifest
net-misc/capi4hylafax/capi4hylafax-01.02.03.ebuild [new file with mode: 0644]
net-misc/capi4hylafax/files/capi4hylafax
net-misc/capi4hylafax/files/digest-capi4hylafax-01.02.03 [new file with mode: 0644]
net-misc/capi4hylafax/metadata.xml

index 54fb63059c971e28ffd5f3c1bb528aa97a3b3ac4..46aa75d39a78f7aa93d68f75147c861ca27ff81e 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for net-misc/capi4hylafax
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/ChangeLog,v 1.6 2004/08/08 00:19:48 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/ChangeLog,v 1.7 2004/12/02 21:26:14 genstef Exp $
+
+*capi4hylafax-01.02.03 (02 Dec 2004)
+
+  02 Dec 2004; Stefan Schweizer <genstef@gentoo.org> metadata.xml,
+  files/capi4hylafax, +capi4hylafax-01.02.03.ebuild:
+  Version Bump. Changing maintainer to myself. Ebuild thanks to Stefan
+  Briesenick <sbriesen@gmx.de> in bug 72131
 
   08 Aug 2004; Tom Martin <slarti@gentoo.org> capi4hylafax-01.02.02.ebuild:
   Typo in DESCRIPTION: recieve -> receive. Bug 59717.
index 2ece0e3650e091e83aae857a0d79753079c78eec..c1a7b647003bae6aba66a608363df8384a120df8 100644 (file)
@@ -1,5 +1,7 @@
 MD5 0aa6b3186babffbc27efb9e0fa4c1233 capi4hylafax-01.02.02.ebuild 1456
-MD5 a381c0df0801bd241c2482f1f0acd1f8 ChangeLog 869
-MD5 86839ab49843d9936a51027707b8422f metadata.xml 386
-MD5 8d2ed89bc1f0ec75d51b43a0bbec9a1e files/capi4hylafax 333
+MD5 c85b27e88b0742756965870c36542147 capi4hylafax-01.02.03.ebuild 2597
+MD5 360aad6c3b7daf15f3c1655371ba2924 ChangeLog 1144
+MD5 d6f473d9cfb90e50b96f35ea0fc748c4 metadata.xml 390
+MD5 8faea3a1fc9f96eb051503848e502360 files/capi4hylafax 1088
 MD5 7033ac371b28b9db979167f182afd52c files/digest-capi4hylafax-01.02.02 73
+MD5 0b8d19fc4ec6d9aae318a26b151aa46d files/digest-capi4hylafax-01.02.03 154
diff --git a/net-misc/capi4hylafax/capi4hylafax-01.02.03.ebuild b/net-misc/capi4hylafax/capi4hylafax-01.02.03.ebuild
new file mode 100644 (file)
index 0000000..5df8af7
--- /dev/null
@@ -0,0 +1,91 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/capi4hylafax-01.02.03.ebuild,v 1.1 2004/12/02 21:26:14 genstef Exp $
+
+inherit eutils
+
+DESCRIPTION="CAPI4HylaFAX - send/receive faxes via CAPI and AVM Fritz!Cards."
+SRC_URI="mirror://debian/pool/main/c/capi4hylafax/capi4hylafax_${PV}.orig.tar.gz
+               mirror://debian/pool/main/c/capi4hylafax/capi4hylafax_${PV}-7.diff.gz"
+HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
+
+IUSE="unicode"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+DEPEND="net-dialup/capi4k-utils
+               net-misc/hylafax"
+
+src_unpack() {
+       unpack ${A} || die "unpack failed"
+       mv ${S}.orig ${S}
+       cd ${S}
+
+       epatch ${WORKDIR}/capi4hylafax_${PV}-7.diff
+
+       for i in * debian/* src/scripts/setupconffile; do
+               [ -f "${i}" ] && sed -si "s:/var/spool/hylafax:/var/spool/fax:" ${i}
+       done
+
+       # patch man pages
+       sed -i -e "s:/usr/share/doc/capi4hylafax/:/usr/share/doc/${P}/html/:g" \
+               -e "s:c2send:c2faxsend:g" -e "s:c2recv:c2faxrecv:g" \
+               -e "s:CAPI4HYLAFAXCONFIG(1):C2FAXADDMODEM(8):g" \
+               -e "s:CAPI4HYLAFAXCONFIG \"1\":C2FAXADDMODEM \"8\":g" \
+               -e "s:capi4hylafaxconfig:c2faxaddmodem:g" debian/*.1
+       cp -f debian/capi4hylafax.1 debian/c2faxaddmodem.8
+
+       # if specified, convert all relevant files from latin1 to UTF-8
+       if useq 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=/var/spool/fax || die "econf failed"
+       emake || die "emake failed"
+}
+
+src_install() {
+       einstall || die "einstall failed"
+
+       # install setup script
+       newsbin src/scripts/setupconffile c2faxaddmodem
+
+       # install sample config
+       insinto /var/spool/fax/etc
+       doins config.faxCAPI
+
+       # 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_*
+       dodoc fritz_pic.tif
+       dodoc GenerateFileMail.pl
+
+       # finally install init-script
+       exeinto /etc/init.d
+       doexe ${FILESDIR}/capi4hylafax
+}
+
+pkg_postinst() {
+       einfo "To use CAPI4HylaFAX:"
+       einfo "Make sure that your isdn/capi devices are owned by"
+       einfo "the \"uucp\" user (set in /etc/devfsd.conf)."
+       einfo "Modify /var/spool/fax/etc/config.faxCAPI"
+       einfo "to suit your system, and append the line"
+       einfo "SendFaxCmd:             /usr/bin/c2faxsend"
+       einfo "to your HylaFAX config file (/var/spool/fax/etc/config)."
+}
index 43693f2e4efd2d7cf647742413d6ba795ff3c0c4..51a714d27e40bb0781dd089045bda0112b071c6c 100644 (file)
@@ -1,20 +1,37 @@
 #!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/files/capi4hylafax,v 1.2 2004/12/02 21:26:14 genstef Exp $
+
+# symlink this script to capi4hylafax.<device>
+# if you want to use more than one config-file.
 
 depend() {
        need capi
 }
 
 start() {
-       ebegin "Starting CAPI4HylaFAX"
-       start-stop-daemon -b -m --quiet --start --exec /usr/bin/c2faxrecv \
-               --pidfile /var/run/c2faxrecv.pid
-       eend $?
+       local DEVICE="${myservice#*.}"
+       [ "${DEVICE}" = "${myservice}" ] && DEVICE="faxCAPI"
+       local CONFIG="/var/spool/fax/etc/config.${DEVICE}"
+
+       if [ ! -f "$CONFIG" ]; then
+               eerror "You're missing ${CONFIG}"
+               return 1
+       fi
 
+       ebegin "Starting CAPI4HylaFAX for ${DEVICE}"
+       start-stop-daemon -b -m --quiet --start --pidfile "/var/run/c2faxrecv.${DEVICE}.pid" \
+               --exec /usr/bin/c2faxrecv ${DEVICE}
+       eend $?
 }
 
 stop() {
-       ebegin "Stopping CAPI4HylaFAX"
-       start-stop-daemon -o --quiet --stop --pidfile /var/run/c2faxrecv.pid
-        eend $?
+       local DEVICE="${myservice#*.}"
+       [ "${DEVICE}" = "${myservice}" ] && DEVICE="faxCAPI"
 
+       ebegin "Stopping CAPI4HylaFAX for ${DEVICE}"
+       start-stop-daemon >/dev/null --quiet --stop --pidfile "/var/run/c2faxrecv.${DEVICE}.pid" --retry 10 && \
+       /bin/rm -f /var/run/c2faxrecv.${DEVICE}.pid
+        eend $?
 }
diff --git a/net-misc/capi4hylafax/files/digest-capi4hylafax-01.02.03 b/net-misc/capi4hylafax/files/digest-capi4hylafax-01.02.03
new file mode 100644 (file)
index 0000000..110a29e
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 8236290d6b880ee7d5e2fe970648ad6f capi4hylafax_01.02.03.orig.tar.gz 400508
+MD5 9a1d502bcc23282237cbc8a8a64699ce capi4hylafax_01.02.03-7.diff.gz 230581
index ba31d6a2c37639b3c36ef6d7bd81c16738e30f66..0535d11e9b7ef7cc81182988d1dbf7c701726492 100644 (file)
@@ -3,8 +3,8 @@
 <pkgmetadata>
 <herd>comm-fax</herd>
 <maintainer>
-  <email>nerdboy@gentoo.org</email>
-  <name>Steve Arnold</name>
+  <email>genstef@gentoo.org</email>
+  <name>Stefan Schweizer</name>
   <description>Primary Maintainer</description>
 </maintainer>
 <longdescription>Fax package for ISDN cards with CAPI capabilities.</longdescription>