Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.10.16-r3.ebuild,v 1.1 2005/03/14 23:27:27 ciaranm Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/apcupsd-3.10.16-r3.ebuild,v 1.1 2005/03/14 23:27:27 ciaranm Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils depend.apache |
|
|
6 |
|
7 |
need_apache |
6 |
|
8 |
|
7 |
DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown" |
9 |
DESCRIPTION="APC UPS daemon with integrated tcp/ip remote shutdown" |
8 |
HOMEPAGE="http://www.sibbald.com/apcupsd/" |
10 |
HOMEPAGE="http://www.sibbald.com/apcupsd/" |
Lines 17-23
Link Here
|
17 |
virtual/libc |
19 |
virtual/libc |
18 |
virtual/mta |
20 |
virtual/mta |
19 |
snmp? ( net-analyzer/net-snmp ) |
21 |
snmp? ( net-analyzer/net-snmp ) |
20 |
gd? ( >=media-libs/gd-1.8.4 ) |
22 |
gd? ( >=media-libs/gd-1.8.4 |
|
|
23 |
net-www/apache ) |
21 |
sys-libs/ncurses" |
24 |
sys-libs/ncurses" |
22 |
RDEPEND="${DEPEND} |
25 |
RDEPEND="${DEPEND} |
23 |
usb? ( sys-apps/hotplug )" |
26 |
usb? ( sys-apps/hotplug )" |
Lines 40-46
Link Here
|
40 |
use gd && myconf="${myconf} --enable-cgi --with-css-dir=/var/www/apcupsd --with-cgi-bin=/var/www/apcupsd" |
43 |
use gd && myconf="${myconf} --enable-cgi --with-css-dir=/var/www/apcupsd --with-cgi-bin=/var/www/apcupsd" |
41 |
use usb && myconf="${myconf} --with-upstype=usb --with-upscable=usb --with-serial-dev=/dev/usb/hiddev[0-9] --enable-usb" |
44 |
use usb && myconf="${myconf} --with-upstype=usb --with-upscable=usb --with-serial-dev=/dev/usb/hiddev[0-9] --enable-usb" |
42 |
use !usb && myconf="${myconf} --with-upstype=apcsmart --with-upscable=apcsmart --with-serial-dev=/dev/ttyS0 --disable-usb" |
45 |
use !usb && myconf="${myconf} --with-upstype=apcsmart --with-upscable=apcsmart --with-serial-dev=/dev/ttyS0 --disable-usb" |
43 |
APCUPSD_MAIL=/usr/sbin/sendmail ./configure \ |
46 |
DISTNAME=gentoo APCUPSD_MAIL=/usr/sbin/sendmail ./configure \ |
44 |
--prefix=/usr \ |
47 |
--prefix=/usr \ |
45 |
--sbindir=/usr/sbin \ |
48 |
--sbindir=/usr/sbin \ |
46 |
--sysconfdir=${XSYSCONFDIR} \ |
49 |
--sysconfdir=${XSYSCONFDIR} \ |
Lines 63-75
Link Here
|
63 |
src_install () { |
66 |
src_install () { |
64 |
make DESTDIR=${D} install || die "installed failed" |
67 |
make DESTDIR=${D} install || die "installed failed" |
65 |
|
68 |
|
66 |
if use gd |
69 |
if use gd; then |
67 |
then |
70 |
insinto ${APACHE_MODULEDIR} |
68 |
use apache2 || insinto /etc/apache/conf/addon-modules |
71 |
newins ${FILEDIR}/${PV}/apache.conf 60_apcupsd.conf |
69 |
use apache2 || newins ${FILESDIR}/${PV}/apache.conf apcupsd.conf |
|
|
70 |
|
71 |
use apache2 && insinto /etc/apache2/conf/modules.d |
72 |
use apache2 && newins ${FILESDIR}/${PV}/apache.conf 60_apcupsd.conf |
73 |
fi |
72 |
fi |
74 |
|
73 |
|
75 |
insinto /etc/apcupsd |
74 |
insinto /etc/apcupsd |