/[gentoo-x86]/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild
Gentoo

Contents of /www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Sep 11 15:05:30 2010 UTC (3 years, 7 months ago) by mabi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
change virtual/php to dev-lang/php (bug #319623)
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild,v 1.2 2007/04/14 08:58:32 mrness Exp $
4
5 inherit eutils webapp
6 MY_FREERADIUS_P="freeradius-1.1.6"
7
8 DESCRIPTION="Web administration interface of freeradius server"
9 SRC_URI="ftp://ftp.freeradius.org/pub/radius/${MY_FREERADIUS_P}.tar.gz"
10 HOMEPAGE="http://www.freeradius.org/dialupadmin.html"
11
12 KEYWORDS="~amd64 ~ppc ~x86"
13 IUSE=""
14 LICENSE="GPL-2"
15
16 DEPEND="dev-lang/php
17 dev-perl/DateManip
18 sys-apps/findutils
19 >=net-dialup/${MY_FREERADIUS_P}"
20
21 S="${WORKDIR}/${MY_FREERADIUS_P}/dialup_admin"
22
23 src_unpack() {
24 unpack ${A}
25
26 cd "${S}"
27 epatch "${FILESDIR}/${P}-sqldebug.patch"
28
29 sed -i -e 's:/usr/local:/usr:' \
30 -e 's:/usr/etc/raddb:${general_raddb_dir}:' \
31 -e 's:/usr/radiusd::' \
32 conf/admin.conf
33 sed -i -e 's:/usr/local:/usr:' bin/*
34
35 #rename files .php3 -> .php
36 (find . -iname '*.php3' | (
37 local PHPFILE
38 while read PHPFILE; do
39 mv "${PHPFILE}" "${PHPFILE/.php3/.php}"
40 done
41 )) && \
42 (find . -type f | xargs sed -i -e 's:[.]php3:.php:g') || \
43 die "failed to replace php3 with php"
44
45 # remove cvs data
46 find . -name CVS | xargs rm -r
47
48 # fix dangling ../ to deal with the way webapp-config installs files
49 find . -name '*.php' | xargs sed -i \
50 -e 's:../conf/:../../conf/:' \
51 -e 's:../html/:../../html/:' \
52 -e 's:../lib/:../../lib/:'
53 }
54
55 src_install() {
56 webapp_src_preinst
57
58 insinto "${MY_HTDOCSDIR}"
59 doins -r htdocs/*
60 insinto "${MY_HOSTROOTDIR}"
61 doins -r conf html lib
62 exeinto "${MY_HOSTROOTDIR}/bin"
63 dodoc bin/*.cron bin/Changelog*
64 rm bin/*.cron bin/Changelog*
65 doexe bin/*
66
67 insinto "${MY_SQLSCRIPTSDIR}"
68 doins sql/*
69
70 dodoc Changelog README doc/*
71
72 webapp_hook_script "${FILESDIR}/setrootpath"
73
74 cd "${D}/${MY_HOSTROOTDIR}"
75 local CONFFILE
76 for CONFFILE in conf/* ; do
77 webapp_configfile "${MY_HOSTROOTDIR}/${CONFFILE}"
78 webapp_serverowned "${MY_HOSTROOTDIR}/${CONFFILE}"
79 done
80
81 webapp_src_install
82 }

  ViewVC Help
Powered by ViewVC 1.1.20