diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2004-03-22 21:28:48 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2004-03-22 21:28:48 +0000 |
commit | fb5f685e24fffcfe158cf59365de83944dec20b1 (patch) | |
tree | 4fef96946e3005c532a3c117279e4e9764228aad /net-dialup/gnokii/gnokii-0.6.0.ebuild | |
parent | Masking Oracle 10g instantclient packages (diff) | |
download | historical-fb5f685e24fffcfe158cf59365de83944dec20b1.tar.gz historical-fb5f685e24fffcfe158cf59365de83944dec20b1.tar.bz2 historical-fb5f685e24fffcfe158cf59365de83944dec20b1.zip |
version bump, bug #45365
Diffstat (limited to 'net-dialup/gnokii/gnokii-0.6.0.ebuild')
-rw-r--r-- | net-dialup/gnokii/gnokii-0.6.0.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-dialup/gnokii/gnokii-0.6.0.ebuild b/net-dialup/gnokii/gnokii-0.6.0.ebuild new file mode 100644 index 000000000000..171e8a569b24 --- /dev/null +++ b/net-dialup/gnokii/gnokii-0.6.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/gnokii/gnokii-0.6.0.ebuild,v 1.1 2004/03/22 21:28:48 lanius Exp $ + +DESCRIPTION="a client that plugs into your handphone" +SRC_URI="http://www.gnokii.org/download/${P}.tar.bz2" +HOMEPAGE="http://www.gnokii.org" + +IUSE="nls X bluetooth irda" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +RDEPEND="X? ( =x11-libs/gtk+-1.2* ) + bluetooth? ( net-wireless/bluez-libs ) + irda? ( sys-kernel/linux-headers )" + +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_unpack() { + unpack ${A} + EPATCH_OPTS="-d ${S}" epatch ${FILESDIR}/${PN}-0.5.4-nounix98pty.patch +} + +src_compile() { + local myconf + + econf \ + `use_enable nls` \ + `use_with X x` \ + --enable-security || die "configure failed" + + emake || die "make failed" +} + +src_install () { + make DESTDIR=${D} install || die "install failed" + + dodoc Docs/* + cp -r Docs/sample ${D}/usr/share/doc/${PF}/sample + cp -r Docs/protocol ${D}/usr/share/doc/${PF}/protocol + + doman Docs/man/* + + dodir /etc + sed -e 's:/usr/local/sbin:/usr/sbin:' ${S}/Docs/sample/gnokiirc > ${D}/etc/gnokiirc + + # only one file needs suid root to make a psuedo device + fperms 4755 /usr/sbin/mgnokiidev +} + +pkg_postinst() { + einfo "gnokii does not need it's own group anymore." + einfo "Make sure the user that runs gnokii has read/write access to the device" + einfo "which your phone is connected to. eg. chown <user> /dev/ttyS0" + + # clean up old gnokii group perms + groupdel gnokii +} + +pkg_postrm () { + # leaving to clean up the old mess we used to leave behind + # since we don't _really_ need suid gnokii, just the make sure + # the use has the right perms + groupdel gnokii +} |