blob: 7d6577d4c7884f375d37901159216f4f6cbbee9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/powersoftplus/powersoftplus-0.1.8-r1.ebuild,v 1.2 2009/02/15 21:56:29 loki_val Exp $
inherit autotools eutils
DESCRIPTION="Ever UPS daemon"
HOMEPAGE="http://www.ever.com.pl"
SRC_URI="http://www.ever.com.pl/pl/pliki/${P}-x86.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="dev-embedded/libftd2xx
=dev-embedded/powersoftplus-libftdi-${PV}*"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
# Remove libftdi because we moved it to another package
# Remove scripts because we provide our own startup scripts
sed -i -e 's#^SUBDIRS = libftdi \(.*\) scripts#SUBDIRS = \1#' \
Makefile.am \
|| die "sed failed"
# Fix libftd2xx header reference
sed -i \
-e 's@^#include "libftdi/ftd2xx.h$@#include <ftd2xx.h>@' \
src/ftccomm.h \
-e 's#-I$(top_srcdir)/libftdi##' \
Makefile.am \
|| die "sed failed"
# Fix access violations
sed -i -e \
's#^CONFPATH = @CONFIG_PATH@$#CONFPATH = ${DESTDIR}/@CONFIG_PATH@#' \
conf/Makefile.in \
|| die "sed failed"
# Fix access violations
sed -i -e \
's#^PIXPATH = @PIX_PATH@$#PIXPATH = ${DESTDIR}/@PIX_PATH@#' \
pix/Makefile.in \
|| die "sed failed"
eautoreconf
epatch ${FILESDIR}/${P}-gcc43.patch
epatch ${FILESDIR}/${P}-reduceverbosity.patch
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
doinitd ${FILESDIR}/powersoftplus
dodoc AUTHORS COPYING INSTALL README TODO Pomoc.pdf
}
pkg_postinst() {
elog "Remeber that if you want to communicate with USB devices you"
elog "have to edit /etc/fstab so that it contains the following entry"
elog " none /proc/bus/usb usbfs defaults,devmode=0666 0 0"
}
|