blob: 62672d908519281463c6ac2b844d4e984c9aae38 (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.3.ebuild,v 1.2 2000/10/29 20:37:00 achim Exp $
A=${P}-source.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="The Common Unix Printing System"
SRC_URI="ftp://ftp.easysw.com/pub/cups/${PV}/${A}"
HOMEPAGE="http://www.cups.org"
src_compile() {
cd ${S}
try ./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --host=${CHOST} --enable-pam
cp Makedefs Makedefs.orig
sed -e "s:^INITDIR.*:INITDIR = /etc:" \
-e "s:/share/doc/cups:/doc/${P}:" \
-e "s:^SERVERROOT.*:SERVERROOT = /etc/cups:" \
-e "s:^LOGDIR.*:LOGDIR = /var/log/cups:" \
-e "s:^REQUESTS.*:REQUESTS = /var/spool/cups:" \
Makedefs.orig > Makedefs
try make
}
src_install () {
cd ${S}
try make exec_prefix=${D}/usr prefix=${D}/usr \
localstatedir=${D}/var/state sysconfdir=${D}/etc \
INITDIT=${D}/etc PAMDIR=${D}/etc/pam.d \
DOCDIR=${D}/usr/doc/${P} SERVERROOT=${D}/etc/cups \
LOGDIR=${D}/var/log/cups REQUESTS=${D}/var/spool/cups install
rm -rf ${D}/usr/etc
rm -rf ${D}/usr/man/cat*
rm -r ${D}/etc/pam.d
cd ${D}/usr/doc/${P}
gzip *
mkdir html
mv images html
mv *.html.gz html
mv *.css.gz html
cd ${S}
dodoc *.txt
docinto html
dodoc LICENSE.html
insinto /etc/rc.d/init.d
insopts -m 755
doins ${FILESDIR}/cups
}
|