# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Asterisk Configuration Tool Open Source" HOMEPAGE="http://www.ifrance.com/belikewater/code/actos.html" SRC_URI="http://www.derrier.com/pierre/code/actos_server-${PV}.tar.gz" LICENSE="GPL2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND=">=dev-lang/python-2.3 >=x11-libs/gtk+-2.0 >=dev-python/pygtk-2.0 >=gnome-base/libglade-2.0" S=${WORKDIR}/actos_server src_compile() { pwd python setup.py clean || die python setup.py build || die } src_install() { diropts -m0777 dodir /usr/share/actos python setup.py install --root=${D} || die dodoc README INSTALL enewuser actos # This is a REALLY nasty way to change the sudoers file... # Please help me fix it!! mkdir ${D}etc/ cp -pf /etc/sudoers ${D}etc/sudoers echo "actos ALL=(ALL) NOPASSWD: /usr/sbin/asterisk, /bin/chmod 777 \ /usr/share/actos/passwd,/bin/chmod 600 /usr/share/actos/passwd, /bin/chown \ root /usr/share/actos/passwd" >> ${D}etc/sudoers einfo "You need to make the /etc/asterisk directory and files readable and \ writable by user actos." einfo "I suggest you do this with:" einfo "chgrp actos /etc/asterisk" einfo "chgrp actos /etc/asterisk/*" einfo "chmod +rwx actos /etc/asterisk" einfo "chmod +rw actos /etc/asterisk/*" einfo "" einfo "Feel free to submit a fix to get this done automatically..." } pkg_postinst() { einfo "Type \"actos_server.py -manage\" to configure ACTOS_SERVER" }