blob: 7a3938c871161ea7c96195b2afa9ed98c330ec6f (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/aolserver.eclass,v 1.5 2005/02/27 22:40:21 port001 Exp $
# Authors:
# Ian Leitch <port001@gentoo.org>
ECLASS=aolserver
INHERITED="$INHERITED $ECLASS"
DEPEND="$DEPEND www-servers/aolserver"
RDEPEND="$RDEPEND www-servers/aolserver"
NS_CONF="/usr/share/aolserver" # /include/ is implied by the Makefile
NS_BASE="/usr/lib/aolserver"
SRC_URI="mirror://sourceforge/aolserver/${P}.tar.gz"
HOMEPAGE="http://www.aolserver.com"
LICENSE="MPL-1.1"
SLOT="0"
src_compile() {
emake NSBUILD=1 INST=${NS_CONF} AOLSERVER=${NS_CONF} ${MAKE_FLAGS} || die "emake failed"
}
src_install() {
find ${S} -type d -name CVS -prune | xargs rm -rf
into ${NS_BASE}
if [[ -e "${S}/${PN}.so" ]] ; then
dobin ${S}/${PN}.so
fi
if [[ -e "${S}/lib${PN}.so" ]] ; then
dolib.so ${S}/lib${PN}.so
fi
for mod in ${TCL_MODS} ; do
insinto /usr/lib/aolserver/modules/tcl
doins ${mod}
done
for doc in ${DOCS} ; do
dodoc ${doc}
done
}
pkg_postinst() {
echo
einfo "To enable the use of ${PN} you must add the module to your AOLServer configuration"
echo
}
|