diff options
author | Austin English <wizardedit@gentoo.org> | 2016-05-03 18:36:31 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-05-03 19:08:37 -0500 |
commit | b27492ed888c1a294152501ac9a491e7651abd03 (patch) | |
tree | c70f9dbf343e788643f33f5f4295576bb411e74d /net-misc/iaxmodem | |
parent | net-misc/htbinit: remove old version (diff) | |
download | gentoo-b27492ed888c1a294152501ac9a491e7651abd03.tar.gz gentoo-b27492ed888c1a294152501ac9a491e7651abd03.tar.bz2 gentoo-b27492ed888c1a294152501ac9a491e7651abd03.zip |
net-misc/iaxmodem: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-misc/iaxmodem')
-rw-r--r-- | net-misc/iaxmodem/files/iaxmodem.initd | 4 | ||||
-rw-r--r-- | net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild | 106 | ||||
-rw-r--r-- | net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild | 106 |
3 files changed, 214 insertions, 2 deletions
diff --git a/net-misc/iaxmodem/files/iaxmodem.initd b/net-misc/iaxmodem/files/iaxmodem.initd index 07b2f2a902d4..ae5b4615f61f 100644 --- a/net-misc/iaxmodem/files/iaxmodem.initd +++ b/net-misc/iaxmodem/files/iaxmodem.initd @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2008 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ diff --git a/net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild b/net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild new file mode 100644 index 000000000000..98a13205cdd7 --- /dev/null +++ b/net-misc/iaxmodem/iaxmodem-1.2.0-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="Software modem that uses an IAX channel instead of a traditional phone line" +HOMEPAGE="http://sourceforge.net/projects/iaxmodem/" +SRC_URI="mirror://sourceforge/iaxmodem/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="media-libs/tiff:= + sys-process/procps" + +DEPEND="${RDEPEND}" + +src_prepare() { + # fix header file position + sed -i -e 's:iax/iax-client\.h:iax-client.h:g' iaxmodem.c || die + + # fix broken line terminators + sed -i -e 's:\r::g' -e 's:--s$:--:g' -e 's:$:\r:g' iaxmodem.inf || die + + # fix installation of libiax2 headers (though we don't need them) + sed -i -e 's: \(\$(includedir)/\): $(DESTDIR)\1:g' lib/libiax2/src/Makefile.in || die + + # patch configure (we compile libs for ourself) + sed -i -e 's:^\(cd\|./configure\):# \1:g' configure || die + sed -i -e 's:build-libiax build-libspandsp ::g' Makefile.in || die + + # fix dumb x86_64 libdir handling + sed -i -e 's: \(x86_64-\*)\): _DISABLED_\1:g' lib/spandsp/configure || die +} + +src_configure() { + cd "${S}/lib/libiax2" || die + econf --disable-static \ + --libdir=/usr/$(get_libdir)/iaxmodem \ + --datadir=/usr/share/iaxmodem/libiax2 + + cd "${S}/lib/spandsp" || die + econf --disable-static \ + --libdir=/usr/$(get_libdir)/iaxmodem \ + --datadir=/usr/share/iaxmodem + + cd "${S}" + ./configure || die "configure iaxmodem failed" || die +} + +src_compile() { + cd "${S}/lib/libiax2" || die + emake + + cd "${S}/lib/spandsp" || die + emake + + cd "${S}" + emake OBJS="iaxmodem.o" CC=$(tc-getCC) \ + LDFLAGS="${LDFLAGS} -Wl,-rpath,/usr/$(get_libdir)/iaxmodem \ + -Llib/spandsp/src/.libs -Llib/libiax2/src/.libs -lm -lutil -ltiff -lspandsp -liax" +} + +src_install() { + cd "${S}/lib/libiax2" || die + emake DESTDIR="${D}" install + + cd "${S}/lib/spandsp" || die + emake DESTDIR="${D}" install + + cd "${S}" + dosbin iaxmodem + + # remove libiax and spandsp headers, we don't need them + rm -rf "${D}usr/include" "${D}usr/bin/iax-config" || die + + # install init-script + conf + newinitd "${FILESDIR}/iaxmodem.initd" iaxmodem + newconfd "${FILESDIR}/iaxmodem.confd" iaxmodem + + # install docs + doman iaxmodem.1 + newdoc CHANGES ChangeLog + newdoc lib/libiax2/ChangeLog ChangeLog.libiax2 + newdoc lib/spandsp/ChangeLog ChangeLog.spandsp + dodoc FAQ README lib/spandsp/DueDiligence + + # install sample configs + insinto /etc/iaxmodem + newins "${FILESDIR}/iaxmodem.cfg" default + insinto /usr/share/iaxmodem + doins config.ttyIAX iaxmodem-cfg.ttyIAX iaxmodem.inf + + # install logrotate rule + insinto /etc/logrotate.d + newins "${FILESDIR}/iaxmodem.logrotated" iaxmodem + + # create log dir + keepdir /var/log/iaxmodem +} diff --git a/net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild b/net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild new file mode 100644 index 000000000000..f0ee6ee070bf --- /dev/null +++ b/net-misc/iaxmodem/iaxmodem-1.3.0-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs multilib + +DESCRIPTION="Software modem that uses an IAX channel instead of a traditional phone line" +HOMEPAGE="http://sourceforge.net/projects/iaxmodem/" +SRC_URI="mirror://sourceforge/iaxmodem/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND="media-libs/tiff:= + sys-process/procps" + +DEPEND="${RDEPEND}" + +src_prepare() { + # fix header file position + sed -i -e 's:iax/iax-client\.h:iax-client.h:g' iaxmodem.c || die + + # fix broken line terminators + sed -i -e 's:\r::g' -e 's:--s$:--:g' -e 's:$:\r:g' iaxmodem.inf || die + + # fix installation of libiax2 headers (though we don't need them) + sed -i -e 's: \(\$(includedir)/\): $(DESTDIR)\1:g' lib/libiax2/src/Makefile.in || die + + # patch configure (we compile libs for ourself) + sed -i -e 's:^\(cd\|./configure\):# \1:g' configure || die + sed -i -e 's:build-libiax build-libspandsp ::g' Makefile.in || die + + # fix dumb x86_64 libdir handling + sed -i -e 's: \(x86_64-\*)\): _DISABLED_\1:g' lib/spandsp/configure || die +} + +src_configure() { + cd "${S}/lib/libiax2" || die + econf --disable-static \ + --libdir=/usr/$(get_libdir)/iaxmodem \ + --datadir=/usr/share/iaxmodem/libiax2 + + cd "${S}/lib/spandsp" || die + econf --disable-static \ + --libdir=/usr/$(get_libdir)/iaxmodem \ + --datadir=/usr/share/iaxmodem + + cd "${S}" + ./configure || die "configure iaxmodem failed" +} + +src_compile() { + cd "${S}/lib/libiax2" || die + emake + + cd "${S}/lib/spandsp" || die + emake + + cd "${S}" + emake OBJS="iaxmodem.o" CC=$(tc-getCC) \ + LDFLAGS="${LDFLAGS} -Wl,-rpath,/usr/$(get_libdir)/iaxmodem \ + -Llib/spandsp/src/.libs -Llib/libiax2/src/.libs -lm -lutil -ltiff -lspandsp -liax" +} + +src_install() { + cd "${S}/lib/libiax2" || die + emake DESTDIR="${D}" install + + cd "${S}/lib/spandsp" || die + emake DESTDIR="${D}" install + + cd "${S}" + dosbin iaxmodem + + # remove libiax and spandsp headers, we don't need them + rm -rf "${D}usr/include" "${D}usr/bin/iax-config" || die + + # install init-script + conf + newinitd "${FILESDIR}/iaxmodem.initd" iaxmodem + newconfd "${FILESDIR}/iaxmodem.confd" iaxmodem + + # install docs + doman iaxmodem.1 + newdoc CHANGES ChangeLog + newdoc lib/libiax2/ChangeLog ChangeLog.libiax2 + newdoc lib/spandsp/ChangeLog ChangeLog.spandsp + dodoc FAQ README lib/spandsp/DueDiligence + + # install sample configs + insinto /etc/iaxmodem + newins "${FILESDIR}/iaxmodem.cfg" default + insinto /usr/share/iaxmodem + doins config.ttyIAX iaxmodem-cfg.ttyIAX iaxmodem.inf + + # install logrotate rule + insinto /etc/logrotate.d + newins "${FILESDIR}/iaxmodem.logrotated" iaxmodem + + # create log dir + keepdir /var/log/iaxmodem +} |