From: | "Alin Nastac (mrness)" <mrness@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-apps/freeradius-dialupadmin: ChangeLog freeradius-dialupadmin-1.80.ebuild |
Date: | Sun, 12 Oct 2008 10:33:22 |
Message-Id: | E1KoyGF-0002Ya-4L@stork.gentoo.org |
1 | mrness 08/10/12 10:33:19 |
2 | |
3 | Modified: ChangeLog |
4 | Added: freeradius-dialupadmin-1.80.ebuild |
5 | Log: |
6 | Version bump. Fix insecure usage of temporary files (#240546). |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.9 www-apps/freeradius-dialupadmin/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog?rev=1.9&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog?rev=1.9&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog?r1=1.8&r2=1.9 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog,v |
19 | retrieving revision 1.8 |
20 | retrieving revision 1.9 |
21 | diff -u -r1.8 -r1.9 |
22 | --- ChangeLog 14 Apr 2007 08:58:32 -0000 1.8 |
23 | +++ ChangeLog 12 Oct 2008 10:33:19 -0000 1.9 |
24 | @@ -1,6 +1,14 @@ |
25 | # ChangeLog for www-apps/freeradius-dialupadmin |
26 | -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog,v 1.8 2007/04/14 08:58:32 mrness Exp $ |
28 | +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 | +# $Header: /var/cvsroot/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog,v 1.9 2008/10/12 10:33:19 mrness Exp $ |
30 | + |
31 | +*freeradius-dialupadmin-1.80 (12 Oct 2008) |
32 | + |
33 | + 12 Oct 2008; Alin Năstac <mrness@g.o> |
34 | + +files/freeradius-dialupadmin-1.80-gentoo.patch, |
35 | + +files/freeradius-dialupadmin-1.80-tmpfile.patch, |
36 | + +freeradius-dialupadmin-1.80.ebuild: |
37 | + Version bump. Fix insecure usage of temporary files (#240546). |
38 | |
39 | 14 Apr 2007; Alin Năstac <mrness@g.o> files/setrootpath, |
40 | freeradius-dialupadmin-1.70.3.ebuild: |
41 | |
42 | |
43 | |
44 | 1.1 www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.80.ebuild |
45 | |
46 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.80.ebuild?rev=1.1&view=markup |
47 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.80.ebuild?rev=1.1&content-type=text/plain |
48 | |
49 | Index: freeradius-dialupadmin-1.80.ebuild |
50 | =================================================================== |
51 | # Copyright 1999-2008 Gentoo Foundation |
52 | # Distributed under the terms of the GNU General Public License v2 |
53 | # $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 $ |
54 | |
55 | inherit eutils webapp |
56 | MY_FREERADIUS_PV="2.1.1" |
57 | |
58 | DESCRIPTION="Web administration interface of freeradius server" |
59 | SRC_URI="ftp://ftp.freeradius.org/pub/radius/freeradius-server-${MY_FREERADIUS_PV}.tar.gz" |
60 | HOMEPAGE="http://www.freeradius.org/dialupadmin.html" |
61 | |
62 | KEYWORDS="~amd64 ~ppc ~x86" |
63 | IUSE="" |
64 | LICENSE="GPL-2" |
65 | |
66 | DEPEND="sys-apps/findutils |
67 | sys-apps/sed" |
68 | RDEPEND="virtual/php |
69 | dev-perl/DateManip |
70 | >=net-dialup/freeradius-${MY_FREERADIUS_PV}" |
71 | |
72 | S="${WORKDIR}/freeradius-server-${MY_FREERADIUS_PV}/dialup_admin" |
73 | |
74 | src_unpack() { |
75 | unpack ${A} |
76 | |
77 | cd "${S}" |
78 | epatch "${FILESDIR}/${P}-gentoo.patch" |
79 | epatch "${FILESDIR}/${P}-tmpfile.patch" |
80 | |
81 | sed -i -e 's:/usr/local:/usr:' \ |
82 | -e 's:/usr/etc/raddb:${general_raddb_dir}:' \ |
83 | -e 's:/usr/radiusd::' \ |
84 | conf/admin.conf |
85 | sed -i -e 's:/usr/local:/usr:' bin/* |
86 | |
87 | #rename files .php3 -> .php |
88 | (find . -iname '*.php3' | ( |
89 | local PHPFILE |
90 | while read PHPFILE; do |
91 | mv "${PHPFILE}" "${PHPFILE/.php3/.php}" |
92 | done |
93 | )) && \ |
94 | (find . -type f | xargs sed -i -e 's:[.]php3:.php:g') || \ |
95 | die "failed to replace php3 with php" |
96 | |
97 | # fix dangling ../ to deal with the way webapp-config installs files |
98 | find . -name '*.php' | xargs sed -i \ |
99 | -e 's:../conf/:../../conf/:' \ |
100 | -e 's:../html/:../../html/:' \ |
101 | -e 's:../lib/:../../lib/:' |
102 | } |
103 | |
104 | src_install() { |
105 | webapp_src_preinst |
106 | |
107 | insinto "${MY_HTDOCSDIR}" |
108 | doins -r htdocs/* |
109 | insinto "${MY_HOSTROOTDIR}" |
110 | doins -r conf html lib |
111 | exeinto "${MY_HOSTROOTDIR}/bin" |
112 | dodoc bin/*.cron bin/Changelog* |
113 | rm bin/*.cron bin/Changelog* |
114 | doexe bin/* |
115 | |
116 | insinto "${MY_SQLSCRIPTSDIR}" |
117 | doins -r sql/* |
118 | |
119 | dodoc Changelog README doc/* |
120 | |
121 | webapp_hook_script "${FILESDIR}/setrootpath" |
122 | |
123 | cd "${D}/${MY_HOSTROOTDIR}" |
124 | local CONFFILE |
125 | for CONFFILE in conf/* ; do |
126 | webapp_configfile "${MY_HOSTROOTDIR}/${CONFFILE}" |
127 | webapp_serverowned "${MY_HOSTROOTDIR}/${CONFFILE}" |
128 | done |
129 | |
130 | webapp_src_install |
131 | } |