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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 11 15:05:30 2010 UTC (4 years, 1 month ago) by mabi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.80.ebuild,v 1.1 2008/10/12 10:33:19 mrness Exp $
4
5 inherit eutils webapp
6 MY_FREERADIUS_PV="2.1.1"
7
8 DESCRIPTION="Web administration interface of freeradius server"
9 SRC_URI="ftp://ftp.freeradius.org/pub/radius/freeradius-server-${MY_FREERADIUS_PV}.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="sys-apps/findutils
17 sys-apps/sed"
18 RDEPEND="dev-lang/php
19 dev-perl/DateManip
20 >=net-dialup/freeradius-${MY_FREERADIUS_PV}"
21
22 S="${WORKDIR}/freeradius-server-${MY_FREERADIUS_PV}/dialup_admin"
23
24 src_unpack() {
25 unpack ${A}
26
27 cd "${S}"
28 epatch "${FILESDIR}/${P}-gentoo.patch"
29 epatch "${FILESDIR}/${P}-tmpfile.patch"
30
31 sed -i -e 's:/usr/local:/usr:' \
32 -e 's:/usr/etc/raddb:${general_raddb_dir}:' \
33 -e 's:/usr/radiusd::' \
34 conf/admin.conf
35 sed -i -e 's:/usr/local:/usr:' bin/*
36
37 #rename files .php3 -> .php
38 (find . -iname '*.php3' | (
39 local PHPFILE
40 while read PHPFILE; do
41 mv "${PHPFILE}" "${PHPFILE/.php3/.php}"
42 done
43 )) && \
44 (find . -type f | xargs sed -i -e 's:[.]php3:.php:g') || \
45 die "failed to replace php3 with php"
46
47 # fix dangling ../ to deal with the way webapp-config installs files
48 find . -name '*.php' | xargs sed -i \
49 -e 's:../conf/:../../conf/:' \
50 -e 's:../html/:../../html/:' \
51 -e 's:../lib/:../../lib/:'
52 }
53
54 src_install() {
55 webapp_src_preinst
56
57 insinto "${MY_HTDOCSDIR}"
58 doins -r htdocs/*
59 insinto "${MY_HOSTROOTDIR}"
60 doins -r conf html lib
61 exeinto "${MY_HOSTROOTDIR}/bin"
62 dodoc bin/*.cron bin/Changelog*
63 rm bin/*.cron bin/Changelog*
64 doexe bin/*
65
66 insinto "${MY_SQLSCRIPTSDIR}"
67 doins -r sql/*
68
69 dodoc Changelog README doc/*
70
71 webapp_hook_script "${FILESDIR}/setrootpath"
72
73 cd "${D}/${MY_HOSTROOTDIR}"
74 local CONFFILE
75 for CONFFILE in conf/* ; do
76 webapp_configfile "${MY_HOSTROOTDIR}/${CONFFILE}"
77 webapp_serverowned "${MY_HOSTROOTDIR}/${CONFFILE}"
78 done
79
80 webapp_src_install
81 }

  ViewVC Help
Powered by ViewVC 1.1.20