Portage is a package management system used by Gentoo Linux
# ChangeLog for net-misc/capi4hylafax
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/capi4hylafax/ChangeLog,v 1.29 2008/01/06 03:35:48 sbriesen Exp $
*capi4hylafax-01.03.00.99.300.9 (06 Jan 2008)
06 Jan 2008; Stefan Briesenick
+capi4hylafax-01.03.00.99.300.9.ebuild:
rev-bump, solving bug #202712.
*capi4hylafax-01.03.00.99.300.7 (18 Nov 2007)
18 Nov 2007; Stefan Briesenick
+capi4hylafax-01.03.00.99.300.7.ebuild:
version bump, some cleanups.
10 Feb 2007; Stefan Briesenick
capi4hylafax-01.03.00.99.300.3-r1.ebuild,
capi4hylafax-01.03.00.99.300.4.ebuild:
fixed SRC_URI, solving bug #163309.
06 Jan 2007; Stefan Briesenick
-capi4hylafax-01.03.00.3.ebuild, -capi4hylafax-01.03.00.99.300.3.ebuild:
removed old versions.
*capi4hylafax-01.03.00.99.300.4 (06 Jan 2007)
06 Jan 2007; Stefan Briesenick
+capi4hylafax-01.03.00.99.300.4.ebuild:
version bump.
04 Jan 2007; Diego Pettenò
capi4hylafax-01.03.00.99.300.3-r1.ebuild:
Fix broken autotools handling.
10 Oct 2006; Tobias Scherbaum
capi4hylafax-01.03.00.99.300.3-r1.ebuild:
ppc stable, bug #145982
10 Oct 2006; Simon Stelling
capi4hylafax-01.03.00.99.300.3-r1.ebuild:
stable on amd64 wrt bug 145982
04 Oct 2006; Joshua Jackson
capi4hylafax-01.03.00.99.300.3-r1.ebuild:
Stable x86; security bug #145982
*capi4hylafax-01.03.00.99.300.3-r1 (04 Oct 2006)
04 Oct 2006; Stefan Briesenick
+files/capi4hylafax-01.03.00.99.300.3-recvdev.diff,
+capi4hylafax-01.03.00.99.300.3-r1.ebuild:
fixed 64-Bit issue in recvdev.cpp, see bug #145982.
*capi4hylafax-01.03.00.99.300.3 (30 Sep 2006)
30 Sep 2006; Stefan Briesenick
+capi4hylafax-01.03.00.99.300.3.ebuild:
version bump, solving bug #145982.
29 Sep 2006; Stefan Briesenick
-capi4hylafax-01.02.03.ebuild, -capi4hylafax-01.02.03.11.ebuild,
-capi4hylafax-01.02.03.13.ebuild:
removed old versions.
21 May 2006; Chris White
Adding Japanese translation for metadata.xml. Thanks to Yoshino-san in bug
#133894.
21 Jan 2006; Lars Weiler
capi4hylafax-01.03.00.3.ebuild:
Stable on ppc; bug #112457.
26 Dec 2005; Stefan Briesenick
capi4hylafax-01.03.00.3.ebuild:
stable on x86
23 Dec 2005; Simon Stelling
capi4hylafax-01.03.00.3.ebuild:
stable on amd64
13 Nov 2005; Stefan Briesenick
capi4hylafax-01.02.03.ebuild:
fixed dependencies, see bug #112445.
*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)
11 Aug 2005; Stefan Briesenick
+capi4hylafax-01.02.03.13.ebuild:
bumping to new debian release.
19 Jun 2005; David Holm
capi4hylafax-01.02.03.11.ebuild:
Added to ~ppc.
*capi4hylafax-01.02.03.11 (18 Jun 2005)
18 Jun 2005; Stefan Briesenick
+capi4hylafax-01.02.03.11.ebuild:
changing version to debian patch level, removing hylafax dependency (because
it's optional), adding tiff dependency, ebuild code cleanup.
13 Feb 2005; Stefan Schweizer
-capi4hylafax-01.02.02.ebuild, capi4hylafax-01.02.03.ebuild:
Version 01.02.03 x86 stable, libtoolize fix thanks to Hans-Christian
Armingeon
*capi4hylafax-01.02.03 (02 Dec 2004)
02 Dec 2004; Stefan Schweizer
files/capi4hylafax, +capi4hylafax-01.02.03.ebuild:
Version Bump. Changing maintainer to myself. Ebuild thanks to Stefan
Briesenick
08 Aug 2004; Tom Martin
Typo in DESCRIPTION: recieve -> receive. Bug 59717.
01 Jul 2004; Jon Hood
change virtual/glibc to virtual/libc
25 Apr 2004; Steve Arnold
removed ?IUSE stuff
09 Dec 2003; Heinrich Wendel
capi4hylafax-01.02.02.ebuild:
changed app-text/ghostscript to virtual/ghostscript
*capi4hylafax-01.02.02 (02 Oct 2003)
02 Oct 2003;
new capi4hylafax ebuild, user-contributed with new DEPENDS
AUX capi4hylafax-01.03.00.99.300.3-recvdev.diff 973 RMD160 5fa7ae4b9a3f0684710cb42ad79ef6412d972f0b SHA1 dd18f9abc7ec3b6366f806d889e79fcf9744f0f4 SHA256 9f6d45c7de27846a0b233c8e706c4b360d56266b034dc17588ecf5dba2ee604d
AUX capi4hylafax.confd 555 RMD160 1ef65c363b828d5a9651c88b21c6de2aec1d278c SHA1 69f8dd0c5c042646156218d2255d21ba5060f89c SHA256 f61418080f0c7fa5cca6197fa00b007224124e9aa78b4efdb2c9e0e7005fbea3
AUX capi4hylafax.initd 1943 RMD160 a35cffbb92f0991f8c295ad079c4b80534681623 SHA1 9585c79fc12785a8c8dbe65a1cb650db6d658aa7 SHA256 376a564f9e78f79ce0baa0b59e0f3e29a481f9ccc32b3814a56433b7162e73c4
DIST capi4hylafax_01.03.00.99.svn.300-3.diff.gz 155360 RMD160 2001d97e99e938823d922d800ba85df74200f520 SHA1 bba7da85976121913bb6057038b964707b8abba1 SHA256 dec167255e2307d12b5093e11ddbb6b1f96d0ac94985643579cfd6b534313ed2
DIST capi4hylafax_01.03.00.99.svn.300-4.diff.gz 155740 RMD160 f6ccab7bf3cbaf8819b022b9e5ed300f264a837f SHA1 4f5371113304e0ae111968f67751abb775ce9a2e SHA256 3c46439120eaa6bfaaad7597b683e618eb565148e7f960d2268713f92c13433b
DIST capi4hylafax_01.03.00.99.svn.300-7.diff.gz 159998 RMD160 27c771edaffdfa307376f160f1f15b9abccb8ce1 SHA1 a8db8fbf82e52b4966877b2b470a83628d147e39 SHA256 29c4acb593382b95b48e84df2b18c23c5125ffbc9dada3c16165ce561782fe20
DIST capi4hylafax_01.03.00.99.svn.300-9.diff.gz 160179 RMD160 a3acf04af6871e8a6ca6576ee739cba56658a285 SHA1 98d0ed4cc1b4c3b59e19b9ce7818776d4be5e36e SHA256 5c116fcefa6604a351c31507644c26fb43e0dc89e51f97ee748a52a5eebbc4af
DIST capi4hylafax_01.03.00.99.svn.300.orig.tar.gz 533410 RMD160 163374cfcaa91909a5f70169203aa6c7df6a590d SHA1 a8b78e9edfb74df0317d5ee3bd28c66ee5b25ee0 SHA256 8c5433fda85d5f178382c0a4fbc07cf22fc22c448146a4b7a090bc6a0b1789c2
EBUILD capi4hylafax-01.03.00.99.300.3-r1.ebuild 4392 RMD160 8464ea445281ab9fcd8d2484d69e63684a34a6ad SHA1 743698208337cac6b9b6a307ab793000de8338c5 SHA256 637b6d27dab621c91d48effa0e2d59c45075a61683fa6cc64b20adba2355492c
EBUILD capi4hylafax-01.03.00.99.300.4.ebuild 4338 RMD160 7e8eb78be0bb6eddeebdfccf39503bbda43d1c93 SHA1 7e6aa3849f77d45662723c7b42532b6283a9e6d0 SHA256 96a6db652283b8c69824ff381582e877dc63b60168ba3f7d8bed1bfd2b494242
EBUILD capi4hylafax-01.03.00.99.300.7.ebuild 4069 RMD160 972a2e4ae5476e4964ec1fa497d34e828b464cb5 SHA1 9219ffb3714599774dd7b3a40ed2ba9ea64e905d SHA256 34861e7ad906df67ffb1a0c67ccaeb93041b40e6377dd0a00338326dcb41dcab
EBUILD capi4hylafax-01.03.00.99.300.9.ebuild 4069 RMD160 582b81cd7a88965c83f0e45a9d9541fa6aa35cf2 SHA1 c450ac3bec9a0d312e8c9b8c70d805564836af7b SHA256 c85c9d231af71813e29986124fc69f7d9276d904d5b63481b56c74cf89b637fa
MISC ChangeLog 4810 RMD160 f068150d11debf76fd4d0d8b2a0660564518017a SHA1 cf53382f466935dcad161e1535d9432525addfef SHA256 34c0a840a520bfb1000e1a4121f84d8302f3db62ab108a83de8c05d63513b093
MISC metadata.xml 774 RMD160 83e385eab3e03dd6d86cd0b1f97fcb7bfe7c80f2 SHA1 88b9b9702ca14797953cc2db52a9e69e11db7718 SHA256 66c01472fce6921767f22c34c3ddf3c079e6bc5ea27e77373e70183e08f901f4
# Copyright 1999-2007 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.99.300.3-r1.ebuild,v 1.6 2007/02/10 23:25:54 sbriesen Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils versionator autotools
FAX_SPOOL_DIR="/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."
SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.diff.gz"
HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
S="${WORKDIR}/${PN}-svn"
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}
cd "${S}"
# apply debian patches + update configs
epatch "${WORKDIR}/${MY_P}-${MY_PV3}.diff"
# apply bugfix patch (see bug #145982)
epatch "${FILESDIR}/${P}-recvdev.diff"
eautoreconf
# 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
insinto /usr/share/doc/${PF}/examples
doins sample_faxrcvd 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 "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"
}
# Copyright 1999-2007 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.99.300.4.ebuild,v 1.2 2007/02/10 23:25:54 sbriesen Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils versionator autotools
FAX_SPOOL_DIR="/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."
SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.diff.gz"
HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
S="${WORKDIR}/${PN}-svn"
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}
cd "${S}"
# apply debian patches + update configs
epatch "${WORKDIR}/${MY_P}-${MY_PV3}.diff"
# update autotools
eautoreconf
# 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
insinto /usr/share/doc/${PF}/examples
doins sample_faxrcvd 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 "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"
}
# Copyright 1999-2007 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.99.300.7.ebuild,v 1.1 2007/11/18 01:50:26 sbriesen Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils versionator autotools
FAX_SPOOL_DIR="/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."
SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.diff.gz"
HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
S="${WORKDIR}/${PN}-svn"
IUSE=""
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
DEPEND="net-dialup/capi4k-utils
app-shells/bash
media-libs/tiff
media-libs/jpeg
sys-libs/zlib"
RDEPEND="${DEPEND}
dev-util/dialog"
src_unpack() {
unpack ${A}
cd "${S}"
# apply debian patches + update configs
epatch "${WORKDIR}/${MY_P}-${MY_PV3}.diff"
# update autotools
eautoreconf
# 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
}
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
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 "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 [ -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI" ]; 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
# install default config
cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \
"${FAX_SPOOL_DIR}/etc/config.faxCAPI"
fi
elog
elog "You should also check special options in:"
elog "/etc/conf.d/${PN}"
elog
elog "If you want to use capi4hylafax together with"
elog "hylafax, then please emerge 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"
}
# Copyright 1999-2008 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.99.300.9.ebuild,v 1.1 2008/01/06 03:35:48 sbriesen Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils versionator autotools
FAX_SPOOL_DIR="/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."
SRC_URI="mirror://debian/pool/main/c/capi4hylafax/${MY_P}.orig.tar.gz
mirror://debian/pool/main/c/capi4hylafax/${MY_P}-${MY_PV3}.diff.gz"
HOMEPAGE="http://packages.qa.debian.org/c/capi4hylafax.html"
S="${WORKDIR}/${PN}-svn"
IUSE=""
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
DEPEND="net-dialup/capi4k-utils
app-shells/bash
media-libs/tiff
media-libs/jpeg
sys-libs/zlib"
RDEPEND="${DEPEND}
dev-util/dialog"
src_unpack() {
unpack ${A}
cd "${S}"
# apply debian patches + update configs
epatch "${WORKDIR}/${MY_P}-${MY_PV3}.diff"
# update autotools
eautoreconf
# 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
}
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
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 "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 [ -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI" ]; 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
# install default config
cp -f "${FAX_SPOOL_DIR}/etc/config.faxCAPI.default" \
"${FAX_SPOOL_DIR}/etc/config.faxCAPI"
fi
elog
elog "You should also check special options in:"
elog "/etc/conf.d/${PN}"
elog
elog "If you want to use capi4hylafax together with"
elog "hylafax, then please emerge 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"
}
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.
capi4hylafax は hylafax 環境に faxcopi
モデムを加えます。つまり hylafax
サーバに対して CAPI 2.0 fax コントローラ経由で FAX
ドキュメントを送信したり
受信したりできるようになります。